hexsha
stringlengths 40
40
| size
int64 3
1.05M
| ext
stringclasses 163
values | lang
stringclasses 53
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
112
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
float64 1
191k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
113
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
float64 1
116k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
113
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
float64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 3
1.05M
| avg_line_length
float64 1
966k
| max_line_length
int64 1
977k
| alphanum_fraction
float64 0
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f18b7beaa9623d0d9f8d8bbec7b6ec12b8d997ea
| 69,811 |
pas
|
Pascal
|
src/gui-classic/UFRMOperation.pas
|
maxkleiner/PascalCoin
|
e01ee6ae3a4e64547226059bd90ffa62d7af9534
|
[
"MIT"
] | null | null | null |
src/gui-classic/UFRMOperation.pas
|
maxkleiner/PascalCoin
|
e01ee6ae3a4e64547226059bd90ffa62d7af9534
|
[
"MIT"
] | null | null | null |
src/gui-classic/UFRMOperation.pas
|
maxkleiner/PascalCoin
|
e01ee6ae3a4e64547226059bd90ffa62d7af9534
|
[
"MIT"
] | null | null | null |
unit UFRMOperation;
{ Copyright (c) 2016 by Albert Molina
Distributed under the MIT software license, see the accompanying file LICENSE
or visit http://www.opensource.org/licenses/mit-license.php.
This unit is a part of the PascalCoin Project, an infinitely scalable
cryptocurrency. Find us here:
Web: https://www.pascalcoin.org
Source: https://github.com/PascalCoin/PascalCoin
If you like it, consider a donation using Bitcoin:
16K3HCZRhFUtM8GdWRcfKeaa6KsuyxZaYk
THIS LICENSE HEADER MUST NOT BE REMOVED.
}
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
interface
uses
{$IFnDEF FPC}
Windows,
System.Actions,
{$ELSE}
LCLIntf, LCLType, LMessages,
{$ENDIF}
Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, UNode, UWallet, UCrypto, Buttons, UBlockChain,
UAccounts, UFRMAccountSelect, ActnList, ComCtrls, Types, UFRMMemoText,
UPCEncryption, UBaseTypes, UPCDataTypes, UPCOrderedLists;
Const
CM_PC_WalletKeysChanged = WM_USER + 1;
type
{ TFRMOperation }
TFRMOperation = class(TForm)
ebChangeName: TEdit;
ebChangeType: TEdit;
ebSignerAccount: TEdit;
lblSignerAccount: TLabel;
lblAccountCaption: TLabel;
bbExecute: TBitBtn;
bbCancel: TBitBtn;
lblAccountBalance: TLabel;
lblChangeType: TLabel;
lblChangeName: TLabel;
lblBalanceCaption: TLabel;
ebSenderAccount: TEdit;
lblChangeInfoErrors: TLabel;
PageControlLocked: TPageControl;
sbSearchBuyAccount: TSpeedButton;
sbSearchDestinationAccount: TSpeedButton;
sbSearchSignerAccount: TSpeedButton;
tsChangeInfo: TTabSheet;
tsOperation: TTabSheet;
gbPayload: TGroupBox;
lblEncryptPassword: TLabel;
Label4: TLabel;
lblEncryptionErrors: TLabel;
lblPayloadLength: TLabel;
rbEncryptedWithEC: TRadioButton;
rbEncrptedWithPassword: TRadioButton;
rbNotEncrypted: TRadioButton;
ebEncryptPassword: TEdit;
memoPayload: TMemo;
rbEncryptedWithOldEC: TRadioButton;
ActionList: TActionList;
actExecute: TAction;
tsGlobalError: TTabSheet;
lblGlobalErrors: TLabel;
bbPassword: TBitBtn;
memoAccounts: TMemo;
lblAccountsCount: TLabel;
lblFee: TLabel;
ebFee: TEdit;
PageControlOpType: TPageControl;
tsTransaction: TTabSheet;
lblDestAccount: TLabel;
lblAmount: TLabel;
lblTransactionErrors: TLabel;
ebDestAccount: TEdit;
ebAmount: TEdit;
tsChangePrivateKey: TTabSheet;
tsListAccount: TTabSheet;
tsDelistAccount: TTabSheet;
tsBuyAccount: TTabSheet;
lblAccountToBuy: TLabel;
ebAccountToBuy: TEdit;
lblBuyAmount: TLabel;
ebBuyAmount: TEdit;
lblBuyAccountErrors: TLabel;
lblBuyNewKey: TLabel;
cbBuyNewKey: TComboBox;
bbBuyNewKey: TBitBtn;
Label2: TLabel;
lblDelistErrors: TLabel;
lblListAccountErrors: TLabel;
rbListAccountForPublicSale: TRadioButton;
rbListAccountForPrivateSale: TRadioButton;
rbListAccountForAccountSwap: TRadioButton;
rbListAccountForCoinSwap: TRadioButton;
lblPrice: TLabel;
ebPrice: TEdit;
lblSeller: TLabel;
ebSellerAccount: TEdit;
sbSearchListerSellerAccount: TSpeedButton;
ebNewKey: TEdit;
lblNewKey: TLabel;
lblTimeLock: TLabel;
ebTimeLock: TEdit;
rbChangeKeyWithAnother: TRadioButton;
lblNewPrivateKey: TLabel;
cbNewPrivateKey: TComboBox;
lblChangeKeyErrors: TLabel;
bbChangePrivateKeyKeys: TBitBtn;
lblNewOwnerErrors: TLabel;
rbChangeKeyTransferAccountToNewOwner: TRadioButton;
lblNewOwnerPublicKey: TLabel;
ebNewPublicKey: TEdit;
lblHashLock: TLabel;
ebHashLock: TEdit;
btnHashLock: TSpeedButton;
sbTimeLock: TSpeedButton;
cbPayloadAsHex: TCheckBox;
lblChangeAccountData: TLabel;
ebChangeAccountData: TEdit;
procedure ebNewPublicKeyExit(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure memoPayloadClick(Sender: TObject);
procedure ebEncryptPasswordChange(Sender: TObject);
procedure bbChangePrivateKeyKeysClick(Sender: TObject);
procedure actExecuteExecute(Sender: TObject);
procedure ebSenderAccountExit(Sender: TObject);
procedure ebSenderAccountKeyPress(Sender: TObject; var Key: Char);
procedure bbPasswordClick(Sender: TObject);
procedure PageControlOpTypeChange(Sender: TObject);
procedure sbSearchBuyAccountClick(Sender: TObject);
procedure sbSearchDestinationAccountClick(Sender: TObject);
procedure sbSearchListerSellerAccountClick(Sender: TObject);
procedure sbSearchSignerAccountClick(Sender: TObject);
procedure sbHashLockClick(Sender: TObject);
procedure updateInfoClick(Sender: TObject);
procedure bbBuyNewKeyClick(Sender: TObject);
procedure ebAccountNumberExit(Sender: TObject);
procedure ebCurrencyExit(Sender: TObject);
procedure sbTimeLockClick(Sender: TObject);
private
FNode : TNode;
FWalletKeys: TWalletKeys;
FDefaultFee: Int64;
FEncodedPayload : TOperationPayload;
FDisabled : Boolean;
FSenderAccounts: TOrderedCardinalList; // TODO: TOrderedCardinalList should be replaced with a "TCardinalList" since signer account should be processed last
procedure SetWalletKeys(const Value: TWalletKeys);
Procedure UpdateWalletKeys;
{ Private declarations }
Procedure UpdateAccountsInfo;
Function UpdateFee(var Fee : Int64; errors : String) : Boolean;
Function UpdateOperationOptions(var errors : String) : Boolean;
Function UpdatePayload(Const SenderAccount : TAccount; var errors : String) : Boolean;
Function UpdateOpTransaction(const SenderAccount: TAccount; out DestAccount : TAccount; out AResolvedKey : TAccountKey; out ARequiresPurchase : Boolean; out amount: Int64; out errors: String) : Boolean;
Function UpdateOpChangeKey(Const TargetAccount : TAccount; var SignerAccount : TAccount; var NewPublicKey : TAccountKey; var errors : String) : Boolean;
Function UpdateOpListAccount(Const TargetAccount : TAccount; var SalePrice : Int64; var SellerAccount,SignerAccount : TAccount; var NewOwnerPublicKey : TAccountKey; var LockedUntilBlock : Cardinal; var HashLock : T32Bytes; var errors : String) : Boolean;
Function UpdateOpDelist(Const TargetAccount : TAccount; var SignerAccount : TAccount; var errors : String) : Boolean;
Function UpdateOpBuyAccount(Const SenderAccount : TAccount; var AccountToBuy : TAccount; var amount : Int64; var NewPublicKey : TAccountKey; var ARecipientSigned : Boolean; var errors : String) : Boolean;
Function UpdateOpChangeInfo(Const TargetAccount : TAccount; var SignerAccount : TAccount; var changeName : Boolean; var newName : TRawBytes; var changeType : Boolean; var newType : Word; var AChangeData : Boolean; var ANewData : TRawBytes; var errors : String) : Boolean;
procedure SetDefaultFee(const Value: Int64);
Procedure OnSenderAccountsChanged(Sender : TObject);
procedure OnWalletKeysChanged(Sender : TObject);
procedure CM_WalletChanged(var Msg: TMessage); message CM_PC_WalletKeysChanged;
Function GetDefaultSenderAccount : TAccount;
procedure ebAccountKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
protected
procedure searchAccount(editBox : TCustomEdit);
public
{ Public declarations }
Property SenderAccounts : TOrderedCardinalList read FSenderAccounts;
Property WalletKeys : TWalletKeys read FWalletKeys write SetWalletKeys;
Property DefaultFee : Int64 read FDefaultFee write SetDefaultFee;
end;
implementation
uses
{$IFDEF USE_GNUGETTEXT}gnugettext,{$ENDIF}UConst, UOpTransaction, UFRMNewPrivateKeyType, UFRMWalletKeys, UFRMHashLock,
UCommon, UEPasa, ULog, UGUIUtils;
{$IFnDEF FPC}
{$R *.dfm}
{$ELSE}
{$R *.lfm}
{$ENDIF}
{ TFRMOperation }
procedure TFRMOperation.actExecuteExecute(Sender: TObject);
Var errors : String;
P : PAccount;
i,iAcc : Integer;
LKey : TWalletKey;
ops : TOperationsHashTree;
op : TPCOperation;
account,signerAccount,destAccount,accountToBuy : TAccount;
operation_to_string, operationstxt, auxs : String;
_amount,_fee, _totalamount, _totalfee, _totalSignerFee, _salePrice : Int64;
_lockedUntil, _signer_n_ops : Cardinal;
dooperation : Boolean;
_newOwnerPublicKey : TECDSA_Public;
LHashLock : T32Bytes;
_newName, LNewAccountData : TRawBytes;
_newType : Word;
_changeName, _changeType, LChangeAccountData, _V2, _executeSigner, LRecipientSigned, LRequiresPurchase : Boolean;
_senderAccounts : TCardinalsArray;
label loop_start;
begin
if Not Assigned(WalletKeys) then raise Exception.Create('No wallet keys');
If Not UpdateOperationOptions(errors) then raise Exception.Create(errors);
ops := TOperationsHashTree.Create;
Try
_V2 := FNode.Bank.SafeBox.CurrentProtocol >= CT_PROTOCOL_2;
_totalamount := 0;
_totalfee := 0;
_totalSignerFee := 0;
_signer_n_ops := 0;
operationstxt := '';
operation_to_string := '';
// Compile FSenderAccounts into a reorderable array
_senderAccounts := FSenderAccounts.ToArray;
// Loop through each sender account
for iAcc := 0 to Length(_senderAccounts) - 1 do begin
loop_start:
op := Nil;
account := FNode.GetMempoolAccount(_senderAccounts[iAcc]);
If Not UpdatePayload(account, errors) then
raise Exception.Create('Error encoding payload of sender account '+TAccountComp.AccountNumberToAccountTxtNumber(account.account)+': '+errors);
if NOT WalletKeys.TryGetKey(account.accountInfo.accountKey, LKey) then begin
if (
(TAccountComp.IsAccountForPrivateSale(account.accountInfo)) or
(TAccountComp.IsAccountForAccountSwap(account.accountInfo))
)
and (Not TAccountComp.IsNullAccountKey(account.accountInfo.new_publicKey)) then begin
if NOT WalletKeys.TryGetKey(account.accountInfo.new_publicKey, LKey) then
Raise Exception.Create('New sender account private key not found in Wallet');
end else Raise Exception.Create('Sender account private key not found in Wallet');
end;
dooperation := true;
// Default fee
if account.balance > uint64(DefaultFee) then _fee := DefaultFee else _fee := account.balance;
// Determine which operation type it is
if PageControlOpType.ActivePage = tsTransaction then begin
{%region Operation: Transaction}
if Not UpdateOpTransaction(account,destAccount,_newOwnerPublicKey, LRequiresPurchase, _amount,errors) then
raise Exception.Create(errors);
if Length(_senderAccounts) > 1 then begin
if account.balance>0 then begin
if account.balance>DefaultFee then begin
_amount := account.balance - DefaultFee;
_fee := DefaultFee;
end else begin
_amount := account.balance;
_fee := 0;
end;
end else dooperation := false;
end;
if dooperation then begin
if NOT LRequiresPurchase then begin
op := TOpTransaction.CreateTransaction(FNode.Bank.Safebox.CurrentProtocol,account.account,account.n_operation+1,destAccount.account,LKey.PrivateKey,_amount,_fee,FEncodedPayload);
operationstxt := 'Transaction to '+TAccountComp.AccountNumberToAccountTxtNumber(destAccount.account);
end else begin
// Pay-to-Key
op := TOpBuyAccount.CreateBuy(FNode.Bank.SafeBox.CurrentProtocol, account.account, account.n_operation + 1, destAccount.account, destAccount.accountInfo.account_to_pay, destAccount.accountInfo.price, _amount, _fee, _newOwnerPublicKey, LKey.PrivateKey, FEncodedPayload);
end;
inc(_totalamount,_amount);
inc(_totalfee,_fee);
end;
{%endregion}
end else if (PageControlOpType.ActivePage = tsChangePrivateKey) then begin
{%region Operation: Change Private Key}
if Not UpdateOpChangeKey(account,signerAccount,_newOwnerPublicKey,errors) then raise Exception.Create(errors);
if _V2 then begin
// must ensure is Signer account last if included in sender accounts (not necessarily ordered enumeration)
if (iAcc < Length(_senderAccounts) - 1) AND (account.account = signerAccount.account) then begin
TArrayTool<Cardinal>.Swap(_senderAccounts, iAcc, Length(_senderAccounts) - 1); // ensure signer account processed last
goto loop_start; // TODO: remove ugly hack with refactoring!
end;
// Maintain correct signer fee distribution
if uint64(_totalSignerFee) >= signerAccount.balance then _fee := 0
else if signerAccount.balance - uint64(_totalSignerFee) > uint64(DefaultFee) then _fee := DefaultFee
else _fee := signerAccount.balance - uint64(_totalSignerFee);
op := TOpChangeKeySigned.Create(FNode.Bank.SafeBox.CurrentProtocol,signerAccount.account,signerAccount.n_operation+_signer_n_ops+1,account.account,LKey.PrivateKey,_newOwnerPublicKey,_fee,FEncodedPayload);
inc(_signer_n_ops);
inc(_totalSignerFee, _fee);
end else begin
op := TOpChangeKey.Create(FNode.Bank.SafeBox.CurrentProtocol,account.account,account.n_operation+1,account.account,LKey.PrivateKey,_newOwnerPublicKey,_fee,FEncodedPayload);
end;
inc(_totalfee,_fee);
operationstxt := 'Change private key to '+TAccountComp.GetECInfoTxt(_newOwnerPublicKey.EC_OpenSSL_NID);
{%endregion}
end else if (PageControlOpType.ActivePage = tsListAccount) then begin
{%region Operation: List For Sale}
If Not UpdateOpListAccount(account,_salePrice,destAccount,signerAccount,_newOwnerPublicKey, _lockedUntil, LHashLock, errors) then raise Exception.Create(errors);
// Special fee account:
if signerAccount.balance>DefaultFee then _fee := DefaultFee
else _fee := signerAccount.balance;
if (rbListAccountForPublicSale.Checked) then begin
op := TOpListAccountForSaleOrSwap.CreateListAccountForSaleOrSwap(FNode.Bank.SafeBox.CurrentProtocol, as_ForSale, signerAccount.account,signerAccount.n_operation+1+iAcc, account.account,_salePrice,_fee,
destAccount.account,CT_TECDSA_Public_Nul,0,LKey.PrivateKey, CT_HashLock_NUL, FEncodedPayload);
end else if (rbListAccountForPrivateSale.Checked) then begin
op := TOpListAccountForSaleOrSwap.CreateListAccountForSaleOrSwap(FNode.Bank.SafeBox.CurrentProtocol, as_ForSale, signerAccount.account,signerAccount.n_operation+1+iAcc, account.account,_salePrice,_fee,
destAccount.account,_newOwnerPublicKey,_lockedUntil,LKey.PrivateKey, CT_HashLock_NUL, FEncodedPayload);
end else if (rbListAccountForAccountSwap.Checked) then begin
op := TOpListAccountForSaleOrSwap.CreateListAccountForSaleOrSwap(FNode.Bank.SafeBox.CurrentProtocol, as_ForAtomicAccountSwap, signerAccount.account,signerAccount.n_operation+1+iAcc, account.account,_salePrice,_fee,
destAccount.account,_newOwnerPublicKey,_lockedUntil,LKey.PrivateKey, LHashLock, FEncodedPayload);
end else if (rbListAccountForCoinSwap.Checked) then begin
op := TOpListAccountForSaleOrSwap.CreateListAccountForSaleOrSwap(FNode.Bank.SafeBox.CurrentProtocol, as_ForAtomicCoinSwap, signerAccount.account,signerAccount.n_operation+1+iAcc, account.account,_salePrice,_fee,
destAccount.account,CT_TECDSA_Public_Nul,_lockedUntil,LKey.PrivateKey, LHashLock, FEncodedPayload);
end else raise Exception.Create('Select Sale type');
{%endregion}
end else if (PageControlOpType.ActivePage = tsDelistAccount) then begin
{%region Operation: Delist For Sale}
if Not UpdateOpDelist(account,signerAccount,errors) then raise Exception.Create(errors);
// Special fee account:
if signerAccount.balance>DefaultFee then _fee := DefaultFee
else _fee := signerAccount.balance;
op := TOpDelistAccountForSale.CreateDelistAccountForSale(FNode.Bank.SafeBox.CurrentProtocol,signerAccount.account,signerAccount.n_operation+1+iAcc,account.account,_fee,LKey.PrivateKey,FEncodedPayload);
{%endregion}
end else if (PageControlOpType.ActivePage = tsBuyAccount) then begin
{%region Operation: Buy Account}
if Not UpdateOpBuyAccount(account,accountToBuy,_amount,_newOwnerPublicKey, LRecipientSigned, errors) then raise Exception.Create(errors);
if LRecipientSigned AND (NOT WalletKeys.TryGetKey(account.accountInfo.new_publicKey, LKey)) then
raise Exception.Create('Recipient-signed key not found in Wallet');
op := TOpBuyAccount.CreateBuy(FNode.Bank.Safebox.CurrentProtocol,account.account,account.n_operation+1,accountToBuy.account,accountToBuy.accountInfo.account_to_pay,
accountToBuy.accountInfo.price,_amount,_fee,_newOwnerPublicKey,LKey.PrivateKey,FEncodedPayload);
{%endregion}
end else if (PageControlOpType.ActivePage = tsChangeInfo) then begin
{%region Operation: Change Info}
if not UpdateOpChangeInfo(account,signerAccount,_changeName,_newName,_changeType,_newType,LChangeAccountData,LNewAccountData,errors) then begin
If Length(_senderAccounts)=1 then raise Exception.Create(errors);
end else begin
if signerAccount.balance>DefaultFee then _fee := DefaultFee
else _fee := signerAccount.balance;
op := TOpChangeAccountInfo.CreateChangeAccountInfo(FNode.Bank.SafeBox.CurrentProtocol,signerAccount.account,signerAccount.n_operation+1,account.account,LKey.PrivateKey,false,CT_TECDSA_Public_Nul,
_changeName,_newName,_changeType,_newType,
LChangeAccountData,LNewAccountData,
_fee,FEncodedPayload);
end;
{%endregion}
end else begin
raise Exception.Create('No operation selected');
end;
if Assigned(op) And (dooperation) then begin
ops.AddOperationToHashTree(op);
if operation_to_string<>'' then operation_to_string := operation_to_string + #10;
operation_to_string := operation_to_string + op.ToString;
end;
FreeAndNil(op);
end;
if (ops.OperationsCount=0) then raise Exception.Create('No valid operation to execute');
if (Length(_senderAccounts)>1) then begin
if PageControlOpType.ActivePage = tsTransaction then auxs := 'Total amount that dest will receive: '+TAccountComp.FormatMoney(_totalamount)+#10
else auxs:='';
if Application.MessageBox(PChar('Execute '+Inttostr(Length(_senderAccounts))+' operations?'+#10+
'Operation: '+operationstxt+#10+
auxs+
'Total fee: '+TAccountComp.FormatMoney(_totalfee)+#10+#10+'Note: This operation will be transmitted to the network!'),
PChar(Application.Title),MB_YESNO+MB_ICONINFORMATION+MB_DEFBUTTON2)<>IdYes then exit;
end else begin
if Application.MessageBox(PChar('Execute this operation:'+#10+#10+operation_to_string+#10+#10+'Note: This operation will be transmitted to the network!'),
PChar(Application.Title),MB_YESNO+MB_ICONINFORMATION+MB_DEFBUTTON2)<>IdYes then exit;
end;
i := FNode.AddOperations(nil,ops,Nil,errors);
if (i=ops.OperationsCount) then begin
operationstxt := 'Successfully executed '+inttostr(i)+' operations!'+#10+#10+operation_to_string;
If i>1 then begin
With TFRMMemoText.Create(Self) do
Try
InitData(Application.Title,operationstxt);
ShowModal;
finally
Free;
end;
end else begin
Application.MessageBox(PChar('Successfully executed '+inttostr(i)+' operations!'+#10+#10+operation_to_string),PChar(Application.Title),MB_OK+MB_ICONINFORMATION);
end;
ModalResult := MrOk;
end else if (i>0) then begin
operationstxt := 'One or more of your operations has not been executed:'+#10+
'Errors:'+#10+
errors+#10+#10+
'Total successfully executed operations: '+inttostr(i);
With TFRMMemoText.Create(Self) do
Try
InitData(Application.Title,operationstxt);
ShowModal;
finally
Free;
end;
ModalResult := MrOk;
end else begin
raise Exception.Create(errors);
end;
Finally
ops.Free;
End;
end;
procedure TFRMOperation.bbBuyNewKeyClick(Sender: TObject);
Var FRM : TFRMWalletKeys;
begin
FRM := TFRMWalletKeys.Create(Self);
Try
FRM.WalletKeys := WalletKeys;
FRM.ShowModal;
cbBuyNewKey.SetFocus;
UpdateWalletKeys;
Finally
FRM.Free;
End;
end;
procedure TFRMOperation.bbChangePrivateKeyKeysClick(Sender: TObject);
Var FRM : TFRMWalletKeys;
begin
FRM := TFRMWalletKeys.Create(Self);
Try
FRM.WalletKeys := WalletKeys;
FRM.ShowModal;
rbChangeKeyWithAnother.Checked := true;
cbNewPrivateKey.SetFocus;
UpdateWalletKeys;
Finally
FRM.Free;
End;
end;
procedure TFRMOperation.bbPasswordClick(Sender: TObject);
Var s : String;
errors : String;
begin
if FWalletKeys.IsValidPassword then begin
end else begin
s := '';
Repeat
if Not InputQueryPassword('Wallet password','Enter wallet password',s) then exit;
FWalletKeys.WalletPassword := s;
Until FWalletKeys.IsValidPassword;
SetWalletKeys(WalletKeys);
UpdateOperationOptions(errors);
end;
end;
procedure TFRMOperation.CM_WalletChanged(var Msg: TMessage);
begin
UpdateWalletKeys;
end;
procedure TFRMOperation.ebAccountNumberExit(Sender: TObject);
Var LEPasa : TEPASA;
eb : TEdit;
begin
if (Not assigned(Sender)) then exit;
if (Not (Sender is TEdit)) then exit;
eb := TEdit(Sender);
If TEPasa.TryParse(eb.Text,LEPasa) then begin
eb.Text := LEPasa.ToString();
end else begin
eb.Text := '';
end;
updateInfoClick(Nil);
end;
procedure TFRMOperation.ebCurrencyExit(Sender: TObject);
Var m : Int64;
eb : TEdit;
begin
if (Not assigned(Sender)) then exit;
if (Not (Sender is TEdit)) then exit;
eb := TEdit(Sender);
If Not (eb.ReadOnly) then begin
if Not TAccountComp.TxtToMoney(eb.Text,m) then m:=0;
eb.Text := TAccountComp.FormatMoney(m);
updateInfoClick(Nil);
end;
end;
procedure TFRMOperation.ebEncryptPasswordChange(Sender: TObject);
begin
if FDisabled then exit;
rbEncrptedWithPassword.Checked := true;
memoPayloadClick(Nil);
end;
procedure TFRMOperation.ebSenderAccountExit(Sender: TObject);
Var an : Cardinal;
begin
If TAccountComp.AccountTxtNumberToAccountNumber(ebSenderAccount.Text,an) then begin
SenderAccounts.Disable;
try
SenderAccounts.Clear;
SenderAccounts.Add(an);
finally
SenderAccounts.Enable;
end;
ebSenderAccount.Text := TAccountComp.AccountNumberToAccountTxtNumber(an);
end else begin
if SenderAccounts.Count=1 then begin
ebSenderAccount.Text := TAccountComp.AccountNumberToAccountTxtNumber(SenderAccounts.Get(0));
end else begin
ebSenderAccount.Text := '';
end;
end;
end;
procedure TFRMOperation.ebSenderAccountKeyPress(Sender: TObject; var Key: Char);
begin
if Key=#13 then ebSenderAccountExit(Nil);
end;
procedure TFRMOperation.FormCreate(Sender: TObject);
begin
{$IFDEF USE_GNUGETTEXT}TranslateComponent(self);{$ENDIF}
FDisabled := false;
FWalletKeys := Nil;
FSenderAccounts := TOrderedCardinalList.Create;
FSenderAccounts.OnListChanged := OnSenderAccountsChanged;
FDisabled := true;
FNode := TNode.Node;
ebSenderAccount.OnKeyDown:=ebAccountKeyDown;
ebSenderAccount.Tag:=CT_AS_MyAccounts;
ebSignerAccount.Text:='';
ebSignerAccount.OnChange := updateInfoClick;
ebSignerAccount.OnExit := ebAccountNumberExit;
ebSignerAccount.OnKeyDown := ebAccountKeyDown;
ebSignerAccount.tag := CT_AS_MyAccounts;
sbSearchSignerAccount.OnClick := sbSearchSignerAccountClick;
//
lblTransactionErrors.Caption := '';
ebDestAccount.Text := '';
ebDestAccount.OnChange := updateInfoClick;
ebDestAccount.OnExit := ebAccountNumberExit;
ebDestAccount.OnKeyDown := ebAccountKeyDown;
ebAmount.Text := TAccountComp.FormatMoney(0);
ebAmount.OnChange := updateInfoClick;
ebAmount.OnExit := ebCurrencyExit;
//
lblChangeKeyErrors.Caption := '';
lblNewOwnerErrors.Caption := '';
rbChangeKeyWithAnother.OnClick := updateInfoClick;
rbChangeKeyTransferAccountToNewOwner.OnClick := updateInfoClick;
cbNewPrivateKey.OnChange := updateInfoClick;
//
lblListAccountErrors.Caption := '';
rbListAccountForPublicSale.OnClick := updateInfoClick;
rbListAccountForPrivateSale.OnClick := updateInfoClick;
rbListAccountForAccountSwap.OnClick := updateInfoClick;
rbListAccountForCoinSwap.OnClick := updateInfoClick;
ebPrice.Text := TAccountComp.FormatMoney(0);
ebPrice.OnChange := updateInfoClick;
ebPrice.OnExit := ebCurrencyExit;
ebSellerAccount.Text := '';
ebSellerAccount.OnChange := updateInfoClick;
ebSellerAccount.OnExit := ebAccountNumberExit;
ebSellerAccount.OnKeyDown := ebAccountKeyDown;
ebSellerAccount.tag := CT_AS_MyAccounts;
ebNewKey.Text := '';
ebNewKey.OnChange := updateInfoClick;
ebTimeLock.Text := '';
ebTimeLock.OnChange := updateInfoClick;
//
lblDelistErrors.Caption := '';
//
lblBuyAccountErrors.Caption := '';
ebAccountToBuy.Text := '';
ebAccountToBuy.OnChange := updateInfoClick;
ebAccountToBuy.OnExit := ebAccountNumberExit;
ebAccountToBuy.OnKeyDown := ebAccountKeyDown;
ebAccountToBuy.tag := CT_AS_OnlyForSale;
ebBuyAmount.Text := TAccountComp.FormatMoney(0);
ebBuyAmount.OnChange := updateInfoClick;
ebBuyAmount.OnExit := ebCurrencyExit;
//
ebChangeName.OnChange:=updateInfoClick;
ebChangeType.OnChange:=updateInfoClick;
ebChangeAccountData.OnChange:=updateInfoClick;
//
sbSearchDestinationAccount.OnClick := sbSearchDestinationAccountClick;
sbSearchListerSellerAccount.OnClick := sbSearchListerSellerAccountClick;
btnHashLock.OnClick := sbHashLockClick;
sbSearchBuyAccount.OnClick := sbSearchBuyAccountClick;
sbTimeLock.OnClick := sbTimeLockClick;
//
ebFee.Text := TAccountComp.FormatMoney(0);
ebFee.OnExit:= ebCurrencyExit;
memoAccounts.Lines.Clear;
PageControlOpType.ActivePage := tsTransaction;
end;
procedure TFRMOperation.ebNewPublicKeyExit(Sender: TObject);
var errors : String;
begin
UpdateOperationOptions(errors);
end;
procedure TFRMOperation.FormDestroy(Sender: TObject);
begin
if Assigned(FWalletKeys) then FWalletKeys.OnChanged.Remove(OnWalletKeysChanged);
FreeAndNil(FSenderAccounts);
end;
function TFRMOperation.GetDefaultSenderAccount: TAccount;
begin
if FSenderAccounts.Count>=1 then Result := FNode.GetMempoolAccount( FSenderAccounts.Get(0) )
else Result := CT_Account_NUL;
end;
procedure TFRMOperation.ebAccountKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
Var eb : TCustomEdit;
begin
If (key <> VK_F2) then exit;
If Not Assigned(Sender) then exit;
if Not (Sender is TCustomEdit) then exit;
eb := TCustomEdit(Sender);
searchAccount(eb);
end;
procedure TFRMOperation.searchAccount(editBox: TCustomEdit);
Var F : TFRMAccountSelect;
c : Cardinal;
begin
F := TFRMAccountSelect.Create(Self);
try
F.Node := FNode;
F.WalletKeys := FWalletKeys;
F.Filters:=editBox.Tag;
If TAccountComp.AccountTxtNumberToAccountNumber(editBox.Text,c) then F.DefaultAccount := c;
F.AllowSelect:=True;
If F.ShowModal=MrOk then begin
editBox.Text := TAccountComp.AccountNumberToAccountTxtNumber(F.GetSelected);
end;
finally
F.Free;
end;
end;
procedure TFRMOperation.memoPayloadClick(Sender: TObject);
Var errors : String;
begin
if SenderAccounts.Count>0 then begin
UpdatePayload(TNode.Node.Bank.SafeBox.Account(SenderAccounts.Get(0)),errors);
end;
end;
procedure TFRMOperation.OnSenderAccountsChanged(Sender: TObject);
Var errors : String;
begin
if SenderAccounts.Count>1 then begin
ebAmount.Text := 'ALL BALANCE';
ebAmount.font.Style := [fsBold];
ebAmount.ReadOnly := true;
end else begin
ebAmount.Text := TAccountComp.FormatMoney(0);
ebAmount.ReadOnly := false;
ebAmount.Enabled := true;
end;
If SenderAccounts.Count>=1 then begin
ebSignerAccount.text := TAccountComp.AccountNumberToAccountTxtNumber(SenderAccounts.Get(0));
ebChangeName.Text := FNode.GetMempoolAccount(SenderAccounts.Get(0)).name.ToPrintable;
ebChangeType.Text := IntToStr(FNode.GetMempoolAccount(SenderAccounts.Get(0)).account_type);
ebChangeAccountData.Text := FNode.GetMempoolAccount(SenderAccounts.Get(0)).account_data.ToHexaString;
end else begin
ebSignerAccount.text := '';
ebChangeName.Text := '';
ebChangeType.Text := '';
ebChangeAccountData.Text := '';
end;
UpdateAccountsInfo;
UpdateOperationOptions(errors);
end;
procedure TFRMOperation.OnWalletKeysChanged(Sender: TObject);
begin
PostMessage(Self.Handle,CM_PC_WalletKeysChanged,0,0);
end;
procedure TFRMOperation.PageControlOpTypeChange(Sender: TObject);
var errors : String;
begin
UpdateOperationOptions(errors);
end;
procedure TFRMOperation.sbSearchBuyAccountClick(Sender: TObject);
begin
searchAccount(ebAccountToBuy);
end;
procedure TFRMOperation.sbSearchDestinationAccountClick(Sender: TObject);
begin
searchAccount(ebDestAccount);
end;
procedure TFRMOperation.sbSearchListerSellerAccountClick(Sender: TObject);
begin
searchAccount(ebSellerAccount);
end;
procedure TFRMOperation.sbSearchSignerAccountClick(Sender: TObject);
begin
searchAccount(ebSignerAccount);
end;
procedure TFRMOperation.sbTimeLockClick(Sender: TObject);
begin
Application.MessageBox(PChar(Format('Current block is %d'
+#10
+#10+'Average seconds per block %d'
+#10
+#10+'Average Blocks per day %d (Next 24 hours = block %d)'
+#10+'Average Blocks per week %d (Next 24*7 hours = block %d)'
,[TNode.Node.Bank.BlocksCount,
CT_NewLineSecondsAvg,
(86400 DIV CT_NewLineSecondsAvg),
((86400 DIV CT_NewLineSecondsAvg) + TNode.Node.Bank.BlocksCount),
((86400 DIV CT_NewLineSecondsAvg)*7),
(((86400 DIV CT_NewLineSecondsAvg)*7) + TNode.Node.Bank.BlocksCount)])),
PChar(Application.Title),MB_OK);
end;
procedure TFRMOperation.sbHashLockClick(Sender: TObject);
var
LFRM : TFRMHashLock;
begin
LFRM := TFRMHashLock.Create(Self);
try
case TModalResult(LFRM.ShowModal) of
mrOK: ebHashLock.Text := TBaseType.ToRawBytes ( LFRM.HashLock ).ToHexaString;
end;
finally
FreeAndNil(LFRM);
end;
end;
procedure TFRMOperation.SetDefaultFee(const Value: Int64);
var wd : Boolean;
begin
if FDefaultFee = Value then exit;
wd := FDisabled;
try
FDisabled := true;
FDefaultFee := Value;
ebFee.Text := TAccountComp.FormatMoney(value);
finally
FDisabled := wd;
end;
end;
procedure TFRMOperation.SetWalletKeys(const Value: TWalletKeys);
begin
Try
if FWalletKeys=Value then exit;
if Assigned(FWalletKeys) then FWalletKeys.OnChanged.Remove(OnWalletKeysChanged);
FWalletKeys := Value;
if Assigned(FWalletKeys) then begin
FWalletKeys.OnChanged.Add(OnWalletKeysChanged);
end;
Finally
UpdateWalletKeys;
End;
end;
procedure TFRMOperation.UpdateAccountsInfo;
Var ld : Boolean;
i : Integer;
balance : int64;
acc : TAccount;
accountstext : String;
begin
ld := FDisabled;
FDisabled := true;
Try
lblAccountCaption.Caption := 'Account';
lblAccountsCount.Visible := false;
lblAccountsCount.caption := inttostr(senderAccounts.Count)+' accounts';
balance := 0;
if SenderAccounts.Count<=0 then begin
ebSenderAccount.Text := '';
memoAccounts.Visible := false;
ebSenderAccount.Visible := true;
end else if SenderAccounts.Count=1 then begin
ebSenderAccount.Text := TAccountComp.AccountNumberToAccountTxtNumber(SenderAccounts.Get(0));
memoAccounts.Visible := false;
ebSenderAccount.Visible := true;
balance := TNode.Node.GetMempoolAccount(SenderAccounts.Get(0)).balance;
end else begin
// Multiple sender accounts
lblAccountCaption.Caption := 'Accounts';
lblAccountsCount.Visible := true;
ebSenderAccount.Visible := false;
accountstext := '';
for i := 0 to SenderAccounts.Count - 1 do begin
acc := TNode.Node.GetMempoolAccount(SenderAccounts.Get(i));
balance := balance + acc.balance;
if (accountstext<>'') then accountstext:=accountstext+'; ';
accountstext := accountstext+TAccountComp.AccountNumberToAccountTxtNumber(acc.account)+' ('+TAccountComp.FormatMoney(acc.balance)+')';
end;
memoAccounts.Lines.Text := accountstext;
memoAccounts.Visible := true;
end;
ebSenderAccount.Enabled := ebSenderAccount.Visible;
lblAccountBalance.Caption := TAccountComp.FormatMoney(balance);
Finally
FDisabled := ld;
End;
end;
function TFRMOperation.UpdateFee(var Fee: Int64; errors: String): Boolean;
begin
errors := '';
if trim(ebFee.Text)<>'' then begin
Result := TAccountComp.TxtToMoney(Trim(ebFee.Text),Fee);
if not Result then errors := 'Invalid fee value "'+ebFee.Text+'"';
end else begin
Fee := 0;
Result := true;
end;
end;
var GInUpdateInfoClick : boolean;
procedure TFRMOperation.updateInfoClick(Sender: TObject);
Var errors : String;
begin
if NOT GInUpdateInfoClick then begin
GInUpdateInfoClick := true;
try
UpdateOperationOptions(errors);
finally
GInUpdateInfoClick := false;
end;
end;
end;
function TFRMOperation.UpdateOpBuyAccount(const SenderAccount: TAccount; var AccountToBuy: TAccount; var amount: Int64; var NewPublicKey: TAccountKey; var ARecipientSigned : Boolean; var errors: String): Boolean;
var c : Cardinal;
i : Integer;
begin
ARecipientSigned := false;
lblBuyAccountErrors.Caption := ''; c:=0;
errors := '';
Try
if SenderAccounts.Count<>1 then begin
errors := 'Cannot buy accounts with multioperations. Use only 1 account';
exit;
end;
If (Not TAccountComp.AccountTxtNumberToAccountNumber(ebAccountToBuy.Text,c)) then begin
errors := 'Invalid account to buy '+ebAccountToBuy.Text;
exit;
end;
If (c<0) Or (c>=FNode.Bank.AccountsCount) then begin
errors := 'Invalid account number';
exit;
end;
AccountToBuy := FNode.GetMempoolAccount(c);
ARecipientSigned := TAccountComp.IsOperationRecipientSignable(SenderAccount, AccountToBuy, FNode.Bank.BlocksCount, FNode.Bank.SafeBox.CurrentProtocol);
if (SenderAccount.account = AccountToBuy.Account) AND (NOT ARecipientSigned) then begin
errors := 'Not recipient signable';
exit;
end;
If not TAccountComp.IsAccountForSaleOrSwap(AccountToBuy.accountInfo) then begin
errors := 'Account '+TAccountComp.AccountNumberToAccountTxtNumber(c)+' is not for sale or swap';
exit;
end else if (TAccountComp.IsAccountForCoinSwap(AccountToBuy.accountInfo)) then begin
errors := 'Account '+TAccountComp.AccountNumberToAccountTxtNumber(c)+' is for '+TAccountComp.FormatMoney(AccountToBuy.accountInfo.price)+' COIN swap, cannot buy';
exit;
end;
If Not TAccountComp.TxtToMoney(ebBuyAmount.Text,amount) then begin
errors := 'Invalid amount value';
exit;
end;
if (AccountToBuy.accountInfo.price>amount) AND (NOT ARecipientSigned) then begin
errors := Format('Account price %s < (amount:%s + balance:%s = %s)',[TAccountComp.FormatMoney(AccountToBuy.accountInfo.price),
TAccountComp.FormatMoney(amount),
TAccountComp.FormatMoney(AccountToBuy.balance),
TAccountComp.FormatMoney(amount + AccountToBuy.balance)
]);
exit;
end;
if TAccountComp.IsAccountForSale(AccountToBuy.accountInfo) AND (amount+DefaultFee > SenderAccount.balance) then begin
errors := 'Insufficient funds';
exit;
end;
if cbBuyNewKey.ItemIndex<0 then begin
errors := 'Must select a new private key';
exit;
end;
i := PtrInt(cbBuyNewKey.Items.Objects[cbBuyNewKey.ItemIndex]);
if (i<0) Or (i>=WalletKeys.Count) then raise Exception.Create('Invalid selected key');
NewPublicKey := WalletKeys.Key[i].AccountKey;
If (FNode.Bank.SafeBox.CurrentProtocol=CT_PROTOCOL_1) then begin
errors := 'This operation needs PROTOCOL 2 active';
exit;
end;
Finally
Result := errors = '';
lblBuyAccountErrors.Caption := errors;
End;
end;
function TFRMOperation.UpdateOpChangeInfo(const TargetAccount: TAccount; var SignerAccount : TAccount;
var changeName : Boolean; var newName: TRawBytes; var changeType : Boolean; var newType: Word;
var AChangeData : Boolean; var ANewData : TRawBytes; var errors: String): Boolean;
var auxC : Cardinal;
i : Integer;
errCode : Integer;
begin
Result := false;
errors := '';
lblChangeInfoErrors.Caption:='';
if not (PageControlOpType.ActivePage=tsChangeInfo) then exit;
try
if (TAccountComp.IsAccountLocked(TargetAccount.accountInfo,FNode.Bank.BlocksCount)) then begin
errors := 'Account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account)+' is locked until block '+IntToStr(TargetAccount.accountInfo.locked_until_block);
exit;
end;
// Signer:
if SenderAccounts.Count=1 then begin
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,auxC) then begin
errors := 'Invalid signer account';
exit;
end;
end else begin
auxC := TargetAccount.account;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Signer account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
SignerAccount := FNode.GetMempoolAccount(auxC);
if (TAccountComp.IsAccountLocked(SignerAccount.accountInfo,FNode.Bank.BlocksCount)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is locked until block '+IntToStr(SignerAccount.accountInfo.locked_until_block);
exit;
end;
if (Not TAccountComp.EqualAccountKeys(SignerAccount.accountInfo.accountKey,TargetAccount.accountInfo.accountKey)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is not ower of account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account);
exit;
end;
If (FNode.Bank.SafeBox.CurrentProtocol=CT_PROTOCOL_1) then begin
errors := 'This operation needs PROTOCOL 2 active';
exit;
end;
// New name and type (only when single operation)
If (SenderAccounts.Count=1) then begin
newName.FromString(LowerCase( Trim(ebChangeName.Text) ));
If Not TBaseType.Equals(newName,TargetAccount.name) then begin
changeName:=True;
If Length(newName)>0 then begin
if (Not TPCSafeBox.ValidAccountName(newName,errors)) then begin
errors := '"'+newName.ToPrintable+'" is not a valid name: '+errors;
Exit;
end;
i := (FNode.Bank.SafeBox.FindAccountByName(newName));
if (i>=0) then begin
errors := 'Name "'+newName.ToPrintable+'" is used by account '+TAccountComp.AccountNumberToAccountTxtNumber(i);
Exit;
end;
end;
end else changeName := False;
end else changeName := False;
val(ebChangeType.Text,newType,errCode);
if (errCode>0) then begin
errors := 'Invalid type '+ebChangeType.text;
Exit;
end;
changeType := TargetAccount.account_type<>newType;
//
if FNode.Bank.SafeBox.CurrentProtocol>=CT_PROTOCOL_5 then begin
// Allow Change Account.Data PIP-0024
if Not TCrypto.HexaToRaw(ebChangeAccountData.Text,ANewData) then begin
errors := 'Invalid hexadecimal value at Data';
Exit;
end;
AChangeData := Not TBaseType.Equals( TargetAccount.account_data , ANewData);
if Length(ANewData)>CT_MaxAccountDataSize then begin
errors := Format('Data size (%d) greater than %d',[Length(ANewData),CT_MaxAccountDataSize]);
Exit;
end;
end else AChangeData:=False;
If (SenderAccounts.Count=1) And (TBaseType.Equals(newName,TargetAccount.name)) And (newType=TargetAccount.account_type)
And (TBaseType.Equals(ANewData,TargetAccount.account_data)) then begin
errors := 'No changes on fields. Not changed';
Exit;
end;
finally
Result := errors = '';
if Not Result then begin
lblChangeInfoErrors.Font.Color := clRed;
lblChangeInfoErrors.Caption := errors;
end else begin
lblChangeInfoErrors.Font.Color := clGreen;
If (SenderAccounts.Count=1) then
lblChangeInfoErrors.Caption := TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account)+' can be updated'
else lblChangeInfoErrors.Caption := IntToStr(SenderAccounts.Count)+' accounts can be updated'
end;
end;
end;
function TFRMOperation.UpdateOpChangeKey(Const TargetAccount : TAccount; var SignerAccount : TAccount; var NewPublicKey: TAccountKey; var errors: String): Boolean;
var i : Integer;
auxC : Cardinal;
begin
Result := false;
errors := '';
lblChangeKeyErrors.Caption := '';
lblNewOwnerErrors.Caption := '';
if not (PageControlOpType.ActivePage=tsChangePrivateKey) then exit;
try
if rbChangeKeyWithAnother.Checked then begin
if cbNewPrivateKey.ItemIndex<0 then begin
errors := 'Must select a new private key';
lblChangeKeyErrors.Caption := errors;
exit;
end;
i := PtrInt(cbNewPrivateKey.Items.Objects[cbNewPrivateKey.ItemIndex]);
if (i<0) Or (i>=WalletKeys.Count) then raise Exception.Create('Invalid selected key');
NewPublicKey := WalletKeys.Key[i].AccountKey;
end else if rbChangeKeyTransferAccountToNewOwner.Checked then begin
If Not TAccountComp.AccountKeyFromImport(ebNewPublicKey.Text,NewPublicKey,errors) then begin
lblNewOwnerErrors.Caption := errors;
lblNewOwnerErrors.Font.Color := clRed;
exit;
end else begin
lblNewOwnerErrors.Caption := 'New key type: '+TAccountComp.GetECInfoTxt(NewPublicKey.EC_OpenSSL_NID);
lblNewOwnerErrors.Font.Color := clGreen;
end;
end else begin
errors := 'Select a change type';
lblChangeKeyErrors.Caption := errors;
exit;
end;
If FNode.Bank.SafeBox.CurrentProtocol>=1 then begin
// Signer:
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,auxC) then begin
errors := 'Invalid signer account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Signer account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
SignerAccount := FNode.GetMempoolAccount(auxC);
if (TAccountComp.IsAccountLocked(SignerAccount.accountInfo,FNode.Bank.BlocksCount)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is locked until block '+IntToStr(SignerAccount.accountInfo.locked_until_block);
exit;
end;
if (Not TAccountComp.EqualAccountKeys(SignerAccount.accountInfo.accountKey,TargetAccount.accountInfo.accountKey)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is not ower of account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account);
exit;
end;
end else SignerAccount := TargetAccount;
if (TAccountComp.EqualAccountKeys(TargetAccount.accountInfo.accountKey,NewPublicKey)) then begin
errors := 'New public key is the same public key';
lblChangeKeyErrors.Caption := errors;
lblNewOwnerErrors.Caption := errors;
exit;
end;
finally
Result := errors = '';
end;
end;
function TFRMOperation.UpdateOpDelist(const TargetAccount : TAccount; var SignerAccount : TAccount; var errors: String): Boolean;
Var auxC : Cardinal;
begin
lblDelistErrors.Caption := '';
errors := '';
Result := false;
if not (PageControlOpType.ActivePage=tsDelistAccount) then exit;
try
if Not TAccountComp.IsAccountForSaleOrSwap(TargetAccount.accountInfo) then begin
errors := 'Account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account)+' is not for sale or swap';
exit;
end;
if (TAccountComp.IsAccountLocked(TargetAccount.accountInfo,FNode.Bank.BlocksCount)) then begin
errors := 'Account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account)+' is locked until block '+IntToStr(TargetAccount.accountInfo.locked_until_block);
exit;
end;
// Signer:
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,auxC) then begin
errors := 'Invalid signer account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Signer account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
SignerAccount := FNode.GetMempoolAccount(auxC);
if (TAccountComp.IsAccountLocked(SignerAccount.accountInfo,FNode.Bank.BlocksCount)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is locked until block '+IntToStr(SignerAccount.accountInfo.locked_until_block);
exit;
end;
if (Not TAccountComp.EqualAccountKeys(SignerAccount.accountInfo.accountKey,TargetAccount.accountInfo.accountKey)) then begin
errors := 'Signer account '+TAccountComp.AccountNumberToAccountTxtNumber(SignerAccount.account)+' is not ower of delisted account '+TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account);
exit;
end;
If (FNode.Bank.SafeBox.CurrentProtocol=CT_PROTOCOL_1) then begin
errors := 'This operation needs PROTOCOL 2 active';
exit;
end;
finally
Result := errors = '';
if Not Result then begin
lblDelistErrors.Font.Color := clRed;
lblDelistErrors.Caption := errors;
end else begin
lblDelistErrors.Font.Color := clGreen;
lblDelistErrors.Caption := TAccountComp.AccountNumberToAccountTxtNumber(TargetAccount.account)+' can be delisted';
end;
end;
end;
function TFRMOperation.UpdateOperationOptions(var errors : String) : Boolean;
Var
iWallet,iAcc : Integer;
wk : TWalletKey;
e : String;
sender_account,dest_account,seller_account, account_to_buy, signer_account : TAccount;
publicKey : TAccountKey;
LHashLock : T32Bytes;
salePrice, amount : Int64;
auxC : Cardinal;
changeName,changeType, LRecipientSigned, LChangeAccountData : Boolean;
newName, LNewAccountData : TRawBytes;
newType : Word;
LRequiresPurchase : Boolean;
begin
Result := false;
sender_account := CT_Account_NUL;
errors := '';
if Not UpdateFee(FDefaultFee,errors) then exit;
try
bbPassword.Visible := false;
bbPassword.Enabled := false;
if Not Assigned(WalletKeys) then begin
errors := 'No wallet keys';
lblGlobalErrors.Caption := errors;
exit;
end;
if SenderAccounts.Count=0 then begin
errors := 'No sender account';
lblGlobalErrors.Caption := errors;
exit;
end else begin
for iAcc := 0 to SenderAccounts.Count - 1 do begin
sender_account := TNode.Node.Bank.SafeBox.Account(SenderAccounts.Get(iAcc));
iWallet := WalletKeys.IndexOfAccountKey(sender_account.accountInfo.accountKey);
if (iWallet<0) and (
(TAccountComp.IsAccountForPrivateSale(sender_account.accountInfo)) or
(TAccountComp.IsAccountForAccountSwap(sender_account.accountInfo))
)
and (Not TAccountComp.IsNullAccountKey(sender_account.accountInfo.new_publicKey)) then begin
iWallet := WalletKeys.IndexOfAccountKey(sender_account.accountInfo.new_publicKey);
end;
if (iWallet<0) then begin
errors := 'Private key of account '+TAccountComp.AccountNumberToAccountTxtNumber(sender_account.account)+' not found in wallet';
lblGlobalErrors.Caption := errors;
exit;
end;
wk := WalletKeys.Key[iWallet];
if not assigned(wk.PrivateKey) then begin
if Length(wk.CryptedKey)>0 then begin
errors := 'Wallet is password protected. Need password';
bbPassword.Visible := true;
bbPassword.Enabled := true;
end else begin
errors := 'Only public key of account '+TAccountComp.AccountNumberToAccountTxtNumber(sender_account.account)+' found in wallet. You cannot operate with this account';
end;
lblGlobalErrors.Caption := errors;
exit;
end;
end;
end;
lblGlobalErrors.Caption := '';
Finally
if lblGlobalErrors.Caption<>'' then begin
tsGlobalError.visible := true;
tsGlobalError.tabvisible := {$IFDEF unix}true{$ELSE}false{$ENDIF};
tsOperation.TabVisible := false;
PageControlLocked.ActivePage := tsGlobalError;
if bbPassword.CanFocus then begin
ActiveControl := bbPassword;
end;
end else begin
tsOperation.visible := true;
tsOperation.tabvisible := {$IFDEF unix}true{$ELSE}false{$ENDIF};
tsGlobalError.TabVisible := false;
PageControlLocked.ActivePage := tsOperation;
end;
End;
if (PageControlOpType.ActivePage = tsTransaction) then begin
Result := UpdateOpTransaction(GetDefaultSenderAccount,dest_account, publicKey, LRequiresPurchase, amount,errors);
end else if (PageControlOpType.ActivePage = tsChangePrivateKey) then begin
Result := UpdateOpChangeKey(GetDefaultSenderAccount,signer_account,publicKey,errors);
end else if (PageControlOpType.ActivePage = tsListAccount) then begin
Result := UpdateOpListAccount(GetDefaultSenderAccount,salePrice,seller_account,signer_account,publicKey,auxC,LHashLock,errors);
end else if (PageControlOpType.ActivePage = tsDelistAccount) then begin
Result := UpdateOpDelist(GetDefaultSenderAccount,signer_account,errors);
end else if (PageControlOpType.ActivePage = tsBuyAccount) then begin
Result := UpdateOpBuyAccount(GetDefaultSenderAccount,account_to_buy,amount,publicKey,LRecipientSigned, errors);
end else if (PageControlOpType.ActivePage = tsChangeInfo) then begin
Result := UpdateOpChangeInfo(GetDefaultSenderAccount,signer_account,changeName,newName,changeType,newType,LChangeAccountData,LNewAccountData,errors);
end else begin
errors := 'Must select an operation';
end;
if (PageControlOpType.ActivePage=tsTransaction) then begin
rbEncryptedWithOldEC.Caption := 'Encrypted with sender public key';
rbEncryptedWithEC.Caption := 'Encrypted with destination public key';
end else if (PageControlOpType.ActivePage=tsChangePrivateKey) then begin
rbEncryptedWithOldEC.Caption := 'Encrypted with old public key';
rbEncryptedWithEC.Caption := 'Encrypted with new public key';
end else if ((PageControlOpType.ActivePage=tsListAccount) Or (PageControlOpType.ActivePage=tsDelistAccount)) then begin
rbEncryptedWithOldEC.Caption := 'Encrypted with target public key';
rbEncryptedWithEC.Caption := 'Encrypted with signer public key';
end else if (PageControlOpType.ActivePage=tsBuyAccount) then begin
rbEncryptedWithOldEC.Caption := 'Encrypted with buyer public key';
rbEncryptedWithEC.Caption := 'Encrypted with target public key';
end;
ebSignerAccount.Enabled:= ((PageControlOpType.ActivePage=tsChangePrivateKey) And (FNode.Bank.SafeBox.CurrentProtocol>=CT_PROTOCOL_2))
Or ((PageControlOpType.ActivePage=tsChangeInfo) And (SenderAccounts.Count=1))
Or (PageControlOpType.ActivePage=tsListAccount)
Or (PageControlOpType.ActivePage=tsDelistAccount);
sbSearchSignerAccount.Enabled:=ebSignerAccount.Enabled;
lblSignerAccount.Enabled := ebSignerAccount.Enabled;
lblChangeName.Enabled:= (PageControlOpType.ActivePage=tsChangeInfo) And (SenderAccounts.Count=1);
ebChangeName.Enabled:= lblChangeName.Enabled;
//
UpdatePayload(sender_account, e);
end;
function TFRMOperation.UpdateOpListAccount(const TargetAccount: TAccount;
var SalePrice: Int64; var SellerAccount, SignerAccount: TAccount;
var NewOwnerPublicKey: TAccountKey; var LockedUntilBlock: Cardinal;
var HashLock : T32Bytes; var errors: String): Boolean;
var auxC : Cardinal; LBytes : TBytes;
begin
Result := False;
SalePrice := 0; SellerAccount := CT_Account_NUL;
NewOwnerPublicKey := CT_TECDSA_Public_Nul;
LockedUntilBlock := 0; errors := '';
if (PageControlOpType.ActivePage <> tsListAccount) then exit;
lblListAccountErrors.Caption := '';
Try
if (rbListAccountForPublicSale.Checked) Or (rbListAccountForPrivateSale.Checked) then begin
{%region 'List Account Options'}
lblPrice.Visible := true;
lblPrice.Caption := 'Sale Price';
lblPrice.Enabled := true;
ebPrice.Visible := true;
ebPrice.Enabled := true;
lblNewKey.Visible := true;
lblNewKey.Enabled := true;
lblNewKey.Caption := 'Buyer Key';
ebNewKey.Visible := true;
ebNewKey.Enabled := true;
lblSeller.Visible := true;
lblSeller.Caption := 'Seller Account';
ebSellerAccount.Visible := true;
sbSearchListerSellerAccount.Visible := true;
lblTimeLock.Visible := true;
ebTimeLock.Visible := true;
sbTimeLock.Visible := true;
lblHashLock.Visible := false;
ebHashLock.Visible := false;
btnHashLock.Visible := false;
btnHashLock.Enabled := false;
if rbListAccountForPublicSale.Checked then begin
lblNewKey.Enabled := false;
ebNewKey.Enabled := false;
ebTimeLock.Enabled := false;
lblTimeLock.Enabled := false;
end else if rbListAccountForPrivateSale.Checked then begin
lblNewKey.Enabled := true;
ebNewKey.Enabled := true;
ebTimeLock.Enabled := true;
lblTimeLock.Enabled := true;
end;
if not TAccountComp.TxtToMoney(ebPrice.Text,salePrice) then begin
errors := 'Invalid price';
exit;
end;
// Signer:
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,auxC) then begin
errors := 'Invalid signer account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Signer account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
SignerAccount := FNode.GetMempoolAccount(auxC);
// Seller
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSellerAccount.Text,auxC) then begin
errors := 'Invalid seller account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Seller account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
if (auxC=TargetAccount.account) then begin
errors := 'Seller account cannot be same account';
exit;
end;
SellerAccount := FNode.GetMempoolAccount(auxC);
if rbListAccountForPrivateSale.Checked then begin
lblNewKey.Visible := true;
lblNewKey.Enabled := true;
ebNewKey.Visible := true;
ebNewKey.Enabled := true;
ebTimeLock.Enabled := true;
lblTimeLock.Enabled := true;
If Not TAccountComp.AccountKeyFromImport(ebNewKey.Text,NewOwnerPublicKey,errors) then begin
errors := 'Public key: '+errors;
exit;
end else begin
lblListAccountErrors.Font.Color := clGreen;
lblListAccountErrors.Caption := 'New key type: '+TAccountComp.GetECInfoTxt(NewOwnerPublicKey.EC_OpenSSL_NID);
end;
if TAccountComp.EqualAccountKeys(NewOwnerPublicKey,TargetAccount.accountInfo.accountKey) then begin
errors := 'New public key for private sale is the same public key';
Exit;
end;
LockedUntilBlock := StrToIntDef(ebTimeLock.Text,0);
if LockedUntilBlock=0 then begin
errors := 'Insert locking block';
exit;
end;
end;
If (FNode.Bank.SafeBox.CurrentProtocol=CT_PROTOCOL_1) then begin
errors := 'This operation needs PROTOCOL 2 active';
exit;
end;
{%endregion}
end else if (rbListAccountForAccountSwap.Checked) Or (rbListAccountForCoinSwap.Checked) then begin
{%region 'Atomic Swap Options'}
lblPrice.Visible := true;
ebPrice.Visible := true;
lblNewKey.Visible := true;
ebNewKey.Visible := true;
lblTimeLock.Visible := true;
lblTimeLock.Enabled := true;
ebTimeLock.Visible := true;
ebTimeLock.Enabled := true;
sbTimeLock.Visible := true;
sbTimeLock.Enabled := true;
lblHashLock.Visible := true;
ebHashLock.Visible := true;
btnHashLock.Visible := true;
btnHashLock.Enabled := true;
if rbListAccountForAccountSwap.Checked then begin
lblSeller.Visible := False;
ebSellerAccount.Visible := False;
sbSearchListerSellerAccount.Visible := false;
lblNewKey.Caption := 'Counterparty Key';
lblNewKey.Visible := true;
lblNewKey.Enabled := true;
ebNewKey.Visible := true;
ebNewKey.Enabled := true;
lblPrice.Visible := false;
lblPrice.Enabled := false;
ebPrice.Enabled := false;
ebPrice.Visible := false;
end else if rbListAccountForCoinSwap.Checked then begin
lblSeller.Visible := true;
lblSeller.Caption := 'Counterparty Account';
ebSellerAccount.Visible := true;
sbSearchListerSellerAccount.Visible := true;
lblNewKey.Visible := false;
ebNewKey.Visible := false;
lblPrice.Visible := true;
lblPrice.Caption := 'Swap Amount';
lblPrice.Enabled := true;
ebPrice.Visible := true;
ebPrice.Enabled := true;
end;
// COMMON SWAP VALDATION
// V5 Check
If (FNode.Bank.SafeBox.CurrentProtocol<CT_PROTOCOL_5) then begin
errors := 'This operation needs PROTOCOL 5 or greater';
exit;
end;
// Signer
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,auxC) then begin
errors := 'Invalid signer account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Signer account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
SignerAccount := FNode.GetMempoolAccount(auxC);
// Time-Lock
LockedUntilBlock := StrToIntDef(ebTimeLock.Text,0);
if LockedUntilBlock=0 then begin
errors := 'Insert locking block';
exit;
end;
// Hash-Lock
HashLock := CT_HashLock_NUL;
if (NOT TCrypto.HexaToRaw(ebHashLock.Text, LBytes)) OR (Length(LBytes) <> 32) then begin
errors := 'Hash-Lock is required (32byte hexstring)';
exit;
end;
HashLock := TBaseType.To32Bytes(LBytes);
// Account Swap Validation
if rbListAccountForAccountSwap.Checked then begin
// Sale price is 0
SalePrice := 0;
// Counterparty key
If Not TAccountComp.AccountKeyFromImport(ebNewKey.Text,NewOwnerPublicKey,errors) then begin
errors := 'Counterparty Key: '+errors;
exit;
end else begin
lblListAccountErrors.Font.Color := clGreen;
lblListAccountErrors.Caption := 'New key type: '+TAccountComp.GetECInfoTxt(NewOwnerPublicKey.EC_OpenSSL_NID);
end;
if TAccountComp.EqualAccountKeys(NewOwnerPublicKey,TargetAccount.accountInfo.accountKey) then begin
errors := 'New public key for private sale is the same public key';
Exit;
end;
// Seller account is target account (but price is 0, never receives)
SellerAccount := TargetAccount;
end else if (rbListAccountForCoinSwap.Checked) then begin
// Coin Swap Validation
// Price
IF NOT TAccountComp.TxtToMoney(ebPrice.Text,salePrice) then begin
errors := 'Invalid swap amount';
exit;
end;
// Counterparty Account (Seller variable)
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSellerAccount.Text,auxC) then begin
errors := 'Invalid counterparty account';
exit;
end;
if (auxC<0) Or (auxC >= FNode.Bank.AccountsCount) then begin
errors := 'Counterparty account does not exists '+TAccountComp.AccountNumberToAccountTxtNumber(auxC);
exit;
end;
if (auxC=TargetAccount.account) then begin
errors := 'Counterparty account cannot be same account';
exit;
end;
SellerAccount := FNode.GetMempoolAccount(auxC);
// New Owner Public Key is the same public key
NewOwnerPublicKey := TargetAccount.accountInfo.accountKey;
end;
{%endregion}
end else begin
lblPrice.Visible := false;
ebPrice.Visible := false;
lblNewKey.Visible := false;
ebNewKey.Visible := false;
lblSeller.Visible := false;
ebSellerAccount.Visible := false;
sbSearchListerSellerAccount.Visible := false;
lblTimeLock.Visible := false;
ebTimeLock.Visible := false;
sbTimeLock.Visible := false;
lblHashLock.Visible := false;
ebHashLock.Visible := false;
btnHashLock.Visible := false;
btnHashLock.Enabled := false;
errors := 'Select a sale type';
exit;
end;
Finally
Result := errors='';
if errors<>'' then begin
lblListAccountErrors.Caption := errors;
lblListAccountErrors.Font.Color := clRed;
end;
End;
end;
function TFRMOperation.UpdateOpTransaction(const SenderAccount: TAccount; out DestAccount : TAccount; out AResolvedKey : TECDSA_Public; out ARequiresPurchase : Boolean; out amount: Int64; out errors: String): Boolean;
Var
LEPasa : TEPasa;
LResolvedAccountNo : Cardinal;
begin
errors := '';
lblTransactionErrors.Caption := '';
if PageControlOpType.ActivePage<>tsTransaction then exit;
if not TEPasa.TryParse(ebDestAccount.Text, LEPasa) then begin
errors := 'Invalid dest. EPASA ('+ebDestAccount.Text+')';
lblTransactionErrors.Caption := errors;
Exit(False);
end;
Result := TNode.Node.TryResolveEPASA(LEPasa, LResolvedAccountNo, AResolvedKey, ARequiresPurchase, errors);
if NOT Result then begin
lblTransactionErrors.Caption := errors;
Exit(False);
end;
if LResolvedAccountNo <> CT_AccountNo_NUL then begin
DestAccount := TNode.Node.GetMempoolAccount(LResolvedAccountNo);
if DestAccount.account=SenderAccount.account then begin
errors := 'Sender and dest account are the same';
lblTransactionErrors.Caption := errors;
Exit(False);
end;
end;
if SenderAccounts.Count=1 then begin
if not TAccountComp.TxtToMoney(ebAmount.Text,amount) then begin
errors := 'Invalid amount ('+ebAmount.Text+')';
lblTransactionErrors.Caption := errors;
Exit(False);
end;
end else amount := 0; // ALL BALANCE
if (SenderAccounts.Count=1) then begin
if (SenderAccount.balance<(amount+FDefaultFee)) then begin
errors := 'Insufficient funds';
lblTransactionErrors.Caption := errors;
Exit(False);
end;
end;
end;
function TFRMOperation.UpdatePayload(const SenderAccount: TAccount;
var errors: String): Boolean;
Var payload_u : AnsiString;
payload_encrypted : TRawBytes;
account : TAccount;
public_key : TAccountKey;
dest_account_number : Cardinal;
i : Integer;
valid : Boolean;
wk : TWalletKey;
LPayloadBytes : TRawBytes;
begin
valid := false;
payload_encrypted := Nil;
FEncodedPayload := CT_TOperationPayload_NUL;
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// TODO:
// Needs to assign FEncodedPayload.payload_type based on PIP-0027
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
errors := 'Unknown error';
payload_u := memoPayload.Lines.Text;
try
if (payload_u='') then begin
valid := true;
exit;
end;
if cbPayloadAsHex.Checked then begin
if NOT TCrypto.HexaToRaw(payload_u, LPayloadBytes) then begin
valid := false;
errors := 'Payload not hex-formatted';
exit;
end;
end else LPayloadBytes := TEncoding.ANSI.GetBytes(payload_u);
if (rbEncryptedWithOldEC.Checked) then begin
// Use sender
errors := 'Error encrypting';
account := FNode.GetMempoolAccount(SenderAccount.account);
TPCEncryption.DoPascalCoinECIESEncrypt(account.accountInfo.accountKey,LPayloadBytes,payload_encrypted);
valid := Length(payload_encrypted)>0;
end else if (rbEncryptedWithEC.Checked) then begin
errors := 'Error encrypting';
if (PageControlOpType.ActivePage=tsTransaction) or (PageControlOpType.ActivePage=tsListAccount) or (PageControlOpType.ActivePage=tsDelistAccount)
or (PageControlOpType.ActivePage=tsBuyAccount) then begin
// With dest public key
If (PageControlOpType.ActivePage=tsTransaction) then begin
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebDestAccount.Text,dest_account_number) then begin
errors := 'Invalid dest account number';
exit;
end;
end else if (PageControlOpType.ActivePage=tsListAccount) then begin
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,dest_account_number) then begin
errors := 'Invalid signer account number';
exit;
end;
end else if (PageControlOpType.ActivePage=tsDelistAccount) then begin
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebSignerAccount.Text,dest_account_number) then begin
errors := 'Invalid signer account number';
exit;
end;
end else if (PageControlOpType.ActivePage=tsBuyAccount) then begin
If Not TAccountComp.AccountTxtNumberToAccountNumber(ebAccountToBuy.Text,dest_account_number) then begin
errors := 'Invalid account to buy number';
exit;
end;
end else begin
errors := 'ERROR DEV 20170512-1';
exit;
end;
if (dest_account_number<0) or (dest_account_number>=FNode.Bank.AccountsCount) then begin
errors := 'Invalid payload encrypted account number: '+TAccountComp.AccountNumberToAccountTxtNumber(dest_account_number);
exit;
end;
account := FNode.GetMempoolAccount(dest_account_number);
TPCEncryption.DoPascalCoinECIESEncrypt(account.accountInfo.accountKey,LPayloadBytes,payload_encrypted);
valid := Length(payload_encrypted)>0;
end else if (PageControlOpType.ActivePage=tsChangePrivateKey) then begin
if (rbChangeKeyWithAnother.Checked) then begin
// With new key generated
if (cbNewPrivateKey.ItemIndex>=0) then begin
i := PtrInt(cbNewPrivateKey.Items.Objects[cbNewPrivateKey.ItemIndex]);
if (i>=0) then public_key := WalletKeys.Key[i].AccountKey;
end else begin
errors := 'Must select a private key';
exit;
end;
end else if (rbChangeKeyTransferAccountToNewOwner.Checked) then begin
If Not TAccountComp.AccountKeyFromImport(ebNewPublicKey.Text,public_key,errors) then begin
errors := 'Public key: '+errors;
exit;
end;
end else begin
errors := 'Must select change type';
exit;
end;
if public_key.EC_OpenSSL_NID<>CT_Account_NUL.accountInfo.accountKey.EC_OpenSSL_NID then begin
TPCEncryption.DoPascalCoinECIESEncrypt(public_key,LPayloadBytes,payload_encrypted);
valid := Length(payload_encrypted)>0;
end else begin
valid := false;
errors := 'Selected private key is not valid to encode';
exit;
end;
end else begin
errors := 'This operation does not allow this kind of payload';
end;
end else if (rbEncrptedWithPassword.Checked) then begin
payload_encrypted := TPCEncryption.DoPascalCoinAESEncrypt(LPayloadBytes,TEncoding.ANSI.GetBytes(ebEncryptPassword.Text));
valid := Length(payload_encrypted)>0;
end else if (rbNotEncrypted.Checked) then begin
payload_encrypted := LPayloadBytes;
valid := true;
end else begin
errors := 'Must select an encryption option for payload';
end;
finally
if valid then begin
if length(payload_encrypted)>CT_MaxPayloadSize then begin
valid := false;
errors := 'Payload size is bigger than '+inttostr(CT_MaxPayloadSize)+' ('+Inttostr(length(payload_encrypted))+')';
end;
end;
if valid then begin
lblEncryptionErrors.Caption := '';
lblPayloadLength.Caption := Format('(%db -> %db)',[length(payload_u),length(payload_encrypted)]);
end else begin
lblEncryptionErrors.Caption := errors;
lblPayloadLength.Caption := Format('(%db -> ?)',[length(payload_u)]);
end;
FEncodedPayload.payload_raw := payload_encrypted;
Result := valid;
end;
end;
procedure TFRMOperation.UpdateWalletKeys;
Var i : Integer;
wk : TWalletKey;
s : String;
begin
cbNewPrivateKey.items.BeginUpdate;
cbBuyNewKey.Items.BeginUpdate;
Try
cbNewPrivateKey.Items.Clear;
cbBuyNewKey.Items.Clear;
if Not Assigned(FWalletKeys) then exit;
For i:=0 to FWalletKeys.Count-1 do begin
wk := FWalletKeys.Key[i];
if (wk.Name='') then begin
s := TCrypto.ToHexaString( TAccountComp.AccountKey2RawString(wk.AccountKey));
end else begin
s := wk.Name;
end;
if Not Assigned(wk.PrivateKey) then s := s + '(*)';
cbNewPrivateKey.Items.AddObject(s,TObject(i));
cbBuyNewKey.Items.AddObject(s,TObject(i));
end;
cbNewPrivateKey.Sorted := true;
cbBuyNewKey.Sorted := true;
Finally
cbNewPrivateKey.Items.EndUpdate;
cbBuyNewKey.Items.EndUpdate;
End;
updateInfoClick(Nil);
memoPayloadClick(Nil);
end;
end.
| 40.306582 | 281 | 0.715446 |
f1b14848f6647d2c832057073c72bbbdac086666
| 308 |
dpr
|
Pascal
|
DelphiLanguageSession/09_InterceptBaseClass/InterceptBaseClass.dpr
|
xchinjo/DelphiSessions
|
0679d97a78ff232c6bbec1217c4f8c2104d58210
|
[
"MIT"
] | 44 |
2017-05-30T20:54:06.000Z
|
2022-02-25T16:44:23.000Z
|
DelphiLanguageSession/09_InterceptBaseClass/InterceptBaseClass.dpr
|
jpluimers/DelphiSessions
|
0679d97a78ff232c6bbec1217c4f8c2104d58210
|
[
"MIT"
] | null | null | null |
DelphiLanguageSession/09_InterceptBaseClass/InterceptBaseClass.dpr
|
jpluimers/DelphiSessions
|
0679d97a78ff232c6bbec1217c4f8c2104d58210
|
[
"MIT"
] | 19 |
2017-07-25T10:03:13.000Z
|
2021-10-17T11:40:38.000Z
|
program InterceptBaseClass;
uses
Forms,
InterceptBaseClass_MainForm in 'InterceptBaseClass_MainForm.pas' {FormIntercept};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TFormIntercept, FormIntercept);
Application.Run;
end.
| 20.533333 | 84 | 0.756494 |
f18886e1a056e5511bd92d8f1ba70ae552bd6777
| 28,702 |
pas
|
Pascal
|
morph3d/ShapeUn.pas
|
seregamorph/morph3d
|
469f404581c44fc663ea249ceddcfb569ad22a49
|
[
"Apache-2.0"
] | 7 |
2019-11-25T17:44:43.000Z
|
2020-10-19T08:29:09.000Z
|
morph3d/ShapeUn.pas
|
seregamorph/morph3d
|
469f404581c44fc663ea249ceddcfb569ad22a49
|
[
"Apache-2.0"
] | null | null | null |
morph3d/ShapeUn.pas
|
seregamorph/morph3d
|
469f404581c44fc663ea249ceddcfb569ad22a49
|
[
"Apache-2.0"
] | 2 |
2020-01-27T17:51:34.000Z
|
2020-10-19T08:28:41.000Z
|
unit ShapeUn;
interface
uses MorphUn, Windows;
type
TShapes=(shTriangle1, shTriangle2, shCube, shCube2, shCube3, shPyramideTri,
shOct, shIco, shSphere1, shSphere2, shSphere3, shDodecaedr, shPyramideCut,
shCubeCut, shHeadAcke, shTor, shSpiral, shFootball);
const
shCount=18;
ShapesArr : array[0..shCount-1] of TShapes=
(shTriangle1, shTriangle2, shCube, shCube2, shCube3, shPyramideTri,
shOct, shIco, shSphere1, shSphere2, shSphere3, shDodecaedr, shPyramideCut,
shCubeCut, shHeadAcke, shTor, shSpiral, shFootball);
var
ShapesSet : set of TShapes = [];
ShapeInd : Integer;
procedure InitShape(var CoordsArr : TCoords3DArr);
procedure CalcPos;
implementation
uses DrawUn;
procedure InitTriangle1(var CoordsArr : TCoords3DArr);
var
n : Integer;
ang, z : Single;
begin
// curve 1
for n := 0 to (PointsCount div 3)-1 do
begin
ang := n/PointsCount* 3 *pi*2; // pi*2 - full circle
// n/PointsCount - % of the round
// *_* - (div _) / how many points at one time
z := sin(2*ang);
AddPoint(CoordsArr, XYZ(sin(ang), cos(ang), z));
AddPoint(CoordsArr, XYZ(cos(ang), z, sin(ang)));
AddPoint(CoordsArr, XYZ(z, sin(ang), cos(ang)));
end;
end;
procedure InitTriangle2(var CoordsArr : TCoords3DArr);
var
n : Integer;
ang, z : Single;
begin
// curve 2
for n := 0 to (PointsCount div 2)-1 do
begin
ang := n/PointsCount* 2 *pi*2; // pi*2 - full round
// n/PointsCount - % of the round
// *_* - (div _) how many points at one time
z := sin(2*ang);
AddPoint(CoordsArr, XYZ(sin(ang)*sqrt(1-z), cos(ang)*sqrt(1+z), z));
AddPoint(CoordsArr, XYZ(sin(ang+pi/2)*sqrt(1-z), cos(ang+pi/2)*sqrt(1+z), z));
end;
end;
procedure InitPyramideTri(var CoordsArr : TCoords3DArr);
var
n : Integer;
begin
// tetraedr
AddPoint(CoordsArr, XYZ(1, 1, 1)); // 0
AddPoint(CoordsArr, XYZ(-1, -1, 1)); // 1
AddPoint(CoordsArr, XYZ(1, -1, -1)); // 2
AddPoint(CoordsArr, XYZ(-1, 1, -1)); // 3
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[1], 39);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[2], 39);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[3], 39);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[2], 39);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[3], 39);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[3], 39);
for n := 0 to 1 do DupPoint(CoordsArr);
end;
procedure InitCube(var CoordsArr : TCoords3DArr);
var
n : Integer;
begin
// cube
AddPoint(CoordsArr, XYZ( 1, 1, 1)); // 0
AddPoint(CoordsArr, XYZ(-1, 1, 1)); // 1
AddPoint(CoordsArr, XYZ( 1, -1, 1)); // 2
AddPoint(CoordsArr, XYZ( 1, 1, -1)); // 3
AddPoint(CoordsArr, XYZ(-1, -1, 1)); // 4
AddPoint(CoordsArr, XYZ( 1, -1, -1)); // 5
AddPoint(CoordsArr, XYZ(-1, 1, -1)); // 6
AddPoint(CoordsArr, XYZ(-1, -1, -1)); // 7
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[1], 19);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[2], 19);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[3], 19);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[4], 19);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[6], 19);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[4], 19);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[5], 19);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[5], 19);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[6], 19);
AddPointsBetween(CoordsArr, CoordsArr[4], CoordsArr[7], 19);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[7], 19);
AddPointsBetween(CoordsArr, CoordsArr[6], CoordsArr[7], 19);
for n := 0 to 3 do DupPoint(CoordsArr);
end;
procedure InitCube2(var CoordsArr : TCoords3DArr);
var
i : Integer;
ang : Single;
begin
// Play cube
for i := 0 to 17 do
begin
ang := i/18*2*pi;
AddPoint(CoordsArr, XYZ(1, 0.75*cos(ang), 0.75*sin(ang)));
AddPoint(CoordsArr, XYZ(-1, 0.75*cos(ang), 0.75*sin(ang)));
AddPoint(CoordsArr, XYZ(0.75*cos(ang), 1, 0.75*sin(ang)));
AddPoint(CoordsArr, XYZ(0.75*cos(ang), -1, 0.75*sin(ang)));
AddPoint(CoordsArr, XYZ(0.75*cos(ang), 0.75*sin(ang), 1));
AddPoint(CoordsArr, XYZ(0.75*cos(ang), 0.75*sin(ang), -1));
end;
for i := 0 to 15 do
begin
ang := i/16*2*pi;
AddPoint(CoordsArr, XYZ(0.875, 0.875*cos(ang), 0.875*sin(ang)));
AddPoint(CoordsArr, XYZ(-0.875, 0.875*cos(ang), 0.875*sin(ang)));
AddPoint(CoordsArr, XYZ(0.875*cos(ang), 0.875, 0.875*sin(ang)));
AddPoint(CoordsArr, XYZ(0.875*cos(ang), -0.875, 0.875*sin(ang)));
AddPoint(CoordsArr, XYZ(0.875*cos(ang), 0.875*sin(ang), 0.875)); // 7/8
AddPoint(CoordsArr, XYZ(0.875*cos(ang), 0.875*sin(ang), -0.875));
end;
AddPoint(CoordsArr, XYZ(0.725, 0.725, 0.725));
AddPoint(CoordsArr, XYZ(-0.725, 0.725, 0.725));
AddPoint(CoordsArr, XYZ(0.725, -0.725, 0.725));
AddPoint(CoordsArr, XYZ(0.725, 0.725, -0.725));
AddPoint(CoordsArr, XYZ(-0.725, -0.725, 0.725));
AddPoint(CoordsArr, XYZ(0.725, -0.725, -0.725));
AddPoint(CoordsArr, XYZ(-0.725, 0.725, -0.725));
AddPoint(CoordsArr, XYZ(-0.725, -0.725, -0.725));
AddPoint(CoordsArr, XYZ(0, 0, 1));
AddPoint(CoordsArr, XYZ(0.25, 1, 0.25));
AddPoint(CoordsArr, XYZ(-0.25, 1, -0.25));
AddPoint(CoordsArr, XYZ(-1, -0.25, 0.25));
AddPoint(CoordsArr, XYZ(-1, 0, 0));
AddPoint(CoordsArr, XYZ(-1, 0.25, -0.25));
AddPoint(CoordsArr, XYZ(0.25, 0.25, -1));
AddPoint(CoordsArr, XYZ(-0.25, 0.25, -1));
AddPoint(CoordsArr, XYZ(0.25, -0.25, -1));
AddPoint(CoordsArr, XYZ(-0.25, -0.25, -1));
AddPoint(CoordsArr, XYZ(1, 0.25, 0.25));
AddPoint(CoordsArr, XYZ(1, -0.25, 0.25));
AddPoint(CoordsArr, XYZ(1, 0.25, -0.25));
AddPoint(CoordsArr, XYZ(1, -0.25, -0.25));
AddPoint(CoordsArr, XYZ(1, 0, 0));
AddPoint(CoordsArr, XYZ(0, -1, 0.4));
AddPoint(CoordsArr, XYZ(-0.2, -1, 0.2));
AddPoint(CoordsArr, XYZ(-0.4, -1, 0));
AddPoint(CoordsArr, XYZ(0.4, -1, 0));
AddPoint(CoordsArr, XYZ(0.2, -1, -0.2));
AddPoint(CoordsArr, XYZ(0, -1, -0.4));
for i := 0 to 6 do DupPoint(CoordsArr);
end;
procedure InitOctaedr(var CoordsArr : TCoords3dArr);
var
n : Integer;
begin
// octaedr
AddPoint(CoordsArr, XYZ(0, 0, 1)); // 2
AddPoint(CoordsArr, XYZ(1, 0, 0)); // 0
AddPoint(CoordsArr, XYZ(0, 1, 0)); // 1
AddPoint(CoordsArr, XYZ(-1, 0, 0)); // 3
AddPoint(CoordsArr, XYZ(0, -1, 0)); // 4
AddPoint(CoordsArr, XYZ(0, 0, -1)); // 5
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[1], 19);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[2], 19);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[3], 19);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[4], 19);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[2], 19);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[3], 19);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[4], 19);
AddPointsBetween(CoordsArr, CoordsArr[4], CoordsArr[1], 19);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[1], 19);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[2], 19);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[3], 19);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[4], 19);
for n := 0 to 5 do DupPoint(CoordsArr);
end;
procedure InitIcosaedr(var CoordsArr : TCoords3DArr);
var
n : Integer;
ang : Single;
begin
// icosaedr
for n := 0 to 4 do //0-9
begin
ang := n/5*2*pi; // 5 divisions
AddPoint(CoordsArr, XYZ(sin(ang), cos(ang), 0.5));
AddPoint(CoordsArr, XYZ(sin(ang+pi/5), cos(ang+pi/5), -0.5));
end;
AddPoint(CoordsArr, XYZ(0, 0, sqrt(5)/2)); // 10
AddPoint(CoordsArr, XYZ(0, 0, -sqrt(5)/2)); // 11
for n := 0 to 9 do
begin
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[(n+1) mod 10], 7);
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[(n+2) mod 10], 7);
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[10+(n mod 2)], 7);
end;
for n := 0 to 17 do DupPoint(CoordsArr);
end;
procedure InitDodecaedr(var CoordsArr : TCoords3DArr);
var
IcoPoints : array[0..11] of TCoords3D;
n : Integer;
ang : Single;
begin
// dodecaedr
for n := 0 to 4 do //0-9
begin
ang := n/5*2*pi; // 5 divisions
IcoPoints[2*n] := XYZ(sin(ang), cos(ang), 0.5);
IcoPoints[2*n+1] := XYZ(sin(ang+pi/5), cos(ang+pi/5), -0.5);
end;
IcoPoints[10] := XYZ(0, 0, sqrt(5)/2); // 10
IcoPoints[11] := XYZ(0, 0, -sqrt(5)/2); // 11
for n := 0 to 9 do
begin
AddPointBetween3(CoordsArr, IcoPoints[n],
IcoPoints[(n+1) mod 10], IcoPoints[(n+2) mod 10]);
end;
for n := 0 to 4 do
begin
AddPointBetween3(CoordsArr, IcoPoints[10],
IcoPoints[2*n], IcoPoints[(2*n+2) mod 10]);
AddPointBetween3(CoordsArr, IcoPoints[11],
IcoPoints[2*n+1], IcoPoints[(2*n+3) mod 10]);
end;
for n := 0 to 9 do
begin
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[(n+1) mod 10], 7);
end;
for n := 0 to 4 do
begin
AddPointsBetween(CoordsArr, CoordsArr[2*n+10],
CoordsArr[((2*n+2) mod 10)+10], 7);
AddPointsBetween(CoordsArr, CoordsArr[2*n+11],
CoordsArr[((2*n+2) mod 10)+11], 7);
end;
for n := 0 to 9 do
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[n+10], 7);
for n := 0 to 9 do
DupPoint(CoordsArr);
end;
procedure InitPyramideCut(var CoordsArr : TCoords3DArr);
var
i : Integer;
begin
AddPoint(CoordsArr, XYZ(0.33, 0.33, 1)); // 0
AddPoint(CoordsArr, XYZ(1, 0.33, 0.33)); // 1
AddPoint(CoordsArr, XYZ(0.33, 1, 0.33)); // 2
AddPoint(CoordsArr, XYZ(1, -0.33, -0.33)); // 3
AddPoint(CoordsArr, XYZ(0.33, -1, -0.33)); // 4
AddPoint(CoordsArr, XYZ(0.33, -0.33, -1)); // 5
AddPoint(CoordsArr, XYZ(-0.33, -1, 0.33)); // 6
AddPoint(CoordsArr, XYZ(-1, -0.33, 0.33)); // 7
AddPoint(CoordsArr, XYZ(-0.33, -0.33, 1)); // 8
AddPoint(CoordsArr, XYZ(-1, 0.33, -0.33)); // 9
AddPoint(CoordsArr, XYZ(-0.33, 1, -0.33)); // 10
AddPoint(CoordsArr, XYZ(-0.33, 0.33, -1)); // 11
for i := 0 to 3 do
begin
AddPointsBetween(CoordsArr, CoordsArr[i*3+0], CoordsArr[i*3+1], 10);
AddPointsBetween(CoordsArr, CoordsArr[i*3+1], CoordsArr[i*3+2], 10);
AddPointsBetween(CoordsArr, CoordsArr[i*3+0], CoordsArr[i*3+2], 10);
end;
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[8], 18);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[3], 18);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[10], 18);
AddPointsBetween(CoordsArr, CoordsArr[4], CoordsArr[6], 18);
AddPointsBetween(CoordsArr, CoordsArr[7], CoordsArr[9], 18);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[11], 18);
end;
procedure InitCubeCut(var CoordsArr : TCoords3DArr);
begin
AddPoint(CoordsArr, XYZ(1, 0.4, 1)); // 0
AddPoint(CoordsArr, XYZ(0.4, 1, 1)); // 1
AddPoint(CoordsArr, XYZ(-0.4, 1, 1)); // 2
AddPoint(CoordsArr, XYZ(-1, 0.4, 1)); // 3
AddPoint(CoordsArr, XYZ(-1, -0.4, 1)); // 4
AddPoint(CoordsArr, XYZ(-0.4, -1, 1)); // 5
AddPoint(CoordsArr, XYZ(0.4, -1, 1)); // 6
AddPoint(CoordsArr, XYZ(1, -0.4, 1)); // 7
AddPoint(CoordsArr, XYZ(1, 1, 0.4)); // 8
AddPoint(CoordsArr, XYZ(1, 1, -0.4)); // 9
AddPoint(CoordsArr, XYZ(0.4, 1, -1)); // 10
AddPoint(CoordsArr, XYZ(-0.4, 1, -1)); // 11
AddPoint(CoordsArr, XYZ(-1, 1, -0.4)); // 12
AddPoint(CoordsArr, XYZ(-1, 1, 0.4)); // 13
AddPoint(CoordsArr, XYZ(1, -1, 0.4)); // 14
AddPoint(CoordsArr, XYZ(1, -1, -0.4)); // 15
AddPoint(CoordsArr, XYZ(1, -0.4, -1)); // 16
AddPoint(CoordsArr, XYZ(1, 0.4, -1)); // 17
AddPoint(CoordsArr, XYZ(-1, 0.4, -1)); // 18
AddPoint(CoordsArr, XYZ(-1, -0.4, -1)); // 19
AddPoint(CoordsArr, XYZ(-0.4, -1, -1)); // 20
AddPoint(CoordsArr, XYZ(0.4, -1, -1)); // 21
AddPoint(CoordsArr, XYZ(-1, -1, 0.4)); // 22
AddPoint(CoordsArr, XYZ(-1, -1, -0.4)); // 23
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[1], 6);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[8], 6);
AddPointsBetween(CoordsArr, CoordsArr[8], CoordsArr[0], 6);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[3], 6);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[13], 6);
AddPointsBetween(CoordsArr, CoordsArr[13], CoordsArr[2], 6);
AddPointsBetween(CoordsArr, CoordsArr[4], CoordsArr[5], 6);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[22], 6);
AddPointsBetween(CoordsArr, CoordsArr[22], CoordsArr[4], 6);
AddPointsBetween(CoordsArr, CoordsArr[6], CoordsArr[7], 6);
AddPointsBetween(CoordsArr, CoordsArr[7], CoordsArr[14], 6);
AddPointsBetween(CoordsArr, CoordsArr[14], CoordsArr[6], 6);
AddPointsBetween(CoordsArr, CoordsArr[11], CoordsArr[12], 6);
AddPointsBetween(CoordsArr, CoordsArr[12], CoordsArr[18], 6);
AddPointsBetween(CoordsArr, CoordsArr[18], CoordsArr[11], 6);
AddPointsBetween(CoordsArr, CoordsArr[19], CoordsArr[23], 6);
AddPointsBetween(CoordsArr, CoordsArr[23], CoordsArr[20], 6);
AddPointsBetween(CoordsArr, CoordsArr[20], CoordsArr[19], 6);
AddPointsBetween(CoordsArr, CoordsArr[15], CoordsArr[16], 6);
AddPointsBetween(CoordsArr, CoordsArr[16], CoordsArr[21], 6);
AddPointsBetween(CoordsArr, CoordsArr[21], CoordsArr[15], 6);
AddPointsBetween(CoordsArr, CoordsArr[9], CoordsArr[17], 6);
AddPointsBetween(CoordsArr, CoordsArr[17], CoordsArr[10], 6);
AddPointsBetween(CoordsArr, CoordsArr[10], CoordsArr[9], 6);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[2], 6);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[6], 6);
AddPointsBetween(CoordsArr, CoordsArr[20], CoordsArr[21], 6);
AddPointsBetween(CoordsArr, CoordsArr[10], CoordsArr[11], 6);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[4], 6);
AddPointsBetween(CoordsArr, CoordsArr[7], CoordsArr[0], 6);
AddPointsBetween(CoordsArr, CoordsArr[16], CoordsArr[17], 6);
AddPointsBetween(CoordsArr, CoordsArr[18], CoordsArr[19], 6);
AddPointsBetween(CoordsArr, CoordsArr[12], CoordsArr[13], 6);
AddPointsBetween(CoordsArr, CoordsArr[22], CoordsArr[23], 6);
AddPointsBetween(CoordsArr, CoordsArr[14], CoordsArr[15], 6);
AddPointsBetween(CoordsArr, CoordsArr[8], CoordsArr[9], 6);
end;
procedure InitHeadAcke(var CoordsArr : TCoords3DArr);
var
i : Integer;
begin
AddPoint(CoordsArr, XYZ(1, 0.4, 0.2)); // 0
AddPoint(CoordsArr, XYZ(-1, 0.4, 0.2)); // 1
AddPoint(CoordsArr, XYZ(-1, -0.4, 0.2)); // 2
AddPoint(CoordsArr, XYZ(1, -0.4, 0.2)); // 3
AddPoint(CoordsArr, XYZ(1, 0.4, -0.2)); // 4
AddPoint(CoordsArr, XYZ(-1, 0.4, -0.2)); // 5
AddPoint(CoordsArr, XYZ(-1, -0.4, -0.2)); // 6
AddPoint(CoordsArr, XYZ(1, -0.4, -0.2)); // 7
AddPoint(CoordsArr, XYZ(0.4, 0.2, 1)); // 8
AddPoint(CoordsArr, XYZ(0.4, 0.2, -1)); // 9
AddPoint(CoordsArr, XYZ(-0.4, 0.2, -1)); // 10
AddPoint(CoordsArr, XYZ(-0.4, 0.2, 1)); // 11
AddPoint(CoordsArr, XYZ(0.4, -0.2, 1)); // 12
AddPoint(CoordsArr, XYZ(0.4, -0.2, -1)); // 13
AddPoint(CoordsArr, XYZ(-0.4, -0.2, -1)); // 14
AddPoint(CoordsArr, XYZ(-0.4, -0.2, 1)); // 15
AddPoint(CoordsArr, XYZ(0.2, 1, 0.4)); // 16
AddPoint(CoordsArr, XYZ(0.2, -1, 0.4)); // 17
AddPoint(CoordsArr, XYZ(0.2, -1, -0.4)); // 18
AddPoint(CoordsArr, XYZ(0.2, 1, -0.4)); // 19
AddPoint(CoordsArr, XYZ(-0.2, 1, 0.4)); // 20
AddPoint(CoordsArr, XYZ(-0.2, -1, 0.4)); // 21
AddPoint(CoordsArr, XYZ(-0.2, -1, -0.4)); // 22
AddPoint(CoordsArr, XYZ(-0.2, 1, -0.4)); // 23
for i := 0 to 5 do
begin
AddPointsBetween(CoordsArr, CoordsArr[4*i+0], CoordsArr[4*i+1], 10);
AddPointsBetween(CoordsArr, CoordsArr[4*i+1], CoordsArr[4*i+2], 5);
AddPointsBetween(CoordsArr, CoordsArr[4*i+2], CoordsArr[4*i+3], 10);
AddPointsBetween(CoordsArr, CoordsArr[4*i+3], CoordsArr[4*i+0], 5);
end;
for i := 0 to 2 do
begin
AddPointsBetween(CoordsArr, CoordsArr[8*i+0], CoordsArr[8*i+4], 3);
AddPointsBetween(CoordsArr, CoordsArr[8*i+1], CoordsArr[8*i+5], 3);
AddPointsBetween(CoordsArr, CoordsArr[8*i+2], CoordsArr[8*i+6], 3);
AddPointsBetween(CoordsArr, CoordsArr[8*i+3], CoordsArr[8*i+7], 3);
end;
end;
procedure InitSphere1(var CoordsArr : TCoords3DArr);
var
nokr, nang : Integer;
ango, anga, z : Single;
begin
for nang := -9 to 10 do
begin
anga := (nang-0.5)/20 *pi;
z := sin(anga);
for nokr := 0 to 11 do
begin
ango := nokr/12*pi*2;
AddPoint(CoordsArr, XYZ(sin(ango)*sqrt(1-z*z), cos(ango)*sqrt(1-z*z), z));
end;
end;
end;
procedure InitSphere2(var CoordsArr : TCoords3DArr);
var
nokr, nang : Integer;
ango, anga, z : Single;
begin
for nang := -5 to 6 do
begin
anga := (nang-0.5)/12 *pi;
z := sin(anga);
for nokr := 0 to 19 do
begin
ango := nokr/20*pi*2;
AddPoint(CoordsArr, XYZ(sin(ango)*sqrt(1-z*z), cos(ango)*sqrt(1-z*z), z));
end;
end;
end;
procedure InitSphere3(var CoordsArr : TCoords3DArr);
var
nokr, nsl : Integer;
anga, ango, x, y, z : Single;
begin
for nsl := -4 to 5 do
begin
anga := (nsl-0.5)/10*pi;
z := sin(anga);
for nokr := 0 to 7 do
begin
ango := nokr/8*2*pi;
x := sin(ango)*sqrt(1-z*z);
y := cos(ango)*sqrt(1-z*z);
AddPoint(CoordsArr, XYZ(x, y, z));
AddPoint(CoordsArr, XYZ(x, z, y));
AddPoint(CoordsArr, XYZ(z, x, y));
end;
end;
end;
procedure InitTor(var CoordsArr : TCoords3DArr);
var
n, k : Integer;
r, xa, ya, za, ang : Single;
begin
// torus
for n := 0 to (PointsCount div 12)-1 do
begin
ang := n/PointsCount * 12 * 2 *pi;
for k := 0 to 11 do
begin
r := 1+0.33*cos(k/12*2*pi);
za := 0.33*sin(k/12*2*pi);
xa := r*cos(ang);
ya := r*sin(ang);
AddPoint(CoordsArr, XYZ(xa, ya, za));
end;
end;
end;
procedure InitSpiral(var CoordsArr : TCoords3DArr);
var
n : Integer;
angm, ang, r, xa, ya, za : Single;
begin
// spiral
for n := 0 to (PointsCount-1) do
begin
angm := n/PointsCount * 2*pi;
ang := angm*16;
za := 0.33*sin(ang);
r := 1+0.33*cos(ang);
xa := r*cos(angm);
ya := r*sin(angm);
AddPoint(CoordsArr, XYZ(xa, ya, za));
end;
end;
procedure InitFootball(var CoordsArr : TCoords3DArr);
var
n : Integer;
arr : array[0..9] of TCoords3D;
const
Ang = 2.59;
h = 1;
r = 0.431;
sin_pi_5 = 0.588;
cos_pi_5 = 0.809;
r0 = 0.5*r/sin_pi_5;
cos_Ang=-0.852;
r1_1 = r0-r*cos_Ang;
r1_2 = r0-2*r*cos_Ang;
c = 2*cos_pi_5/(4*cos_pi_5+1);
ap = 2;
begin
for n := 0 to 4 do // 0-4
begin
AddPoint(CoordsArr, XYZ(r0*cos(n/5*2*pi), r0*sin(n/5*2*pi), h));
end;
for n := 0 to 4 do // 5-9
AddPoint(CoordsArr, XYZ(r1_1*cos(n/5*2*pi), r1_1*sin(n/5*2*pi), h-r*sin(Ang) ));
for n := 0 to 4 do
arr[n] := XYZ(r1_2*cos(n/5*2*pi), r1_2*sin(n/5*2*pi), h-2*r*sin(Ang));
for n := 0 to 4 do // 10-19
AddPointsBetween(CoordsArr, arr[n], arr[(n+1) mod 5], 2);
// 20-29
for n := 0 to 4 do
begin
if n>0 then
Arr[0] := XYZ(
CoordsArr[n+5].X+(CoordsArr[2*n+9].X-CoordsArr[n+5].X)*(1+2*cos(pi/5)),
CoordsArr[n+5].Y+(CoordsArr[2*n+9].Y-CoordsArr[n+5].Y)*(1+2*cos(pi/5)),
CoordsArr[n+5].Z+(CoordsArr[2*n+9].Z-CoordsArr[n+5].Z)*(1+2*cos(pi/5))
) else
arr[0] := XYZ(
CoordsArr[5].X+(CoordsArr[19].X-CoordsArr[5].X)*(1+2*cos(pi/5)),
CoordsArr[5].Y+(CoordsArr[19].Y-CoordsArr[5].Y)*(1+2*cos(pi/5)),
CoordsArr[5].Z+(CoordsArr[19].Z-CoordsArr[5].Z)*(1+2*cos(pi/5)));
arr[1] := XYZ(
CoordsArr[n+5].X+(CoordsArr[2*n+10].X-CoordsArr[n+5].X)*(1+2*cos(pi/5)),
CoordsArr[n+5].Y+(CoordsArr[2*n+10].Y-CoordsArr[n+5].Y)*(1+2*cos(pi/5)),
CoordsArr[n+5].Z+(CoordsArr[2*n+10].Z-CoordsArr[n+5].Z)*(1+2*cos(pi/5)));
AddPoint(CoordsArr, XYZ(
arr[0].X+(arr[1].X-arr[0].X)*c,
arr[0].Y+(arr[1].Y-arr[0].Y)*c,
arr[0].Z+(arr[1].Z-arr[0].Z)*c));
AddPoint(CoordsArr, XYZ(
arr[1].X-(arr[1].X-arr[0].X)*c,
arr[1].Y-(arr[1].Y-arr[0].Y)*c,
arr[1].Z-(arr[1].Z-arr[0].Z)*c));
end;
for n := 0 to 9 do
arr[n] := XYZ(
CoordsArr[n+10].X+(CoordsArr[((n+1) mod 10)+20].X-CoordsArr[n+10].X)*2,
CoordsArr[n+10].Y+(CoordsArr[((n+1) mod 10)+20].Y-CoordsArr[n+10].Y)*2,
CoordsArr[n+10].Z+(CoordsArr[((n+1) mod 10)+20].Z-CoordsArr[n+10].Z)*2);
for n := 0 to 4 do // 30-39
AddPointsBetween(CoordsArr, arr[2*n], arr[2*n+1], 2);
for n := 0 to 9 do
begin
arr[n] := XYZ(
CoordsArr[n+20].X+(CoordsArr[((n+9) mod 10)+30].X-CoordsArr[n+20].X)*2,
CoordsArr[n+20].Y+(CoordsArr[((n+9) mod 10)+30].Y-CoordsArr[n+20].Y)*2,
CoordsArr[n+20].Z+(CoordsArr[((n+9) mod 10)+30].Z-CoordsArr[n+20].Z)*2);
end;
for n := 0 to 4 do // 40-49
AddPointsBetween(CoordsArr, arr[2*n], arr[2*n+1], 2);
for n := 0 to 4 do
begin
arr[0] := XYZ(
CoordsArr[2*n+30].X+(CoordsArr[2*n+41].X-CoordsArr[2*n+30].X)*(1+2*sin(pi/10)),
CoordsArr[2*n+30].Y+(CoordsArr[2*n+41].Y-CoordsArr[2*n+30].Y)*(1+2*sin(pi/10)),
CoordsArr[2*n+30].Z+(CoordsArr[2*n+41].Z-CoordsArr[2*n+30].Z)*(1+2*sin(pi/10)));
if n<4 then
arr[1] := XYZ(
CoordsArr[2*n+31].X+(CoordsArr[2*n+42].X-CoordsArr[2*n+31].X)*(1+2*sin(pi/10)),
CoordsArr[2*n+31].Y+(CoordsArr[2*n+42].Y-CoordsArr[2*n+31].Y)*(1+2*sin(pi/10)),
CoordsArr[2*n+31].Z+(CoordsArr[2*n+42].Z-CoordsArr[2*n+31].Z)*(1+2*sin(pi/10))) else
arr[1] := XYZ(
CoordsArr[39].X+(CoordsArr[40].X-CoordsArr[39].X)*(1+2*sin(pi/10)),
CoordsArr[39].Y+(CoordsArr[40].Y-CoordsArr[39].Y)*(1+2*sin(pi/10)),
CoordsArr[39].Z+(CoordsArr[40].Z-CoordsArr[39].Z)*(1+2*sin(pi/10)));
AddPointsBetween(CoordsArr, arr[0], arr[1], 1); // 50-54
end;
for n := 0 to 9 do
begin
if n>0 then arr[n] := XYZ(
CoordsArr[n+40].X+(CoordsArr[((n+1) div 2)+49].X-CoordsArr[n+40].X)*2,
CoordsArr[n+40].Y+(CoordsArr[((n+1) div 2)+49].Y-CoordsArr[n+40].Y)*2,
CoordsArr[n+40].Z+(CoordsArr[((n+1) div 2)+49].Z-CoordsArr[n+40].Z)*2
) else
arr[n] := XYZ(
CoordsArr[40].X+(CoordsArr[54].X-CoordsArr[40].X)*2,
CoordsArr[40].Y+(CoordsArr[54].Y-CoordsArr[40].Y)*2,
CoordsArr[40].Z+(CoordsArr[54].Z-CoordsArr[40].Z)*2);
end;
for n := 0 to 4 do // 55-59
AddPoint(CoordsArr, XYZ(
arr[2*n+0].X+(arr[2*n+1].X-arr[2*n+0].X)*0.333,
arr[2*n+0].Y+(arr[2*n+1].Y-arr[2*n+0].Y)*0.333,
arr[2*n+0].Z+(arr[2*n+1].Z-arr[2*n+0].Z)*0.333));
for n := 0 to 4 do
begin
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[(n+1) mod 5], ap);
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[n+5], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+5], CoordsArr[2*n+10], ap);
if n>0 then
AddPointsBetween(CoordsArr, CoordsArr[n+5], CoordsArr[2*n+9], ap) else
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[19], ap);
AddPointsBetween(CoordsArr, CoordsArr[2*n+10], CoordsArr[2*n+11], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+10], CoordsArr[n+21], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+15], CoordsArr[((n+6) mod 10)+20], ap);
AddPointsBetween(CoordsArr, CoordsArr[2*n+20], CoordsArr[2*n+21], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+20], CoordsArr[((n+9) mod 10)+30], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+25], CoordsArr[n+34], ap);
AddPointsBetween(CoordsArr, CoordsArr[2*n+30], CoordsArr[2*n+31], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+30], CoordsArr[n+41], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+35], CoordsArr[((n+6) mod 10)+40], ap);
AddPointsBetween(CoordsArr, CoordsArr[2*n+40], CoordsArr[2*n+41], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+40], CoordsArr[ (((n+9) mod 10) div 2)+50], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+45], CoordsArr[(n div 2)+52], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+50], CoordsArr[((n+1) mod 5)+55], ap);
AddPointsBetween(CoordsArr, CoordsArr[n+55], CoordsArr[((n+1) mod 5)+55], ap);
end;
end;
procedure InitCube3(var CoordsArr : TCoords3DArr);
const
s3=0.577;
var
n : Integer;
begin
AddPoint(CoordsArr, XYZ( s3, s3, s3)); // 0
AddPoint(CoordsArr, XYZ(-s3, s3, s3)); // 1
AddPoint(CoordsArr, XYZ( s3, -s3, s3)); // 2
AddPoint(CoordsArr, XYZ(-s3, -s3, s3)); // 3
AddPoint(CoordsArr, XYZ( s3, s3, -s3)); // 4
AddPoint(CoordsArr, XYZ(-s3, s3, -s3)); // 5
AddPoint(CoordsArr, XYZ( s3, -s3, -s3)); // 6
AddPoint(CoordsArr, XYZ(-s3, -s3, -s3)); // 7
AddPoint(CoordsArr, XYZ(0, 0, 1)); // 8
AddPoint(CoordsArr, XYZ(0, 0, -1)); // 9
AddPoint(CoordsArr, XYZ(0, 1, 0)); // 10
AddPoint(CoordsArr, XYZ(0, -1, 0)); // 11
AddPoint(CoordsArr, XYZ(1, 0, 0)); // 12
AddPoint(CoordsArr, XYZ(-1, 0, 0)); // 13
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[1], 6);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[3], 6);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[2], 6);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[0], 6);
AddPointsBetween(CoordsArr, CoordsArr[4], CoordsArr[5], 6);
AddPointsBetween(CoordsArr, CoordsArr[5], CoordsArr[7], 6);
AddPointsBetween(CoordsArr, CoordsArr[7], CoordsArr[6], 6);
AddPointsBetween(CoordsArr, CoordsArr[6], CoordsArr[4], 6);
AddPointsBetween(CoordsArr, CoordsArr[0], CoordsArr[4], 6);
AddPointsBetween(CoordsArr, CoordsArr[1], CoordsArr[5], 6);
AddPointsBetween(CoordsArr, CoordsArr[2], CoordsArr[6], 6);
AddPointsBetween(CoordsArr, CoordsArr[3], CoordsArr[7], 6);
for n := 0 to 3 do
begin
AddPointsBetween(CoordsArr, CoordsArr[n], CoordsArr[8], 6);
AddPointsBetween(CoordsArr, CoordsArr[2*n+1], CoordsArr[13], 6);
AddPointsBetween(CoordsArr, CoordsArr[2*n], CoordsArr[12], 6);
AddPointsBetween(CoordsArr, CoordsArr[n+4], CoordsArr[9], 6);
AddPointsBetween(CoordsArr, CoordsArr[(n+4) mod 6], CoordsArr[10], 6);
AddPointsBetween(CoordsArr, CoordsArr[2+((n+4) mod 6)], CoordsArr[11], 6);
end;
for n := 0 to 9 do DupPoint(CoordsArr);
end;
procedure UnSort(var CoordsArr : TCoords3DArr);
var
Temp : TCoords3D;
i, k, l : Integer;
begin
for i := 0 to 1023 do
begin
k := Random(PointsCount);
l := Random(PointsCount);
Temp := CoordsArr[k];
CoordsArr[k] := CoordsArr[l];
CoordsArr[l] := Temp;
end;
end;
procedure InitShape(var CoordsArr : TCoords3dArr);
var
n, OldShInd : Integer;
Ok : Boolean;
begin
FillChar(CoordsArr, SizeOf(TCoords3DArr), 0);
Ok := False;
PIndex := 0;
OldShInd := ShapeInd;
for n := 0 to shCount-1 do
if (not (ShapesArr[n] in ShapesSet)) then Ok := True;
if (not Ok) then ShapesSet := [];
repeat
ShapeInd := Trunc(Random(100)) mod shCount;
until not (ShapesArr[ShapeInd] in ShapesSet) and (ShapeInd<>OldShInd);
ShapesSet := ShapesSet+[ShapesArr[ShapeInd]];
case ShapesArr[ShapeInd] of
shTriangle1 : InitTriangle1(CoordsArr);
shTriangle2 : InitTriangle2(CoordsArr);
shCube : InitCube(CoordsArr);
shCube2 : InitCube2(CoordsArr);
shCube3 : InitCube3(CoordsArr);
shPyramideTri : InitPyramideTri(CoordsArr);
shOct : InitOctaedr(CoordsArr);
shIco : InitIcosaedr(CoordsArr);
shSphere1 : InitSphere1(CoordsArr);
shSphere2 : InitSphere2(CoordsArr);
shSphere3 : InitSphere3(CoordsArr);
shDodecaedr : InitDodecaedr(CoordsArr);
shPyramideCut : InitPyramideCut(CoordsArr);
shCubeCut : InitCubeCut(CoordsArr);
shHeadAcke : InitHeadAcke(CoordsArr);
shTor : InitTor(CoordsArr);
shSpiral : InitSpiral(CoordsArr);
else InitFootball(CoordsArr);
end;
if UnSortPoints then UnSort(CoordsArr); // mix points
end;
procedure CalcPos;
var
n : Integer;
begin
for n := 0 to PointsCount-1 do
begin
Points[n].X := PCoords1[n].X+(PCoords2[n].X-PCoords1[n].X)*Percent/100;
Points[n].Y := PCoords1[n].Y+(PCoords2[n].Y-PCoords1[n].Y)*Percent/100;
Points[n].Z := PCoords1[n].Z+(PCoords2[n].Z-PCoords1[n].Z)*Percent/100;
end;
end;
end.
| 35.390875 | 93 | 0.609818 |
838c2b8ede5ff9c7f797f31a77c21fea582c2df0
| 1,824 |
dfm
|
Pascal
|
ThsFramework/Forms/OutputForms/DbGrid/ufrmHesapPlanlari.dfm
|
3ddark/Ths-Erp-Framewrok
|
c6569f7f64db10e423d6cc56e91c54184073a9b4
|
[
"Unlicense"
] | 6 |
2019-07-06T23:08:39.000Z
|
2021-05-04T19:42:01.000Z
|
ThsFramework/Forms/OutputForms/DbGrid/ufrmHesapPlanlari.dfm
|
3ddark/Ths-Erp-Framewrok
|
c6569f7f64db10e423d6cc56e91c54184073a9b4
|
[
"Unlicense"
] | null | null | null |
ThsFramework/Forms/OutputForms/DbGrid/ufrmHesapPlanlari.dfm
|
3ddark/Ths-Erp-Framewrok
|
c6569f7f64db10e423d6cc56e91c54184073a9b4
|
[
"Unlicense"
] | 4 |
2019-03-18T16:57:09.000Z
|
2022-02-24T02:33:31.000Z
|
inherited frmHesapPlanlari: TfrmHesapPlanlari
Caption = 'Hesap Planlar'#305
ClientHeight = 311
ClientWidth = 548
ExplicitWidth = 564
ExplicitHeight = 350
PixelsPerInch = 96
TextHeight = 13
inherited pnlMain: TPanel
Width = 544
Height = 245
ExplicitWidth = 544
ExplicitHeight = 245
inherited splLeft: TSplitter
Height = 128
ExplicitHeight = 219
end
inherited splHeader: TSplitter
Width = 542
ExplicitWidth = 554
end
inherited pnlLeft: TPanel
Height = 125
ExplicitHeight = 125
end
inherited pnlHeader: TPanel
Width = 538
ExplicitWidth = 538
end
inherited pnlContent: TPanel
Width = 433
Height = 125
ExplicitWidth = 433
ExplicitHeight = 125
inherited dbgrdBase: TDBGrid
Width = 431
Height = 123
end
end
inherited pnlButtons: TPanel
Top = 165
Width = 542
ExplicitTop = 165
ExplicitWidth = 542
inherited flwpnlLeft: TFlowPanel
Width = 233
ExplicitWidth = 233
end
inherited flwpnlRight: TFlowPanel
Left = 438
Width = 104
ExplicitLeft = 438
ExplicitWidth = 104
inherited imgFilterRemove: TImage
Left = 72
ExplicitLeft = 72
end
end
end
end
inherited pnlBottom: TPanel
Top = 249
Width = 544
ExplicitTop = 249
ExplicitWidth = 544
inherited btnAccept: TButton
Left = 335
ExplicitLeft = 335
end
inherited btnDelete: TButton
Left = 231
ExplicitLeft = 231
end
inherited btnClose: TButton
Left = 439
ExplicitLeft = 439
end
end
inherited stbBase: TStatusBar
Top = 293
Width = 548
ExplicitTop = 293
ExplicitWidth = 548
end
end
| 21.209302 | 45 | 0.61239 |
f189b325c186cbd6c77a1c732e84e6e429443a2d
| 38,257 |
pas
|
Pascal
|
CPRSChart/OR_30_377V9_SRC/Packages/XE5/OR/Source/ORDtTm.pas
|
VHAINNOVATIONS/Transplant
|
a6c000a0df4f46a17330cec95ff25119fca1f472
|
[
"Apache-2.0"
] | 1 |
2015-11-03T14:56:42.000Z
|
2015-11-03T14:56:42.000Z
|
CPRSChart/OR_30_377V9_SRC/Packages/XE5/OR/Source/ORDtTm.pas
|
VHAINNOVATIONS/Transplant
|
a6c000a0df4f46a17330cec95ff25119fca1f472
|
[
"Apache-2.0"
] | null | null | null |
CPRSChart/OR_30_377V9_SRC/Packages/XE5/OR/Source/ORDtTm.pas
|
VHAINNOVATIONS/Transplant
|
a6c000a0df4f46a17330cec95ff25119fca1f472
|
[
"Apache-2.0"
] | null | null | null |
unit ORDtTm;
{$O-}
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons,
Grids, Calendar, ExtCtrls, ORFn, ORNet, ORDtTmCal, Mask, ComCtrls, OR2006Compatibility,
ORCtrls, VAClasses, VA508AccessibilityManager, VA508AccessibilityRouter;
type
TORfrmDtTm = class(Tfrm2006Compatibility)
VA508AccessibilityManager1: TVA508AccessibilityManager;
TxtDateSelected: TLabel;
Label1: TLabel;
bvlFrame: TBevel;
lblDate: TPanel;
txtTime: TEdit;
lstHour: TListBox;
lstMinute: TListBox;
cmdOK: TButton;
cmdCancel: TButton;
calSelect: TORCalendar;
pnlPrevMonth: TPanel;
pnlNextMonth: TPanel;
imgPrevMonth: TImage;
imgNextMonth: TImage;
bvlRButton: TBevel;
cmdToday: TButton;
cmdNow: TButton;
cmdMidnight: TButton;
procedure FormCreate(Sender: TObject);
procedure calSelectChange(Sender: TObject);
procedure cmdTodayClick(Sender: TObject);
procedure txtTimeChange(Sender: TObject);
procedure lstHourClick(Sender: TObject);
procedure lstMinuteClick(Sender: TObject);
procedure cmdNowClick(Sender: TObject);
procedure cmdOKClick(Sender: TObject);
procedure cmdCancelClick(Sender: TObject);
procedure imgPrevMonthClick(Sender: TObject);
procedure imgNextMonthClick(Sender: TObject);
procedure imgPrevMonthMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure imgNextMonthMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure imgPrevMonthMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure imgNextMonthMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure cmdMidnightClick(Sender: TObject);
private
FFromSelf: Boolean;
FNowPressed: Boolean;
TimeIsRequired: Boolean;
protected
procedure Loaded; override;
end;
{ TORDateTimeDlg }
TORDateTimeDlg = class(TComponent)
private
FDateTime: TDateTime;
FDateOnly: Boolean;
FRequireTime: Boolean;
FRelativeTime: string;
function GetFMDateTime: TFMDateTime;
procedure SetDateOnly(Value: Boolean);
procedure SetFMDateTime(Value: TFMDateTime);
procedure SetRequireTime(Value: Boolean);
public
constructor Create(AOwner: TComponent); override;
function Execute: Boolean;
property RelativeTime: string read FRelativeTime;
published
property FMDateTime: TFMDateTime read GetFMDateTime write SetFMDateTime;
property DateOnly: Boolean read FDateOnly write SetDateOnly;
property RequireTime: Boolean read FRequireTime write SetRequireTime;
end;
// 508 class
TORDateButton = class (TBitBtn);
{ TORDateBox }
TORDateEdit = class(TEdit)
protected
procedure CreateParams(var Params: TCreateParams); override;
end;
TORDateBox = class(TORDateEdit, IVADynamicProperty, IORBlackColorModeCompatible)
private
FFMDateTime: TFMDateTime;
FDateOnly: Boolean;
FRequireTime: Boolean;
FButton: TORDateButton;
FFormat: string;
FTimeIsNow: Boolean;
FTemplateField: boolean;
FCaption: TStaticText;
FBlackColorMode: boolean;
FOnDateDialogClosed : TNotifyEvent;
procedure ButtonClick(Sender: TObject);
function GetFMDateTime: TFMDateTime;
function GetRelativeTime: string;
procedure SetDateOnly(Value: Boolean);
procedure SetFMDateTime(Value: TFMDateTime);
procedure SetEditRect;
procedure SetRequireTime(Value: Boolean);
procedure UpdateText;
procedure WMSize(var Message: TWMSize); message WM_SIZE;
procedure SetTemplateField(const Value: boolean);
procedure SetCaption(const Value: string);
function GetCaption(): string;
protected
procedure Change; override;
procedure KeyPress(var Key: Char); override;
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
property DateButton: TORDateButton read FButton;
procedure SetEnabled(Value: Boolean); override; //wat v28 when disabling TORDateBox, button still appears active, this addresses that
public
constructor Create(AOwner: TComponent); override;
function IsValid: Boolean;
procedure Validate(var ErrMsg: string);
procedure SetBlackColorMode(Value: boolean);
function SupportsDynamicProperty(PropertyID: integer): boolean;
function GetDynamicProperty(PropertyID: integer): string;
property Format: string read FFormat write FFormat;
property RelativeTime: string read GetRelativeTime;
property TemplateField: boolean read FTemplateField write SetTemplateField;
published
property FMDateTime: TFMDateTime read GetFMDateTime write SetFMDateTime;
property DateOnly: Boolean read FDateOnly write SetDateOnly;
property RequireTime: Boolean read FRequireTime write SetRequireTime;
property Caption: string read GetCaption write SetCaption;
property OnDateDialogClosed: TNotifyEvent read FOnDateDialogClosed write FOnDateDialogClosed;
end;
// 508 classes
TORDayCombo = class (TORComboBox);
TORMonthCombo = class (TORComboBox);
TORYearEdit = class(TMaskEdit)
private
FTemplateField: boolean;
procedure SetTemplateField(const Value: boolean);
protected
property TemplateField: boolean read FTemplateField write SetTemplateField;
end;
TORYearEditClass = Class of TORYearEdit;
TORDateCombo = class(TCustomPanel, IORBlackColorModeCompatible)
private
FYearChanging: boolean;
FMonthCombo: TORMonthCombo;
FDayCombo: TORDayCombo;
FYearEdit: TORYearEdit;
FYearUD: TUpDown;
FCalBtn: TORDateButton;
FIncludeMonth: boolean;
FIncludeDay: boolean;
FIncludeBtn: boolean;
FLongMonths: boolean;
FMonth: integer;
FDay: integer;
FYear: integer;
FCtrlsCreated: boolean;
FOnChange: TNotifyEvent;
FRebuilding: boolean;
FTemplateField: boolean;
FBlackColorMode: boolean;
FORYearEditClass: TORYearEditClass;
procedure SetIncludeBtn(const Value: boolean);
procedure SetIncludeDay(Value: boolean);
procedure SetIncludeMonth(const Value: boolean);
procedure SetLongMonths(const Value: boolean);
procedure SetDay(Value: integer);
procedure SetMonth(Value: integer);
procedure SetYear(const Value: integer);
function GetFMDate: TFMDateTime;
procedure SetFMDate(const Value: TFMDateTime);
procedure CMFontChanged(var Message: TMessage); message CM_FONTCHANGED;
procedure SetTemplateField(const Value: boolean);
protected
procedure Rebuild; virtual;
function InitDays(GetSize: boolean): integer;
function InitMonths(GetSize: boolean): integer;
function GetYearSize: integer;
procedure DoChange;
procedure MonthChanged(Sender: TObject);
procedure DayChanged(Sender: TObject);
procedure YearChanged(Sender: TObject);
procedure BtnClicked(Sender: TObject);
procedure YearUDChange(Sender: TObject; var AllowChange: Boolean;
NewValue: integer; Direction: TUpDownDirection);
procedure YearKeyPress(Sender: TObject; var Key: Char);
procedure CheckDays;
procedure Loaded; override;
procedure Paint; override;
procedure Resized(Sender: TObject);
property MonthCombo: TORMonthCombo read FMonthCombo;
property DayCombo: TORDayCombo read FDayCombo;
property YearEdit: TORYearEdit read FYearEdit;
property YearUD: TUpDown read FYearUD;
property CalBtn: TORDateButton read FCalBtn;
property ORYearEditClass: TORYearEditClass read FORYearEditClass write FORYearEditClass;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function DateText: string;
procedure SetBlackColorMode(Value: boolean);
property TemplateField: boolean read FTemplateField write SetTemplateField;
property FMDate: TFMDateTime read GetFMDate write SetFMDate;
published
function Text: string;
property IncludeBtn: boolean read FIncludeBtn write SetIncludeBtn;
property IncludeDay: boolean read FIncludeDay write SetIncludeDay;
property IncludeMonth: boolean read FIncludeMonth write SetIncludeMonth;
property LongMonths: boolean read FLongMonths write SetLongMonths default FALSE;
property Month: integer read FMonth write SetMonth;
property Day: integer read FDay write SetDay;
property Year: integer read FYear write SetYear;
property OnChange: TNotifyEvent read FOnChange write FOnChange;
property Anchors;
property Enabled;
property Font;
property ParentColor;
property ParentFont;
property TabOrder;
property TabStop;
property Visible;
end;
function IsLeapYear(AYear: Integer): Boolean;
function DaysPerMonth(AYear, AMonth: Integer): Integer;
procedure Register;
implementation
{$R *.DFM}
{$R ORDtTm}
const
FMT_DATETIME = 'mmm d,yyyy@hh:nn';
FMT_DATEONLY = 'mmm d,yyyy';
AdjVertSize = 8;
FontHeightText = 'BEFHILMSTVWXZfgjmpqtyk';
var
uServerToday: TFMDateTime;
FormatSettings: TFormatSettings;
{ Server-dependent functions ---------------------------------------------------------------- }
function ActiveBroker: Boolean;
begin
Result := False;
if (RPCBrokerV <> nil) and RPCBrokerV.Connected then Result := True;
end;
function ServerFMNow: TFMDateTime;
begin
if ActiveBroker
then Result := StrToFloat(sCallV('ORWU DT', ['NOW']))
else Result := DateTimeToFMDateTime(Now);
end;
function ServerNow: TDateTime;
begin
if ActiveBroker
then Result := FMDateTimeToDateTime(ServerFMNow)
else Result := Now;
end;
function ServerToday: TDateTime;
begin
if uServerToday = 0 then uServerToday := Int(ServerFMNow);
Result := FMDateTimeToDateTime(uServerToday);
end;
function ServerParseFMDate(const AString: string): TFMDateTime;
begin
if ActiveBroker
then Result := StrToFloat(sCallV('ORWU DT', [AString, 'TSX']))
else Result := 0;
end;
function RelativeDateTime(ADateTime: TDateTime): string;
var
Offset: Integer;
h,n,s,l: Word;
ATime: string;
begin
Offset := Trunc(Int(ADateTime) - Int(ServerToday));
if Offset < 0 then Result := 'T' + IntToStr(Offset)
else if Offset = 0 then Result := 'T'
else Result := 'T+' + IntToStr(Offset);
DecodeTime(ADateTime, h, n, s, l);
ATime := Format('@%.2d:%.2d', [h, n]);
if ATime <> '@00:00' then Result := Result + ATime;
end;
procedure LoadEllipsis(bitmap: TBitMap; BlackColorMode: boolean);
var
ResName: string;
begin
if BlackColorMode then
ResName := 'BLACK_BMP_ELLIPSIS'
else
ResName := 'BMP_ELLIPSIS';
bitmap.LoadFromResourceName(hInstance, ResName);
end;
{ TfrmORDtTm -------------------------------------------------------------------------------- }
procedure TORfrmDtTm.FormCreate(Sender: TObject);
begin
ResizeAnchoredFormToFont(self);
lstHour.TopIndex := 6;
FFromSelf := False;
// calSelectChange(Self);
If ScreenReaderSystemActive then begin
GetScreenReader.Speak(Label1.Caption);
end;
end;
procedure TORfrmDtTm.calSelectChange(Sender: TObject);
begin
lblDate.Caption := FormatDateTime('mmmm d, yyyy', calSelect.CalendarDate);
FNowPressed := False;
If ScreenReaderSystemActive then begin
//TxtDateSelected.Caption := lblDate.Caption;
TxtDateSelected.Caption := Label1.Caption + ' ' + lblDate.Caption;
GetScreenReader.Speak(lblDate.Caption);
end;
end;
procedure TORfrmDtTm.imgPrevMonthMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
pnlPrevMonth.BevelOuter := bvLowered;
end;
procedure TORfrmDtTm.imgNextMonthMouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
pnlNextMonth.BevelOuter := bvLowered;
end;
procedure TORfrmDtTm.imgPrevMonthClick(Sender: TObject);
begin
calSelect.PrevMonth;
end;
procedure TORfrmDtTm.imgNextMonthClick(Sender: TObject);
begin
calSelect.NextMonth;
end;
procedure TORfrmDtTm.imgPrevMonthMouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
pnlPrevMonth.BevelOuter := bvRaised;
end;
procedure TORfrmDtTm.imgNextMonthMouseUp(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
pnlNextMonth.BevelOuter := bvRaised;
end;
procedure TORfrmDtTm.cmdTodayClick(Sender: TObject);
begin
calSelect.CalendarDate := ServerToday;
lstHour.ItemIndex := -1;
lstMinute.ItemIndex := -1;
txtTime.Text := '';
end;
procedure TORfrmDtTm.txtTimeChange(Sender: TObject);
begin
if not FFromSelf then begin
lstHour.ItemIndex := -1;
lstMinute.ItemIndex := -1;
end;
FNowPressed := False;
end;
procedure TORfrmDtTm.lstHourClick(Sender: TObject);
begin
if lstHour.ItemIndex = 0 then lstMinute.Items[0] := ':01 --' else lstMinute.Items[0] := ':00 --'; //<------ NEW CODE
if lstMinute.ItemIndex < 0 then lstMinute.ItemIndex := 0;
lstMinuteClick(Self);
end;
procedure TORfrmDtTm.lstMinuteClick(Sender: TObject);
var
AnHour, AMinute: Integer;
begin
if lstHour.ItemIndex >= 0 then begin
AnHour := lstHour.ItemIndex;
AMinute := lstMinute.ItemIndex * 5;
if (AnHour = 0) and (AMinute = 0) then AMinute := 1; //<-------------- NEW CODE
FFromSelf := True;
txtTime.Text := Format('%.2d:%.2d ', [AnHour, AMinute]);
FFromSelf := False;
end;
end;
procedure TORfrmDtTm.cmdNowClick(Sender: TObject);
begin
calSelect.CalendarDate := ServerToday;
txtTime.Text := FormatDateTime('hh:nn', ServerNow); // if ampm time
FNowPressed := True;
end;
procedure TORfrmDtTm.cmdMidnightClick(Sender: TObject);
begin
txtTime.Text := '23:59'; // if military time
end;
procedure TORfrmDtTm.cmdOKClick(Sender: TObject);
var
x: string;
begin
if TimeIsRequired and (Length(txtTime.Text) = 0) then begin
InfoBox('An entry for time is required.', 'Missing Time', MB_OK);
Exit;
end;
if Length(txtTime.Text) > 0 then begin
x := Trim(txtTime.Text);
if (x='00:00') or (x='0:00') or (x='00:00:00') or (x='0:00:00') then x := '00:01'; //<------- CHANGED CODE
StrToTime(x);
txtTime.Text := x;
end;
ModalResult := mrOK;
end;
procedure TORfrmDtTm.cmdCancelClick(Sender: TObject);
begin
ModalResult := mrCancel;
end;
procedure TORfrmDtTm.Loaded;
begin
inherited Loaded;
UpdateColorsFor508Compliance(Self);
end;
{ TORDateTimeDlg }
constructor TORDateTimeDlg.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
if not (csDesigning in ComponentState) then
FDateTime := ServerToday
else
FDateTime := SysUtils.Date;
end;
function TORDateTimeDlg.Execute: Boolean;
const
HORZ_SPACING = 8;
var
frmDtTm: TORfrmDtTm;
begin
frmDtTm := TORfrmDtTm.Create(Application);
try
with frmDtTm do begin
calSelect.CalendarDate := Int(FDateTime);
if Frac(FDateTime) > 0
//then txtTime.Text := FormatDateTime('h:nn ampm', FDateTime); // if ampm time
then txtTime.Text := FormatDateTime('hh:nn', FDateTime); // if military time
if RequireTime then TimeIsRequired := True;
if DateOnly then begin
txtTime.Visible := False;
lstHour.Visible := False;
lstMinute.Visible := False;
cmdNow.Visible := False;
cmdMidnight.Visible := False;
bvlFrame.Width := bvlFrame.Width - txtTime.Width - HORZ_SPACING;
cmdOK.Left := cmdOK.Left - txtTime.Width - HORZ_SPACING;
cmdCancel.Left := cmdOK.Left;
ClientWidth := ClientWidth - txtTime.Width - HORZ_SPACING;
end;
Result := (ShowModal = IDOK);
if Result then begin
FDateTime := Int(calSelect.CalendarDate);
if Length(txtTime.Text) > 0 then FDateTime := FDateTime + StrToTime(txtTime.Text);
if FNowPressed then
FRelativeTime := 'NOW'
else
FRelativeTime := RelativeDateTime(FDateTime);
end;
end;
finally
frmDtTm.Free;
end;
end;
function TORDateTimeDlg.GetFMDateTime: TFMDateTime;
begin
Result := DateTimeToFMDateTime(FDateTime);
end;
procedure TORDateTimeDlg.SetDateOnly(Value: Boolean);
begin
FDateOnly := Value;
if FDateOnly then begin
FRequireTime := False;
FDateTime := Int(FDateTime);
end;
end;
procedure TORDateTimeDlg.SetFMDateTime(Value: TFMDateTime);
begin
if Value > 0 then FDateTime := FMDateTimeToDateTime(Value);
end;
procedure TORDateTimeDlg.SetRequireTime(Value: Boolean);
begin
FRequireTime := Value;
if FRequireTime then FDateOnly := False;
end;
{ TORDateEdit ----------------------------------------------------------------------------- }
procedure TORDateEdit.CreateParams(var Params: TCreateParams);
{ sets a one line edit box to multiline style so the editing rectangle can be changed }
begin
inherited CreateParams(Params);
Params.Style := Params.Style or ES_MULTILINE or WS_CLIPCHILDREN;
end;
{ TORDateBox -------------------------------------------------------------------------------- }
constructor TORDateBox.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FButton := TORDateButton.Create(Self);
FButton.Parent := Self;
FButton.Width := 18;
FButton.Height := 17;
FButton.OnClick := ButtonClick;
FButton.TabStop := False;
FBlackColorMode := False;
LoadEllipsis(FButton.Glyph, FALSE);
FButton.Visible := True;
FFormat := FMT_DATETIME;
end;
procedure TORDateBox.WMSize(var Message: TWMSize);
var
ofs: integer;
begin
inherited;
if assigned(FButton) then begin
if BorderStyle = bsNone then
ofs := 0
else
ofs := 4;
FButton.SetBounds(Width - FButton.Width - ofs, 0, FButton.Width, Height - ofs);
end;
SetEditRect;
end;
procedure TORDateBox.SetTemplateField(const Value: boolean);
var
Y: integer;
begin
if(FTemplateField <> Value) then begin
FTemplateField := Value;
Y := TextHeightByFont(Font.Handle, FontHeightText);
if Value then begin
FButton.Width := Y+2;
Height := Y;
BorderStyle := bsNone;
end else begin
FButton.Width := 18;
Height := y + AdjVertSize;
BorderStyle := bsSingle;
end;
end;
end;
function TORDateBox.SupportsDynamicProperty(PropertyID: integer): boolean;
begin
Result := (PropertyID = DynaPropAccesibilityCaption);
end;
procedure TORDateBox.ButtonClick(Sender: TObject);
var
DateDialog: TORDateTimeDlg;
ParsedDate: TFMDateTime;
begin
DateDialog := TORDateTimeDlg.Create(Application);
if Length(Text) > 0 then begin
ParsedDate := ServerParseFMDate(Text);
if ParsedDate > -1 then FFMDateTime := ParsedDate else FFMDateTime := 0;
end;
DateDialog.DateOnly := FDateOnly;
DateDialog.FMDateTime := FFMDateTime;
DateDialog.RequireTime := FRequireTime;
if DateDialog.Execute then begin
FFMDateTime := DateDialog.FMDateTime;
UpdateText;
FTimeIsNow := DateDialog.RelativeTime = 'NOW';
end;
DateDialog.Free;
if Assigned(OnDateDialogClosed) then OnDateDialogClosed(Self);
if Visible and Enabled then //Some events may hide the component
SetFocus;
end;
procedure TORDateBox.Change;
begin
inherited Change;
FTimeIsNow := False;
end;
procedure TORDateBox.KeyDown(var Key: Word; Shift: TShiftState);
begin
inherited KeyDown(Key, Shift);
if (Key = VK_RETURN) then begin
FButton.Click;
Key := 0;
end;
end;
procedure TORDateBox.KeyPress(var Key: Char);
begin
if Key = #13 then Key := #0;
inherited;
end;
function TORDateBox.GetFMDateTime: TFMDateTime;
begin
Result := 0;
if Length(Text) > 0 then Result := ServerParseFMDate(Text);
FFMDateTime := Result;
end;
function TORDateBox.GetRelativeTime: string;
begin
Result := '';
if FTimeIsNow then Result := 'NOW'
else if UpperCase(Text) = 'NOW' then Result := 'NOW'
else if Length(Text) > 0 then begin
FFMDateTime := ServerParseFMDate(Text);
if FFMDateTime > 0 then Result := RelativeDateTime(FMDateTimeToDateTime(FFMDateTime));
end;
end;
procedure TORDateBox.SetDateOnly(Value: Boolean);
begin
FDateOnly := Value;
if FDateOnly then begin
FRequireTime := False;
FFMDateTime := Int(FFMDateTime);
if FFormat = FMT_DATETIME then FFormat := FMT_DATEONLY;
end;
UpdateText;
end;
procedure TORDateBox.SetFMDateTime(Value: TFMDateTime);
begin
FFMDateTime := Value;
UpdateText;
end;
procedure TORDateBox.SetRequireTime(Value: Boolean);
begin
FRequireTime := Value;
if FRequireTime then begin
if FFormat = FMT_DATEONLY then FFormat := FMT_DATETIME;
SetDateOnly(False);
end;
end;
procedure TORDateBox.SetEditRect;
{ change the edit rectangle to not hide the calendar button - taken from SPIN.PAS sample }
var
Loc: TRect;
begin
SendMessage(Handle, EM_GETRECT, 0, LongInt(@Loc));
Loc.Bottom := ClientHeight + 1; // +1 is workaround for windows paint bug
Loc.Right := FButton.Left - 2;
Loc.Top := 0;
Loc.Left := 0;
SendMessage(Handle, EM_SETRECTNP, 0, LongInt(@Loc));
end;
procedure TORDateBox.UpdateText;
begin
if FFMDateTime > 0 then begin
if (FFormat =FMT_DATETIME) and (Frac(FFMDateTime) = 0) then
Text := FormatFMDateTime(FMT_DATEONLY, FFMDateTime)
else
Text := FormatFMDateTime(FFormat, FFMDateTime);
end;
end;
procedure TORDateBox.Validate(var ErrMsg: string);
begin
ErrMsg := '';
if Length(Text) > 0 then begin
{
!!!!!! THIS HAS BEEN REMOVED AS IT CAUSED PROBLEMS WITH REMINDER DIALOGS - VHAISPBELLC !!!!!!
//We need to make sure that there is a date entered before parse
if FRequireTime and ((Pos('@', Text) = 0) or (Length(Piece(Text, '@', 1)) = 0)) then
ErrMsg := 'Date Required';
}
FFMDateTime := ServerParseFMDate(Text);
if FFMDateTime <= 0 then Errmsg := 'Invalid Date/Time';
if FRequireTime and (Frac(FFMDateTime) = 0) then ErrMsg := 'Time Required';
if FDateOnly and (Frac(FFMDateTime) > 0) then ErrMsg := 'Time not Required';
end;
end;
function TORDateBox.IsValid: Boolean;
var
x: string;
begin
Validate(x);
Result := (Length(x) = 0);
if (Length(Text) = 0) then Result := False;
end;
procedure TORDateBox.SetBlackColorMode(Value: boolean);
begin
if FBlackColorMode <> Value then begin
FBlackColorMode := Value;
LoadEllipsis(FButton.Glyph, FBlackColorMode);
end;
end;
procedure TORDateBox.SetCaption(const Value: string);
begin
if not Assigned(FCaption) then begin
FCaption := TStaticText.Create(self);
FCaption.AutoSize := False;
FCaption.Height := 0;
FCaption.Width := 0;
FCaption.Visible := True;
FCaption.Parent := Parent;
FCaption.BringtoFront;
end;
FCaption.Caption := Value;
end;
procedure TORDateBox.SetEnabled(Value: Boolean);
begin
FButton.Enabled := Value;
inherited;
end;
function TORDateBox.GetCaption: string;
begin
result := FCaption.Caption;
end;
function TORDateBox.GetDynamicProperty(PropertyID: integer): string;
begin
if PropertyID = DynaPropAccesibilityCaption then
Result := GetCaption
else
Result := '';
end;
function IsLeapYear(AYear: Integer): Boolean;
begin
Result := (AYear mod 4 = 0) and ((AYear mod 100 <> 0) or (AYear mod 400 = 0));
end;
function DaysPerMonth(AYear, AMonth: Integer): Integer;
const
DaysInMonth: array[1..12] of Integer = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
begin
if(AYear < 1) or (AMonth < 1) then
Result := 0
else begin
Result := DaysInMonth[AMonth];
if (AMonth = 2) and IsLeapYear(AYear) then Inc(Result); { leap-year Feb is special }
end;
end;
{ TORDateCombo ------------------------------------------------------------------------- }
const
ComboBoxAdjSize = 24;
EditAdjHorzSize = 8;
DateComboCtrlGap = 2;
FirstYear = 1800;
LastYear = 2200;
{ TORDateComboEdit }
procedure TORYearEdit.SetTemplateField(const Value: boolean);
begin
if(FTemplateField <> Value) then begin
FTemplateField := Value;
if Value then
BorderStyle := bsNone
else
BorderStyle := bsSingle;
end;
end;
{ TORDateCombo }
constructor TORDateCombo.Create(AOwner: TComponent);
begin
inherited;
ControlStyle := ControlStyle - [csSetCaption, csAcceptsControls];
BevelOuter := bvNone;
FIncludeMonth := TRUE;
FIncludeDay := TRUE;
FIncludeBtn := TRUE;
OnResize := Resized;
FORYearEditClass := TORYearEdit;
end;
destructor TORDateCombo.Destroy;
begin
if assigned(FMonthCombo) then FMonthCombo.Free;
if assigned(FDayCombo) then FDayCombo.Free;
if assigned(FYearEdit) then FYearEdit.Free;
if assigned(FYearUD) then FYearUD.Free;
if assigned(FCalBtn) then FCalBtn.Free;
inherited;
end;
function TORDateCombo.GetYearSize: integer;
begin
Result := TextWidthByFont(Font.Handle, '8888') + EditAdjHorzSize;
end;
function TORDateCombo.InitDays(GetSize: boolean): integer;
var
dy: integer;
begin
Result := 0;
if(assigned(FDayCombo)) then begin
dy := DaysPerMonth(FYear, FMonth) + 1;
while (FDayCombo.Items.Count < dy) do begin
if(FDayCombo.Items.Count = 0) then
FDayCombo.Items.Add(' ')
else
FDayCombo.Items.Add(inttostr(FDayCombo.Items.Count));
end;
while (FDayCombo.Items.Count > dy) do
FDayCombo.Items.Delete(FDayCombo.Items.Count-1);
if(GetSize) then
Result := TextWidthByFont(Font.Handle, '88') + ComboBoxAdjSize;
if(FDay > (dy-1)) then
SetDay(dy-1);
end;
end;
function TORDateCombo.InitMonths(GetSize: boolean): integer;
var
i, Size: integer;
begin
Result := 0;
if(assigned(FMonthCombo)) then begin
FMonthCombo.Items.Clear;
FMonthCombo.Items.Add(' ');
for i := 1 to 12 do begin
if FLongMonths then
FMonthCombo.Items.Add(FormatSettings.LongMonthNames[i])
else
FMonthCombo.Items.Add(FormatSettings.ShortMonthNames[i]);
if GetSize then begin
Size := TextWidthByFont(Font.Handle, FMonthCombo.Items[i]);
if(Result < Size) then
Result := Size;
end;
end;
if GetSize then
inc(Result, ComboBoxAdjSize);
end;
end;
procedure TORDateCombo.Rebuild;
var
Wide, X, Y: integer;
begin
if(not FRebuilding) then begin
FRebuilding := True;
try
ControlStyle := ControlStyle + [csAcceptsControls];
try
Y := TextHeightByFont(Font.Handle, FontHeightText);
if not FTemplateField then
inc(Y,AdjVertSize);
X := 0;
if (FIncludeMonth) then begin
if (not assigned(FMonthCombo)) then begin
FMonthCombo := TORMonthCombo.Create(Self);
FMonthCombo.Parent := Self;
FMonthCombo.Top := 0;
FMonthCombo.Left := 0;
FMonthCombo.Style := orcsDropDown;
FMonthCombo.DropDownCount := 13;
FMonthCombo.ListItemsOnly := True;
FMonthCombo.OnChange := MonthChanged;
end;
FMonthCombo.Font := Font;
FMonthCombo.TemplateField := FTemplateField;
Wide := InitMonths(TRUE);
FMonthCombo.Width := Wide;
FMonthCombo.Height := Y;
FMonthCombo.ItemIndex := FMonth;
inc(X, Wide + DateComboCtrlGap);
if (FIncludeDay) then begin
if (not assigned(FDayCombo)) then begin
FDayCombo := TORDayCombo.Create(Self);
FDayCombo.Parent := Self;
FDayCombo.Top := 0;
FDayCombo.Style := orcsDropDown;
FDayCombo.ListItemsOnly := True;
FDayCombo.OnChange := DayChanged;
FDayCombo.DropDownCount := 11;
end;
FDayCombo.Font := Font;
FDayCombo.TemplateField := FTemplateField;
Wide := InitDays(TRUE);
FDayCombo.Width := Wide;
FDayCombo.Height := Y;
FDayCombo.Left := X;
FDayCombo.ItemIndex := FDay;
inc(X, Wide + DateComboCtrlGap);
end else if assigned(FDayCombo) then begin
FDayCombo.Free;
FDayCombo := nil;
end;
end else begin
if assigned(FDayCombo) then begin
FDayCombo.Free;
FDayCombo := nil;
end;
if assigned(FMonthCombo) then begin
FMonthCombo.Free;
FMonthCombo := nil;
end;
end;
if (not assigned(FYearEdit)) then begin
FYearEdit := FORYearEditClass.Create(Self);
FYearEdit.Parent := Self;
FYearEdit.Top := 0;
FYearEdit.EditMask := '9999;1; ';
FYearEdit.OnKeyPress := YearKeyPress;
FYearEdit.OnChange := YearChanged;
end;
FYearEdit.Font := Font;
FYearEdit.TemplateField := FTemplateField;
Wide := GetYearSize;
FYearEdit.Width := Wide;
FYearEdit.Height := Y;
FYearEdit.Left := X;
inc(X, Wide);
if (not assigned(FYearUD)) then begin
FYearUD := TUpDown.Create(Self);
FYearUD.Parent := Self;
FYearUD.Thousands := FALSE;
FYearUD.Min := FirstYear-1;
FYearUD.Max := LastYear;
FYearUD.OnChangingEx := YearUDChange;
end;
FYearEdit.TabOrder := 0;
FYearUD.Top := 0;
FYearUD.Left := X;
FYearUD.Height := Y;
FYearUD.Position := FYear;
inc(X, FYearUD.Width + DateComboCtrlGap);
if (FIncludeBtn) then begin
if (not assigned(FCalBtn)) then begin
FCalBtn := TORDateButton.Create(Self);
FCalBtn.TabStop := FALSE;
FCalBtn.Parent := Self;
FCalBtn.Top := 0;
LoadEllipsis(FCalBtn.Glyph, FBlackColorMode);
FCalBtn.OnClick := BtnClicked;
end;
Wide := FYearEdit.Height;
if(Wide > Y) then Wide := Y;
FCalBtn.Width := Wide;
FCalBtn.Height := Wide;
FCalBtn.Left := X;
inc(X, Wide + DateComboCtrlGap);
end else if assigned(FCalBtn) then begin
FCalBtn.Free;
FCalBtn := nil;
end;
Self.Width := X - DateComboCtrlGap;
Self.Height := Y;
CheckDays;
FCtrlsCreated := TRUE;
DoChange;
finally
ControlStyle := ControlStyle - [csAcceptsControls];
end;
finally
FRebuilding := FALSE;
end;
end;
end;
procedure TORDateCombo.SetBlackColorMode(Value: boolean);
begin
if FBlackColorMode <> Value then begin
FBlackColorMode := Value;
if assigned(FCalBtn) then
LoadEllipsis(FCalBtn.Glyph, FBlackColorMode);
end;
end;
procedure TORDateCombo.SetDay(Value: integer);
begin
if (not assigned(FDayCombo)) and (not (csLoading in ComponentState)) then
Value := 0;
if (Value > DaysPerMonth(FYear, FMonth)) then
Value := 0;
if (FDay <> Value) then begin
FDay := Value;
if(assigned(FDayCombo)) then begin
if(FDayCombo.Items.Count <= FDay) then
InitDays(FALSE);
FDayCombo.ItemIndex := FDay;
end;
DoChange;
end;
end;
procedure TORDateCombo.SetIncludeBtn(const Value: boolean);
begin
if(FIncludeBtn <> Value) then begin
FIncludeBtn := Value;
Rebuild;
end;
end;
procedure TORDateCombo.SetIncludeDay(Value: boolean);
begin
if(Value) and (not FIncludeMonth) then
Value := FALSE;
if(FIncludeDay <> Value) then begin
FIncludeDay := Value;
if(not Value) then FDay := 0;
Rebuild;
end;
end;
procedure TORDateCombo.SetIncludeMonth(const Value: boolean);
begin
if(FIncludeMonth <> Value) then begin
FIncludeMonth := Value;
if(not Value) then begin
FIncludeDay := FALSE;
FMonth := 0;
FDay := 0;
end;
Rebuild;
end;
end;
procedure TORDateCombo.SetMonth(Value: integer);
begin
if(not assigned(FMonthCombo)) and (not (csLoading in ComponentState)) then
Value := 0;
if(Value <0) or (Value > 12) then
Value := 0;
if(FMonth <> Value) then begin
FMonth := Value;
if(assigned(FMonthCombo)) then
FMonthCombo.ItemIndex := FMonth;
CheckDays;
DoChange;
end;
end;
procedure TORDateCombo.SetLongMonths(const Value: boolean);
begin
if(FLongMonths <> Value) then begin
FLongMonths := Value;
Rebuild;
end;
end;
procedure TORDateCombo.SetYear(const Value: integer);
begin
if(FYear <> Value) then begin
FYear := Value;
if(FYear < FirstYear) or (FYear > LastYear) then
FYear := 0;
if(not FYearChanging) and (assigned(FYearEdit)) and (assigned(FYearUD)) then begin
FYearChanging := True;
try
if(FYear = 0) then begin
FYearEdit.Text := ' ';
FYearUD.Position := FirstYear-1
end else begin
FYearEdit.Text := IntToStr(FYear);
FYearUD.Position := FYear;
end;
finally
FYearChanging := FALSE;
end;
end;
if(FMonth = 2) then
InitDays(FALSE);
CheckDays;
DoChange;
end;
end;
procedure TORDateCombo.DayChanged(Sender: TObject);
begin
FDay := FDayCombo.ItemIndex;
if(FDay < 0) then
FDay := 0;
CheckDays;
DoChange;
end;
procedure TORDateCombo.MonthChanged(Sender: TObject);
begin
FMonth := FMonthCombo.ItemIndex;
if(FMonth < 0) then
FMonth := 0;
InitDays(FALSE);
CheckDays;
DoChange;
end;
procedure TORDateCombo.YearChanged(Sender: TObject);
begin
if FYearChanging then exit;
FYearChanging := True;
try
FYear := StrToIntDef(FYearEdit.Text, 0);
if(FYear < FirstYear) or (FYear > LastYear) then
FYear := 0;
if(FYear = 0) then
FYearUD.Position := FirstYear-1
else
FYearUD.Position := FYear;
if(FMonth = 2) then
InitDays(FALSE);
CheckDays;
DoChange;
finally
FYearChanging := False;
end;
end;
procedure TORDateCombo.CheckDays;
var
MaxDays: integer;
begin
if(FIncludeMonth and assigned(FMonthCombo)) then begin
FMonthCombo.Enabled := (FYear > 0);
if (FYear = 0) then
SetMonth(0);
if(FIncludeMonth and FIncludeDay and assigned(FDayCombo)) then begin
FDayCombo.Enabled := ((FYear > 0) and (FMonth > 0));
MaxDays := DaysPerMonth(FYear, FMonth);
if(FDay > MaxDays) then
SetDay(MaxDays);
end;
end;
end;
procedure TORDateCombo.Loaded;
begin
inherited;
if(not FCtrlsCreated) then
Rebuild;
end;
procedure TORDateCombo.Paint;
begin
if(not FCtrlsCreated) then
Rebuild;
inherited;
end;
procedure TORDateCombo.BtnClicked(Sender: TObject);
var
mm, dd, yy: integer;
m, d, y: word;
DateDialog: TORDateTimeDlg;
begin
DateDialog := TORDateTimeDlg.Create(self);
try
mm := FMonth;
dd := FDay;
yy := FYear;
DecodeDate(Now, y, m, d);
if(FYear = 0) then FYear := y;
if(FYear = y) then begin
if((FMonth = 0) or (FMonth = m)) and (FDay = 0) then begin
FMonth := m;
FDay := d;
end;
end;
if(FMonth = 0) then
FMonth := 1;
if(FDay = 0) then
FDay := 1;
DateDialog.FMDateTime := GetFMDate;
DateDialog.DateOnly := True;
DateDialog.RequireTime := False;
if DateDialog.Execute then begin
FYear := 0;
FMonth := 0;
FDay := 0;
SetFMDate(DateDialog.FMDateTime);
end else begin
SetYear(yy);
SetMonth(mm);
SetDay(dd);
end;
finally
DateDialog.Free;
end;
end;
procedure TORDateCombo.YearUDChange(Sender: TObject; var AllowChange: Boolean;
NewValue: integer; Direction: TUpDownDirection);
var
y, m, d: word;
begin
if FYearChanging then exit;
FYearChanging := True;
try
if FYearUD.Position = (FirstYear-1) then begin
DecodeDate(Now, y, m, d);
FYear := y;
FYearUD.Position := y;
AllowChange := False;
end
else
FYear := NewValue;
if(FYear < FirstYear) or (FYear > LastYear) then
FYear := 0;
if(FYear = 0) then
FYearEdit.Text := ' '
else
FYearEdit.Text := IntToStr(FYear);
if(FMonth = 2) then
InitDays(FALSE);
CheckDays;
DoChange;
finally
FYearChanging := FALSE;
end;
end;
procedure TORDateCombo.YearKeyPress(Sender: TObject; var Key: Char);
begin
if CharInSet(Key, ['0'..'9']) and (FYearEdit.Text = ' ') then begin
FYearEdit.Text := Key + ' ';
Key := #0;
FYearEdit.SelStart := 1;
FYearEdit.SelText := '';
end;
end;
function TORDateCombo.GetFMDate: TFMDateTime;
begin
if(FYear < FirstYear) then
Result := 0
else
Result := ((FYear - 1700) * 10000 + FMonth * 100 + FDay);
end;
procedure TORDateCombo.SetFMDate(const Value: TFMDateTime);
var
ival, mo, dy: integer;
begin
if(Value = 0) then begin
SetYear(0);
SetMonth(0);
end else begin
ival := trunc(Value);
if(length(IntToStr(ival)) <> 7) then
exit;
dy := (ival mod 100);
ival := ival div 100;
mo := ival mod 100;
ival := ival div 100;
SetYear(ival + 1700);
SetMonth(mo);
InitDays(FALSE);
SetDay(dy);
end;
end;
function TORDateCombo.DateText: string;
begin
Result := '';
if(FYear > 0) then begin
if(FMonth > 0) then begin
if FLongMonths then
Result := FormatSettings.LongMonthNames[FMonth]
else
Result := FormatSettings.ShortMonthNames[FMonth];
if(FDay > 0) then
Result := Result + ' ' + IntToStr(FDay);
Result := Result + ', ';
end;
Result := Result + IntToStr(FYear);
end;
end;
procedure TORDateCombo.DoChange;
begin
if assigned(FOnChange) then
FOnChange(Self);
end;
procedure TORDateCombo.Resized(Sender: TObject);
begin
Rebuild;
end;
procedure TORDateCombo.CMFontChanged(var Message: TMessage);
begin
inherited;
Rebuild;
end;
function TORDateCombo.Text: string;
var
tmp, fmt, m: string;
begin
Result := '';
tmp := FloatToStr(FMDate);
if(tmp <> '') and (tmp <> '0') and (length(Tmp) >= 7) then begin
if FLongMonths then
m := 'mmmm'
else
m := 'mmm';
if(copy(tmp,4,4) = '0000') then
fmt := 'yyyy'
else
if(copy(tmp,6,2) = '00') then
fmt := m + ', YYYY'
else
fmt := m + ' D, YYYY';
Result := FormatFMDateTimeStr(fmt, tmp)
end;
end;
procedure Register;
{ used by Delphi to put components on the Palette }
begin
RegisterComponents('CPRS', [TORDateTimeDlg, TORDateBox, TORDateCombo]);
end;
procedure TORDateCombo.SetTemplateField(const Value: boolean);
begin
if FTemplateField <> Value then begin
FTemplateField := Value;
Rebuild;
end;
end;
initialization
uServerToday := 0;
FormatSettings := TFormatSettings.Create;
end.
| 27.622383 | 138 | 0.673367 |
bcab2c25731f6ac0de062dcd946487c4b896baec
| 16,272 |
pas
|
Pascal
|
Azure/Emetra.Azure.Table.API.pas
|
KoBro12/emetra
|
0bc5e17552be95933aee8fcb74822b3a19a9c5ea
|
[
"MIT"
] | 1 |
2020-04-18T20:18:26.000Z
|
2020-04-18T20:18:26.000Z
|
Azure/Emetra.Azure.Table.API.pas
|
KoBro12/emetra
|
0bc5e17552be95933aee8fcb74822b3a19a9c5ea
|
[
"MIT"
] | null | null | null |
Azure/Emetra.Azure.Table.API.pas
|
KoBro12/emetra
|
0bc5e17552be95933aee8fcb74822b3a19a9c5ea
|
[
"MIT"
] | 1 |
2020-04-26T11:20:54.000Z
|
2020-04-26T11:20:54.000Z
|
unit Emetra.Azure.Table.API;
interface
uses
Emetra.Azure.Table.Interfaces,
Emetra.Azure.Table.Row,
Emetra.Logging.Interfaces,
{Standard}
Data.Cloud.AzureAPI, Data.Cloud.CloudAPI, Data.Db,
System.Generics.Collections, System.SysUtils, System.Classes;
type
ECreateTableFailed = class( Exception );
ECreateTableForbidden = class( Exception );
TSimpleAzureTableAPI = class( TAzureConnectionInfo, IDatasetPublisher )
strict private
fLog: ILog;
fBreakOnConflict: boolean;
fResponseInfo: TCloudResponseInfo;
fSettings: TFormatSettings;
fTableService: TAzureTableService;
fRowsPublished: integer;
fRowChar: char;
private
{ Propery accessors }
function Get_BreakOnConflict: boolean;
function Get_ResponseCode: integer;
function Get_RowsPublished: integer;
procedure Set_BreakOnConflict( const AValue: boolean );
{ Other methods }
function TryRowOperation( const ATableRow: TAzTableRow; const AOperation: TEntityOperation ): boolean;
function BreakAfterInsert( const AResult: boolean ): boolean;
procedure ValidateKeys( const ATableRow: TAzTableRow );
procedure SetRowKey( const ATableRow: TAzTableRow; const ADataset: TDataset );
procedure SetCenterId( const ACenterId: integer );
procedure Dispose;
public
{ Initialization }
constructor Create( const AOwner: TComponent; const AAccountName, AAccountKey: string; const ALog: ILog ); reintroduce;
procedure AfterConstruction; override;
procedure BeforeDestruction; override;
{ Other members }
function TryDelete( const ATableRow: TAzTableRow ): boolean;
function TryInsert( const ATableRow: TAzTableRow ): boolean;
function TryMerge( const ATableRow: TAzTableRow ): boolean;
function TryUpdate( const ATableRow: TAzTableRow ): boolean;
procedure GetTableNames( ATableNames: TList<string> );
procedure PublishDataset( const ADataset: TDataset; const ATableName: string; out ARowsAdded: integer ); overload;
procedure PublishDataset( const ADataset: TDataset; const ATableName: string; const AUpdateStrategy: TEntityUpdateStrategy; const AMaxRows, AMaxErrors: integer; out AErrors: integer ); overload;
function TryRetrieveDataset( const ADataset: TDataset; const AFieldAdd: IDatasetAddColumn; const ATableName, APartitionKey: string; const AMinTimestamp: TDate ): boolean;
procedure TruncateTable( const ATableName: string );
{ Properties }
property BreakOnConflict: boolean read fBreakOnConflict write fBreakOnConflict;
property ResponseCode: integer read Get_ResponseCode;
end;
implementation
{ %CLASSGROUP 'System.Classes.TPersistent' }
uses
{Standard}
System.DateUtils;
const
StrNextPartitionKey = 'x-ms-continuation-NextPartitionKey';
StrNextRowKey = 'x-ms-continuation-NextRowKey';
type
TResponseInfoHelper = class helper for TCloudResponseInfo
procedure Clear;
end;
{$REGION 'Initialization'}
constructor TSimpleAzureTableAPI.Create( const AOwner: TComponent; const AAccountName, AAccountKey: string; const ALog: ILog );
begin
inherited Create( AOwner );
AccountKey := AAccountKey;
AccountName := AAccountName;
fLog := ALog;
fBreakOnConflict := true;
end;
procedure TSimpleAzureTableAPI.Dispose;
begin
Free;
end;
procedure TSimpleAzureTableAPI.AfterConstruction;
begin
inherited;
fTableService := TAzureTableService.Create( Self );
fResponseInfo := TCloudResponseInfo.Create;
fSettings := TFormatSettings.Create( 'en-US' );
end;
procedure TSimpleAzureTableAPI.BeforeDestruction;
begin
fResponseInfo.Free;
inherited;
end;
function TSimpleAzureTableAPI.BreakAfterInsert( const AResult: boolean ): boolean;
begin
if AResult = true then
Result := false
else
Result := ( AResult = false ) and ( fResponseInfo.StatusCode = HTTP_CONFLICT ) and ( fBreakOnConflict );
end;
{$ENDREGION}
{$REGION 'Property accessors'}
procedure TSimpleAzureTableAPI.GetTableNames( ATableNames: TList<string> );
var
tableList: TStrings;
begin
tableList := fTableService.QueryTables( );
try
while tableList.Count > 0 do
begin
ATableNames.Add( tableList[0] );
tableList.Delete( 0 );
end;
finally
tableList.Free;
end;
end;
function TSimpleAzureTableAPI.Get_BreakOnConflict: boolean;
begin
Result := fBreakOnConflict;
end;
function TSimpleAzureTableAPI.Get_ResponseCode: integer;
begin
Result := fResponseInfo.StatusCode;
end;
function TSimpleAzureTableAPI.Get_RowsPublished: integer;
begin
Result := fRowsPublished;
end;
{$ENDREGION}
{$REGION 'Logging and validation'}
procedure TSimpleAzureTableAPI.ValidateKeys( const ATableRow: TAzTableRow );
var
dummy: string;
begin
if not( ATableRow.GetColumnValue( 'RowKey', dummy ) and ATableRow.GetColumnValue( 'PartitionKey', dummy ) ) then
raise EAssertionFailed.Create( 'RowKey and/or PartitionKey is empty.' );
end;
{$ENDREGION}
{$REGION 'Azure table operations'}
procedure TSimpleAzureTableAPI.TruncateTable( const ATableName: string );
const
PROC_NAME = 'TruncateTable';
var
entityList: TList<TCloudTableRow>;
entity: TCloudTableRow;
successCount: integer;
failCount: integer;
begin
fLog.EnterMethod( Self, PROC_NAME );
try
successCount := 0;
failCount := 0;
entityList := fTableService.QueryEntities( ATableName );
try
fLog.Event( 'Deleting %d entries from "%s"', [entityList.Count, ATableName] );
for entity in entityList do
if fTableService.DeleteEntity( ATableName, entity ) then
inc( successCount )
else
inc( failCount );
if failCount = 0 then
fLog.Event( 'Deleted %d rows succesfully.', [successCount] )
else
fLog.SilentError( 'Failed to delete %d of %d rows.', [failCount, successCount] )
finally
entityList.Free;
end;
finally
fLog.LeaveMethod( Self, PROC_NAME );
end;
end;
function TSimpleAzureTableAPI.TryInsert( const ATableRow: TAzTableRow ): boolean;
begin
Result := TryRowOperation( ATableRow, eoInsert );
if Result then
fRowChar := 'I';
end;
function TSimpleAzureTableAPI.TryDelete( const ATableRow: TAzTableRow ): boolean;
begin
Result := TryRowOperation( ATableRow, eoDelete );
if Result then
fRowChar := 'D';
end;
function TSimpleAzureTableAPI.TryMerge( const ATableRow: TAzTableRow ): boolean;
begin
Result := TryRowOperation( ATableRow, eoMerge );
if Result then
fRowChar := 'M';
end;
function TSimpleAzureTableAPI.TryUpdate( const ATableRow: TAzTableRow ): boolean;
begin
Result := TryRowOperation( ATableRow, eoUpdate );
if Result then
fRowChar := 'U';
end;
function TSimpleAzureTableAPI.TryRowOperation( const ATableRow: TAzTableRow; const AOperation: TEntityOperation ): boolean;
const
LOG_TEMPLATE = '%s.TryRowOperation(%s.%s): %d - %s ';
begin
Result := false;
try
fResponseInfo.Clear;
ValidateKeys( ATableRow );
case AOperation of
eoDelete: Result := fTableService.DeleteEntity( ATableRow.TableName, ATableRow, fResponseInfo );
eoInsert: Result := fTableService.InsertEntity( ATableRow.TableName, ATableRow, fResponseInfo );
eoMerge: Result := fTableService.MergeEntity( ATableRow.TableName, ATableRow, fResponseInfo );
eoUpdate: Result := fTableService.UpdateEntity( ATableRow.TableName, ATableRow, fResponseInfo );
end;
if Result then
fLog.Event( LOG_TEMPLATE, [ClassName, ATableRow.TableName, ENTITY_OPERATION_NAME[AOperation], fResponseInfo.StatusCode, fResponseInfo.StatusMessage] )
else
begin
fLog.SilentWarning( LOG_TEMPLATE, [ClassName, ATableRow.TableName, ENTITY_OPERATION_NAME[AOperation], fResponseInfo.StatusCode, fResponseInfo.StatusMessage] );
if fResponseInfo.StatusCode = HTTP_BAD_REQUEST then
ATableRow.SaveToFile;
end;
except
on E: Exception do
fLog.SilentError( E.Message );
end;
end;
{$ENDREGION}
procedure TSimpleAzureTableAPI.PublishDataset( const ADataset: TDataset; const ATableName: string; out ARowsAdded: integer );
var
errCount: integer;
begin
PublishDataset( ADataset, ATableName, epsInsert, maxint, maxint, errCount );
ARowsAdded := fRowsPublished;
end;
procedure TSimpleAzureTableAPI.PublishDataset( const ADataset: TDataset; const ATableName: string; const AUpdateStrategy: TEntityUpdateStrategy; const AMaxRows, AMaxErrors: integer;
out AErrors: integer );
var
azTableRow: TAzTableRow;
rowCount: integer;
successfulOperation: boolean;
dsField: TField;
pkField: TField;
localPartitionKey: string;
begin
fTableService.CreateTable( ATableName, fResponseInfo );
with fResponseInfo do
begin
if ( StatusCode < 299 ) or ( StatusCode = 409 ) then
{ All is fine }
else if StatusCode = 403 then
raise ECreateTableForbidden.CreateFmt( '%d: %s', [StatusCode, StatusMessage] )
else
raise ECreateTableFailed.CreateFmt( '%d: %s', [StatusCode, StatusMessage] );
end;
pkField := ADataset.FindField( 'PartitionKey' );
Assert( Assigned( pkField ), 'PartitionKey field missing' );
localPartitionKey := pkField.AsString;
fRowsPublished := 0;
AErrors := 0;
rowCount := 0;
azTableRow := TAzTableRow.Create( ATableName );
with azTableRow do
try
Assert( ADataset.Bof );
while ( not ADataset.Eof ) and ( rowCount < AMaxRows ) do
begin
fRowChar := '?';
azTableRow.Clear;
SetColumn( 'PartitionKey', localPartitionKey );
SetRowKey( azTableRow, ADataset );
{ Loop through all fields and map to OData field types }
for dsField in ADataset.Fields do
if ( dsField.FieldKind = fkData ) and not( dsField.IsNull ) then
begin
case dsField.DataType of
ftSmallInt: azTableRow.AddInt16Column( dsField.FieldName, dsField.AsInteger );
ftInteger, ftWord: AddInt32Column( dsField.FieldName, dsField.AsInteger );
ftAutoInc, ftLargeInt: AddInt64Column( dsField.FieldName, dsField.AsLargeInt );
ftFloat: AddFloatColumn( dsField.FieldName, dsField.AsFloat );
ftBCD, ftFMTBCD: AddFloatColumn( dsField.FieldName, dsField.AsFloat );
ftBoolean: AddBoolColumn( dsField.FieldName, dsField.AsBoolean );
ftGuid: AddGuidColumn( dsField.FieldName, dsField.AsString );
ftString, ftWideString, ftMemo: SetColumn( dsField.FieldName, dsField.AsString );
ftDate: AddDateColumn( dsField.FieldName, dsField.AsDateTime );
ftDateTime: AddDateTimeColumn( dsField.FieldName, dsField.AsDateTime );
else raise ENotSupportedException.CreateFmt( 'Field "%s" has an unsupported DataType [%d]', [dsField.FieldName, ord( dsField.DataType )] );
end;
end;
successfulOperation := false;
case AUpdateStrategy of
epsInsert:
begin
successfulOperation := TryInsert( azTableRow );
if BreakAfterInsert( successfulOperation ) then
break;
end;
epsInsertThenUpdate:
begin
successfulOperation := TryInsert( azTableRow );
if BreakAfterInsert( successfulOperation ) then
break
else
successfulOperation := TryUpdate( azTableRow );
end;
epsUpdate: successfulOperation := TryUpdate( azTableRow );
epsUpdateThenInsert:
begin
successfulOperation := TryUpdate( azTableRow );
if not successfulOperation and ( fResponseInfo.StatusCode = HTTP_NOT_FOUND ) then
successfulOperation := TryInsert( azTableRow );
end;
end;
if not successfulOperation then
begin
inc( AErrors )
end
else
begin
inc( fRowsPublished );
end;
{$IFDEF Console}
write( fRowChar );
{$ENDIF}
ADataset.Next;
inc( rowCount );
end;
finally
azTableRow.Free;
end;
end;
function TSimpleAzureTableAPI.TryRetrieveDataset( const ADataset: TDataset; const AFieldAdd: IDatasetAddColumn; const ATableName, APartitionKey: string; const AMinTimestamp: TDate ): boolean;
var
entityList: TList<TCloudTableRow>;
entity: TCloudTableRow;
colValue: string;
column: TCloudTableColumn;
field: TField;
fieldMap: TDictionary<string, TField>;
usFormat: TFormatSettings;
filterExpression: string;
nextPartitionKey: string;
nextRowKey: string;
batchCount: integer;
entityCount: integer;
begin
Result := false;
batchCount := 0;
entityCount := 0;
usFormat := TFormatSettings.Create( 'en-US' );
nextPartitionKey := EmptyStr;
nextRowKey := EmptyStr;
fieldMap := TDictionary<string, TField>.Create;
filterExpression := 'Timestamp gt datetime' + QuotedStr( FormatDateTime( 'yyyy-mm-dd"T"hh:mm:ss"Z"', AMinTimestamp ) );
{
if APartitionKey <> EmptyStr then
filterExpression := Format( 'PartitionKey eq %s', [QuotedStr( APartitionKey )] )
else
filterExpression := EmptyStr;
}
repeat
entityList := fTableService.QueryEntities( ATableName, filterExpression, fResponseInfo, nextPartitionKey, nextRowKey );
{ Save partition and row keys }
nextPartitionKey := fResponseInfo.Headers.Values[StrNextPartitionKey];
nextRowKey := fResponseInfo.Headers.Values[StrNextRowKey];
if nextPartitionKey <> EmptyStr then
fLog.Event( 'There are more rows (NextPartitionKey="%s", NextRowKey="%s")', [nextPartitionKey, nextRowKey] );
{ Log error details }
if fResponseInfo.StatusCode <> 200 then
fLog.SilentError( '%s: Failed with %d - %s ', [ATableName, fResponseInfo.StatusCode, fResponseInfo.StatusMessage] )
else
begin
inc( entityCount, entityList.Count );
fLog.Event( '%s: Retrieved %d entities (total=%d, batches=%d) ', [ATableName, entityList.Count, entityCount, batchCount + 1] );
try
if batchCount = 0 then
begin
ADataset.Close;
{ Make sure we have all columns in the dataset }
for entity in entityList do
for column in entity.Columns do
begin
field := AFieldAdd.AddColumn( ADataset, column );
fieldMap.AddOrSetValue( column.Name, field );
Assert( Assigned( field ) );
end;
{ Loop through the entities and add data }
ADataset.Open;
end;
for entity in entityList do
begin
ADataset.Append;
{ Loop through the columns }
try
for column in entity.Columns do
if fieldMap.TryGetValue( column.Name, field ) and entity.GetColumnValue( column.Name, colValue ) then
if column.DataType = EDM_DOUBLE then
field.AsFloat := StrToFloat( colValue, usFormat )
else if column.DataType = EDM_DATETIME then
field.AsDateTime := ISO8601ToDate( colValue, true )
else
field.AsString := colValue;
ADataset.Post;
except
on E: Exception do
begin
ADataset.Cancel;
fLog.SilentWarning( E.Message );
end;
end;
end;
Result := true;
finally
entityList.Free;
end;
end;
inc( batchCount );
until nextPartitionKey = EmptyStr;
fieldMap.Free;
end;
procedure TSimpleAzureTableAPI.SetCenterId( const ACenterId: integer );
begin
{ Does nothing }
end;
procedure TSimpleAzureTableAPI.SetRowKey( const ATableRow: TAzTableRow; const ADataset: TDataset );
var
dsField: TField;
begin
dsField := ADataset.FieldByName( 'RowKey' );
Assert( Assigned( dsField ), 'The RowKey field was not found in the dataset' );
{ The row key field with appear twice in the Azure table, under its original name and under the name RowKey }
if dsField.DataType = ftGuid then
ATableRow.RowKeyValue := Copy( dsField.AsString, 2, 36 )
else
ATableRow.RowKeyValue := dsField.AsString;
end;
procedure TSimpleAzureTableAPI.Set_BreakOnConflict( const AValue: boolean );
begin
fBreakOnConflict := AValue;
end;
{ TResponseInfoHelper }
procedure TResponseInfoHelper.Clear;
begin
StatusCode := 0;
StatusMessage := 'No response info';
end;
end.
| 33.829522 | 198 | 0.696227 |
61f79b0d1b6c17b86a4623cc3e06cc36e2ce496f
| 1,748 |
dpr
|
Pascal
|
Accepted_The 2000's ACM-ICPC/P3379 (Two Ends).dpr
|
peneksglazami/acm-icpc-training
|
a3c41b65b8f8523713f9859b076f300a12c4e7f3
|
[
"CC0-1.0"
] | null | null | null |
Accepted_The 2000's ACM-ICPC/P3379 (Two Ends).dpr
|
peneksglazami/acm-icpc-training
|
a3c41b65b8f8523713f9859b076f300a12c4e7f3
|
[
"CC0-1.0"
] | null | null | null |
Accepted_The 2000's ACM-ICPC/P3379 (Two Ends).dpr
|
peneksglazami/acm-icpc-training
|
a3c41b65b8f8523713f9859b076f300a12c4e7f3
|
[
"CC0-1.0"
] | null | null | null |
{Problem: 3379 - Two Ends
ACM ICPC - North America - East Central - 2005/2006
Solved by Andrey Grigorov}
{$A+,B-,C+,D-,E-,F-,G+,H+,I-,J-,K-,L-,M-,N+,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y+}
{$MINSTACKSIZE $00004000}
{$MAXSTACKSIZE $00100000}
program Problem3379;
{$APPTYPE CONSOLE}
const
MaxN = 1000;
var
t: array [1..2,1..MaxN,1..MaxN,1..2] of Integer;
a: array [1..MaxN] of Integer;
i,j,N,n_case,s1,s2: Integer;
procedure Solve(l,r,player: Integer; var s1,s2: Integer);
var
x,y: Integer;
begin
if t[player,l,r,1] = -1 then
if player = 1 then
begin
Solve(l+1,r,2,x,y);
t[1,l,r,1]:=a[l]+x;
t[1,l,r,2]:=y;
Solve(l,r-1,2,x,y);
x:=x+a[r];
if x-y > t[1,l,r,1]-t[1,l,r,2] then
begin
t[1,l,r,1]:=x;
t[1,l,r,2]:=y;
end;
end
else
if a[l] >= a[r] then
begin
Solve(l+1,r,1,t[2,l,r,1],t[2,l,r,2]);
Inc(t[2,l,r,2],a[l]);
end
else
begin
Solve(l,r-1,1,t[2,l,r,1],t[2,l,r,2]);
Inc(t[2,l,r,2],a[r]);
end;
s1:=t[player,l,r,1];
s2:=t[player,l,r,2];
end;
begin
n_case:=0;
Read(N);
while N <> 0 do
begin
for i:=1 to N do
for j:=1 to N do
begin
t[1,i,j,1]:=-1;
t[1,i,j,2]:=-1;
t[2,i,j,1]:=-1;
t[2,i,j,2]:=-1;
end;
for i:=1 to N do
begin
Read(a[i]);
t[1,i,i,1]:=a[i];
t[1,i,i,2]:=0;
t[2,i,i,1]:=0;
t[2,i,i,2]:=a[i];
end;
Solve(1,N,1,s1,s2);
Inc(n_case);
WriteLn('In game ',n_case,', the greedy strategy might lose by as many as ',s1-s2,' points.');
Read(N);
end;
end.
| 22.701299 | 100 | 0.449085 |
f18034249561f2efdaadab6ee4041e743cfe1c7b
| 43,863 |
pas
|
Pascal
|
ArcIWStringGridCalendarContent.pas
|
aftabgardan2006/iwelite
|
a68fcc8d423e8837ae2e2cd351b84a98d90df33e
|
[
"MIT"
] | 1 |
2018-01-09T12:32:40.000Z
|
2018-01-09T12:32:40.000Z
|
ArcIWStringGridCalendarContent.pas
|
aftabgardan2006/iwelite
|
a68fcc8d423e8837ae2e2cd351b84a98d90df33e
|
[
"MIT"
] | null | null | null |
ArcIWStringGridCalendarContent.pas
|
aftabgardan2006/iwelite
|
a68fcc8d423e8837ae2e2cd351b84a98d90df33e
|
[
"MIT"
] | 2 |
2019-05-13T11:28:16.000Z
|
2020-03-10T17:47:48.000Z
|
unit ArcIWStringGridCalendarContent;
interface
uses SysUtils, {$IFNDEF VER130}StrUtils, Variants, {$ENDIF}
Classes, ArcIWStringGridContent, ArcIWStringGrid, controls,
IWBaseControl, IWCompCheckbox, IWCompEdit, IWCompMemo, IWCompButton, IWExtCtrls,
Graphics, TypInfo, ArcFastStrings, IWCompListbox, IWBaseInterfaces,
IWRenderContext, IWHTMLTag, IWTypes, IWColor, db, IWFileReference, IWServer,
ArcIWGridCommon;
type
TArcIWStringGridCalendarContent = class;
TArcCalendarScope = (csYear, csQuarter, csMonth, csWeek, csDay);
TArcCalendarDay = (cdSunday, cdMonday, cdTuesday, cdWednesday, cdThursday,
cdFriday, cdSaturday);
TArcCalendarMonth = (cmJanuary, cmFebruary, cmMarch, cmApril, cmMay, cmJune,
cmJuly, cmAugust, cmSeptember, cmOctober, cmNovember, cmDecember);
TArcCalendarQuarter = (cqQ1, cqQ2, cqQ3, cqQ4);
TArcCalendarPrecision = (cpYear, cpMonth, cpDay, cpHour, cpMinute, cpSecond, cpExact);
TArcCalendarEvent = class(TCollectionItem)
private
FHint: string;
FTitle: string;
FDescription: string;
FScheduled: TDateTime;
FStyle: TArcGridStyle;
FIcon: TIWFileReference;
FIconHeight: integer;
FIconWidth: integer;
procedure SetIcon(const Value: TIWFileReference);
procedure SetStyle(const Value: TArcGridStyle);
function GetScheduledDate: TDate;
function GetScheduledTime: TTime;
function IconLocation(URLBase: string): string;
protected
procedure AssignTo(Dest: TPersistent); override;
function GetDisplayName: string; override;
public
constructor Create(Collection: TCollection); override;
destructor Destroy; override;
published
property Title : string read FTitle write FTitle;
property Description : string read FDescription write FDescription;
property Hint : string read FHint write FHint;
property Scheduled : TDateTime read FScheduled write FScheduled;
property ScheduledDate : TDate read GetScheduledDate;
property ScheduledTime : TTime read GetScheduledTime;
property Style : TArcGridStyle read FStyle write SetStyle;
property Icon : TIWFileReference read FIcon write SetIcon;
property IconWidth : integer read FIconWidth write FIconWidth default 16;
property IconHeight : integer read FIconHeight write FIconHeight default 16;
//property Style : TArcCalendarStyle read FStyle write SetStyle;
//property StyleSelected
end;
TArcCalendarEvents = class(TOwnedCollection)
private
FContent: TArcIWStringGridCalendarContent;
function GetItem(idx: integer): TArcCalendarEvent;
procedure SetItem(idx: integer; const Value: TArcCalendarEvent);
public
constructor Create(content : TArcIWStringGridCalendarContent); virtual;
destructor Destroy; override;
property Items[idx : integer] : TArcCalendarEvent read GetItem write SetItem; default;
function Add : TArcCalendarEvent;
end;
TArcCalendarLabelsMonths = class(TPersistent)
private
FApril: string;
FNovember: string;
FMay: string;
FDecember: string;
FAugust: string;
FFebruary: string;
FJune: string;
FMarch: string;
FJuly: string;
FOctober: string;
FSeptember: string;
FJanuary: string;
FJun: string;
FFeb: string;
FNov: string;
FJul: string;
FDec: string;
FMar: string;
FOct: string;
FJan: string;
FAug: string;
FApr: string;
FSep: string;
FMa: string;
protected
procedure AssignTo(Dest: TPersistent); override;
public
constructor Create; virtual;
function TextFor(Month : TArcCalendarMonth; Abbreviated : boolean) : string;
published
property January : string read FJanuary write FJanuary;
property Jan : string read FJan write FJan;
property February : string read FFebruary write FFebruary;
property Feb : string read FFeb write FFeb;
property March : string read FMarch write FMarch;
property Mar : string read FMar write FMar;
property April : string read FApril write FApril;
property Apr : string read FApr write FApr;
property May : string read FMay write FMay;
property Ma : string read FMa write FMa;
property June : string read FJune write FJune;
property Jun : string read FJun write FJun;
property July : string read FJuly write FJuly;
property Jul : string read FJul write FJul;
property August : string read FAugust write FAugust;
property Aug : string read FAug write FAug;
property September : string read FSeptember write FSeptember;
property Sep : string read FSep write FSep;
property October : string read FOctober write FOctober;
property Oct : string read FOct write FOct;
property November : string read FNovember write FNovember;
property Nov : string read FNov write FNov;
property December : string read FDecember write FDecember;
property Dec : string read FDec write FDec;
end;
TArcCalendarLabelsQuarters = class(TPersistent)
private
FQtr2: string;
FQtr3: string;
FQtr1: string;
FQtr4: string;
FQuarter2: string;
FQuarter3: string;
FQuarter1: string;
FQuarter4: string;
protected
procedure AssignTo(Dest: TPersistent); override;
public
constructor Create; virtual;
function TextFor(Qtr : TArcCalendarQuarter; Abbreviated : boolean) : string;
published
property Quarter1 : string read FQuarter1 write FQuarter1;
property Qtr1 : string read FQtr1 write FQtr1;
property Quarter2 : string read FQuarter2 write FQuarter2;
property Qtr2 : string read FQtr2 write FQtr2;
property Quarter3 : string read FQuarter3 write FQuarter3;
property Qtr3 : string read FQtr3 write FQtr3;
property Quarter4 : string read FQuarter4 write FQuarter4;
property Qtr4 : string read FQtr4 write FQtr4;
end;
TArcCalendarLabelsDays = class(TPersistent)
private
FSunday: string;
FWednesday: string;
FTuesday: string;
FFriday: string;
FThursday: string;
FMonday: string;
FSaturday: string;
FFri: string;
FTue: string;
FMon: string;
FWed: string;
FSun: string;
FThu: string;
FSat: string;
protected
procedure AssignTo(Dest: TPersistent); override;
public
constructor Create; virtual;
function TextFor(Day : TArcCalendarDay; Abbreviated : boolean) : string;
published
property Sunday : string read FSunday write FSunday;
property Sun : string read FSun write FSun;
property Monday : string read FMonday write FMonday;
property Mon : string read FMon write FMon;
property Tuesday : string read FTuesday write FTuesday;
property Tue : string read FTue write FTue;
property Wednesday : string read FWednesday write FWednesday;
property Wed : string read FWed write FWed;
property Thursday : string read FThursday write FThursday;
property Thu : string read FThu write FThu;
property Friday : string read FFriday write FFriday;
property Fri : string read FFri write FFri;
property Saturday : string read FSaturday write FSaturday;
property Sat : string read FSat write FSat;
end;
TArcCalendarLabels = class(TPersistent)
private
FDays: TArcCalendarLabelsDays;
FMonths: TArcCalendarLabelsMonths;
FQuarters: TArcCalendarLabelsQuarters;
procedure SetDays(const Value: TArcCalendarLabelsDays);
procedure SetMonths(const Value: TArcCalendarLabelsMonths);
procedure SetQuarters(const Value: TArcCalendarLabelsQuarters);
public
constructor Create; virtual;
destructor Destroy; override;
published
property Months : TArcCalendarLabelsMonths read FMonths write SetMonths;
property Days : TArcCalendarLabelsDays read FDays write SetDays;
property Quarters : TArcCalendarLabelsQuarters read FQuarters write SetQuarters;
end;
TDateTimeHolder = record
DateTime : TDateTime;
end;
PDateTimeHolder = ^TDateTimeHolder;
TArcClickDateTimeEvent = procedure(Sender : TObject; DateTime : TDateTime) of object;
TArcClickEventEvent = procedure(Sender : TObject; Event : TArcCalendarEvent) of object;
TArcIWStringGridCalendarContent = class(TArcIWStringGridContent)
private
FSelected : TList;
FLabels: TArcCalendarLabels;
FVisibleStart: TDateTime;
FDayEnd: TTime;
FToday: TDateTime;
FUse24HourClock: boolean;
FWeekStart: TArcCalendarDay;
FScope: TArcCalendarScope;
FEvents: TArcCalendarEvents;
FDayStart: TTime;
FDaysPerWeek: integer;
FOnClickDateTime: TArcClickDateTimeEvent;
FOnClickEvent: TArcClickEventEvent;
FCaptionFormat: string;
function CFDefault(Scope : TArcCalendarScope) : string;
procedure SetEvents(const Value: TArcCalendarEvents);
procedure SetLabels(const Value: TArcCalendarLabels);
function GetSelCount: integer;
function GetSelected(idx : integer): TDateTime;
procedure SetCaptionFormat(const Value: string);
procedure SetScope(const Value: TArcCalendarScope);
function FindEndOfWeek(dt: TDateTime): TDateTime;
function FindStartOfWeek(dt: TDateTime): TDateTime;
function StartOfWeek : integer; inline;
function EndOfWeek : integer; inline;
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
function GetIsFirstPage: boolean; override;
function GetIsFirstRecord: boolean; override;
function GetIsLastPage: boolean; override;
function GetIsLastRecord: boolean; override;
function GetIsNextRecord: boolean; override;
function GetIsPriorRecord: boolean; override;
procedure UpdateNavButtonState; override;
procedure SetActive(const Value: Boolean); override;
procedure SetSelectedDataRow(const Value: Integer); override;
procedure Loaded; override;
public
destructor Destroy; override;
constructor Create(AOwner: TComponent); override;
procedure CacheToGrid(Col: integer = -1; Row: integer = -1); override;
procedure DoAfterRenderHTML(Sender: TObject); override;
procedure DoBeforeRenderHTML(Sender: TObject; AContext: TIWBaseHTMLComponentContext); override;
procedure DoCellClick(Sender: TObject; const Col: Integer; const Row: Integer; var Data: string); override;
procedure DoCellData(Sender: TObject; x: Integer; y: Integer; var sValue: string); override;
procedure DoClickCaption(Sender: TObject; const Col: Integer); override;
function DoNeedOnClickEvent(Sender: TObject): Boolean; override;
procedure DoPopulateRow(Sender: TObject; const y: Integer; slValues: TStrings); override;
procedure DoReloadData(Sender: TObject); override;
procedure DoRender(Sender: TObject); override;
procedure DoRetrieveObject(Sender: TObject; x: Integer; y: Integer; var ctrl: TControl); override;
procedure DoRetrieveCBObject(Sender: TObject; x: Integer; var ctrl: TControl); override;
procedure DoRowClick(Sender: TObject; const Row: Integer); override;
procedure DoSelectCell(Sender: TObject; const x: Integer; const y: Integer; Value: Boolean); override;
procedure DoSelectCol(Sender: TObject; const x: Integer; Value: Boolean); override;
procedure DoSelectRow(Sender: TObject; const y: Integer; Value: Boolean); override;
procedure DoRenameColumn(Sender: TObject; OldName, NewName: string); override;
procedure DoSubmit(Sender: TObject; const AValue: string); override;
function DoNeedScript : string; override;
procedure Append; override;
procedure Delete; override;
procedure Post; override;
procedure Cancel; override;
procedure Edit; override;
procedure FirstPage; override;
procedure NextPage; override;
procedure PriorPage; override;
procedure LastPage; override;
procedure First; override;
procedure Prior; override;
procedure Next; override;
procedure Last; override;
procedure Refresh; override;
function ProcessCaption(str: string): string; override;
property SelCount : integer read GetSelCount;
property Selected[idx : integer] : TDateTime read GetSelected;
procedure Select(dt : TDateTime);
procedure Deselect(dt : TDateTime);
function FindSelected(dt : TDateTime; Precision : TArcCalendarPrecision = cpExact ) : integer;
function IsSelected(dt : TDateTime; Precision : TArcCalendarPrecision = cpExact) : Boolean;
published
property CaptionFormat : string read FCaptionFormat write SetCaptionFormat;
property Today : TDateTime read FToday write FToday;
property Scope : TArcCalendarScope read FScope write SetScope default csMonth;
property VisibleStart : TDateTime read FVisibleStart write FVisibleStart;
property Events : TArcCalendarEvents read FEvents write SetEvents;
property WeekStart : TArcCalendarDay read FWeekStart write FWeekStart;
property DaysPerWeek : integer read FDaysPerWeek write FDaysPerWeek default 7;
property DayStart : TTime read FDayStart write FDayStart;
property DayEnd : TTime read FDayEnd write FDayEnd;
property Use24HourClock : boolean read FUse24HourClock write FUse24HourClock;
property Labels : TArcCalendarLabels read FLabels write SetLabels;
property OnClickDateTime : TArcClickDateTimeEvent read FOnClickDateTime write FOnClickDateTime;
property OnClickEvent : TArcClickEventEvent read FOnClickEvent write FOnClickEvent;
end;
implementation
uses DateUtils;
const
SNotSupported = 'This function is not supported by the CalendarContent Component';
MaxDate = 23242572;
function SortEvents(Item1, Item2 : pointer) : integer;
begin
if TArcCalendarEvent(Item1).Scheduled < TArcCalendarEvent(Item2).Scheduled then
Result := -1
else if TArcCalendarEvent(Item1).Scheduled > TArcCalendarEvent(Item2).Scheduled then
Result := 1
else
Result := CompareText(TArcCalendarEvent(Item1).Title, TArcCalendarEvent(Item2).Title);
end;
{ TArcIWStringGridCalendarContent }
procedure TArcIWStringGridCalendarContent.Append;
begin
raise Exception.Create(SNotSupported);
end;
procedure TArcIWStringGridCalendarContent.CacheToGrid(Col, Row: integer);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.Cancel;
begin
raise Exception.Create(SNotSupported);
end;
function TArcIWStringGridCalendarContent.CFDefault(
Scope: TArcCalendarScope): string;
begin
case Scope of
csYear: Result := 'YYYY';
csQuarter: Result := 'MMMM, YYYY';
csMonth: Result := 'MMMM, YYYY';
csWeek: Result := 'MMMM, YYYY';
csDay: Result := 'MMMM D, YYYY';
end;
end;
constructor TArcIWStringGridCalendarContent.Create(AOwner: TComponent);
begin
inherited;
FCaptionFormat := 'MMMM, YYYY';
FSelected := TList.Create;
FVisibleStart := EncodeDate(YearOf(Now),MonthOf(Now),1);
FToday := Now;
FDayStart := EncodeTime(8,0,0,0);
FDayEnd := EncodeTime(17,0,0,0);
FUse24HourClock := True;
FWeekStart := cdSunday;
FEvents := TArcCalendarEvents.Create(Self);
FLabels := TArcCalendarLabels.Create;
FScope := csMonth;
FDaysPerWeek := 7;
end;
procedure TArcIWStringGridCalendarContent.Delete;
begin
raise Exception.Create(SNotSupported);
end;
procedure TArcIWStringGridCalendarContent.Deselect(dt: TDateTime);
var
idx : integer;
begin
idx := FindSelected(dt);
if idx >= 0 then
begin
Dispose(PDateTimeHolder(FSelected[idx]));
FSelected.Delete(idx);
end;
end;
destructor TArcIWStringGridCalendarContent.Destroy;
var
i: Integer;
begin
for i := 0 to FSelected.Count - 1 do
Dispose(PDateTimeHolder(FSelected[i]));
FSelected.Free;
FEvents.Free;
FLabels.Free;
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoAfterRenderHTML(Sender: TObject);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoBeforeRenderHTML(Sender: TObject;
AContext: TIWBaseHTMLComponentContext);
function RenderEvents(dt : TDateTime) : string;
var
i : integer;
ls : TList;
sImg : string;
evt : TArcCalendarEvent;
begin
Result := '';
dt := Trunc(dt);
ls := TList.Create;
try
for i := 0 to FEvents.Count - 1 do
if FEvents[i].ScheduledDate = dt then
ls.Add(FEvents[i]);
if ls.Count > 0 then
begin
if ls.Count > 1 then
ls.Sort(SortEvents);
for i := 0 to ls.Count - 1 do
begin
evt := TArcCalendarEvent(ls[i]);
sImg := evt.IconLocation(AContext.WebApplication.AppURLBase);
Result := Result+
'<div style="width:auto;'+evt.FStyle.RenderCSS(AContext)+
//IfThen(sImg = '','margin-left:'+IntToStr(evt.FIconWidth)+'px;')+
'" title="'+evt.Hint+'">'+
IfThen(sImg <> '','<img src="'+sImg+'" width='+IntToStr(evt.FIconWidth)+' height='+IntToStr(evt.FIconHeight)+'>')+
evt.Title+'</div>';
end;
end;
finally
ls.Free;
end;
end;
function RenderDayTime(dt : TDateTime) : string;
begin
case FScope of
csMonth: Result := '<span style="width:auto;height:100%;">'+IntToStr(DayOf(dt))+'</span>';
csWeek:
begin
Result := '<span style="width:auto;height:100%;">';
if DayOf(dt)=1 then
Result := Result+FLabels.FMonths.TextFor(TArcCalendarMonth(MonthOf(dt)-1),True)+' '+IntToStr(DayOf(dt))+'</span>'
else
Result := Result+IntToStr(DayOf(dt))+'</span>';
end;
csDay:
begin
if (dt / 100) = (Trunc(dt) div 100) then
dt := EncodeTime(Trunc(dt) div 100,0,0,0)
else
dt := EncodeTime(Trunc(dt) div 100,30,0,0);
Result := '<span style="width:auto;height:100%;font: 9px ''arial'';">'+TimeToStr(dt)+'</span>';
end;
end;
end;
function RenderMonth(dt : TDateTime) : string;
var
x, y, iStart, iCnt : integer;
dtStart : TDateTime;
s : string;
begin
Result := '<table border=0 style="width:100%;height:100$;'+Grid.StyleTable.RenderCSS(AContext)+'">'+
'<tr><td colspan=7 style="'+Grid.StyleDetail.RenderCSS(AContext)+'">'+FLabels.Months.TextFor(TArcCalendarMonth(MonthOf(dt)),False)+'</td></tr>';
dtStart := EncodeDate(YearOf(dt),MonthOf(dt),1);
iStart := DayOfWeek(dtStart);
iCnt := DaysInMonth(dtStart);
for y := 1 to 7 do
begin
Result := Result+'<tr>';
for x := 1 to 5 do
begin
if x < DayOfWeek(dtStart) then
s := ' '
else
s := IntToStr(DayOf(dtStart+x-1));
Result := Result+'<td style="'+Grid.StyleDetail.RenderCSS(AContext)+'">'+s+'</td>';
end;
Result := Result+'</tr>';
end;
Result := Result+'</table>';
end;
var
x, y : integer;
begin
inherited;
if not (FScope in [csYear, csQuarter]) then
begin
for x := 0 to Grid.Columns.Count - 1 do
for y := 0 to Grid.RowCount - 1 do
if Integer(Objects[x,y]) > 0 then
Grid.Cells[x, y] :=
RenderDayTime(Integer(Objects[x,y]))+
'<span style="width:100%;height:100%;display:block;overflow:auto;">'+RenderEvents(Integer(Objects[x,y]))+'</span>'
else
Grid.Cells[x,y] := '';
end else
begin
for x := 0 to Grid.Columns.Count - 1 do
for y := 0 to Grid.RowCount - 1 do
Grid.Cells[x, y] := RenderMonth(Integer(Objects[x,y]));
end;
end;
procedure TArcIWStringGridCalendarContent.DoCellClick(Sender: TObject;
const Col, Row: Integer; var Data: string);
begin
inherited;
if Assigned(FOnClickDateTime) then
case FScope of
csYear: ;
csQuarter: ;
csMonth: FOnClickDateTime(Self,Integer(Objects[Col,Row]));
csWeek: ;
csDay: ;
end;
end;
procedure TArcIWStringGridCalendarContent.DoCellData(Sender: TObject; x,
y: Integer; var sValue: string);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoClickCaption(Sender: TObject;
const Col: Integer);
begin
inherited;
end;
function TArcIWStringGridCalendarContent.DoNeedOnClickEvent(
Sender: TObject): Boolean;
begin
end;
function TArcIWStringGridCalendarContent.DoNeedScript: string;
begin
end;
procedure TArcIWStringGridCalendarContent.DoPopulateRow(Sender: TObject;
const y: Integer; slValues: TStrings);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoReloadData(Sender: TObject);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoRenameColumn(Sender: TObject;
OldName, NewName: string);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoRender(Sender: TObject);
procedure RestructureGrid(x,y : integer);
begin
Grid.RowCount := y;
while Grid.Columns.Count < x do
Grid.Columns.Add;
while Grid.Columns.Count > x do
Grid.Columns[Grid.Columns.Count-1].Free;
Grid.Refresh;
end;
procedure RenderYear;
var
x, y : integer;
dt : TDateTime;
begin
RestructureGrid(4,3);
Grid.ColumnsWidthsType := cwtPercent;
Grid.AutoRowHeight := True;
dt := EncodeDate(YearOf(FVisibleStart),1,1);
for x := 0 to Grid.Columns.Count - 1 do
begin
Grid.Columns[x].Width := 100 div 7;
Grid.Columns[x].Caption := FLabels.Quarters.TextFor(TArcCalendarQuarter(x),False);
for y := 0 to Grid.RowCount - 1 do
begin
Objects[x,y] := TObject(MonthOf(dt));
Grid.Cells[x,y] := '';
incMonth(dt);
end;
end;
end;
procedure RenderQuarter;
begin
RestructureGrid(1,3);
end;
procedure RenderMonth;
var
dtStart : TDateTime;
iStart, iCnt : integer;
i, x, y: Integer;
begin
RestructureGrid(7,6);
Grid.AutoRowHeight := False;
//Grid.ColumnsWidthsType := cwtPercent;
//Grid.RowHeaderHeight := 12;
//Grid.RowHeight := 100;
for x := 0 to Grid.Columns.Count - 1 do
begin
Grid.Columns[x].Width := 100 div 7;
Grid.Columns[x].Caption := FLabels.Days.TextFor(TArcCalendarDay(x),False);
for y := 0 to Grid.RowCount - 1 do
begin
Objects[x,y] := nil;
Grid.Cells[x,y] := '';
end;
end;
dtStart := EncodeDate(YearOf(FVisibleStart),MonthOf(FVisibleStart),1);
iStart := DayOfWeek(dtStart);
iCnt := DaysInMonth(dtStart);
x := DayOfWeek(dtStart)-1;
y := 0;
for i := 0 to iCnt-1 do
begin
if x > Grid.Columns.Count-1 then
begin
x := 0;
inc(y);
end;
Objects[x,y] := TObject(Trunc(dtStart));
Grid.Selected[x,y] := IsSelected(Trunc(dtStart),cpDay);
inc(x);
dtStart := IncDay(dtStart,1);
end;
if y < 5 then
Grid.RowCount := 5;
end;
procedure RenderWeek;
var
x : integer;
dt : TDateTime;
begin
RestructureGrid(FDaysPerWeek,1);
Grid.ColumnsWidthsType := cwtPercent;
Grid.AutoRowHeight := True;
dt := FindStartOfWeek(FVisibleStart);
for x := 0 to FDaysPerWeek - 1 do
begin
Grid.Columns[x].Width := 100 div FDaysPerWeek;
Grid.Columns[x].Caption := FLabels.Days.TextFor(TArcCalendarDay(x),True);
Objects[x,0] := TObject(Trunc(dt));
Grid.Selected[x,0] := IsSelected(Trunc(dt),cpDay);
dt := incDay(dt);
end;
end;
procedure RenderDay;
var
y : integer;
dt : TDateTime;
iRowCnt : integer;
begin
iRowCnt := (HoursBetween(FDayStart, FDayEnd)*2)+12;
RestructureGrid(1,iRowCnt);
Grid.ColumnsWidthsType := cwtPercent;
Grid.AutoRowHeight := True;
Grid.Columns[0].Width := 100;
dt := IncHour(FDayStart,-3);
y := 0;
while y < iRowCnt do
begin
//Grid.Columns[x].Caption := FLabels.Days.TextFor(TArcCalendarDay(x));
Objects[0,y] := TObject(HourOf(dt)*100);
Grid.Selected[0,y] := IsSelected(Trunc(dt),cpHour);
inc(y);
Objects[0,y] := TObject(HourOf(dt)*100+50);
Grid.Selected[0,y] := IsSelected(Trunc(dt),cpHour);
dt := IncHour(dt);
inc(y);
end;
end;
begin
case FScope of
csYear: RenderYear;
csQuarter: RenderQuarter;
csMonth: RenderMonth;
csWeek: RenderWeek;
csDay: RenderDay;
end;
end;
procedure TArcIWStringGridCalendarContent.DoRetrieveCBObject(Sender: TObject;
x: Integer; var ctrl: TControl);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoRetrieveObject(Sender: TObject; x,
y: Integer; var ctrl: TControl);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoRowClick(Sender: TObject;
const Row: Integer);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoSelectCell(Sender: TObject; const x,
y: Integer; Value: Boolean);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoSelectCol(Sender: TObject;
const x: Integer; Value: Boolean);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoSelectRow(Sender: TObject;
const y: Integer; Value: Boolean);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.DoSubmit(Sender: TObject;
const AValue: string);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.Edit;
begin
inherited;
raise Exception.Create(SNotSupported);
end;
function TArcIWStringGridCalendarContent.EndOfWeek: integer;
begin
Result := Integer(FWeekStart);
if Result = 0 then
Result := Integer(cdSaturday);
end;
function TArcIWStringGridCalendarContent.FindSelected(dt: TDateTime; Precision : TArcCalendarPrecision = cpExact): integer;
function Compare(dt1, dt2 : TDateTime) : boolean;
begin
case Precision of
cpYear: Result := (YearOf(dt1) = YearOf(dt2));
cpMonth: Result := (YearOf(dt1) = YearOf(dt2)) and (MonthOf(dt1) = MonthOf(dt2));
cpDay: Result := (Trunc(dt1) = Trunc(dt2));
cpHour: Result := (Trunc(dt1) = Trunc(dt2)) and (HourOf(dt1) = HourOf(dt2));
cpMinute: Result := (Trunc(dt1) = Trunc(dt2)) and (HourOf(dt1) = HourOf(dt2)) and (Minuteof(dt1) = Minuteof(dt2));
cpSecond: Result := (Trunc(dt1) = Trunc(dt2)) and (HourOf(dt1) = HourOf(dt2)) and (Minuteof(dt1) = Minuteof(dt2)) and (SecondOf(dt1) = Secondof(dt2));
cpExact: Result := dt1 = dt2;
end;
end;
var
i : integer;
begin
Result := -1;
for i := 0 to FSelected.Count - 1 do
if Compare(PDateTimeHolder(FSelected[i])^.DateTime, dt) then
begin
Result := i;
break;
end;
end;
procedure TArcIWStringGridCalendarContent.First;
begin
case FScope of
csYear : FVisibleStart := 0;
csQuarter : FVisibleStart := EncodeDate(YearOf(FVisibleStart),1,1);
csMonth : FVisibleStart := EncodeDate(YearOf(FVisibleStart),1,1);
csWeek : FVisibleStart := EncodeDate(YearOf(FVisibleStart),1,1);
csDay : FVisibleStart := Trunc(FVisibleStart);
end;
end;
procedure TArcIWStringGridCalendarContent.FirstPage;
begin
case FScope of
csYear : FVisibleStart := 0;
csQuarter : FVisibleStart := 0;
csMonth : FVisibleStart := 0;
csWeek : FVisibleStart := 0;
csDay : FVisibleStart := 0;
end;
end;
function TArcIWStringGridCalendarContent.GetIsFirstPage: boolean;
begin
Result := YearOf(FVisibleStart) = YearOf(0);
case FScope of
csQuarter : Result := Result and (Monthof(FVisibleStart) = 1);
csMonth : Result := Result and (Monthof(FVisibleStart) = 1);
csWeek : Result := Result and (Monthof(FVisibleStart) = 1) and (WeekOf(FVisibleStart)=Weekof(0));
csDay : Result := Trunc(FVisibleStart) = 0;
end;
end;
function TArcIWStringGridCalendarContent.GetIsFirstRecord: boolean;
begin
case FScope of
csYear : Result := FVisibleStart = 0;
csQuarter : Result := FVisibleStart = EncodeDate(YearOf(FVisibleStart),1,1);
csMonth : Result := FVisibleStart = EncodeDate(YearOf(FVisibleStart),1,1);
csWeek : Result := FVisibleStart = EncodeDate(YearOf(FVisibleStart),1,1);
csDay : Result := FVisibleStart = Trunc(FVisibleStart);
end;
end;
function TArcIWStringGridCalendarContent.GetIsLastPage: boolean;
begin
case FScope of
csYear : Result := EncodeDate(YearOf(FVisibleStart),1,1) = EncodeDate(YearOf(MaxDate),1,1);
csQuarter : Result := EncodeDate(YearOf(FVisibleStart),10,1) = EncodeDate(YearOf(MaxDate),10,1);
csMonth : Result := EncodeDate(YearOf(FVisibleStart),12,1) = EncodeDate(YearOf(MaxDate),12,1);
csWeek : Result := FindStartOfWeek(EncodeDate(YearOf(FVisibleStart),12,31)) = FindStartOfWeek(EncodeDate(YearOf(MaxDate),12,31));
csDay : Result := EncodeDate(YearOf(FVisibleStart),12,31) = EncodeDate(YearOf(MaxDate),12,31);
end;
end;
function TArcIWStringGridCalendarContent.GetIsLastRecord: boolean;
begin
end;
function TArcIWStringGridCalendarContent.GetIsNextRecord: boolean;
begin
end;
function TArcIWStringGridCalendarContent.GetIsPriorRecord: boolean;
begin
end;
function TArcIWStringGridCalendarContent.GetSelCount: integer;
begin
end;
function TArcIWStringGridCalendarContent.GetSelected(idx : integer): TDateTime;
begin
end;
function TArcIWStringGridCalendarContent.IsSelected(dt: TDateTime; Precision : TArcCalendarPrecision = cpExact): Boolean;
begin
Result := FindSelected(dt, Precision) >= 0;
end;
function TArcIWStringGridCalendarContent.FindStartOfWeek(dt : TDateTime) : TDateTime;
begin
Result := dt;
while DayOfWeek(Result) <> StartOfWeek do
Result := IncDay(Result,-1);
end;
function TArcIWStringGridCalendarContent.FindEndOfWeek(dt : TDateTime) : TDateTime;
begin
Result := dt;
while DayOfWeek(Result) <> EndOfWeek do
Result := IncDay(Result,1);
end;
procedure TArcIWStringGridCalendarContent.Last;
begin
case FScope of
csYear : FVisibleStart := EncodeDate(YearOf(MaxDate),1,1);
csQuarter : FVisibleStart := EncodeDate(YearOf(FVisibleStart),10,1);
csMonth : FVisibleStart := EncodeDate(YearOf(FVisibleStart),12,1);
csWeek : FVisibleStart := FindStartOfWeek(EncodeDate(YearOf(FVisibleStart),12,31));
csDay : FVisibleStart := EncodeDate(YearOf(FVisibleStart),12,31);
end;
end;
procedure TArcIWStringGridCalendarContent.LastPage;
begin
case FScope of
csYear : FVisibleStart := EncodeDate(YearOf(MaxDate),1,1);
csQuarter : FVisibleStart := EncodeDate(YearOf(MaxDate),10,1);
csMonth : FVisibleStart := EncodeDate(YearOf(MaxDate),12,1);
csWeek : FVisibleStart := FindStartOfWeek(EncodeDate(YearOf(MaxDate),12,31));
csDay : FVisibleStart := EncodeDate(YearOf(MaxDate),12,31);
end;
end;
procedure TArcIWStringGridCalendarContent.Loaded;
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.Next;
begin
case FScope of
csYear : FVisibleStart := IncYear(FVisibleStart,1);
csQuarter : FVisibleStart := IncMonth(FVisibleStart,3);
csMonth : FVisibleStart := IncMonth(FVisibleStart,1);
csWeek : FVisibleStart := IncWeek(FVisibleStart,1);
csDay : FVisibleStart := IncDay(FVisibleStart,1);
end;
if (FVisibleStart < 0) or (FVisibleStart > MaxDate) then
FVisibleStart := MaxDate;
end;
procedure TArcIWStringGridCalendarContent.NextPage;
begin
case FScope of
csYear : FVisibleStart := IncYear(FVisibleStart,1);
csQuarter : FVisibleStart := IncYear(FVisibleStart,1);
csMonth : FVisibleStart := IncYear(FVisibleStart,1);
csWeek : FVisibleStart := IncMonth(FVisibleStart,1);
csDay : FVisibleStart := IncMonth(FVisibleStart,1);
end;
if (FVisibleStart < 0) or (FVisibleStart > MaxDate) then
FVisibleStart := MaxDate;
end;
procedure TArcIWStringGridCalendarContent.Notification(AComponent: TComponent;
Operation: TOperation);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.Post;
begin
raise Exception.Create(SNotSupported);
end;
procedure TArcIWStringGridCalendarContent.Prior;
begin
case FScope of
csYear : FVisibleStart := IncYear(FVisibleStart,-1);
csQuarter : FVisibleStart := IncMonth(FVisibleStart,-3);
csMonth : FVisibleStart := IncMonth(FVisibleStart,-1);
csWeek : FVisibleStart := IncWeek(FVisibleStart,-1);
csDay : FVisibleStart := IncDay(FVisibleStart,-1);
end;
if FVisibleStart < 0 then
FVisibleStart := 0;
end;
procedure TArcIWStringGridCalendarContent.PriorPage;
begin
case FScope of
csYear : FVisibleStart := IncYear(FVisibleStart,-1);
csQuarter : FVisibleStart := IncYear(FVisibleStart,-1);
csMonth : FVisibleStart := IncYear(FVisibleStart,-1);
csWeek : FVisibleStart := IncMonth(FVisibleStart,-1);
csDay : FVisibleStart := IncMonth(FVisibleStart,-1);
end;
if FVisibleStart < 0 then
FVisibleStart := 0;
end;
function TArcIWStringGridCalendarContent.ProcessCaption(str: string): string;
var
sDate : string;
begin
DateTimeToString(sDate,FCaptionFormat,FVisibleStart);
Result := FastReplace(str, '<#>', sDate, true);
end;
procedure TArcIWStringGridCalendarContent.Refresh;
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.Select(dt: TDateTime);
var
p : PDateTimeHolder;
begin
New(p);
p^.DateTime := dt;
FSelected.Add(p);
end;
procedure TArcIWStringGridCalendarContent.SetActive(const Value: Boolean);
begin
inherited;
end;
procedure TArcIWStringGridCalendarContent.SetCaptionFormat(const Value: string);
begin
FCaptionFormat := Value;
end;
procedure TArcIWStringGridCalendarContent.SetEvents(
const Value: TArcCalendarEvents);
begin
FEvents.Assign(Value);
end;
procedure TArcIWStringGridCalendarContent.SetLabels(
const Value: TArcCalendarLabels);
begin
FLabels.Assign(Value);
end;
procedure TArcIWStringGridCalendarContent.SetScope(
const Value: TArcCalendarScope);
begin
if FCaptionFormat = CFDefault(FScope) then
FCaptionFormat := CFDefault(Value);
FScope := Value;
end;
procedure TArcIWStringGridCalendarContent.SetSelectedDataRow(
const Value: Integer);
begin
inherited;
end;
function TArcIWStringGridCalendarContent.StartOfWeek: integer;
begin
Result := Integer(FWeekStart)+1;
end;
procedure TArcIWStringGridCalendarContent.UpdateNavButtonState;
begin
inherited;
end;
{ TArcCalendarEvent }
procedure TArcCalendarEvent.AssignTo(Dest: TPersistent);
begin
TArcCalendarEvent(Dest).FHint := FHint;
TArcCalendarEvent(Dest).FTitle := FTitle;
TArcCalendarEvent(Dest).FDescription := FDescription;
TArcCalendarEvent(Dest).FScheduled := FScheduled;
TArcCalendarEvent(Dest).FStyle.Assign(FStyle);
TArcCalendarEvent(Dest).FIcon.Assign(FIcon);
end;
constructor TArcCalendarEvent.Create(Collection: TCollection);
begin
inherited;
FStyle := TArcGridStyle.Create(False, False, False, False);
FStyle.BackgroundColor := clNone;
FStyle.BorderStyle.Style := brdNone;
FStyle.Font.FontName := 'Arial';
FStyle.Font.Size := 9;
FIcon := TIWFileReference.Create;
FIconWidth := 16;
FIconHeight := 16;
end;
destructor TArcCalendarEvent.Destroy;
begin
FStyle.Free;
FIcon.Free;
inherited;
end;
function TArcCalendarEvent.IconLocation(URLBase: string): string;
begin
Result := FIcon.Location(URLBase);
end;
function TArcCalendarEvent.GetDisplayName: string;
begin
Result := FTitle;
if Result = '' then
Result := '(untitled)';
end;
function TArcCalendarEvent.GetScheduledDate: TDate;
begin
Result := Trunc(Scheduled);
end;
function TArcCalendarEvent.GetScheduledTime: TTime;
begin
Result := Scheduled-Trunc(Scheduled);
end;
procedure TArcCalendarEvent.SetIcon(const Value: TIWFileReference);
begin
FIcon := Value;
end;
procedure TArcCalendarEvent.SetStyle(const Value: TArcGridStyle);
begin
FStyle := Value;
end;
{ TArcCalendarEvents }
function TArcCalendarEvents.Add: TArcCalendarEvent;
begin
Result := TArcCalendarEvent(inherited Add);
end;
constructor TArcCalendarEvents.Create(content: TArcIWStringGridCalendarContent);
begin
inherited Create(content, TArcCalendarEvent);
FContent := Content;
end;
destructor TArcCalendarEvents.Destroy;
begin
inherited;
end;
function TArcCalendarEvents.GetItem(idx: integer): TArcCalendarEvent;
begin
Result := TArcCalendarEvent(inherited Items[idx]);
end;
procedure TArcCalendarEvents.SetItem(idx: integer;
const Value: TArcCalendarEvent);
begin
inherited Items[idx] := Value;
end;
{ TArcCalendarLabelsMonths }
procedure TArcCalendarLabelsMonths.AssignTo(Dest: TPersistent);
begin
TArcCalendarLabelsMonths(Dest).FApril := FApril;
TArcCalendarLabelsMonths(Dest).FApr := FApr;
TArcCalendarLabelsMonths(Dest).FNovember := FNovember;
TArcCalendarLabelsMonths(Dest).FNov := FNov;
TArcCalendarLabelsMonths(Dest).FMay := FMay;
TArcCalendarLabelsMonths(Dest).FMa := FMa;
TArcCalendarLabelsMonths(Dest).FDecember := FDecember;
TArcCalendarLabelsMonths(Dest).FDec := FDec;
TArcCalendarLabelsMonths(Dest).FAugust := FAugust;
TArcCalendarLabelsMonths(Dest).FAug := FAug;
TArcCalendarLabelsMonths(Dest).FFebruary := FFebruary;
TArcCalendarLabelsMonths(Dest).FFeb := FFeb;
TArcCalendarLabelsMonths(Dest).FJune := FJune;
TArcCalendarLabelsMonths(Dest).FJun := FJun;
TArcCalendarLabelsMonths(Dest).FMarch := FMarch;
TArcCalendarLabelsMonths(Dest).FMar := FMar;
TArcCalendarLabelsMonths(Dest).FJuly := FJuly;
TArcCalendarLabelsMonths(Dest).FJul := FJul;
TArcCalendarLabelsMonths(Dest).FOctober := FOctober;
TArcCalendarLabelsMonths(Dest).FOct := FOct;
TArcCalendarLabelsMonths(Dest).FSeptember := FSeptember;
TArcCalendarLabelsMonths(Dest).FSep := FSep;
TArcCalendarLabelsMonths(Dest).FJanuary := FJanuary;
TArcCalendarLabelsMonths(Dest).FJan := FJan;
end;
constructor TArcCalendarLabelsMonths.Create;
begin
inherited Create;
FApril := 'April';
FNovember := 'November';
FMay := 'May';
FDecember := 'December';
FAugust := 'August';
FFebruary := 'February';
FJune := 'June';
FMarch := 'March';
FJuly := 'July';
FOctober := 'October';
FSeptember := 'September';
FJanuary := 'January';
FApr := 'Apr';
FNov := 'Nov';
FMa := 'May';
FDec := 'Dec';
FAug := 'Aug';
FFeb := 'Feb';
FJun := 'Jun';
FMar := 'Mar';
FJul := 'Jul';
FOct := 'Oct';
FSep := 'Sep';
FJan := 'Jan';
end;
function TArcCalendarLabelsMonths.TextFor(Month : TArcCalendarMonth;
Abbreviated: boolean): string;
begin
if Abbreviated then
case Month of
cmJanuary: Result := FJan;
cmFebruary: Result := FFeb;
cmMarch: Result := FMar;
cmApril: Result := FApr;
cmMay: Result := FMay;
cmJune: Result := FJun;
cmJuly: Result := FJul;
cmAugust: Result := FAug;
cmSeptember: Result := FSep;
cmOctober: Result := FOct;
cmNovember: Result := FNov;
cmDecember: Result := FDec;
end
else
case Month of
cmJanuary: Result := FJanuary;
cmFebruary: Result := FFebruary;
cmMarch: Result := FMarch;
cmApril: Result := FApril;
cmMay: Result := FMa;
cmJune: Result := FJune;
cmJuly: Result := FJuly;
cmAugust: Result := FAugust;
cmSeptember: Result := FSeptember;
cmOctober: Result := FOctober;
cmNovember: Result := FNovember;
cmDecember: Result := FDecember;
end;
end;
{ TArcCalendarLabelsDays }
procedure TArcCalendarLabelsDays.AssignTo(Dest: TPersistent);
begin
TArcCalendarLabelsDays(Dest).FSunday := FSunday;
TArcCalendarLabelsDays(Dest).FSun := FSun;
TArcCalendarLabelsDays(Dest).FWednesday := FWednesday;
TArcCalendarLabelsDays(Dest).FWed := FWed;
TArcCalendarLabelsDays(Dest).FTuesday := FTuesday;
TArcCalendarLabelsDays(Dest).FTue := FTue;
TArcCalendarLabelsDays(Dest).FFriday := FFriday;
TArcCalendarLabelsDays(Dest).FFri := FFri;
TArcCalendarLabelsDays(Dest).FThursday := FThursday;
TArcCalendarLabelsDays(Dest).FThu := FThu;
TArcCalendarLabelsDays(Dest).FMonday := FMonday;
TArcCalendarLabelsDays(Dest).FMon := FMon;
TArcCalendarLabelsDays(Dest).FSaturday := FSaturday;
TArcCalendarLabelsDays(Dest).FSat := FSat;
end;
constructor TArcCalendarLabelsDays.Create;
begin
inherited Create;
FSunday := 'Sunday';
FWednesday := 'Wednesday';
FTuesday := 'Tuesday';
FFriday := 'Friday';
FThursday := 'Thursday';
FMonday := 'Monday';
FSaturday := 'Saturday';
end;
function TArcCalendarLabelsDays.TextFor(Day: TArcCalendarDay; Abbreviated : boolean): string;
begin
if Abbreviated then
case Day of
cdSunday: Result := FSun;
cdMonday: Result := FMon;
cdTuesday: Result := FTue;
cdWednesday: Result := FWed;
cdThursday: Result := FThu;
cdFriday: Result := FFri;
cdSaturday: Result := FSat;
end
else
case Day of
cdSunday: Result := FSunday;
cdMonday: Result := FMonday;
cdTuesday: Result := FTuesday;
cdWednesday: Result := FWednesday;
cdThursday: Result := FThursday;
cdFriday: Result := FFriday;
cdSaturday: Result := FSaturday;
end;
end;
{ TArcCalendarLabels }
constructor TArcCalendarLabels.Create;
begin
inherited Create;
FQuarters := TArcCalendarLabelsQuarters.Create;
FDays := TArcCalendarlabelsDays.Create;
FMonths := TArcCalendarLabelsMonths.Create;
end;
destructor TArcCalendarLabels.Destroy;
begin
FQuarters.Free;
FDays.Free;
FMonths.Free;
inherited;
end;
procedure TArcCalendarLabels.SetDays(const Value: TArcCalendarLabelsDays);
begin
FDays.Assign(Value);
end;
procedure TArcCalendarLabels.SetMonths(const Value: TArcCalendarLabelsMonths);
begin
FMonths.Assign(Value);
end;
procedure TArcCalendarLabels.SetQuarters(
const Value: TArcCalendarLabelsQuarters);
begin
FQuarters.Assign(Value);
end;
{ TArcCalendarLabelsQuarters }
procedure TArcCalendarLabelsQuarters.AssignTo(Dest: TPersistent);
begin
TArcCalendarLabelsQuarters(Dest).FQtr1 := FQtr1;
TArcCalendarLabelsQuarters(Dest).FQuarter1 := FQuarter1;
TArcCalendarLabelsQuarters(Dest).FQtr2 := FQtr2;
TArcCalendarLabelsQuarters(Dest).FQuarter2 := FQuarter2;
TArcCalendarLabelsQuarters(Dest).FQtr3 := FQtr3;
TArcCalendarLabelsQuarters(Dest).FQuarter3 := FQuarter3;
TArcCalendarLabelsQuarters(Dest).FQtr4 := FQtr4;
TArcCalendarLabelsQuarters(Dest).FQuarter4 := FQuarter4;
end;
constructor TArcCalendarLabelsQuarters.Create;
begin
inherited Create;
FQuarter1 := 'Quarter 1';
FQtr1 := 'Qtr 1';
FQuarter2 := 'Quarter 2';
FQtr2 := 'Qtr 2';
FQuarter3 := 'Quarter 3';
FQtr3 := 'Qtr 3';
FQuarter4 := 'Quarter 4';
FQtr4 := 'Qtr 4';
end;
function TArcCalendarLabelsQuarters.TextFor(Qtr: TArcCalendarQuarter;
Abbreviated: boolean): string;
begin
if Abbreviated then
case Qtr of
cqQ1: Result := FQtr1;
cqQ2: Result := FQtr2;
cqQ3: Result := FQtr3;
cqQ4: Result := FQtr4;
end
else
case Qtr of
cqQ1: Result := FQuarter1;
cqQ2: Result := FQuarter2;
cqQ3: Result := FQuarter3;
cqQ4: Result := FQuarter4;
end;
end;
end.
| 30.954834 | 159 | 0.689032 |
f1996c54419a04d68290e4a144666ede24977245
| 14,201 |
dfm
|
Pascal
|
source/uFrmLocalizar.dfm
|
roneysousa/folha
|
5e93f467b822d0c6d34aa1c9e099b390e3311d33
|
[
"MIT"
] | null | null | null |
source/uFrmLocalizar.dfm
|
roneysousa/folha
|
5e93f467b822d0c6d34aa1c9e099b390e3311d33
|
[
"MIT"
] | null | null | null |
source/uFrmLocalizar.dfm
|
roneysousa/folha
|
5e93f467b822d0c6d34aa1c9e099b390e3311d33
|
[
"MIT"
] | null | null | null |
object frmLocalizarDados: TfrmLocalizarDados
Left = 189
Top = 140
BorderIcons = [biSystemMenu]
BorderStyle = bsSingle
Caption = 'Localizar'
ClientHeight = 249
ClientWidth = 458
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
ShowHint = True
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 458
Height = 65
Align = alTop
TabOrder = 0
object lblConsultar: TLabel
Left = 11
Top = 5
Width = 84
Height = 13
Caption = 'Nome/Descri'#231#227'o:'
end
object edtConsultar: TEdit
Left = 10
Top = 21
Width = 346
Height = 19
CharCase = ecUpperCase
Ctl3D = False
ParentCtl3D = False
TabOrder = 0
OnChange = edtConsultarChange
OnKeyDown = edtConsultarKeyDown
OnKeyPress = edtConsultarKeyPress
end
object btnAlterar: TBitBtn
Left = 369
Top = 17
Width = 75
Height = 25
Caption = '&OK'
Enabled = False
ParentShowHint = False
ShowHint = True
TabOrder = 1
OnClick = btnAlterarClick
Glyph.Data = {
DE010000424DDE01000000000000760000002800000024000000120000000100
0400000000006801000000000000000000001000000000000000000000000000
80000080000000808000800000008000800080800000C0C0C000808080000000
FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
3333333333333333333333330000333333333333333333333333F33333333333
00003333344333333333333333388F3333333333000033334224333333333333
338338F3333333330000333422224333333333333833338F3333333300003342
222224333333333383333338F3333333000034222A22224333333338F338F333
8F33333300003222A3A2224333333338F3838F338F33333300003A2A333A2224
33333338F83338F338F33333000033A33333A222433333338333338F338F3333
0000333333333A222433333333333338F338F33300003333333333A222433333
333333338F338F33000033333333333A222433333333333338F338F300003333
33333333A222433333333333338F338F00003333333333333A22433333333333
3338F38F000033333333333333A223333333333333338F830000333333333333
333A333333333333333338330000333333333333333333333333333333333333
0000}
NumGlyphs = 2
end
end
object Panel3: TPanel
Left = 424
Top = 65
Width = 34
Height = 184
Align = alRight
TabOrder = 1
object sbProximo: TSpeedButton
Left = 5
Top = 83
Width = 25
Height = 35
Hint = 'Pr'#243'ximo registro'
Enabled = False
Flat = True
Glyph.Data = {
76060000424D7606000000000000360400002800000018000000180000000100
0800000000004002000000000000000000000001000000000000FFFFFF00FFE6
E600FEE5E500FCE3E300FBE1E100F9DFE000F7DDDE00F7DDDD00F5DBDB00F4DB
DB00F2D9D900E6D9D900F0D6D700EED4D400EBD2D200E9D0D000E9CFD000E7CD
CD00E5CBCB00E3C9C900E0C7C700DEC4C400DCC2C200CCC0C000D9C0BF00D7BE
BD00D4BBBB00D3B9B900D0B7B700CFB5B500CEB4B400CCB3B300C9B0B000C7AE
AE00C5ACAC00C3AAAA00C1A8A800C1A7A700BFA5A500BDA3A300BCA3A300BAA0
A100BAA1A000B89E9E00B59C9C00B39A9A00AF969600AD949400A88F8F00A68D
8D00A18888009F8686009B8382009A818100998080006633330000000000C0C0
C000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000393939393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939393939003939
3939393939393939393939393939393939393939000037393939393939393939
39393939393939393939390000370D3839393939393939393939393939393939
39390000370D260D383939393939393939393939393939393900003706260D2E
1138393939393939393939393939393900003706260D2C112E15383939393939
3939393939393900003705210D2B112E15311938393939393939393939390000
3706210D261038143019331D383939393939393939000037012106260D383938
18331D331D38393939393939000037012106260D3839393938193321331D3839
393939393937011D05250C3839393939393821331D170B383939393939393801
25063839393939393939381D170B383939393939393939380638393939393939
393939380B383939393939393939393938393939393939393939393938393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939393939393939
3939393939393939393939393939393939393939393939393939}
ParentShowHint = False
ShowHint = True
OnClick = sbProximoClick
end
object sbUltimo: TSpeedButton
Left = 5
Top = 122
Width = 25
Height = 35
Hint = #218'ltimo registro'
Enabled = False
Flat = True
Glyph.Data = {
96010000424D9601000000000000760000002800000018000000180000000100
0400000000002001000000000000000000001000000000000000FFFFFF006130
30006E3D3D00916161009E6E6E00C2919100CF9E9E00C0C0C000000000000000
0000000000000000000000000000000000000000000000000000777777777777
7777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777077777777777777777777770027777777
7777777777777002327777777777777777770023432777777777777777700234
3432777777777777770023434343277777777777700234343434327777777777
0025656565656547777777700256565656565654777777772121212121212121
2777777777777777777777777777777000000000000000007777777034343434
3434343617777770456565656565656527777770365656565656565617777770
4565656565656565277777771212121212121212177777777777777777777777
7777777777777777777777777777777777777777777777777777}
ParentShowHint = False
ShowHint = True
OnClick = sbUltimoClick
end
object sbAnterior: TSpeedButton
Left = 5
Top = 44
Width = 25
Height = 35
Hint = 'Registro anterior'
Enabled = False
Flat = True
Glyph.Data = {
76060000424D7606000000000000360400002800000018000000180000000100
0800000000004002000000000000000000000001000000000000FFFFFF00FEE5
E400FDE3E300FBE1E100F9DFE000F7DEDD00F4DBDB00F2D9D900E6D9D900F0D7
D700EED4D400EBD2D200E9CFCF00E7CECD00E5CBCB00E3C9C900E0C6C700DEC4
C500DBC2C200D9C0C000CDC0C000CCC0C000D7BDBD00D5BBBB00D3B9B900D1B7
B700CFB6B500CFB5B500CDB4B400CCB3B300C7AEAE00C6ACAC00C1A8A800BFA6
A600BAA0A100B89E9E00B39A9A00B1989800AD949400AA919100A68D8D00A38A
8A009F8686009D8484009C8283009A818100998080006633330000000000C0C0
C000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131003131313131313131
313131003131313131313131313100002F31313131313131313100002F313131
313131313100002F01303131313131313100002F1A3031313131313100002F01
1E0530313131313100002F1A2A1A303131313131312F011E05210A3031313100
002F1E2A1A1408303131313131313004210A230D303100002F1E2A1A14083031
313131313131313005210D241130002F1A2A1A16083031313131313131313131
300A240D26162F1A2A1A140830313131313131313131313131300D2611281A2A
1A1408303131313131313131313131313131301128162A1A1408303131313131
313131313131313131313130162A1A1408303131313131313131313131313131
3131313130191408303131313131313131313131313131313131313131300830
3131313131313131313131313131313131313131313130313131313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131313131313131313131
3131313131313131313131313131313131313131313131313131}
ParentShowHint = False
ShowHint = True
OnClick = sbAnteriorClick
end
object sbPrimeiro: TSpeedButton
Left = 5
Top = 6
Width = 25
Height = 35
Hint = 'Primeiro registro'
Enabled = False
Flat = True
Glyph.Data = {
96010000424D9601000000000000760000002800000018000000180000000100
0400000000002001000000000000000000001000000000000000FFFFFF006130
30006E3D3D00916161009E6E6E00C2919100CF9E9E00C0C0C000000000000000
0000000000000000000000000000000000000000000000000000777777777777
7777777777777777777777777777777777777777777777777777777777777770
0000000000000000777777703434343434343436177777704565656565656565
2777777036565656565656561777777045656565656565652777777712121212
1212121217777777777777777777777777777777777777777777777777777770
0000000000000000777777771212121212121212177777777143434343434341
7777777777143434343656177777777777714343436561777777777777771434
3656177777777777777771436561777777777777777777165617777777777777
7777777161777777777777777777777717777777777777777777777777777777
7777777777777777777777777777777777777777777777777777}
ParentShowHint = False
ShowHint = True
OnClick = sbPrimeiroClick
end
end
object grdConsultar: TDBGrid
Left = 0
Top = 65
Width = 424
Height = 184
Align = alClient
Ctl3D = False
Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
ParentCtl3D = False
ReadOnly = True
TabOrder = 2
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
end
object dsConsultar: TDataSource
DataSet = cdsConsultar
OnStateChange = dsConsultarStateChange
OnDataChange = dsConsultarDataChange
Left = 164
Top = 178
end
object datasetConsultar: TSQLDataSet
Params = <>
Left = 244
Top = 178
end
object dspConsultar: TDataSetProvider
DataSet = datasetConsultar
Options = [poAllowCommandText]
Left = 324
Top = 178
end
object cdsConsultar: TClientDataSet
Aggregates = <>
Params = <>
ProviderName = 'dspConsultar'
Left = 372
Top = 178
end
end
| 45.662379 | 131 | 0.806281 |
f1b46c6051f5f689d3fab2465118a5c08b7b545e
| 1,246 |
dpr
|
Pascal
|
Chapter07/CODE/RECIPE07_web_broker_apache/mod_peoplemanager.dpr
|
PacktPublishing/DelphiCookbookThirdEdition
|
760fd16277dd21a75320571c664553af33e29950
|
[
"MIT"
] | 51 |
2018-08-03T06:27:36.000Z
|
2022-03-16T09:10:10.000Z
|
Chapter07/CODE/RECIPE07_web_broker_apache/mod_peoplemanager.dpr
|
PacktPublishing/DelphiCookbookThirdEdition
|
760fd16277dd21a75320571c664553af33e29950
|
[
"MIT"
] | 1 |
2021-02-07T16:26:57.000Z
|
2021-03-02T06:36:26.000Z
|
Chapter07/CODE/RECIPE07_web_broker_apache/mod_peoplemanager.dpr
|
PacktPublishing/DelphiCookbookThirdEdition
|
760fd16277dd21a75320571c664553af33e29950
|
[
"MIT"
] | 28 |
2018-08-03T22:20:00.000Z
|
2021-12-02T03:49:03.000Z
|
library mod_peoplemanager;
uses
{$IFDEF MSWINDOWS}
Winapi.ActiveX,
{$ENDIF }
Web.WebBroker,
Web.ApacheApp,
Web.HTTPD24Impl,
WebModuleU in 'WebModuleU.pas' {WebModule1: TWebModule},
SampleControllerU in 'SampleControllerU.pas';
{$R *.res}
// httpd.conf entries:
//
(*
LoadModule peoplemanager_module modules/mod_peoplemanager.dll
<Location /xyz>
SetHandler mod_peoplemanager-handler
</Location>
*)
//
// These entries assume that the output directory for this project is the apache/modules directory.
//
// httpd.conf entries should be different if the project is changed in these ways:
// 1. The TApacheModuleData variable name is changed.
// 2. The project is renamed.
// 3. The output directory is not the apache/modules directory.
// 4. The dynamic library extension depends on a platform. Use .dll on Windows and .so on Linux.
//
// Declare exported variable so that Apache can access this module.
var
GModuleData: TApacheModuleData;
exports
GModuleData name 'peoplemanager_module';
begin
{$IFDEF MSWINDOWS}
CoInitFlags := COINIT_MULTITHREADED;
{$ENDIF}
Web.ApacheApp.InitApplication(@GModuleData);
Application.Initialize;
Application.WebModuleClass := WebModuleClass;
Application.Run;
end.
| 25.428571 | 99 | 0.752809 |
f1a40eed0b404fd7fc40e24e5d5e82fdeb0a87e2
| 2,791 |
pas
|
Pascal
|
Source/View/Dialogs/eTasks.View.Dialogs.Termos.pas
|
bravesoftdz/eTasks
|
58d0ab3061010647cac2dd995c5bc5d984698dc0
|
[
"MIT"
] | 3 |
2021-04-05T02:14:33.000Z
|
2021-12-29T02:58:38.000Z
|
Source/View/Dialogs/eTasks.View.Dialogs.Termos.pas
|
WJeanSmith/eTasks
|
dd3574094548bdcbadf8c1dc0602b9ef17d30cdf
|
[
"MIT"
] | null | null | null |
Source/View/Dialogs/eTasks.View.Dialogs.Termos.pas
|
WJeanSmith/eTasks
|
dd3574094548bdcbadf8c1dc0602b9ef17d30cdf
|
[
"MIT"
] | null | null | null |
unit eTasks.View.Dialogs.Termos;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Objects,
FMX.Layouts, FMX.Controls.Presentation, FMX.ScrollBox, FMX.Memo, FMX.Ani;
type
TDlg_Termos = class(TForm)
Lay_dlg_termos: TLayout;
RecEscurecer: TRectangle;
Lay_caixa_msg: TLayout;
RecDesignCaixa: TRectangle;
Container_principal: TLayout;
Lay_topo: TLayout;
Img_logo_termos: TImage;
Img_titulo_termos: TImage;
Container_botao: TLayout;
Button_message: TImage;
Memo1: TMemo;
AnimaFundo: TFloatAnimation;
AnimaDialogo: TFloatAnimation;
procedure RecEscurecerClick(Sender: TObject);
procedure Button_messageClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure AnimaFundoFinish(Sender: TObject);
private
{ Private declarations }
FAcaoBotao : TProc;
FAcaoFundo : TProc;
public
{ Public declarations }
Function Exibe : TLayout;
Function AcaoBotao (Value : TProc) : TDlg_Termos;
Function AcaoFundo (Value : TProc) : TDlg_Termos;
Procedure Fechar;
end;
var
Dlg_Termos: TDlg_Termos;
implementation
{$R *.fmx}
function TDlg_Termos.AcaoBotao(Value: TProc): TDlg_Termos;
begin
Result := Self;
FAcaoBotao := value;
end;
function TDlg_Termos.AcaoFundo(Value: TProc): TDlg_Termos;
begin
Result := Self;
FAcaoFundo := value;
end;
procedure TDlg_Termos.AnimaFundoFinish(Sender: TObject);
begin
if AnimaFundo.Inverse = True then
Self.DisposeOf;
end;
procedure TDlg_Termos.Button_messageClick(Sender: TObject);
begin
if assigned(FAcaoBotao) then
FAcaoBotao;
AnimaDialogo.Inverse := True;
AnimaFundo.Inverse := True;
AnimaDialogo.Start;
AnimaFundo.Start;
end;
function TDlg_Termos.Exibe: TLayout;
{$ifdef MSWindows}
var
FMargem : single;
{$endif}
begin
Result := Lay_dlg_termos;
{$ifdef Mswindows}
FMargem := (TForm(Self.Parent).Width - 320)/2;
RecDesignCaixa.Margins.Left := FMargem;
RecDesignCaixa.Margins.Right := FMargem;
{$Endif}
AnimaFundo.Start;
AnimaDialogo.Start;
end;
procedure TDlg_Termos.Fechar;
begin
Self.RecEscurecerClick(self);
end;
procedure TDlg_Termos.FormCreate(Sender: TObject);
{$ifdef Android}
var
FMargem : single;
{$endif}
begin
{$ifdef Android}
FMargem := (Screen.Width - 320)/2;
RecDesignCaixa.Margins.Left := FMargem;
RecDesignCaixa.Margins.Right := FMargem;
{$endif}
AnimaDialogo.Inverse := False;
AnimaFundo.Inverse := False;
end;
procedure TDlg_Termos.RecEscurecerClick(Sender: TObject);
begin
if assigned(FAcaoFundo) then
FAcaoFundo;
AnimaDialogo.Inverse := True;
AnimaFundo.Inverse := True;
AnimaDialogo.Start;
AnimaFundo.Start;
end;
end.
| 22.691057 | 81 | 0.732354 |
f1d1c4310a7b19a633034d31efbaa388c3c06a57
| 20,243 |
dfm
|
Pascal
|
untCadastro.dfm
|
AlvaroVieira034/ProvaInfoSistemas
|
873100b3c6e88d79adda35a800ff79116e390075
|
[
"MIT"
] | null | null | null |
untCadastro.dfm
|
AlvaroVieira034/ProvaInfoSistemas
|
873100b3c6e88d79adda35a800ff79116e390075
|
[
"MIT"
] | null | null | null |
untCadastro.dfm
|
AlvaroVieira034/ProvaInfoSistemas
|
873100b3c6e88d79adda35a800ff79116e390075
|
[
"MIT"
] | null | null | null |
object FormCadastro: TFormCadastro
Left = 0
Top = 0
BorderStyle = bsDialog
Caption = 'Cadastro de Clientes'
ClientHeight = 531
ClientWidth = 495
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
KeyPreview = True
OldCreateOrder = False
Position = poScreenCenter
OnCreate = FormCreate
OnKeyDown = FormKeyDown
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object GroupBoxDados: TGroupBox
Left = 0
Top = 0
Width = 495
Height = 214
Align = alTop
Caption = ' Dados '
TabOrder = 7
object Label1: TLabel
Left = 16
Top = 21
Width = 27
Height = 13
Caption = 'Nome'
end
object Label2: TLabel
Left = 16
Top = 67
Width = 52
Height = 13
Caption = 'Identidade'
end
object Label3: TLabel
Left = 328
Top = 67
Width = 19
Height = 13
Caption = 'CPF'
end
object Label4: TLabel
Left = 16
Top = 112
Width = 42
Height = 13
Caption = 'Telefone'
end
object Label7: TLabel
Left = 16
Top = 161
Width = 28
Height = 13
Caption = 'E-mail'
end
end
object EditNome: TEdit
Left = 16
Top = 37
Width = 433
Height = 21
CharCase = ecUpperCase
TabOrder = 0
end
object EditIdentidade: TEdit
Left = 16
Top = 83
Width = 121
Height = 21
CharCase = ecUpperCase
TabOrder = 1
end
object EditCPF: TEdit
Left = 328
Top = 83
Width = 121
Height = 21
TabOrder = 2
OnKeyPress = EditCPFKeyPress
end
object EditTelefone: TEdit
Left = 16
Top = 128
Width = 121
Height = 21
CharCase = ecUpperCase
TabOrder = 3
end
object EditEmail: TEdit
Left = 16
Top = 178
Width = 433
Height = 21
TabOrder = 4
end
object GroupBoxEndereco: TGroupBox
Left = 0
Top = 214
Width = 495
Height = 254
Align = alBottom
Caption = ' Endere'#231'o '
TabOrder = 5
object Label6: TLabel
Left = 16
Top = 19
Width = 19
Height = 13
Caption = 'CEP'
end
object Label5: TLabel
Left = 16
Top = 64
Width = 55
Height = 13
Caption = 'Logradouro'
end
object Label8: TLabel
Left = 16
Top = 109
Width = 37
Height = 13
Caption = 'N'#250'mero'
end
object Label9: TLabel
Left = 198
Top = 109
Width = 65
Height = 13
Caption = 'Complemento'
end
object Label10: TLabel
Left = 16
Top = 156
Width = 33
Height = 13
Caption = 'Cidade'
end
object SpeedButtonBuscaCep: TSpeedButton
Left = 140
Top = 35
Width = 23
Height = 23
Hint = 'Pesquisa CEP via WebService'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFCCCCCCCCCCCCF5F5F5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFCCCCCC497FAA4980ACB1BDC6CFCFCFCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC407F
AF1EAAFF5AC8FF4593C7BB8825B67E0EB57B09B67E0DB88113BB8211B6831B90
7E5B7A7A7C7B79787B79788F816B72A1C558C8FFBAF2FF4193CCB67E0EFFFFFF
FFFFFFFFFFFFB47800F0EEF481848DB6B9BEE4E8ECE2E5EAE4E6EAB8B7B7827A
76CFE3ED3290D4FFFFFFB47B09FFFFFFFFFFFFFFFFFFC99A3B928267B9BBBFE8
DDCEEEC57DF6D789FCE49AECE7D8BBBABC9B9084FFFFFFFFFFFFB47A07FFFFFF
FFFFFFFFFFFFFFFFFF7B7A7CF0F3F8E7B572F0CF92F6DC94FFEFA4FBE499F0F2
F8818288FFFFFFFFFFFFB47A08FFFFFFFFFFFFFFFFFFE1CAB07F7F81F5F9FEEB
C696F5E1BEF3DAA0F6DB94F4D587F5F9FF868587FFFFFFFFFFFFB47B08FFFFFF
D5BB9DDAC3A8B65A0084888CFEFFFFE3B076FAF2E4F4E1BDEFCE91ECC37CFEFF
FF8A898BFFFFFFFFFFFFB47B08FFFFFFFFFFF7FFFFFFB65E06A9A39BCED2D5F6
E3CFE2B074E9C494E5B571F8EBD7CFD1D79C8A67FFFFFFFFFFFFB47B09FFFFFF
D6B892DBC1A1B5600ACBA2748F9093D3D7DCFFFFFFFFFFFFFFFFFFD1D3D79293
9CB7821AFFFFFFFFFFFFB47B08FFFFFFFFFBE4FFFFF2B5600BE2B580D7AC7A9F
8A7491959B9194988F9195B5B1ABFFFFFFB87E09FFFFFFFFFFFFB57B08FFFFFF
DDB382E1BB8EB95D04BD6108BE6106BD6106C06003C06001BB5B00E2BA8BFFFF
FFB67C09FFFFFFFFFFFFB57C09FFFFFF44C4FF46C8FFE5BB8649CEFF4ACFFFE7
BD894ACFFF4ACEFFE5BA8542C7FFFFFFFFB67C09FFFFFFFFFFFFB67E0EFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFB67E0EFFFFFFFFFFFFBD8C27B67E0EB67C09B67B08B57B08B67B08B67B08B5
7B08B67B08B67B08B57B08B67C09B67E0EBD8C27FFFFFFFFFFFF}
OnClick = SpeedButtonBuscaCepClick
end
object Label11: TLabel
Left = 16
Top = 205
Width = 19
Height = 13
Caption = 'Pa'#237's'
end
object EditCep: TEdit
Left = 16
Top = 36
Width = 121
Height = 21
TabOrder = 0
OnKeyPress = EditCepKeyPress
end
object EditLogradouro: TEdit
Left = 16
Top = 80
Width = 433
Height = 21
CharCase = ecUpperCase
TabOrder = 1
end
object EditNumero: TEdit
Left = 16
Top = 125
Width = 121
Height = 21
CharCase = ecUpperCase
TabOrder = 2
end
object EditComplemento: TEdit
Left = 198
Top = 125
Width = 121
Height = 21
CharCase = ecUpperCase
TabOrder = 3
end
object EditCidade: TEdit
Left = 16
Top = 173
Width = 431
Height = 21
CharCase = ecUpperCase
TabOrder = 4
end
object EditPais: TEdit
Left = 16
Top = 222
Width = 121
Height = 21
CharCase = ecUpperCase
TabOrder = 5
end
end
object PanelBotoes: TPanel
Left = 0
Top = 468
Width = 495
Height = 63
Align = alBottom
TabOrder = 6
object SpeedButtonNovo: TSpeedButton
Left = 9
Top = 13
Width = 76
Height = 33
Caption = 'Novo'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FDFDFDC5C5C5
ACACAC9E9E9E969696939393CDCDCDCECECED2D2D2B1B1B12D9E4F289C4C2FA2
52ECF6EFFFFFFFFFFFFFF6F6F64949492E2E2E2E2E2E2E2E2E2E2E2EB3B3B38F
3511C7C7C73D6B4B0A953201B83309A33587C39AFFFFFFFFFFFFF7F7F7191919
191919191919191919191919D2D2D2A3550FD2DED533614104902C00C134029D
2E74B087E9F5EDF1F9F3FFFFFF2222221A1A1A1A1A1A1A1A1A1D1D1DF1F1F122
8C272EA852148D38039D2E00C53500BB332CA35031A8552FA653FFFFFF454545
252525252525252525383838B2D2BC24A22900F83700EB3500DD3500CF3500C5
3500C13400BE341FB048FFFFFF888888343434343434343434565656B8D8C225
9C2A06F53F02ED3700EB3500DD3500CF3504C13704BE361FB149FFFFFFF2F2F2
AEAEAE6767674343437D7D7DE4E4E437902330A6541E934108AF3300EB3503D6
3636AA5936AA5939AB5BFFFFFFFFFFFFFFFFFFFFFFFFEAEAEAC7C8CAB0CCE472
A8D769A2D552A19E21C24F00F83716C74395D1A7FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFDEDEDE6085A57EB7E3A7D7F4ADDBF762B5AE19BB5002FF3E16CE
4495D1A7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF797A7B3B5E7EB9E4FBBF
E6FDB4E1FC9ED0EE17984C32AC5631AC55E9F5EDFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFF0F0F0202122598DB9BDE6FDC1E8FDA8DCFBA6D5F379AED6E9F5EDE9F5
EDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFBFBF15151523313DBFE7FDC2
E9FDAADDFCACDAF675AAD9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFA5A5A52727272F404EBFE8FDC2E9FEBFE7FEABD9F675AAD9FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAFAFAF323232313E4A7993A15F
727D45545C2A343C536372F9F9F9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFE4E4E42F2F2F3232322222221010100D0D0D121212181818C3C3C3FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7C7C76D6D6D4F505241
43463A3A3A5C5C5C9D9D9DF9F9F9FFFFFFFFFFFFFFFFFFFFFFFF}
OnClick = SpeedButtonNovoClick
end
object SpeedButtonLimpar: TSpeedButton
Left = 88
Top = 13
Width = 76
Height = 33
Caption = 'Limpar'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FDFDFDC5C5C5
ACACAC9E9E9E969696939393CDCDCDCECECED2D2D23131B54848B8C0C0C0DCDC
DCD8D8F26E6ED4FFFFFFF6F6F64949492E2E2E2E2E2E2E2E2E2E2E2EB3B3B38F
35115A5ACB1010C10A0AB61B1B8838389F0F0FB91515C26A6AD3F7F7F7191919
191919191919191919191919D2D2D2CCAB999C9CEB0606B53737DB1818BD1D1D
C33939DD1E1EC35151CCFFFFFF2222221A1A1A1A1A1A1A1A1A1D1D1DF1F1F1B8
781AEDEDFA3535D32323C26465E76465E71111BA6B6BD4FFFFFFFFFFFF454545
252525252525252525383838E5E5E5BB770A6363D01F20BF7B7CE94040CF8788
EE2D2EC56D6DD4FFFFFFFFFFFF888888343434343434343434565656EDEDEDD5
B49C2222BE7374E22A2BC33434C90F0FB88B8CEC2C2DC3BEBEECFFFFFFF2F2F2
AEAEAE6767674343437D7D7DE4E4E4E8DFDE9FA0ED3030C25757B8E8E8F58E8F
EB1414BA1F1FBDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAEAEAC7C8CAB0CCE47E
AEDAD5DFF3B6CFE9D8E5EFFEFEFFEDEDFAD3D3F2FFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFDEDEDE6085A57EB7E3A7D7F4ADDBF790C6EB82B3DDFFFFFFFEFE
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF797A7B3B5E7EB9E4FBBF
E6FDB4E1FCA2D2F37FB0DCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFF0F0F0202122598DB9BDE6FDC1E8FDA8DCFBA6D5F37DAFDBFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFBFBF15151523313DBFE7FDC2
E9FDAADDFCACDAF675AAD9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFA5A5A52727272F404EBFE8FDC2E9FEBFE7FEABD9F675AAD9FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAFAFAF323232313E4A7993A15F
727D45545C2A343C536372F9F9F9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFE4E4E42F2F2F3232322222221010100D0D0D121212181818C3C3C3FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7C7C76D6D6D4F505241
43463A3A3A5C5C5C9D9D9DF9F9F9FFFFFFFFFFFFFFFFFFFFFFFF}
OnClick = SpeedButtonLimparClick
end
object SpeedButtonEnviarEmail: TSpeedButton
Left = 327
Top = 13
Width = 76
Height = 33
Caption = 'Email'
Glyph.Data = {
E6040000424DE604000000000000360000002800000014000000140000000100
180000000000B004000000000000000000000000000000000000FFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
515E006A7C006A7C006A7C006A7C006A7C006A7C006A7C00515EFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF01596720B7
C729DBE928DAE979EDF528DAE928DAE91AB6C6015E6CFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF153328168E9A42D9E0
33D5DD00000033D5DD34D5DD108C990C2622FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFCECEBDEDEDDDF3F3E3F3F3E3F3F3E3F3F3E3F2F3E363C3CB6BD9E146D3D775
B4B540D0D249CCD155B5BDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEDF
D1D1C0E3E3D4E9E9DAE9E9DAE9E9DAE9E9DAACD8D45ECAD67CE4F100000068D8
E74DBFCAB5E1DDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF6F6E8E6E6D8D6
D6C5E6E6D8EBEBDEEBEBDEDBDBCDD8DBCD5DC5CF92E9F155555588E4EE5BC3CD
F2F5E8FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F7ECEEEEE3E9E9DDDADA
C9E9E9DDDEDED2AEAE9DAEAE9D97CBCA72D6E0ABF5FC70D6E0A7DBDBF7F7ECFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F9EFF1F1E8F1F1E8ECECE1D2D2C1
B2B2A1E1E1D6E1E1D6ACB2A24FBEC7A7EFF45DCBD7EAEFE7F9F9EFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFAFAF3F5F5EEF5F5EEE5E5DCB6B6A5E5E5DCF5
F5EEF5F5EEE5E5DC72B6B44CC4D299DCE2F5F5EEFAFAF3FFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFCFCF7F8F8F3E9E9E1BBBBAAE9E9E1F8F8F3F8F8F3F8F8
F3F8F8F3E9E9E1BBBBAAE9E9E1F8F8F3FCFCF7FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFDFDFAECECE5C0C0AFECECE5FBFBF7FBFBF7FBFBF7FBFBF7FBFBF7
FBFBF7ECECE5C0C0AFECECE5FDFDFAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFF1F1EBC5C5B4EFEFE9FDFDFBFDFDFBFDFDFBFDFDFBFDFDFBFDFDFBFDFDFBFD
FDFBEFEFE9C5C5B4F1F1EBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC9C9B8
F1F1EDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFF1F1EDC9C9B8FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFF}
OnClick = SpeedButtonEnviarEmailClick
end
object SpeedButtonSair: TSpeedButton
Left = 407
Top = 13
Width = 76
Height = 33
Caption = 'Sair'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFEDEDEDCDCDCDCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCA0B2C04B7DA368A4D95C5C5C5D5B5C
5E5B5B5E5A5A5D5A5A5B5A5B5A5B5B5A5B5B5A5B5B5B5A5A5C59565768764E7E
A44C80AC5082AB65A2D5FFFFFFFFFFFFFFFFFF3A6BA16B69666F68696C6A696C
6A696C6A696C6A686E67624C89BA4E85B24D83AE5D8CB2629ED1FFFFFFFFFFFF
CCCCCC009147068A4E6E606469636467646367646367646268615B4F8ABB5086
B44F84B16895B95F9BCDFFFFFFCCCCCC00894552DCB0008E477257606B5B6067
5E6064606062605F645D57518DBE528AB75187B4739FC25D97C9CCCCCC008744
65D7B400DAA2008641008B44008F461C7D50645A5C605C5A6058525490C2558C
BA4E81AD7EA6C85A94C4008A4874DABD00CD9C00CC9C00D29E00D5A05FF0D000
91466353585D57565B534D5794C5588EBC47749B88AFCF5790C0008A4886DEC8
00C59C00C49B63DCC85FDECA5EE4CF0092475E4F55585353574F4A5A96CA5B8F
BE22B9F795B5D3548DBCFFFFFF0087439BE0D100C1A000863F008D4400924717
7A4C584E5154504F524B455B9ACD5C91C120B7F59EBCD75189B8FFFFFFFFFFFF
008843A2E6DA0090475B414B57474D544A4E514C4E4F4D4C4D46415E9CD25C95
C55990C1A6C4DF4E86B5FFFFFFFFFFFFFFFFFF00904603874A5244494E484A4D
494A4C4A4A4C48484A423D60A0D55D98C95894C6AFCCE64B83B0FFFFFFFFFFFF
FFFFFF4C7AAE47423F4A4443484644484644484644474542433C365FA1D85C9A
CC5896C9B8D3EB4980ACFFFFFFFFFFFFFFFFFF4C7EAF443832433B37433D3843
3D38433D38423B363C332CB9DAF57FB0DA5495CCC0DAEF467CA8FFFFFFFFFFFF
FFFFFF83A6C34B81AE4B83B04A83B04A83B04A83B04A82AF447DA9709CBFB9D5
EBB3D1EAC1DBF24279A5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEAF2F9CEE3F53F75A1}
OnClick = SpeedButtonSairClick
end
object SpeedButtonGerarXML: TSpeedButton
Left = 247
Top = 13
Width = 76
Height = 33
Caption = 'XML'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FFFFFFC0BDB8
5852445852445852445852445852445852445852445852445852445852445852
44585244C1BFB9FFFFFFFFFFFFBFBCB6958D81E0DAD3E2DCD6E2DCD6E2DCD6E2
DCD6E2DCD6E2DCD6E2DCD6E2DCD6E0DAD3958D81C3C0BBFFFFFFFFFFFFBABAB4
968F83F9F8F7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F8
F7968F83C3C1BBFFFFFFFFFFFFB8BAB3989186FAF9F8FFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFAF9F8989186C2C1BBFFFFFFB5B8B08A8A80
8D8477E2DDD6ECE9E5F1EFECF6F4F3FAF9F8FDFDFCFEFEFEFFFFFFFFFFFFFAF9
F8999288C3C2BCFFFFFF585244426C53527A60739A817DA58E84AD988AB5A18F
BBA893C0AD95C2B095C2B1E4EFEBFAF9F99A948AC4C4BFFFFFFF5852442C8663
6DAB932C86636DAB936DAB934695766DAB9395C2B195C2B1398D6CCAE0D7FBFA
F99C968CC4C4BEFFFFFF5852442C86637AB39D95C2B098C4B3AFD1C460A489AF
D1C48BBCA94695762F8765CAE0D7FBFAFA9D988EC2C3BDFFFFFF5852442C8663
59A084B6D5C977B19AD0E4DCB6D5C8AFD1C47BB39D2C86632C8663CAE0D7FBFB
FA9F9A90C1C2BCFFFFFF5852442C86638EBEAB2C86638EBEABA2CABA6DAB938E
BEAB67A88E2C86632C8663CAE0D7FCFBFBA09B92C0C1BBFFFFFF585244426C53
557D63749A827DA58E84AD988AB5A18FBBA893BFAD92BEAC8CB7A3CFD6CEDCD5
CD928A7DBFBFB9FFFFFFB6BAB38C8C81968F84E5DFD9ECE9E5F1EFECF6F4F3FA
F9F8FBFAF9BEB8ADBEB9ADC3BEB3C3BEB3857F72BEBEB7FFFFFFFFFFFFBABDB6
A5A199FDFDFCFFFFFFFFFFFFFFFFFFFFFFFFF9F8F7B9B2A5F3F2F0FFFFFFC7C5
C1625C4FE3E2E0FFFFFFFFFFFFBBBDB6A6A39BFDFDFDFFFFFFFFFFFFFFFFFFFF
FFFFF5F3F1B2AA9CF3F2F0C7C5C1625C4FDCDBD8FFFFFFFFFFFFFFFFFFC0BFB9
A8A59DFBFAF9FBFBF9FBFBF9FBFBF9FBFBF9EEEAE6AAA191BCB8B2625C4FDDDC
D9FFFFFFFFFFFFFFFFFFFFFFFFC4C2BD58524458524458524458524458524458
5244585244585244605A4DDDDCD9FFFFFFFFFFFFFFFFFFFFFFFF}
OnClick = SpeedButtonGerarXMLClick
end
object SpeedButtonGravar: TSpeedButton
Left = 167
Top = 13
Width = 76
Height = 33
Caption = 'Gravar'
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C40E0000C40E00000000000000000000FDFDFDC5C5C5
ACACAC9E9E9E969696939393CDCDCD3B8F53167931A3ACA6BCBCBCC0C0C0DCDC
DCFEFEFEFFFFFFFFFFFFF6F6F64949492E2E2E2E2E2E2E2E2E2E2E2E3F8C551B
983E1EE06111742D3E46404444446D6D6DE7E7E7FFFFFFFFFFFFF7F7F7191919
191919191919191919155F2A249E4B31ED7631ED762EE27011732D18211B1919
19C8C8C8FFFFFFFFFFFFFFFFFF2222221A1A1A1A1A1A16612C22984A46F18A46
F18A3CDA7946F18A41E68212732E19221CE5E5E5FFFFFFFFFFFFFFFFFF454545
2525252525251969312EA0565DF59E26863B318B4C32A75C5DF59E56EA941374
2FE8F0EAFFFFFFFFFFFFFFFFFF88888834343434343434343428733F20823E50
6E21DFE0DF287D4239A86372F9B269EDA61F7F3CECF4EEFFFFFFFFFFFFF2F2F2
AEAEAE6767674343437D7D7DCBD7CEC37700E4E4E48789881F743943AC6C84FC
C249B67623813E7BB38BFFFFFFFFFFFFFFFFFFFFFFFFEAEAEAC7C8CAB0CCE472
A8D769A2D578A9D5D2E1E93B90554BB2748FFECB4DB478338B4EFFFFFFFFFFFF
FFFFFFFFFFFFDEDEDE6085A57EB7E3A7D7F4ADDBF790C6EB82B3DDF7FAF8378D
5245A96C23813F7BB38CFFFFFFFFFFFFFFFFFFFFFFFF797A7B3B5E7EB9E4FBBF
E6FDB4E1FCA2D2F37FB0DCFFFFFFFFFFFF3E925882B691FFFFFFFFFFFFFFFFFF
FFFFFFF0F0F0202122598DB9BDE6FDC1E8FDA8DCFBA6D5F37DAFDBFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFBFBF15151523313DBFE7FDC2
E9FDAADDFCACDAF675AAD9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFA5A5A52727272F404EBFE8FDC2E9FEBFE7FEABD9F675AAD9FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAFAFAF323232313E4A7993A15F
727D45545C2A343C536372F9F9F9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFE4E4E42F2F2F3232322222221010100D0D0D121212181818C3C3C3FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7C7C76D6D6D4F505241
43463A3A3A5C5C5C9D9D9DF9F9F9FFFFFFFFFFFFFFFFFFFFFFFF}
OnClick = SpeedButtonGravarClick
end
end
object RESTClient1: TRESTClient
Accept = 'application/json, text/plain; q=0.9, text/html;q=0.8,'
AcceptCharset = 'UTF-8, *;q=0.8'
AcceptEncoding = 'identity'
BaseURL = 'http://viacep.com.br/ws/34002065/json'
Params = <>
HandleRedirects = True
RaiseExceptionOn500 = False
Left = 704
Top = 232
end
object RESTResponse1: TRESTResponse
Left = 704
Top = 336
end
object DSProviderConnection1: TDSProviderConnection
Left = 704
Top = 416
end
object RESTRequest1: TRESTRequest
Client = RESTClient1
Params = <>
Response = RESTResponse1
SynchronizedEvents = False
Left = 704
Top = 280
end
end
| 40.567134 | 72 | 0.783283 |
839364a36f1f89d82d4b5a9f6a483fa85dc342fa
| 3,509 |
pas
|
Pascal
|
demos/Lazarus/PopupBrowser/uMainForm.pas
|
e-files/WebView4Delphi
|
01dade7a01a1d8b5c1b0ad131e237f18f8e650b5
|
[
"MIT"
] | 99 |
2021-12-03T22:21:56.000Z
|
2022-03-26T20:19:23.000Z
|
demos/Lazarus/PopupBrowser/uMainForm.pas
|
e-files/WebView4Delphi
|
01dade7a01a1d8b5c1b0ad131e237f18f8e650b5
|
[
"MIT"
] | 20 |
2021-12-04T10:12:45.000Z
|
2022-03-01T09:37:51.000Z
|
demos/Lazarus/PopupBrowser/uMainForm.pas
|
e-files/WebView4Delphi
|
01dade7a01a1d8b5c1b0ad131e237f18f8e650b5
|
[
"MIT"
] | 17 |
2021-12-04T09:32:31.000Z
|
2022-03-24T15:15:44.000Z
|
unit uMainForm;
{$MODE Delphi}
interface
uses
LCLIntf, LCLType, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, ComCtrls, StdCtrls,
uWVBrowser, uWVWindowParent, uWVTypeLibrary, uWVLoader, uWVBrowserBase,
uChildForm, uWVTypes, uWVEvents;
type
{ TMainForm }
TMainForm = class(TForm)
WVWindowParent1: TWVWindowParent;
Timer1: TTimer;
WVBrowser1: TWVBrowser;
AddressPnl: TPanel;
AddressCb: TComboBox;
GoBtn: TButton;
procedure FormShow(Sender: TObject);
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure GoBtnClick(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure WVBrowser1DocumentTitleChanged(Sender: TObject);
procedure WVBrowser1AfterCreated(Sender: TObject);
procedure WVBrowser1InitializationError(Sender: TObject;
aErrorCode: HRESULT; const aErrorMessage: wvstring);
procedure WVBrowser1NewWindowRequested(Sender: TObject; const aWebView: ICoreWebView2; const aArgs: ICoreWebView2NewWindowRequestedEventArgs);
protected
procedure WMMove(var aMessage : TWMMove); message WM_MOVE;
procedure WMMoving(var aMessage : TMessage); message WM_MOVING;
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.lfm}
procedure TMainForm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
CanClose := True;
end;
procedure TMainForm.FormShow(Sender: TObject);
begin
if GlobalWebView2Loader.InitializationError then
showmessage(UTF8Encode(GlobalWebView2Loader.ErrorMessage))
else
if GlobalWebView2Loader.Initialized then
WVBrowser1.CreateBrowser(WVWindowParent1.Handle)
else
Timer1.Enabled := True;
end;
procedure TMainForm.GoBtnClick(Sender: TObject);
begin
WVBrowser1.Navigate(UTF8Decode(AddressCb.Text));
end;
procedure TMainForm.WVBrowser1AfterCreated(Sender: TObject);
begin
WVWindowParent1.UpdateSize;
Caption := 'PopupBrowser';
AddressPnl.Enabled := True;
end;
procedure TMainForm.WVBrowser1InitializationError(Sender: TObject;
aErrorCode: HRESULT; const aErrorMessage: wvstring);
begin
showmessage(UTF8Encode(aErrorMessage));
end;
procedure TMainForm.WVBrowser1DocumentTitleChanged(Sender: TObject);
begin
Caption := 'PopupBrowser - ' + UTF8Encode(WVBrowser1.DocumentTitle);
end;
procedure TMainForm.WVBrowser1NewWindowRequested( Sender : TObject;
const aWebView : ICoreWebView2;
const aArgs : ICoreWebView2NewWindowRequestedEventArgs);
var
TempChildForm : TChildForm;
begin
TempChildForm := TChildForm.Create(self, aArgs);
TempChildForm.Show;
end;
procedure TMainForm.Timer1Timer(Sender: TObject);
begin
Timer1.Enabled := False;
if GlobalWebView2Loader.Initialized then
WVBrowser1.CreateBrowser(WVWindowParent1.Handle)
else
Timer1.Enabled := True;
end;
procedure TMainForm.WMMove(var aMessage : TWMMove);
begin
inherited;
if (WVBrowser1 <> nil) then
WVBrowser1.NotifyParentWindowPositionChanged;
end;
procedure TMainForm.WMMoving(var aMessage : TMessage);
begin
inherited;
if (WVBrowser1 <> nil) then
WVBrowser1.NotifyParentWindowPositionChanged;
end;
initialization
GlobalWebView2Loader := TWVLoader.Create(nil);
GlobalWebView2Loader.UserDataFolder := UTF8Decode(ExtractFileDir(Application.ExeName) + '\CustomCache');
GlobalWebView2Loader.StartWebView2;
end.
| 26.583333 | 146 | 0.749501 |
f179e2e03f6cc1814ba10a3cb904c2b0ea67dfbe
| 6,702 |
pas
|
Pascal
|
Source/Core/Utilities/NovusUtilities.pas
|
atkins126/NovuscodeLibrary
|
fac415cf62a3925590762ed8c060c335f5a0541d
|
[
"Apache-2.0"
] | 15 |
2017-02-02T17:43:01.000Z
|
2021-03-04T02:12:03.000Z
|
Source/Core/Utilities/NovusUtilities.pas
|
atkins126/NovuscodeLibrary
|
fac415cf62a3925590762ed8c060c335f5a0541d
|
[
"Apache-2.0"
] | 12 |
2017-04-18T23:51:00.000Z
|
2021-01-30T06:36:53.000Z
|
Source/Core/Utilities/NovusUtilities.pas
|
atkins126/NovuscodeLibrary
|
fac415cf62a3925590762ed8c060c335f5a0541d
|
[
"Apache-2.0"
] | 5 |
2016-11-28T21:38:29.000Z
|
2021-02-04T06:22:20.000Z
|
{$I ..\..\core\NovusCodeLibrary.inc}
unit NovusUtilities;
interface
uses SysUtils, Classes, Windows, Messages, typinfo, System.RegularExpressions;
Const
CR = #13#10;
DosDelimSet: set of Char = ['\', ':', #0];
StMaxFileLen = 260;
WM_CLOSEWINDOW = WM_USER + 1;
WM_UPDATE = WM_USER + 1;
Type
TNovusUtilities = class(TObject)
public
class function GetLastSysErrorMess: string;
class function CopyObject(Src, Dest: TObject;
Related: Boolean = FALSE): Boolean;
class function AppRootDirectory: String;
class function GetExceptMess: String;
class procedure FreeObject(q: TObject);
class function FindStringListValue(const Strings: tstringlist;
Name: String): String;
class function FindFileSize(Afile: String): Integer;
class function GetPropertyasClass(aObject: TObject;
aPropertyName: string): TObject;
class function IsProperty(aObject: TObject; aPropertyName: string): Boolean;
class function GetParamValue(const aParamKey: string;
var aValue: string): Boolean;
class function RegExMatchEx(aInput: string; aPattern: string;
aInversed: Boolean; aMatchValue: Boolean; aIgnoreCase: boolean = true): String;
class function RegExMatch(aInput: string; aPattern: string;
aInversed: Boolean = FALSE): String;
end;
implementation
Uses NovusWindows;
class function TNovusUtilities.AppRootDirectory;
begin
Result := ExtractFilePath(ParamStr(0));
end;
class function TNovusUtilities.GetExceptMess;
begin
Result := TNovusWindows.WindowsExceptMess;
end;
class procedure TNovusUtilities.FreeObject(q: TObject);
begin
if Not Assigned(q) then
Exit;
SysUtils.FreeandNil(q);
end;
class function TNovusUtilities.FindStringListValue(const Strings: tstringlist;
Name: String): String;
Var
I: Integer;
begin
Result := '';
For I := 0 to Strings.Count - 1 do
begin
If Uppercase(Strings.Names[I]) = Uppercase(Name) then
begin
Result := Strings.ValueFromIndex[I];
Break;
end;
end;
end;
class function TNovusUtilities.FindFileSize(Afile: String): Integer;
var
SR: TSearchRec;
R: Integer;
begin
Result := 0;
R := FindFirst(Afile, faAnyFile, SR);
if R = 0 then
Result := SR.Size;
SysUtils.FindClose(SR);
end;
class function TNovusUtilities.CopyObject(Src, Dest: TObject;
Related: Boolean = FALSE): Boolean;
var
Mem: Pointer;
Size: Integer;
begin
if (NOT Assigned(Src)) OR (NOT Assigned(Dest)) then
begin
Result := FALSE;
Exit;
end;
if (NOT Related) or (Src.InheritsFrom(Dest.ClassType)) OR
(Dest.InheritsFrom(Src.ClassType)) then
begin
if Src.InstanceSize < Dest.InstanceSize then
Size := Src.InstanceSize
else
Size := Dest.InstanceSize;
Dec(Size, 4);
GetMem(Mem, Size);
if Size < Dest.InstanceSize then
System.FillChar(PByteArray(Dest)^[4], Size, 0);
System.Move(PByteArray(Src)^[4], PByteArray(Dest)^[4], Size);
FreeMem(Mem);
Result := TRUE;
end
else
Result := FALSE;
end;
class function TNovusUtilities.GetPropertyasClass(aObject: TObject;
aPropertyName: string): TObject;
var
I, Count: Integer;
PropList: PPropList;
begin
Result := nil;
if aObject.Classinfo = nil then
Exit;
Count := GetTypeData(aObject.Classinfo)^.PropCount;
if Count > 0 then
begin
GetMem(PropList, Count * Sizeof(Pointer));
try
GetPropInfos(aObject.Classinfo, PropList);
for I := 0 to Count - 1 do
if ansicomparetext(PropList^[I].Name, aPropertyName) = 0 then
begin
case PropList^[I].PropType^.Kind of
tkClass:
Result := TObject(GetOrdProp(aObject, PropList^[I]));
end;
Break;
end;
finally
FreeMem(PropList, Count * Sizeof(Pointer));
end;
end;
end;
class function TNovusUtilities.IsProperty(aObject: TObject;
aPropertyName: string): Boolean;
var
I, Count: Integer;
PropList: PPropList;
begin
Result := FALSE;
Count := GetTypeData(aObject.Classinfo)^.PropCount;
if Count > 0 then
begin
GetMem(PropList, Count * Sizeof(Pointer));
try
GetPropInfos(aObject.Classinfo, PropList);
for I := 0 to Count - 1 do
{$IFDEF win32}
if ansicomparetext(PropList^[I].Name, aPropertyName) = 0 then
{$ELSE}
if ansicomparetext(PropList^[I]^.Name, aPropertyName) = 0 then
{$ENDIF}
begin
Result := TRUE;
Break;
end;
finally
FreeMem(PropList, Count * Sizeof(Pointer));
end;
end;
end;
class function TNovusUtilities.GetParamValue(const aParamKey: string;
var aValue: string): Boolean;
var
lparamloop: Integer;
liPos: Integer;
begin
aValue := '';
Result := FALSE;
if paramcount > 0 then
for lparamloop := 1 to paramcount do
begin
liPos := pos(lowercase(aParamKey), lowercase(ParamStr(lparamloop)));
if (liPos > 0) then
begin
Result := TRUE;
liPos := liPos + Length(aParamKey);
aValue := System.Copy(ParamStr(lparamloop), liPos,
Length(ParamStr(lparamloop)));
Break;
end;
end;
end;
class function TNovusUtilities.GetLastSysErrorMess: string;
begin
Result := SysErrorMessage(GetLastError);
end;
class function TNovusUtilities.RegExMatch(aInput: string; aPattern: string;
aInversed: Boolean = False): String;
begin
Result := RegExMatchEx(aInput,aPattern,aInversed, false);
end;
class function TNovusUtilities.RegExMatchEx(aInput: string; aPattern: string;
aInversed: Boolean; aMatchValue: Boolean; aIgnoreCase: boolean = true): String;
var
fMatch: tMatch;
fGroup: tGroup;
begin
ZeroMemory(@Result, Sizeof(Result));
if aIgnoreCase then
begin
if not TRegEx.IsMatch(aInput, aPattern, [roIgnoreCase]) then
begin
Result := aInput;
Exit;
end;
end
else
begin
if not TRegEx.IsMatch(aInput, aPattern) then
begin
Result := aInput;
Exit;
end;
end;
Try
if aIgnoreCase then
fMatch := TRegEx.Match(aInput, aPattern, [roIgnoreCase])
else
fMatch := TRegEx.Match(aInput, aPattern);
if aMatchValue = false then
begin
if fMatch.Index <= (fMatch.Groups.Count - 1) then
Result := fMatch.Groups.Item[fMatch.Index].Value
else
Result := fMatch.Value;
end
else
Result := fMatch.Value;
if aInversed then
begin
if aIgnoreCase then
Result := StringReplace(aInput, Result, '', [rfReplaceAll, rfIgnoreCase])
else
Result := StringReplace(aInput, Result, '', [rfReplaceAll]);
end;
Finally
ZeroMemory(@fMatch, Sizeof(fMatch));
End;
end;
end.
| 24.107914 | 85 | 0.665622 |
f172748a506c5c8e7069a40d66a49bf2134cb640
| 629 |
pas
|
Pascal
|
About.pas
|
DanScottNI/delphi-wreckingcrew
|
6a9161baf3f8827ff5f3288d36e6ab9578807c5c
|
[
"MIT"
] | null | null | null |
About.pas
|
DanScottNI/delphi-wreckingcrew
|
6a9161baf3f8827ff5f3288d36e6ab9578807c5c
|
[
"MIT"
] | null | null | null |
About.pas
|
DanScottNI/delphi-wreckingcrew
|
6a9161baf3f8827ff5f3288d36e6ab9578807c5c
|
[
"MIT"
] | null | null | null |
unit About;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, GR32_Image;
type
TfrmAbout = class(TForm)
lblTitle: TLabel;
cmdOK: TButton;
lblDescription: TLabel;
lblHomepage: TLabel;
imgMario: TImage32;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmAbout: TfrmAbout;
implementation
{$R *.dfm}
procedure TfrmAbout.FormClose(Sender: TObject; var Action: TCloseAction);
begin
frmAbout := nil;
Action := caFree;
end;
end.
| 17 | 76 | 0.709062 |
f113cc750af9dafe2f57245edd87862ae2e2af71
| 90,436 |
pas
|
Pascal
|
references/embarcadero/rio/10_3_3/patched/rtl/ios/iOSapi.AVFoundation.pas
|
proyectoanamnesis/alcinoe
|
c107d865c13e2e891f9b8368d6efcc11815fe3eb
|
[
"Apache-2.0"
] | 2 |
2020-02-17T18:42:30.000Z
|
2020-11-14T04:57:48.000Z
|
references/embarcadero/rio/10_3_3/patched/rtl/ios/iOSapi.AVFoundation.pas
|
proyectoanamnesis/alcinoe
|
c107d865c13e2e891f9b8368d6efcc11815fe3eb
|
[
"Apache-2.0"
] | 2 |
2019-06-23T00:02:43.000Z
|
2019-10-12T22:39:28.000Z
|
references/embarcadero/rio/10_3_3/patched/rtl/ios/iOSapi.AVFoundation.pas
|
marlonnardi/alcinoe
|
5e14b2fca7adcc38e483771055b5623501433334
|
[
"Apache-2.0"
] | null | null | null |
{**********************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Delphi-Objective-C Bridge }
{ Interfaces for Cocoa framework AVFoundation }
{ }
{ Copyright (c) 2008-2010, Apple Inc. All rights reserved. }
{ }
{ Translator: Embarcadero Technologies, Inc. }
{ Copyright(c) 2012-2019 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ }
{**********************************************************}
unit iOSapi.AVFoundation;
interface
uses
Macapi.ObjectiveC, Macapi.Dispatch, Macapi.CoreFoundation, iOSapi.Foundation,
iOSapi.CocoaTypes, iOSapi.CoreGraphics, iOSapi.CoreMedia, iOSapi.QuartzCore,
iOSapi.CoreVideo;
const
AVAssetExportSessionStatusCancelled = 5;
AVAssetExportSessionStatusCompleted = 3;
AVAssetExportSessionStatusExporting = 2;
AVAssetExportSessionStatusFailed = 4;
AVAssetExportSessionStatusUnknown = 0;
AVAssetExportSessionStatusWaiting = 1;
AVAssetImageGeneratorCancelled = 2;
AVAssetImageGeneratorFailed = 1;
AVAssetImageGeneratorSucceeded = 0;
AVAssetReaderStatusCancelled = 4;
AVAssetReaderStatusCompleted = 2;
AVAssetReaderStatusFailed = 3;
AVAssetReaderStatusReading = 1;
AVAssetReaderStatusUnknown = 0;
AVAssetReferenceRestrictionForbidAll = 65535;
AVAssetReferenceRestrictionForbidCrossSiteReference = 4;
AVAssetReferenceRestrictionForbidLocalReferenceToLocal = 8;
AVAssetReferenceRestrictionForbidLocalReferenceToRemote = 2;
AVAssetReferenceRestrictionForbidNone = 0;
AVAssetReferenceRestrictionForbidRemoteReferenceToLocal = 1;
AVAssetWriterStatusCancelled = 4;
AVAssetWriterStatusCompleted = 2;
AVAssetWriterStatusFailed = 3;
AVAssetWriterStatusUnknown = 0;
AVAssetWriterStatusWriting = 1;
AVAudioQualityHigh = 96;
AVAudioQualityLow = 32;
AVAudioQualityMax = 127;
AVAudioQualityMedium = 64;
AVAudioQualityMin = 0;
AVAudioSessionInterruptionFlags_ShouldResume = 1;
AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation = 1;
AVCaptureDevicePositionBack = 1;
AVCaptureDevicePositionFront = 2;
AVCaptureExposureModeAutoExpose = 1;
AVCaptureExposureModeContinuousAutoExposure = 2;
AVCaptureExposureModeLocked = 0;
AVCaptureFlashModeAuto = 2;
AVCaptureFlashModeOff = 0;
AVCaptureFlashModeOn = 1;
AVCaptureFocusModeAutoFocus = 1;
AVCaptureFocusModeContinuousAutoFocus = 2;
AVCaptureFocusModeLocked = 0;
AVCaptureTorchModeAuto = 2;
AVCaptureTorchModeOff = 0;
AVCaptureTorchModeOn = 1;
AVCaptureVideoOrientationLandscapeLeft = 4;
AVCaptureVideoOrientationLandscapeRight = 3;
AVCaptureVideoOrientationPortrait = 1;
AVCaptureVideoOrientationPortraitUpsideDown = 2;
AVCaptureWhiteBalanceModeAutoWhiteBalance = 1;
AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2;
AVCaptureWhiteBalanceModeLocked = 0;
AVErrorApplicationIsNotAuthorized = -11836;
AVErrorCompositionTrackSegmentsNotContiguous = -11824;
AVErrorContentIsNotAuthorized = -11835;
AVErrorContentIsProtected = -11831;
AVErrorDecodeFailed = -11821;
AVErrorDecoderNotFound = -11833;
AVErrorDecoderTemporarilyUnavailable = -11839;
AVErrorDeviceAlreadyUsedByAnotherSession = -11804;
AVErrorDeviceInUseByAnotherApplication = -11815;
AVErrorDeviceIsNotAvailableInBackground = -11837;
AVErrorDeviceLockedForConfigurationByAnotherProcess = -11817;
AVErrorDeviceNotConnected = -11814;
AVErrorDeviceWasDisconnected = -11808;
AVErrorDiskFull = -11807;
AVErrorEncoderNotFound = -11834;
AVErrorEncoderTemporarilyUnavailable = -11840;
AVErrorExportFailed = -11820;
AVErrorFileAlreadyExists = -11823;
AVErrorFileFailedToParse = -11829;
AVErrorFileFormatNotRecognized = -11828;
AVErrorInvalidCompositionTrackSegmentDuration = -11825;
AVErrorInvalidCompositionTrackSegmentSourceDuration = -11827;
AVErrorInvalidCompositionTrackSegmentSourceStartTime = -11826;
AVErrorInvalidSourceMedia = -11822;
AVErrorInvalidVideoComposition = -11841;
AVErrorMaximumDurationReached = -11810;
AVErrorMaximumFileSizeReached = -11811;
AVErrorMaximumNumberOfSamplesForFileFormatReached = -11813;
AVErrorMaximumStillImageCaptureRequestsExceeded = -11830;
AVErrorMediaChanged = -11809;
AVErrorMediaDiscontinuity = -11812;
AVErrorMediaServicesWereReset = -11819;
AVErrorNoDataCaptured = -11805;
AVErrorNoImageAtTime = -11832;
AVErrorOperationNotSupportedForAsset = -11838;
AVErrorOutOfMemory = -11801;
AVErrorReferenceForbiddenByReferencePolicy = -11842;
AVErrorSessionConfigurationChanged = -11806;
AVErrorSessionNotRunning = -11803;
AVErrorSessionWasInterrupted = -11818;
AVErrorUnknown = -11800;
AVKeyValueStatusCancelled = 4;
AVKeyValueStatusFailed = 3;
AVKeyValueStatusLoaded = 2;
AVKeyValueStatusLoading = 1;
AVKeyValueStatusUnknown = 0;
AVPlayerActionAtItemEndAdvance = 0;
AVPlayerActionAtItemEndNone = 2;
AVPlayerActionAtItemEndPause = 1;
AVPlayerItemStatusFailed = 2;
AVPlayerItemStatusReadyToPlay = 1;
AVPlayerItemStatusUnknown = 0;
AVPlayerStatusFailed = 2;
AVPlayerStatusReadyToPlay = 1;
AVPlayerStatusUnknown = 0;
AVAuthorizationStatusNotDetermined = 0; // https://quality.embarcadero.com/browse/RSP-24300
AVAuthorizationStatusRestricted = 1; // https://quality.embarcadero.com/browse/RSP-24300
AVAuthorizationStatusDenied = 2; // https://quality.embarcadero.com/browse/RSP-24300
AVAuthorizationStatusAuthorized = 3; // https://quality.embarcadero.com/browse/RSP-24300
// ===== Typedefs and structs =====
{$M+}
type
AVAssetExportSessionStatus = NSInteger;
AVAssetReaderStatus = NSInteger;
AVAssetReferenceRestrictions = NSUInteger;
AVAssetWriterStatus = NSInteger;
AVCaptureDevicePosition = NSInteger;
AVCaptureExposureMode = NSInteger;
AVCaptureFocusMode = NSInteger;
AVCaptureFlashMode = NSInteger;
AVCaptureTorchMode = NSInteger;
AVCaptureVideoOrientation = NSInteger;
AVCaptureWhiteBalanceMode = NSInteger;
AVKeyValueStatus = NSInteger;
AVLoadingKeyStatus = NSUInteger;
AVPlayerActionAtItemEnd = NSInteger;
AVPlayerItemStatus = NSInteger;
AVPlayerStatus = NSInteger;
TAVFoundationCompletionHandler = procedure of object;
TAVFoundationCompletionHandler1 = procedure(param1: Boolean) of object;
TAVFoundationHandler = procedure(param1: NSArray) of object;
TAVFoundationCompletionHandler2 = procedure(param1: CMTime) of object;
AVMediaType = NSString; // https://quality.embarcadero.com/browse/RSP-24300
AVAuthorizationStatus = NSInteger; // https://quality.embarcadero.com/browse/RSP-24300
// ===== External functions =====
const
libAVFoundation = '/System/Library/Frameworks/AVFoundation.framework/AVFoundation';
function AVMakeRectWithAspectRatioInsideRect(aspectRatio: CGSize; boundingRect: CGRect): CGRect; cdecl; external libAVFoundation name _PU + 'AVMakeRectWithAspectRatioInsideRect';
(*
type
{$M+}
// ===== Forward declarations =====
AVAudioPlayerDelegate = interface;
AVAudioRecorderDelegate = interface;
AVAudioSessionDelegate = interface;
AVCaptureAudioDataOutputSampleBufferDelegate = interface;
AVCaptureFileOutputRecordingDelegate = interface;
AVCaptureVideoDataOutputSampleBufferDelegate = interface;
AVVideoCompositionValidationHandling = interface;
// ===== Protocol declarations =====
AVAsynchronousKeyValueLoading = interface
['{1AD609BF-567E-4B95-9FAA-7CC0F56E98BD}']
function statusOfValueForKey(key: NSString; error: NSError): AVKeyValueStatus; cdecl;
end;
AVAudioPlayerDelegate = interface(IObjectiveC)
['{10A00DF8-BBAA-4A9D-86AE-D5E2ECFA8634}']
procedure audioPlayerBeginInterruption(player: AVAudioPlayer); cdecl;
procedure audioPlayerDecodeErrorDidOccur(player: AVAudioPlayer; error: NSError); cdecl;
procedure audioPlayerDidFinishPlaying(player: AVAudioPlayer; successfully: Boolean); cdecl;
procedure audioPlayerEndInterruption(player: AVAudioPlayer); cdecl; overload;
procedure audioPlayerEndInterruption(player: AVAudioPlayer; withFlags: NSUInteger); cdecl; overload;
end;
AVAudioRecorderDelegate = interface(IObjectiveC)
['{736BA3CE-7042-4CD9-9854-CDCFDA8751C6}']
procedure audioRecorderBeginInterruption(recorder: AVAudioRecorder); cdecl;
procedure audioRecorderDidFinishRecording(recorder: AVAudioRecorder; successfully: Boolean); cdecl;
procedure audioRecorderEncodeErrorDidOccur(recorder: AVAudioRecorder; error: NSError); cdecl;
procedure audioRecorderEndInterruption(recorder: AVAudioRecorder); cdecl; overload;
procedure audioRecorderEndInterruption(recorder: AVAudioRecorder; withFlags: NSUInteger); cdecl; overload;
end;
AVAudioSessionDelegate = interface(IObjectiveC)
['{7B812A3A-7917-4932-93E3-D8B2A1B4FDE7}']
procedure beginInterruption; cdecl;
procedure endInterruption; cdecl;
procedure endInterruptionWithFlags(flags: NSUInteger); cdecl;
procedure inputIsAvailableChanged(isInputAvailable: Boolean); cdecl;
end;
AVCaptureAudioDataOutputSampleBufferDelegate = interface(IObjectiveC)
['{F5F64FE8-B5DB-4258-A63D-E1463B6B8D29}']
procedure captureOutput(captureOutput: AVCaptureOutput; didOutputSampleBuffer: CMSampleBufferRef; fromConnection: AVCaptureConnection); cdecl;
end;
AVVideoCompositionValidationHandling = interface(IObjectiveC)
['{26772CBC-ED6C-4453-9C8D-21679832C344}']
function videoComposition(videoComposition: AVVideoComposition; shouldContinueValidatingAfterFindingEmptyTimeRange: CMTimeRange): Boolean; cdecl; overload;
function videoComposition(videoComposition: AVVideoComposition; shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction: AVVideoCompositionInstruction): Boolean; cdecl; overload;
function videoComposition(videoComposition: AVVideoComposition; shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction: AVVideoCompositionInstruction; layerInstruction: AVVideoCompositionLayerInstruction; asset: AVAsset): Boolean; cdecl; overload;
function videoComposition(videoComposition: AVVideoComposition; shouldContinueValidatingAfterFindingInvalidValueForKey: NSString): Boolean; cdecl; overload;
end;
*)
type
{$M+}
// ===== Forward declarations =====
AVCaptureSession = interface;
AVCaptureOutput = interface;
AVTimedMetadataGroup = interface;
AVSynchronizedLayer = interface;
AVCaptureVideoPreviewLayer = interface;
AVVideoCompositionCoreAnimationTool = interface;
AVVideoCompositionInstruction = interface;
AVCaptureInput = interface;
AVVideoComposition = interface;
AVCaptureInputPort = interface;
AVPlayerLayer = interface;
AVPlayerItemAccessLogEvent = interface;
AVPlayerItemErrorLog = interface;
AVPlayerItemAccessLog = interface;
AVPlayer = interface;
AVPlayerItem = interface;
AVMediaSelectionOption = interface;
AVMediaSelectionGroup = interface;
AVMetadataItem = interface;
AVPlayerItemErrorLogEvent = interface;
AVPlayerItemTrack = interface;
AVCaptureDevice = interface;
AVAssetTrack = interface;
AVAssetTrackSegment = interface;
AVAsset = interface;
AVAssetWriter = interface;
AVAssetImageGenerator = interface;
AVAssetExportSession = interface;
AVAssetReader = interface;
AVAssetReaderOutput = interface;
AVAudioSession = interface;
AVCaptureDeviceFormat = interface;
AVAudioRecorder = interface;
AVCaptureAudioChannel = interface;
AVCaptureConnection = interface;
AVVideoCompositionLayerInstruction = interface;
AVAudioPlayer = interface;
AVAssetWriterInputPixelBufferAdaptor = interface;
AVAssetWriterInput = interface;
AVAudioMix = interface;
AVAudioMixInputParameters = interface;
AVMutableVideoCompositionLayerInstruction = interface;
AVURLAsset = interface;
AVQueuePlayer = interface;
AVCaptureStillImageOutput = interface;
AVCaptureFileOutput = interface;
AVComposition = interface;
AVCaptureVideoDataOutput = interface;
AVCaptureDeviceInput = interface;
AVAssetReaderTrackOutput = interface;
AVAssetReaderAudioMixOutput = interface;
AVCaptureAudioDataOutput = interface;
AVAssetReaderVideoCompositionOutput = interface;
AVCompositionTrack = interface;
AVMutableVideoComposition = interface;
AVMutableTimedMetadataGroup = interface;
AVMutableMetadataItem = interface;
AVMutableVideoCompositionInstruction = interface;
AVCompositionTrackSegment = interface;
AVMutableAudioMix = interface;
AVMutableAudioMixInputParameters = interface;
AVCaptureMovieFileOutput = interface;
AVMutableComposition = interface;
AVMutableCompositionTrack = interface;
// ===== Interface declarations =====
AVCaptureSessionClass = interface(NSObjectClass)
['{A47E0D5A-2C30-49E8-98E1-F49B16BB495A}']
end;
AVCaptureSession = interface(NSObject)
['{F47F9902-C0D4-41B7-92DE-A1F358650199}']
procedure addInput(input: AVCaptureInput); cdecl;
procedure addOutput(output: AVCaptureOutput); cdecl;
procedure beginConfiguration; cdecl;
function canAddInput(input: AVCaptureInput): Boolean; cdecl;
function canAddOutput(output: AVCaptureOutput): Boolean; cdecl;
function canSetSessionPreset(preset: NSString): Boolean; cdecl;
procedure commitConfiguration; cdecl;
function inputs: NSArray; cdecl;
function isInterrupted: Boolean; cdecl;
function isRunning: Boolean; cdecl;
function outputs: NSArray; cdecl;
procedure removeInput(input: AVCaptureInput); cdecl;
procedure removeOutput(output: AVCaptureOutput); cdecl;
function sessionPreset: NSString; cdecl;
procedure setSessionPreset(sessionPreset: NSString); cdecl;
procedure startRunning; cdecl;
procedure stopRunning; cdecl;
end;
TAVCaptureSession = class(TOCGenericImport<AVCaptureSessionClass, AVCaptureSession>) end;
AVCaptureOutputClass = interface(NSObjectClass)
['{321DC7CF-8DF4-402D-B789-B59B0E6E91CD}']
end;
AVCaptureOutput = interface(NSObject)
['{89F37BE5-4C30-46C7-85A7-B1445FAA01D7}']
function connectionWithMediaType(mediaType: NSString): AVCaptureConnection; cdecl;
function connections: NSArray; cdecl;
end;
TAVCaptureOutput = class(TOCGenericImport<AVCaptureOutputClass, AVCaptureOutput>) end;
AVTimedMetadataGroupClass = interface(NSObjectClass)
['{481DE574-FF52-4FC8-BBCE-CC924F8AEF0B}']
end;
AVTimedMetadataGroup = interface(NSObject)
['{1E7F7812-E586-4DC5-8B19-A44707505E75}']
function initWithItems(items: NSArray; timeRange: CMTimeRange): Pointer; cdecl;
function items: NSArray; cdecl;
function timeRange: CMTimeRange; cdecl;
end;
TAVTimedMetadataGroup = class(TOCGenericImport<AVTimedMetadataGroupClass, AVTimedMetadataGroup>) end;
AVSynchronizedLayerClass = interface(CALayerClass)
['{7108227E-6136-44AD-81A5-F2AA6846DF1B}']
{class} function synchronizedLayerWithPlayerItem(playerItem: AVPlayerItem): Pointer; cdecl;
end;
AVSynchronizedLayer = interface(CALayer)
['{1DD0B3D7-3EFA-4C3E-9C20-6FE0CBD03586}']
function playerItem: AVPlayerItem; cdecl;
procedure setPlayerItem(playerItem: AVPlayerItem); cdecl;
end;
TAVSynchronizedLayer = class(TOCGenericImport<AVSynchronizedLayerClass, AVSynchronizedLayer>) end;
AVCaptureVideoPreviewLayerClass = interface(CALayerClass)
['{0F570D38-C338-4EAB-926C-8036ABC0E991}']
{class} function layerWithSession(session: AVCaptureSession): Pointer; cdecl;
end;
AVCaptureVideoPreviewLayer = interface(CALayer)
['{ADD0E96E-F021-4C6A-B77F-EFE51BFF777F}']
function automaticallyAdjustsMirroring: Boolean; cdecl;
function initWithSession(session: AVCaptureSession): Pointer; cdecl;
function isMirrored: Boolean; cdecl;
function isMirroringSupported: Boolean; cdecl;
function isOrientationSupported: Boolean; cdecl;
function orientation: AVCaptureVideoOrientation; cdecl;
function session: AVCaptureSession; cdecl;
procedure setAutomaticallyAdjustsMirroring(automaticallyAdjustsMirroring: Boolean); cdecl;
procedure setMirrored(mirrored: Boolean); cdecl;
procedure setOrientation(orientation: AVCaptureVideoOrientation); cdecl;
procedure setSession(session: AVCaptureSession); cdecl;
procedure setVideoGravity(videoGravity: NSString); cdecl;
function videoGravity: NSString; cdecl;
end;
TAVCaptureVideoPreviewLayer = class(TOCGenericImport<AVCaptureVideoPreviewLayerClass, AVCaptureVideoPreviewLayer>) end;
AVVideoCompositionCoreAnimationToolClass = interface(NSObjectClass)
['{40C77CD2-2EB8-43D6-97DE-73C58A7A74FE}']
{class} function videoCompositionCoreAnimationToolWithAdditionalLayer(layer: CALayer; asTrackID: CMPersistentTrackID): Pointer; cdecl;
{class} function videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer(videoLayer: CALayer; inLayer: CALayer): Pointer; cdecl;
end;
AVVideoCompositionCoreAnimationTool = interface(NSObject)
['{EE8882B9-1520-4CD4-81FB-AA2D829F3E87}']
end;
TAVVideoCompositionCoreAnimationTool = class(TOCGenericImport<AVVideoCompositionCoreAnimationToolClass, AVVideoCompositionCoreAnimationTool>) end;
AVVideoCompositionInstructionClass = interface(NSObjectClass)
['{5C524476-1E48-4CEC-AACE-CDF5ECA5D517}']
end;
AVVideoCompositionInstruction = interface(NSObject)
['{4025ED48-498E-4B1F-9557-D1E6BE3926C1}']
function backgroundColor: CGColorRef; cdecl;
function enablePostProcessing: Boolean; cdecl;
function layerInstructions: NSArray; cdecl;
procedure setBackgroundColor(backgroundColor: CGColorRef); cdecl;
function timeRange: CMTimeRange; cdecl;
end;
TAVVideoCompositionInstruction = class(TOCGenericImport<AVVideoCompositionInstructionClass, AVVideoCompositionInstruction>) end;
AVCaptureInputClass = interface(NSObjectClass)
['{B19E0FF3-BF17-4A64-86B3-2BEF2754B486}']
end;
AVCaptureInput = interface(NSObject)
['{18C9DEDC-52B5-4719-B8F6-5535AE4AF327}']
function ports: NSArray; cdecl;
end;
TAVCaptureInput = class(TOCGenericImport<AVCaptureInputClass, AVCaptureInput>) end;
AVVideoCompositionClass = interface(NSObjectClass)
['{9B25990E-1B68-471F-BC48-B9A73DCE493E}']
end;
AVVideoComposition = interface(NSObject)
['{7C5FB1E2-81C3-4DD6-9B02-67D24EEF819B}']
function animationTool: AVVideoCompositionCoreAnimationTool; cdecl;
function frameDuration: CMTime; cdecl;
function instructions: NSArray; cdecl;
function isValidForAsset(asset: AVAsset; timeRange: CMTimeRange; validationDelegate: Pointer): Boolean; cdecl;
function renderScale: Single; cdecl;
function renderSize: CGSize; cdecl;
end;
TAVVideoComposition = class(TOCGenericImport<AVVideoCompositionClass, AVVideoComposition>) end;
AVCaptureInputPortClass = interface(NSObjectClass)
['{D471595F-8E3E-4443-97EC-DBC39B278F98}']
end;
AVCaptureInputPort = interface(NSObject)
['{BDFBC779-6E77-4931-98CF-DFFB76A4BAFE}']
function formatDescription: CMFormatDescriptionRef; cdecl;
function input: AVCaptureInput; cdecl;
function isEnabled: Boolean; cdecl;
function mediaType: NSString; cdecl;
procedure setEnabled(enabled: Boolean); cdecl;
end;
TAVCaptureInputPort = class(TOCGenericImport<AVCaptureInputPortClass, AVCaptureInputPort>) end;
AVPlayerLayerClass = interface(CALayerClass)
['{4893D945-50D3-40B2-9CF9-F641C7E4AFF2}']
{class} function playerLayerWithPlayer(player: AVPlayer): Pointer; cdecl;
end;
AVPlayerLayer = interface(CALayer)
['{FB68755A-2D9B-4FAE-9F8C-B2E2081D05BC}']
function isReadyForDisplay: Boolean; cdecl;
function player: AVPlayer; cdecl;
procedure setPlayer(player: AVPlayer); cdecl;
procedure setVideoGravity(videoGravity: NSString); cdecl;
function videoGravity: NSString; cdecl;
end;
TAVPlayerLayer = class(TOCGenericImport<AVPlayerLayerClass, AVPlayerLayer>) end;
AVPlayerItemAccessLogEventClass = interface(NSObjectClass)
['{D255EEA2-8BFD-49BC-92FC-F9C187A0ED69}']
end;
AVPlayerItemAccessLogEvent = interface(NSObject)
['{E3DBD2FF-A12B-4054-BC21-4F48D342BDEF}']
function URI: NSString; cdecl;
function durationWatched: NSTimeInterval; cdecl;
function indicatedBitrate: double; cdecl;
function numberOfBytesTransferred: Int64; cdecl;
function numberOfDroppedVideoFrames: NSInteger; cdecl;
function numberOfSegmentsDownloaded: NSInteger; cdecl;
function numberOfServerAddressChanges: NSInteger; cdecl;
function numberOfStalls: NSInteger; cdecl;
function observedBitrate: double; cdecl;
function playbackSessionID: NSString; cdecl;
function playbackStartDate: NSDate; cdecl;
function playbackStartOffset: NSTimeInterval; cdecl;
function segmentsDownloadedDuration: NSTimeInterval; cdecl;
function serverAddress: NSString; cdecl;
end;
TAVPlayerItemAccessLogEvent = class(TOCGenericImport<AVPlayerItemAccessLogEventClass, AVPlayerItemAccessLogEvent>) end;
AVPlayerItemErrorLogClass = interface(NSObjectClass)
['{4EA933AA-4705-47B9-A76C-D9109D63F9D1}']
end;
AVPlayerItemErrorLog = interface(NSObject)
['{593D59EB-6740-44C0-BEF8-327EAF2F3E92}']
function events: NSArray; cdecl;
function extendedLogData: NSData; cdecl;
function extendedLogDataStringEncoding: NSStringEncoding; cdecl;
end;
TAVPlayerItemErrorLog = class(TOCGenericImport<AVPlayerItemErrorLogClass, AVPlayerItemErrorLog>) end;
AVPlayerItemAccessLogClass = interface(NSObjectClass)
['{986E83A4-4329-4725-A3EB-BCB554EC869C}']
end;
AVPlayerItemAccessLog = interface(NSObject)
['{25D30981-935C-4912-9136-681D50505D5C}']
function events: NSArray; cdecl;
function extendedLogData: NSData; cdecl;
function extendedLogDataStringEncoding: NSStringEncoding; cdecl;
end;
TAVPlayerItemAccessLog = class(TOCGenericImport<AVPlayerItemAccessLogClass, AVPlayerItemAccessLog>) end;
AVPlayerMediaSelectionCriteriaClass = interface(NSObjectClass)
['{7EA84D4B-DE1D-4167-AD5B-DE9314176D01}']
end;
AVPlayerMediaSelectionCriteria = interface(NSObject)
['{3C35529D-2E74-434A-BC2B-A95BDFE9CDC9}']
function preferredLanguages: NSArray; cdecl;
function preferredMediaCharacteristics: NSArray; cdecl;
function initWithPreferredLanguages(preferredLanguages: NSArray; preferredMediaCharacteristics: NSArray)
: Pointer{instancetype}; cdecl;
end;
TAVPlayerMediaSelectionCriteria = class(TOCGenericImport<AVPlayerMediaSelectionCriteriaClass,
AVPlayerMediaSelectionCriteria>)
end;
PAVPlayerMediaSelectionCriteria = Pointer;
AVPlayerClass = interface(NSObjectClass)
['{32B0A5BC-2657-43D6-8FFF-A5F4BDD532FC}']
{class} function playerWithPlayerItem(item: AVPlayerItem): Pointer; cdecl;
{class} function playerWithURL(URL: NSURL): Pointer; cdecl;
end;
AVPlayer = interface(NSObject)
['{5A085E79-FDDB-4FFA-8663-61EB1EEEC40C}']
function actionAtItemEnd: AVPlayerActionAtItemEnd; cdecl;
function allowsAirPlayVideo: Boolean; cdecl;
function currentItem: AVPlayerItem; cdecl;
function currentTime: CMTime; cdecl;
function error: NSError; cdecl;
function initWithPlayerItem(item: AVPlayerItem): Pointer; cdecl;
function initWithURL(URL: NSURL): Pointer; cdecl;
function isAirPlayVideoActive: Boolean; cdecl;
function isClosedCaptionDisplayEnabled: Boolean; cdecl;
procedure pause; cdecl;
procedure play; cdecl;
function rate: Single; cdecl;
procedure removeTimeObserver(observer: Pointer); cdecl;
procedure replaceCurrentItemWithPlayerItem(item: AVPlayerItem); cdecl;
procedure seekToTime(time: CMTime); cdecl; overload;
procedure seekToTime(time: CMTime; toleranceBefore: CMTime; toleranceAfter: CMTime); cdecl; overload;
[MethodName('seekToTime:completionHandler:')]
procedure seekToTimeCompletionHandler(time: CMTime; completionHandler: TAVFoundationCompletionHandler1); cdecl;
procedure setActionAtItemEnd(actionAtItemEnd: AVPlayerActionAtItemEnd); cdecl;
procedure setAllowsAirPlayVideo(allowsAirPlayVideo: Boolean); cdecl;
procedure setClosedCaptionDisplayEnabled(closedCaptionDisplayEnabled: Boolean); cdecl;
procedure setRate(rate: Single); cdecl;
procedure setUsesAirPlayVideoWhileAirPlayScreenIsActive(usesAirPlayVideoWhileAirPlayScreenIsActive: Boolean); cdecl;
function status: AVPlayerStatus; cdecl;
function usesAirPlayVideoWhileAirPlayScreenIsActive: Boolean; cdecl;
[MethodName('seekToDate:')]
procedure seekToDate(date: NSDate); cdecl;
[MethodName('seekToDate:completionHandler:')]
procedure seekToDateCompletionHandler(date: NSDate; completionHandler: TAVFoundationCompletionHandler1); cdecl;
[MethodName('seekToTime:toleranceBefore:toleranceAfter:completionHandler:')]
procedure seekToTimeToleranceBeforeToleranceAfterCompletionHandler(time: CMTime; toleranceBefore: CMTime;
toleranceAfter: CMTime; completionHandler: TAVFoundationCompletionHandler1); cdecl;
[MethodName('setRate:time:atHostTime:')]
procedure setRateTimeAtHostTime(rate: Single; time: CMTime; atHostTime: CMTime); cdecl;
procedure prerollAtRate(rate: Single; completionHandler: TAVFoundationCompletionHandler1); cdecl;
procedure cancelPendingPrerolls; cdecl;
procedure setMasterClock(masterClock: CMClockRef); cdecl;
function masterClock: CMClockRef; cdecl;
function addPeriodicTimeObserverForInterval(interval: CMTime; queue: dispatch_queue_t;
usingBlock: TAVFoundationCompletionHandler2): Pointer; cdecl;
function addBoundaryTimeObserverForTimes(times: NSArray; queue: dispatch_queue_t;
usingBlock: TAVFoundationCompletionHandler): Pointer; cdecl;
procedure setVolume(volume: Single); cdecl;
function volume: Single; cdecl;
procedure setMuted(muted: Boolean); cdecl;
function isMuted: Boolean; cdecl;
procedure setAppliesMediaSelectionCriteriaAutomatically(appliesMediaSelectionCriteriaAutomatically: Boolean); cdecl;
function appliesMediaSelectionCriteriaAutomatically: Boolean; cdecl;
procedure setMediaSelectionCriteria(criteria: AVPlayerMediaSelectionCriteria;
forMediaCharacteristic: NSString); cdecl;
function mediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic: NSString)
: AVPlayerMediaSelectionCriteria; cdecl;
procedure setAudioOutputDeviceUniqueID(audioOutputDeviceUniqueID: NSString); cdecl;
function audioOutputDeviceUniqueID: NSString; cdecl;
procedure setAllowsExternalPlayback(allowsExternalPlayback: Boolean); cdecl;
function allowsExternalPlayback: Boolean; cdecl;
function isExternalPlaybackActive: Boolean; cdecl;
procedure setUsesExternalPlaybackWhileExternalScreenIsActive(usesExternalPlaybackWhileExternalScreenIsActive
: Boolean); cdecl;
function usesExternalPlaybackWhileExternalScreenIsActive: Boolean; cdecl;
procedure setExternalPlaybackVideoGravity(externalPlaybackVideoGravity: NSString); cdecl;
function externalPlaybackVideoGravity: NSString; cdecl;
function outputObscuredDueToInsufficientExternalProtection: Boolean; cdecl;
procedure removeObserver(observer: NSObject; forKeyPath: NSString); cdecl; overload; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
procedure removeObserver(observer: NSObject; forKeyPath: NSString; context: Pointer); cdecl; overload; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
procedure addObserver(observer: NSObject; forKeyPath: NSString; options: NSKeyValueObservingOptions; context: Pointer); cdecl; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
end;
TAVPlayer = class(TOCGenericImport<AVPlayerClass, AVPlayer>) end;
AVQueuePlayerClass = interface(AVPlayerClass)
['{38E2EF5D-D616-4D79-9C51-EE1DBF7448D8}']
{class} function queuePlayerWithItems(items: NSArray): Pointer; cdecl;
end;
AVQueuePlayer = interface(AVPlayer)
['{B7E4AA83-21F9-491C-9049-C10D7A7D363A}']
function initWithItems(items: NSArray): Pointer{instancetype}; cdecl;
function items: NSArray; cdecl;
procedure advanceToNextItem; cdecl;
function canInsertItem(item: AVPlayerItem; afterItem: AVPlayerItem): Boolean; cdecl;
procedure insertItem(item: AVPlayerItem; afterItem: AVPlayerItem); cdecl;
procedure removeItem(item: AVPlayerItem); cdecl;
procedure removeAllItems; cdecl;
end;
TAVQueuePlayer = class(TOCGenericImport<AVQueuePlayerClass, AVQueuePlayer>)
end;
PAVQueuePlayer = Pointer;
AVPlayerItemOutputClass = interface(NSObjectClass)
['{5A46A428-F1B0-438A-868F-6D556F864153}']
end;
AVPlayerItemOutput = interface(NSObject)
['{8C4C8554-5006-4E5E-8414-1B0BF5E1468A}']
function itemTimeForHostTime(hostTimeInSeconds: CFTimeInterval): CMTime; cdecl;
function itemTimeForMachAbsoluteTime(machAbsoluteTime: Int64): CMTime; cdecl;
procedure setSuppressesPlayerRendering(suppressesPlayerRendering: Boolean); cdecl;
function suppressesPlayerRendering: Boolean; cdecl;
end;
TAVPlayerItemOutput = class(TOCGenericImport<AVPlayerItemOutputClass, AVPlayerItemOutput>)
end;
PAVPlayerItemOutput = Pointer;
AVPlayerItemErrorLogEventClass = interface(NSObjectClass)
['{EEFD6908-AE3F-4343-A4E8-E0493B28F750}']
end;
AVPlayerItemErrorLogEvent = interface(NSObject)
['{DF2F61D3-C2D6-40D1-AA9B-01FB5175D365}']
function date: NSDate; cdecl;
function URI: NSString; cdecl;
function serverAddress: NSString; cdecl;
function playbackSessionID: NSString; cdecl;
function errorStatusCode: NSInteger; cdecl;
function errorDomain: NSString; cdecl;
function errorComment: NSString; cdecl;
end;
TAVPlayerItemErrorLogEvent = class(TOCGenericImport<AVPlayerItemErrorLogEventClass, AVPlayerItemErrorLogEvent>)
end;
PAVPlayerItemErrorLogEvent = Pointer;
AVPlayerItemVideoOutputClass = interface(AVPlayerItemOutputClass)
['{4266026D-FF43-4194-A66A-B5DCC1CDE919}']
end;
AVPlayerItemVideoOutput = interface(AVPlayerItemOutput)
['{017135B2-F916-4E73-BED3-24616A4F9689}']
function initWithPixelBufferAttributes(pixelBufferAttributes: NSDictionary): Pointer{instancetype}; cdecl;
function hasNewPixelBufferForItemTime(itemTime: CMTime): Boolean; cdecl;
function copyPixelBufferForItemTime(itemTime: CMTime; itemTimeForDisplay: Pointer): CVPixelBufferRef; cdecl;
procedure setDelegate(delegate: Pointer; queue: dispatch_queue_t); cdecl;
procedure requestNotificationOfMediaDataChangeWithAdvanceInterval(interval: NSTimeInterval); cdecl;
function delegate: Pointer; cdecl;
function delegateQueue: dispatch_queue_t; cdecl;
end;
TAVPlayerItemVideoOutput = class(TOCGenericImport<AVPlayerItemVideoOutputClass, AVPlayerItemVideoOutput>)
end;
PAVPlayerItemVideoOutput = Pointer;
AVPlayerItemLegibleOutputClass = interface(AVPlayerItemOutputClass)
['{3DA7DBD8-CCB8-43E9-B0BB-2FDB5DB3B9CB}']
end;
AVPlayerItemLegibleOutput = interface(AVPlayerItemOutput)
['{28CF68C1-0268-46EC-9C70-2069B2EAA416}']
procedure setDelegate(delegate: Pointer; queue: dispatch_queue_t); cdecl;
function delegate: Pointer; cdecl;
function delegateQueue: dispatch_queue_t; cdecl;
procedure setAdvanceIntervalForDelegateInvocation(advanceIntervalForDelegateInvocation: NSTimeInterval); cdecl;
function advanceIntervalForDelegateInvocation: NSTimeInterval; cdecl;
function initWithMediaSubtypesForNativeRepresentation(subtypes: NSArray): Pointer{instancetype}; cdecl;
procedure setTextStylingResolution(textStylingResolution: NSString); cdecl;
function textStylingResolution: NSString; cdecl;
end;
TAVPlayerItemLegibleOutput = class(TOCGenericImport<AVPlayerItemLegibleOutputClass, AVPlayerItemLegibleOutput>)
end;
PAVPlayerItemLegibleOutput = Pointer;
AVPlayerItemMetadataOutputClass = interface(AVPlayerItemOutputClass)
['{5E5A0AF6-561C-4A67-B28C-14552048DBDF}']
end;
AVPlayerItemMetadataOutput = interface(AVPlayerItemOutput)
['{40F568FA-A02F-4C45-B697-653DF1E2362E}']
function initWithIdentifiers(identifiers: NSArray): Pointer{instancetype}; cdecl;
procedure setDelegate(delegate: Pointer; queue: dispatch_queue_t); cdecl;
function delegate: Pointer; cdecl;
function delegateQueue: dispatch_queue_t; cdecl;
procedure setAdvanceIntervalForDelegateInvocation(advanceIntervalForDelegateInvocation: NSTimeInterval); cdecl;
function advanceIntervalForDelegateInvocation: NSTimeInterval; cdecl;
end;
TAVPlayerItemMetadataOutput = class(TOCGenericImport<AVPlayerItemMetadataOutputClass, AVPlayerItemMetadataOutput>)
end;
PAVPlayerItemMetadataOutput = Pointer;
AVPlayerItemClass = interface(NSObjectClass)
['{C5BC57A7-59C9-4DAE-9D43-D1FD54A1CC2E}']
{class} function playerItemWithAsset(asset: AVAsset): Pointer; cdecl;
{class} function playerItemWithURL(URL: NSURL): Pointer; cdecl;
end;
AVPlayerItem = interface(NSObject)
['{D6330CE2-1082-41E4-8E8E-1E696264180A}']
function accessLog: AVPlayerItemAccessLog; cdecl;
function asset: AVAsset; cdecl;
function audioMix: AVAudioMix; cdecl;
function canPlayFastForward: Boolean; cdecl;
function canPlayFastReverse: Boolean; cdecl;
procedure cancelPendingSeeks; cdecl;
function currentDate: NSDate; cdecl;
function currentTime: CMTime; cdecl;
function duration: CMTime; cdecl;
function error: NSError; cdecl;
function errorLog: AVPlayerItemErrorLog; cdecl;
function forwardPlaybackEndTime: CMTime; cdecl;
function initWithAsset(asset: AVAsset): Pointer; cdecl;
function initWithURL(URL: NSURL): Pointer; cdecl;
function isPlaybackBufferEmpty: Boolean; cdecl;
function isPlaybackBufferFull: Boolean; cdecl;
function isPlaybackLikelyToKeepUp: Boolean; cdecl;
function loadedTimeRanges: NSArray; cdecl;
function presentationSize: CGSize; cdecl;
function reversePlaybackEndTime: CMTime; cdecl;
function seekToDate(date: NSDate): Boolean; cdecl;
procedure seekToTime(time: CMTime); cdecl; overload;
procedure seekToTime(time: CMTime; toleranceBefore: CMTime; toleranceAfter: CMTime); cdecl; overload;
function seekableTimeRanges: NSArray; cdecl;
procedure selectMediaOption(mediaSelectionOption: AVMediaSelectionOption; inMediaSelectionGroup: AVMediaSelectionGroup); cdecl;
function selectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup: AVMediaSelectionGroup): AVMediaSelectionOption; cdecl;
procedure setAudioMix(audioMix: AVAudioMix); cdecl;
procedure setForwardPlaybackEndTime(forwardPlaybackEndTime: CMTime); cdecl;
procedure setReversePlaybackEndTime(reversePlaybackEndTime: CMTime); cdecl;
procedure setVideoComposition(videoComposition: AVVideoComposition); cdecl;
function status: AVPlayerItemStatus; cdecl;
procedure stepByCount(stepCount: NSInteger); cdecl;
function timedMetadata: NSArray; cdecl;
function tracks: NSArray; cdecl;
function videoComposition: AVVideoComposition; cdecl;
procedure addOutput(output: AVPlayerItemOutput); cdecl; // https://quality.embarcadero.com/browse/RSP-16853
procedure removeOutput(output: AVPlayerItemOutput); cdecl; // https://quality.embarcadero.com/browse/RSP-16853
procedure removeObserver(observer: NSObject; forKeyPath: NSString); cdecl; overload; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
procedure removeObserver(observer: NSObject; forKeyPath: NSString; context: Pointer); cdecl; overload; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
procedure addObserver(observer: NSObject; forKeyPath: NSString; options: NSKeyValueObservingOptions; context: Pointer); cdecl; // https://quality.embarcadero.com/browse/RSP-16857 - normally this must be as the NSObject level but too complicated to update the iOSapi.Foundation.pas file
end;
TAVPlayerItem = class(TOCGenericImport<AVPlayerItemClass, AVPlayerItem>) end;
AVMediaSelectionOptionClass = interface(NSObjectClass)
['{84EDCC78-4B73-4EE4-A38A-1989E8D4C681}']
end;
AVMediaSelectionOption = interface(NSObject)
['{3B90172E-C137-4EC9-94DB-CB7236698F0D}']
function associatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup: AVMediaSelectionGroup): AVMediaSelectionOption; cdecl;
function availableMetadataFormats: NSArray; cdecl;
function commonMetadata: NSArray; cdecl;
function hasMediaCharacteristic(mediaCharacteristic: NSString): Boolean; cdecl;
function isPlayable: Boolean; cdecl;
function locale: NSLocale; cdecl;
function mediaSubTypes: NSArray; cdecl;
function mediaType: NSString; cdecl;
function metadataForFormat(format: NSString): NSArray; cdecl;
function propertyList: Pointer; cdecl;
end;
TAVMediaSelectionOption = class(TOCGenericImport<AVMediaSelectionOptionClass, AVMediaSelectionOption>) end;
AVMediaSelectionGroupClass = interface(NSObjectClass)
['{A1AB759B-FD5A-42CC-A7D4-8F1A7A97849A}']
{class} function mediaSelectionOptionsFromArray(array_: NSArray; withLocale: NSLocale): NSArray; cdecl; overload;
{class} function mediaSelectionOptionsFromArray(array_: NSArray; withMediaCharacteristics: NSArray): NSArray; cdecl; overload;
// {class} function mediaSelectionOptionsFromArray(array_: NSArray; withoutMediaCharacteristics: NSArray): NSArray; cdecl; overload;
{class} function playableMediaSelectionOptionsFromArray(array_: NSArray): NSArray; cdecl;
end;
AVMediaSelectionGroup = interface(NSObject)
['{92BD2ADE-72E8-44D0-B233-8D7558FD8DE5}']
function allowsEmptySelection: Boolean; cdecl;
function mediaSelectionOptionWithPropertyList(plist: Pointer): AVMediaSelectionOption; cdecl;
function options: NSArray; cdecl;
end;
TAVMediaSelectionGroup = class(TOCGenericImport<AVMediaSelectionGroupClass, AVMediaSelectionGroup>) end;
AVMetadataItemClass = interface(NSObjectClass)
['{130F769A-4ED7-4AC8-8304-94F07E39F173}']
{class} function metadataItemsFromArray(array_: NSArray; withKey: Pointer; keySpace: NSString): NSArray; cdecl; overload;
{class} function metadataItemsFromArray(array_: NSArray; withLocale: NSLocale): NSArray; cdecl; overload;
end;
AVMetadataItem = interface(NSObject)
['{A7A40638-4DC7-4A86-A4B2-6C47D3A0BC6D}']
function commonKey: NSString; cdecl;
function dataValue: NSData; cdecl;
function dateValue: NSDate; cdecl;
function duration: CMTime; cdecl;
function extraAttributes: NSDictionary; cdecl;
function key: Pointer; cdecl;
function keySpace: NSString; cdecl;
function locale: NSLocale; cdecl;
function numberValue: NSNumber; cdecl;
function statusOfValueForKey(key: NSString; error: NSError): AVKeyValueStatus; cdecl;
function stringValue: NSString; cdecl;
function time: CMTime; cdecl;
function value: Pointer; cdecl;
end;
TAVMetadataItem = class(TOCGenericImport<AVMetadataItemClass, AVMetadataItem>) end;
AVPlayerItemTrackClass = interface(NSObjectClass)
['{93725DB1-C395-43DF-A31B-398760D22150}']
end;
AVPlayerItemTrack = interface(NSObject)
['{B77509C9-F47E-4CA0-BCE5-D14CA98C8549}']
function assetTrack: AVAssetTrack; cdecl;
function isEnabled: Boolean; cdecl;
procedure setEnabled(enabled: Boolean); cdecl;
end;
TAVPlayerItemTrack = class(TOCGenericImport<AVPlayerItemTrackClass, AVPlayerItemTrack>) end;
AVCaptureDeviceClass = interface(NSObjectClass)
['{D99109B5-EBAB-4DFD-85C5-5FECBDA5D43D}']
{class} function defaultDeviceWithMediaType(mediaType: NSString): Pointer; cdecl;
{class} function deviceWithUniqueID(deviceUniqueID: NSString): Pointer; cdecl;
{class} function devices: NSArray; cdecl;
{class} function devicesWithMediaType(mediaType: NSString): NSArray; cdecl;
{class} function authorizationStatusForMediaType(mediaType: AVMediaType): AVAuthorizationStatus; cdecl; // https://quality.embarcadero.com/browse/RSP-24300
{class} procedure requestAccessForMediaType(mediaType: AVMediaType; completionHandler: TAVFoundationCompletionHandler1); cdecl; // https://quality.embarcadero.com/browse/RSP-24300
end;
AVCaptureDevice = interface(NSObject)
['{A8ECC90F-6016-44A4-BB84-8FB720CF786D}']
function exposureMode: AVCaptureExposureMode; cdecl;
function exposurePointOfInterest: CGPoint; cdecl;
function flashMode: AVCaptureFlashMode; cdecl;
function focusMode: AVCaptureFocusMode; cdecl;
function focusPointOfInterest: CGPoint; cdecl;
function hasFlash: Boolean; cdecl;
function hasMediaType(mediaType: NSString): Boolean; cdecl;
function hasTorch: Boolean; cdecl;
function formats: NSArray; cdecl;
procedure setActiveFormat(activeFormat: AVCaptureDeviceFormat); cdecl;
function activeFormat: AVCaptureDeviceFormat; cdecl;
procedure setActiveVideoMinFrameDuration(activeVideoMinFrameDuration: CMTime); cdecl;
function activeVideoMinFrameDuration: CMTime; cdecl;
procedure setActiveVideoMaxFrameDuration(activeVideoMaxFrameDuration: CMTime); cdecl;
function activeVideoMaxFrameDuration: CMTime; cdecl;
function isAdjustingExposure: Boolean; cdecl;
function isAdjustingFocus: Boolean; cdecl;
function isAdjustingWhiteBalance: Boolean; cdecl;
function isConnected: Boolean; cdecl;
function isExposureModeSupported(exposureMode: AVCaptureExposureMode): Boolean; cdecl;
function isExposurePointOfInterestSupported: Boolean; cdecl;
function isFlashActive: Boolean; cdecl;
function isFlashAvailable: Boolean; cdecl;
function isFlashModeSupported(flashMode: AVCaptureFlashMode): Boolean; cdecl;
function isFocusModeSupported(focusMode: AVCaptureFocusMode): Boolean; cdecl;
function isFocusPointOfInterestSupported: Boolean; cdecl;
function isSubjectAreaChangeMonitoringEnabled: Boolean; cdecl;
function isTorchAvailable: Boolean; cdecl;
function isTorchModeSupported(torchMode: AVCaptureTorchMode): Boolean; cdecl;
function isWhiteBalanceModeSupported(whiteBalanceMode: AVCaptureWhiteBalanceMode): Boolean; cdecl;
function localizedName: NSString; cdecl;
function lockForConfiguration(outError: NSError): Boolean; cdecl;
function modelID: NSString; cdecl;
function position: AVCaptureDevicePosition; cdecl;
procedure setExposureMode(exposureMode: AVCaptureExposureMode); cdecl;
procedure setExposurePointOfInterest(exposurePointOfInterest: CGPoint); cdecl;
procedure setFlashMode(flashMode: AVCaptureFlashMode); cdecl;
procedure setFocusMode(focusMode: AVCaptureFocusMode); cdecl;
procedure setFocusPointOfInterest(focusPointOfInterest: CGPoint); cdecl;
procedure setSubjectAreaChangeMonitoringEnabled(subjectAreaChangeMonitoringEnabled: Boolean); cdecl;
procedure setTorchMode(torchMode: AVCaptureTorchMode); cdecl;
procedure setWhiteBalanceMode(whiteBalanceMode: AVCaptureWhiteBalanceMode); cdecl;
function supportsAVCaptureSessionPreset(preset: NSString): Boolean; cdecl;
function torchLevel: Single; cdecl;
function torchMode: AVCaptureTorchMode; cdecl;
function uniqueID: NSString; cdecl;
procedure unlockForConfiguration; cdecl;
function whiteBalanceMode: AVCaptureWhiteBalanceMode; cdecl;
end;
TAVCaptureDevice = class(TOCGenericImport<AVCaptureDeviceClass, AVCaptureDevice>) end;
AVFrameRateRangeClass = interface(NSObjectClass)
['{681359F1-9D28-49F5-8234-5D6451A52F3C}']
end;
AVFrameRateRange = interface(NSObject)
['{EF3E80FE-3E82-4DAE-B15D-EC9B86F3DCE7}']
function minFrameRate: Double; cdecl;
function maxFrameRate: Double; cdecl;
function maxFrameDuration: CMTime; cdecl;
function minFrameDuration: CMTime; cdecl;
end;
TAVFrameRateRange = class(TOCGenericImport<AVFrameRateRangeClass, AVFrameRateRange>)
end;
AVAssetTrackClass = interface(NSObjectClass)
['{3117D5A1-A0E0-4037-B732-71ADCF3FEFA2}']
end;
AVAssetTrack = interface(NSObject)
['{5FB20151-009C-465B-80F7-E2C90471409A}']
function asset: AVAsset; cdecl;
function availableMetadataFormats: NSArray; cdecl;
function commonMetadata: NSArray; cdecl;
function estimatedDataRate: Single; cdecl;
function extendedLanguageTag: NSString; cdecl;
function formatDescriptions: NSArray; cdecl;
function hasMediaCharacteristic(mediaCharacteristic: NSString): Boolean; cdecl;
function isEnabled: Boolean; cdecl;
function isPlayable: Boolean; cdecl;
function isSelfContained: Boolean; cdecl;
function languageCode: NSString; cdecl;
function mediaType: NSString; cdecl;
function metadataForFormat(format: NSString): NSArray; cdecl;
function naturalSize: CGSize; cdecl;
function naturalTimeScale: CMTimeScale; cdecl;
function nominalFrameRate: Single; cdecl;
function preferredTransform: CGAffineTransform; cdecl;
function preferredVolume: Single; cdecl;
function samplePresentationTimeForTrackTime(trackTime: CMTime): CMTime; cdecl;
function segmentForTrackTime(trackTime: CMTime): AVAssetTrackSegment; cdecl;
function segments: NSArray; cdecl;
function timeRange: CMTimeRange; cdecl;
function totalSampleDataLength: Int64; cdecl;
function trackID: CMPersistentTrackID; cdecl;
end;
TAVAssetTrack = class(TOCGenericImport<AVAssetTrackClass, AVAssetTrack>) end;
AVAssetTrackSegmentClass = interface(NSObjectClass)
['{0F9BDB53-C283-47AA-B733-0B5D7A61DBF0}']
end;
AVAssetTrackSegment = interface(NSObject)
['{57AC9D4B-F54F-40CB-BF48-4BEA9DFBB6D3}']
function isEmpty: Boolean; cdecl;
function timeMapping: CMTimeMapping; cdecl;
end;
TAVAssetTrackSegment = class(TOCGenericImport<AVAssetTrackSegmentClass, AVAssetTrackSegment>) end;
AVAssetClass = interface(NSObjectClass)
['{5B1853CA-F40B-418F-9411-19247F629D80}']
{class} function assetWithURL(URL: NSURL): Pointer; cdecl;
end;
AVAsset = interface(NSObject)
['{1762072E-9F4E-478A-B37C-06FCD01ACD36}']
function availableChapterLocales: NSArray; cdecl;
function availableMediaCharacteristicsWithMediaSelectionOptions: NSArray; cdecl;
function availableMetadataFormats: NSArray; cdecl;
procedure cancelLoading; cdecl;
function chapterMetadataGroupsWithTitleLocale(locale: NSLocale; containingItemsWithCommonKeys: NSArray): NSArray; cdecl;
function commonMetadata: NSArray; cdecl;
function creationDate: AVMetadataItem; cdecl;
function duration: CMTime; cdecl;
function hasProtectedContent: Boolean; cdecl;
function isCompatibleWithSavedPhotosAlbum: Boolean; cdecl;
function isComposable: Boolean; cdecl;
function isExportable: Boolean; cdecl;
function isPlayable: Boolean; cdecl;
function isReadable: Boolean; cdecl;
function lyrics: NSString; cdecl;
function mediaSelectionGroupForMediaCharacteristic(mediaCharacteristic: NSString): AVMediaSelectionGroup; cdecl;
function metadataForFormat(format: NSString): NSArray; cdecl;
function naturalSize: CGSize; cdecl;
function preferredRate: Single; cdecl;
function preferredTransform: CGAffineTransform; cdecl;
function preferredVolume: Single; cdecl;
function providesPreciseDurationAndTiming: Boolean; cdecl;
function referenceRestrictions: AVAssetReferenceRestrictions; cdecl;
function trackWithTrackID(trackID: CMPersistentTrackID): AVAssetTrack; cdecl;
function tracks: NSArray; cdecl;
function tracksWithMediaCharacteristic(mediaCharacteristic: NSString): NSArray; cdecl;
function tracksWithMediaType(mediaType: NSString): NSArray; cdecl;
function unusedTrackID: CMPersistentTrackID; cdecl;
end;
TAVAsset = class(TOCGenericImport<AVAssetClass, AVAsset>) end;
AVAssetWriterClass = interface(NSObjectClass)
['{6D40766B-E7D4-4AB1-84C0-40854E31DBB1}']
{class} function assetWriterWithURL(outputURL: NSURL; fileType: NSString; error: NSError): Pointer; cdecl;
end;
AVAssetWriter = interface(NSObject)
['{3267019A-FB54-4919-B507-759FF0E92BEF}']
procedure addInput(input: AVAssetWriterInput); cdecl;
function availableMediaTypes: NSArray; cdecl;
function canAddInput(input: AVAssetWriterInput): Boolean; cdecl;
function canApplyOutputSettings(outputSettings: NSDictionary; forMediaType: NSString): Boolean; cdecl;
procedure cancelWriting; cdecl;
procedure endSessionAtSourceTime(endTime: CMTime); cdecl;
function error: NSError; cdecl;
function finishWriting: Boolean; cdecl;
function initWithURL(outputURL: NSURL; fileType: NSString; error: NSError): Pointer; cdecl;
function inputs: NSArray; cdecl;
function metadata: NSArray; cdecl;
function movieFragmentInterval: CMTime; cdecl;
function movieTimeScale: CMTimeScale; cdecl;
function outputFileType: NSString; cdecl;
function outputURL: NSURL; cdecl;
procedure setMetadata(metadata: NSArray); cdecl;
procedure setMovieFragmentInterval(movieFragmentInterval: CMTime); cdecl;
procedure setMovieTimeScale(movieTimeScale: CMTimeScale); cdecl;
procedure setShouldOptimizeForNetworkUse(shouldOptimizeForNetworkUse: Boolean); cdecl;
function shouldOptimizeForNetworkUse: Boolean; cdecl;
procedure startSessionAtSourceTime(startTime: CMTime); cdecl;
function startWriting: Boolean; cdecl;
function status: AVAssetWriterStatus; cdecl;
end;
TAVAssetWriter = class(TOCGenericImport<AVAssetWriterClass, AVAssetWriter>) end;
AVAssetImageGeneratorClass = interface(NSObjectClass)
['{5C7794F2-361F-4E6C-8C9F-E00CF0246A15}']
{class} function assetImageGeneratorWithAsset(asset: AVAsset): Pointer; cdecl;
end;
AVAssetImageGenerator = interface(NSObject)
['{0B8393D2-55CC-49CE-AB2C-C6B8938CC180}']
function apertureMode: NSString; cdecl;
function appliesPreferredTrackTransform: Boolean; cdecl;
procedure cancelAllCGImageGeneration; cdecl;
function copyCGImageAtTime(requestedTime: CMTime; actualTime: CMTime; error: NSError): CGImageRef; cdecl;
function initWithAsset(asset: AVAsset): Pointer; cdecl;
function maximumSize: CGSize; cdecl;
function requestedTimeToleranceAfter: CMTime; cdecl;
function requestedTimeToleranceBefore: CMTime; cdecl;
procedure setApertureMode(apertureMode: NSString); cdecl;
procedure setAppliesPreferredTrackTransform(appliesPreferredTrackTransform: Boolean); cdecl;
procedure setMaximumSize(maximumSize: CGSize); cdecl;
procedure setRequestedTimeToleranceAfter(requestedTimeToleranceAfter: CMTime); cdecl;
procedure setRequestedTimeToleranceBefore(requestedTimeToleranceBefore: CMTime); cdecl;
procedure setVideoComposition(videoComposition: AVVideoComposition); cdecl;
function videoComposition: AVVideoComposition; cdecl;
end;
TAVAssetImageGenerator = class(TOCGenericImport<AVAssetImageGeneratorClass, AVAssetImageGenerator>) end;
AVAssetExportSessionClass = interface(NSObjectClass)
['{46299F3E-74CC-422A-8133-F0D4D62BDD1D}']
{class} function allExportPresets: NSArray; cdecl;
{class} function exportPresetsCompatibleWithAsset(asset: AVAsset): NSArray; cdecl;
{class} function exportSessionWithAsset(asset: AVAsset; presetName: NSString): Pointer; cdecl;
end;
AVAssetExportSession = interface(NSObject)
['{3E6C3EAA-A638-4B5C-BE76-231F684EE84F}']
function asset: AVAsset; cdecl;
function audioMix: AVAudioMix; cdecl;
procedure cancelExport; cdecl;
function error: NSError; cdecl;
function estimatedOutputFileLength: Int64; cdecl;
function fileLengthLimit: Int64; cdecl;
function initWithAsset(asset: AVAsset; presetName: NSString): Pointer; cdecl;
function maxDuration: CMTime; cdecl;
function metadata: NSArray; cdecl;
function outputFileType: NSString; cdecl;
function outputURL: NSURL; cdecl;
function presetName: NSString; cdecl;
function progress: Single; cdecl;
procedure setAudioMix(audioMix: AVAudioMix); cdecl;
procedure setFileLengthLimit(fileLengthLimit: Int64); cdecl;
procedure setMetadata(metadata: NSArray); cdecl;
procedure setOutputFileType(outputFileType: NSString); cdecl;
procedure setOutputURL(outputURL: NSURL); cdecl;
procedure setShouldOptimizeForNetworkUse(shouldOptimizeForNetworkUse: Boolean); cdecl;
procedure setTimeRange(timeRange: CMTimeRange); cdecl;
procedure setVideoComposition(videoComposition: AVVideoComposition); cdecl;
function shouldOptimizeForNetworkUse: Boolean; cdecl;
function status: AVAssetExportSessionStatus; cdecl;
function supportedFileTypes: NSArray; cdecl;
function timeRange: CMTimeRange; cdecl;
function videoComposition: AVVideoComposition; cdecl;
end;
TAVAssetExportSession = class(TOCGenericImport<AVAssetExportSessionClass, AVAssetExportSession>) end;
AVAssetReaderClass = interface(NSObjectClass)
['{9EF367AD-6B43-4496-833F-6D0CEFAC4F85}']
{class} function assetReaderWithAsset(asset: AVAsset; error: NSError): Pointer; cdecl;
end;
AVAssetReader = interface(NSObject)
['{8F7018C5-89C3-47BA-A250-E9F0974F5FDF}']
procedure addOutput(output: AVAssetReaderOutput); cdecl;
function asset: AVAsset; cdecl;
function canAddOutput(output: AVAssetReaderOutput): Boolean; cdecl;
procedure cancelReading; cdecl;
function error: NSError; cdecl;
function initWithAsset(asset: AVAsset; error: NSError): Pointer; cdecl;
function outputs: NSArray; cdecl;
procedure setTimeRange(timeRange: CMTimeRange); cdecl;
function startReading: Boolean; cdecl;
function status: AVAssetReaderStatus; cdecl;
function timeRange: CMTimeRange; cdecl;
end;
TAVAssetReader = class(TOCGenericImport<AVAssetReaderClass, AVAssetReader>) end;
AVAssetReaderOutputClass = interface(NSObjectClass)
['{A18FC0FD-FB8B-47AA-AE57-A0A563C81353}']
end;
AVAssetReaderOutput = interface(NSObject)
['{C784D941-58FF-417F-9234-F021DA36D4A7}']
function alwaysCopiesSampleData: Boolean; cdecl;
function copyNextSampleBuffer: CMSampleBufferRef; cdecl;
function mediaType: NSString; cdecl;
procedure setAlwaysCopiesSampleData(alwaysCopiesSampleData: Boolean); cdecl;
end;
TAVAssetReaderOutput = class(TOCGenericImport<AVAssetReaderOutputClass, AVAssetReaderOutput>) end;
AVAudioSessionClass = interface(NSObjectClass)
['{27750A0D-F670-4CA2-8D70-93AF033E990D}']
{class} function sharedInstance: Pointer; cdecl;
end;
AVAudioSession = interface(NSObject)
['{C23AE581-031A-4504-A0AF-C40F6482173A}']
function category: NSString; cdecl;
function currentHardwareInputNumberOfChannels: NSInteger; cdecl;
function currentHardwareOutputNumberOfChannels: NSInteger; cdecl;
function currentHardwareSampleRate: double; cdecl;
function delegate: Pointer; cdecl;
function inputIsAvailable: Boolean; cdecl;
function mode: NSString; cdecl;
function preferredHardwareSampleRate: double; cdecl;
function preferredIOBufferDuration: NSTimeInterval; cdecl;
function setActive(beActive: Boolean; error: NSError): Boolean; cdecl; overload;
function setActive(beActive: Boolean; withFlags: NSInteger; error: NSError): Boolean; cdecl; overload;
function setCategory(theCategory: NSString; error: NSError): Boolean; cdecl;
procedure setDelegate(delegate: Pointer); cdecl;
function setMode(theMode: NSString; error: NSError): Boolean; cdecl;
function setPreferredHardwareSampleRate(sampleRate: double; error: NSError): Boolean; cdecl;
function setPreferredIOBufferDuration(duration: NSTimeInterval; error: NSError): Boolean; cdecl;
end;
TAVAudioSession = class(TOCGenericImport<AVAudioSessionClass, AVAudioSession>) end;
AVCaptureDeviceFormatClass = interface(NSObjectClass)
['{01C5ADE2-BE0F-46E2-B5C1-DB18D9861ADC}']
end;
AVCaptureDeviceFormat = interface(NSObject)
['{FE87B684-00B7-467D-A15A-9220534CD5D5}']
function mediaType: NSString; cdecl;
function formatDescription: CMFormatDescriptionRef; cdecl;
function videoSupportedFrameRateRanges: NSArray; cdecl;
function videoFieldOfView: Single; cdecl;
function isVideoBinned: Boolean; cdecl;
function isVideoStabilizationSupported: Boolean; cdecl;
function videoMaxZoomFactor: CGFloat; cdecl;
function videoZoomFactorUpscaleThreshold: CGFloat; cdecl;
end;
TAVCaptureDeviceFormat = class(TOCGenericImport<AVCaptureDeviceFormatClass,
AVCaptureDeviceFormat>)
end;
AVAudioRecorderClass = interface(NSObjectClass)
['{8BB1CEAF-2C49-4093-8A90-0253A9F0AA70}']
end;
AVAudioRecorder = interface(NSObject)
['{DE27A761-9065-44E4-8F57-6AF044C999E9}']
function averagePowerForChannel(channelNumber: NSUInteger): Single; cdecl;
function currentTime: NSTimeInterval; cdecl;
function delegate: Pointer; cdecl;
function deleteRecording: Boolean; cdecl;
function initWithURL(url: NSURL; settings: NSDictionary; error: NSError): Pointer; cdecl;
function isMeteringEnabled: Boolean; cdecl;
function isRecording: Boolean; cdecl;
procedure pause; cdecl;
function peakPowerForChannel(channelNumber: NSUInteger): Single; cdecl;
function prepareToRecord: Boolean; cdecl;
function &record: Boolean; cdecl;
function recordForDuration(duration: NSTimeInterval): Boolean; cdecl;
procedure setDelegate(delegate: Pointer); cdecl;
procedure setMeteringEnabled(meteringEnabled: Boolean); cdecl;
function settings: NSDictionary; cdecl;
procedure stop; cdecl;
procedure updateMeters; cdecl;
function url: NSURL; cdecl;
end;
TAVAudioRecorder = class(TOCGenericImport<AVAudioRecorderClass, AVAudioRecorder>) end;
AVCaptureAudioChannelClass = interface(NSObjectClass)
['{E6E22267-6084-470F-A47D-1AD8FCDE3C62}']
end;
AVCaptureAudioChannel = interface(NSObject)
['{CC725B0B-A5E0-447A-96FB-89ABE201480A}']
function averagePowerLevel: Single; cdecl;
function peakHoldLevel: Single; cdecl;
end;
TAVCaptureAudioChannel = class(TOCGenericImport<AVCaptureAudioChannelClass, AVCaptureAudioChannel>) end;
AVCaptureConnectionClass = interface(NSObjectClass)
['{084A4608-2F20-4AC0-A31A-C22D95FEC975}']
end;
AVCaptureConnection = interface(NSObject)
['{0C2188E9-4D0E-4CE0-BBEE-717D9821BB06}']
function audioChannels: NSArray; cdecl;
function inputPorts: NSArray; cdecl;
function isActive: Boolean; cdecl;
function isEnabled: Boolean; cdecl;
function isVideoMaxFrameDurationSupported: Boolean; cdecl;
function isVideoMinFrameDurationSupported: Boolean; cdecl;
function isVideoMirrored: Boolean; cdecl;
function isVideoMirroringSupported: Boolean; cdecl;
function isVideoOrientationSupported: Boolean; cdecl;
function output: AVCaptureOutput; cdecl;
procedure setEnabled(enabled: Boolean); cdecl;
procedure setVideoMaxFrameDuration(videoMaxFrameDuration: CMTime); cdecl;
procedure setVideoMinFrameDuration(videoMinFrameDuration: CMTime); cdecl;
procedure setVideoMirrored(videoMirrored: Boolean); cdecl;
procedure setVideoOrientation(videoOrientation: AVCaptureVideoOrientation); cdecl;
procedure setVideoScaleAndCropFactor(videoScaleAndCropFactor: CGFloat); cdecl;
function videoMaxFrameDuration: CMTime; cdecl;
function videoMaxScaleAndCropFactor: CGFloat; cdecl;
function videoMinFrameDuration: CMTime; cdecl;
function videoOrientation: AVCaptureVideoOrientation; cdecl;
function videoScaleAndCropFactor: CGFloat; cdecl;
end;
TAVCaptureConnection = class(TOCGenericImport<AVCaptureConnectionClass, AVCaptureConnection>) end;
AVVideoCompositionLayerInstructionClass = interface(NSObjectClass)
['{908820FB-6AAE-4C48-8432-8643493942FB}']
end;
AVVideoCompositionLayerInstruction = interface(NSObject)
['{439E393B-CC03-4D21-93DE-C49E8F1FD44D}']
function getOpacityRampForTime(time: CMTime; startOpacity: PSingle; endOpacity: PSingle; timeRange: CMTimeRange): Boolean; cdecl;
function getTransformRampForTime(time: CMTime; startTransform: CGAffineTransform; endTransform: CGAffineTransform; timeRange: CMTimeRange): Boolean; cdecl;
function trackID: CMPersistentTrackID; cdecl;
end;
TAVVideoCompositionLayerInstruction = class(TOCGenericImport<AVVideoCompositionLayerInstructionClass, AVVideoCompositionLayerInstruction>) end;
AVAudioPlayerClass = interface(NSObjectClass)
['{4FDDB9DA-F4C6-467F-B7A7-53C19D7A8415}']
end;
AVAudioPlayer = interface(NSObject)
['{682F8E33-4146-45F9-8AF5-368B633C863F}']
function averagePowerForChannel(channelNumber: NSUInteger): Single; cdecl;
function currentTime: NSTimeInterval; cdecl;
function data: NSData; cdecl;
function delegate: Pointer; cdecl;
function deviceCurrentTime: NSTimeInterval; cdecl;
function duration: NSTimeInterval; cdecl;
function enableRate: Boolean; cdecl;
function initWithContentsOfURL(url: NSURL; error: NSError): Pointer; cdecl;
function initWithData(data: NSData; error: NSError): Pointer; cdecl;
function isMeteringEnabled: Boolean; cdecl;
function isPlaying: Boolean; cdecl;
function numberOfChannels: NSUInteger; cdecl;
function numberOfLoops: NSInteger; cdecl;
function pan: Single; cdecl;
procedure pause; cdecl;
function peakPowerForChannel(channelNumber: NSUInteger): Single; cdecl;
function play: Boolean; cdecl;
function playAtTime(time: NSTimeInterval): Boolean; cdecl;
function prepareToPlay: Boolean; cdecl;
function rate: Single; cdecl;
procedure setCurrentTime(currentTime: NSTimeInterval); cdecl;
procedure setDelegate(delegate: Pointer); cdecl;
procedure setEnableRate(enableRate: Boolean); cdecl;
procedure setMeteringEnabled(meteringEnabled: Boolean); cdecl;
procedure setNumberOfLoops(numberOfLoops: NSInteger); cdecl;
procedure setPan(pan: Single); cdecl;
procedure setRate(rate: Single); cdecl;
procedure setVolume(volume: Single); cdecl;
function settings: NSDictionary; cdecl;
procedure stop; cdecl;
procedure updateMeters; cdecl;
function url: NSURL; cdecl;
function volume: Single; cdecl;
end;
TAVAudioPlayer = class(TOCGenericImport<AVAudioPlayerClass, AVAudioPlayer>) end;
AVAssetWriterInputPixelBufferAdaptorClass = interface(NSObjectClass)
['{C0E289AD-73E4-4B73-BC83-38B03D28B500}']
{class} function assetWriterInputPixelBufferAdaptorWithAssetWriterInput(input: AVAssetWriterInput; sourcePixelBufferAttributes: NSDictionary): Pointer; cdecl;
end;
AVAssetWriterInputPixelBufferAdaptor = interface(NSObject)
['{CDC41D77-0DB6-4373-B23F-3E02841E9B0A}']
function appendPixelBuffer(pixelBuffer: CVPixelBufferRef; withPresentationTime: CMTime): Boolean; cdecl;
function assetWriterInput: AVAssetWriterInput; cdecl;
function initWithAssetWriterInput(input: AVAssetWriterInput; sourcePixelBufferAttributes: NSDictionary): Pointer; cdecl;
function pixelBufferPool: CVPixelBufferPoolRef; cdecl;
function sourcePixelBufferAttributes: NSDictionary; cdecl;
end;
TAVAssetWriterInputPixelBufferAdaptor = class(TOCGenericImport<AVAssetWriterInputPixelBufferAdaptorClass, AVAssetWriterInputPixelBufferAdaptor>) end;
AVAssetWriterInputClass = interface(NSObjectClass)
['{9844CB93-8E9A-463B-97CA-32B3CB3C23B7}']
{class} function assetWriterInputWithMediaType(mediaType: NSString; outputSettings: NSDictionary): Pointer; cdecl;
end;
AVAssetWriterInput = interface(NSObject)
['{AB33CDB6-FB68-4CEB-BA0B-CFEB676F6B61}']
function appendSampleBuffer(sampleBuffer: CMSampleBufferRef): Boolean; cdecl;
function expectsMediaDataInRealTime: Boolean; cdecl;
function initWithMediaType(mediaType: NSString; outputSettings: NSDictionary): Pointer; cdecl;
function isReadyForMoreMediaData: Boolean; cdecl;
procedure markAsFinished; cdecl;
function mediaTimeScale: CMTimeScale; cdecl;
function mediaType: NSString; cdecl;
function metadata: NSArray; cdecl;
function outputSettings: NSDictionary; cdecl;
procedure setExpectsMediaDataInRealTime(expectsMediaDataInRealTime: Boolean); cdecl;
procedure setMediaTimeScale(mediaTimeScale: CMTimeScale); cdecl;
procedure setMetadata(metadata: NSArray); cdecl;
procedure setTransform(transform: CGAffineTransform); cdecl;
function transform: CGAffineTransform; cdecl;
end;
TAVAssetWriterInput = class(TOCGenericImport<AVAssetWriterInputClass, AVAssetWriterInput>) end;
AVAudioMixClass = interface(NSObjectClass)
['{69AED0FA-3E1F-48C6-9DFA-CDFBC6739A03}']
end;
AVAudioMix = interface(NSObject)
['{3330D086-B8BD-485F-91A1-DAF6C3A2D66B}']
function inputParameters: NSArray; cdecl;
end;
TAVAudioMix = class(TOCGenericImport<AVAudioMixClass, AVAudioMix>) end;
AVAudioMixInputParametersClass = interface(NSObjectClass)
['{E6A5CA72-B920-4BF5-8E48-C6AFAD87CAC2}']
end;
AVAudioMixInputParameters = interface(NSObject)
['{57A0CC56-0D02-49FD-B584-A448DDA8EB18}']
function getVolumeRampForTime(time: CMTime; startVolume: PSingle; endVolume: PSingle; timeRange: CMTimeRange): Boolean; cdecl;
function trackID: CMPersistentTrackID; cdecl;
end;
TAVAudioMixInputParameters = class(TOCGenericImport<AVAudioMixInputParametersClass, AVAudioMixInputParameters>) end;
AVMutableVideoCompositionLayerInstructionClass = interface(AVVideoCompositionLayerInstructionClass)
['{9525AF18-DBB3-4B26-B671-B14DD6F34BB8}']
{class} function videoCompositionLayerInstruction: Pointer; cdecl;
{class} function videoCompositionLayerInstructionWithAssetTrack(track: AVAssetTrack): Pointer; cdecl;
end;
AVMutableVideoCompositionLayerInstruction = interface(AVVideoCompositionLayerInstruction)
['{E4D14916-427D-48CA-B0F6-FBAD402446D6}']
procedure setOpacity(opacity: Single; atTime: CMTime); cdecl;
procedure setOpacityRampFromStartOpacity(startOpacity: Single; toEndOpacity: Single; timeRange: CMTimeRange); cdecl;
procedure setTrackID(trackID: CMPersistentTrackID); cdecl;
procedure setTransform(transform: CGAffineTransform; atTime: CMTime); cdecl;
procedure setTransformRampFromStartTransform(startTransform: CGAffineTransform; toEndTransform: CGAffineTransform; timeRange: CMTimeRange); cdecl;
function trackID: CMPersistentTrackID; cdecl;
end;
TAVMutableVideoCompositionLayerInstruction = class(TOCGenericImport<AVMutableVideoCompositionLayerInstructionClass, AVMutableVideoCompositionLayerInstruction>) end;
AVURLAssetClass = interface(AVAssetClass)
['{BCD7DCDC-37D7-45D0-B428-49F1ACE35DCE}']
{class} function URLAssetWithURL(URL: NSURL; options: NSDictionary): Pointer; cdecl;
{class} function audiovisualMIMETypes: NSArray; cdecl;
{class} function audiovisualTypes: NSArray; cdecl;
{class} function isPlayableExtendedMIMEType(extendedMIMEType: NSString): Boolean; cdecl;
end;
AVURLAsset = interface(AVAsset)
['{6CEBF29C-C73E-4481-9F37-BA0FD0178F31}']
function URL: NSURL; cdecl;
function compatibleTrackForCompositionTrack(compositionTrack: AVCompositionTrack): AVAssetTrack; cdecl;
function initWithURL(URL: NSURL; options: NSDictionary): Pointer; cdecl;
end;
TAVURLAsset = class(TOCGenericImport<AVURLAssetClass, AVURLAsset>) end;
AVCaptureStillImageOutputClass = interface(AVCaptureOutputClass)
['{0FF39B64-E84C-4A46-A442-20E0E10F8E61}']
{class} function jpegStillImageNSDataRepresentation(jpegSampleBuffer: CMSampleBufferRef): NSData; cdecl;
end;
AVCaptureStillImageOutput = interface(AVCaptureOutput)
['{E0B5F87B-AFA2-4AF2-AA36-AA4E5480A9AC}']
function availableImageDataCVPixelFormatTypes: NSArray; cdecl;
function availableImageDataCodecTypes: NSArray; cdecl;
function isCapturingStillImage: Boolean; cdecl;
function outputSettings: NSDictionary; cdecl;
procedure setOutputSettings(outputSettings: NSDictionary); cdecl;
end;
TAVCaptureStillImageOutput = class(TOCGenericImport<AVCaptureStillImageOutputClass, AVCaptureStillImageOutput>) end;
AVCaptureFileOutputClass = interface(AVCaptureOutputClass)
['{CF6368B5-6B7C-4BB8-A540-C0DE16272551}']
end;
AVCaptureFileOutput = interface(AVCaptureOutput)
['{F79864F4-58B8-4F95-9311-C981CD2E6B8D}']
function isRecording: Boolean; cdecl;
function maxRecordedDuration: CMTime; cdecl;
function maxRecordedFileSize: Int64; cdecl;
function minFreeDiskSpaceLimit: Int64; cdecl;
function outputFileURL: NSURL; cdecl;
function recordedDuration: CMTime; cdecl;
function recordedFileSize: Int64; cdecl;
procedure setMaxRecordedDuration(maxRecordedDuration: CMTime); cdecl;
procedure setMaxRecordedFileSize(maxRecordedFileSize: Int64); cdecl;
procedure setMinFreeDiskSpaceLimit(minFreeDiskSpaceLimit: Int64); cdecl;
procedure startRecordingToOutputFileURL(outputFileURL: NSURL; recordingDelegate: Pointer); cdecl;
procedure stopRecording; cdecl;
end;
TAVCaptureFileOutput = class(TOCGenericImport<AVCaptureFileOutputClass, AVCaptureFileOutput>) end;
AVCaptureFileOutputRecordingDelegate = interface(IObjectiveC)
['{AA628061-1E38-49A9-99AE-960C9E9D5647}']
procedure captureOutput(captureOutput: AVCaptureFileOutput; didFinishRecordingToOutputFileAtURL: NSURL; fromConnections: NSArray; error: NSError); cdecl; overload;
// procedure captureOutput(captureOutput: AVCaptureFileOutput; didStartRecordingToOutputFileAtURL: NSURL; fromConnections: NSArray); cdecl; overload;
end;
AVCompositionClass = interface(AVAssetClass)
['{5DF58937-B6D5-4021-A03A-FF97737C918C}']
end;
AVComposition = interface(AVAsset)
['{44C3E72F-B677-4B28-A863-C1CF70D6A721}']
function naturalSize: CGSize; cdecl;
function tracks: NSArray; cdecl;
end;
TAVComposition = class(TOCGenericImport<AVCompositionClass, AVComposition>) end;
AVCaptureVideoDataOutputClass = interface(AVCaptureOutputClass)
['{4CA97D19-AE08-4A6B-B6DE-9DA91E4072C3}']
end;
AVCaptureVideoDataOutput = interface(AVCaptureOutput)
['{263A3E99-CBF1-4D04-85FB-078B8C7E4670}']
function alwaysDiscardsLateVideoFrames: Boolean; cdecl;
function availableVideoCVPixelFormatTypes: NSArray; cdecl;
function availableVideoCodecTypes: NSArray; cdecl;
function minFrameDuration: CMTime; cdecl;
function sampleBufferCallbackQueue: dispatch_queue_t; cdecl;
function sampleBufferDelegate: Pointer; cdecl;
procedure setAlwaysDiscardsLateVideoFrames(alwaysDiscardsLateVideoFrames: Boolean); cdecl;
procedure setMinFrameDuration(minFrameDuration: CMTime); cdecl;
procedure setSampleBufferDelegate(sampleBufferDelegate: Pointer; queue: dispatch_queue_t); cdecl;
procedure setVideoSettings(videoSettings: NSDictionary); cdecl;
function videoSettings: NSDictionary; cdecl;
end;
TAVCaptureVideoDataOutput = class(TOCGenericImport<AVCaptureVideoDataOutputClass, AVCaptureVideoDataOutput>) end;
AVCaptureVideoDataOutputSampleBufferDelegate = interface(IObjectiveC)
['{BC4EABBE-F21F-4592-93B0-0C40415E4A9A}']
procedure captureOutput(captureOutput: AVCaptureOutput; didOutputSampleBuffer: CMSampleBufferRef; fromConnection: AVCaptureConnection); cdecl;
end;
AVCaptureDeviceInputClass = interface(AVCaptureInputClass)
['{4AFFA0C4-F4AE-42D4-9006-B823E204C3A6}']
{class} function deviceInputWithDevice(device: AVCaptureDevice; error: PPointer): Pointer; cdecl;
end;
AVCaptureDeviceInput = interface(AVCaptureInput)
['{804546D7-499D-4D84-A08C-26D90C78DA42}']
function device: AVCaptureDevice; cdecl;
function initWithDevice(device: AVCaptureDevice; error: PPointer): Pointer; cdecl;
end;
TAVCaptureDeviceInput = class(TOCGenericImport<AVCaptureDeviceInputClass, AVCaptureDeviceInput>) end;
AVAssetReaderTrackOutputClass = interface(AVAssetReaderOutputClass)
['{9C741E36-FA2A-4298-BE33-FE66359F2034}']
{class} function assetReaderTrackOutputWithTrack(track: AVAssetTrack; outputSettings: NSDictionary): Pointer; cdecl;
end;
AVAssetReaderTrackOutput = interface(AVAssetReaderOutput)
['{2D0B77A9-9AEA-491C-A7FB-AC5CC101DF23}']
function initWithTrack(track: AVAssetTrack; outputSettings: NSDictionary): Pointer; cdecl;
function outputSettings: NSDictionary; cdecl;
function track: AVAssetTrack; cdecl;
end;
TAVAssetReaderTrackOutput = class(TOCGenericImport<AVAssetReaderTrackOutputClass, AVAssetReaderTrackOutput>) end;
AVAssetReaderAudioMixOutputClass = interface(AVAssetReaderOutputClass)
['{8FBC4B55-BDC0-48E1-AA32-17A095A6A386}']
{class} function assetReaderAudioMixOutputWithAudioTracks(audioTracks: NSArray; audioSettings: NSDictionary): Pointer; cdecl;
end;
AVAssetReaderAudioMixOutput = interface(AVAssetReaderOutput)
['{098148DA-AD09-47F6-95F9-B0B0344A7738}']
function audioMix: AVAudioMix; cdecl;
function audioSettings: NSDictionary; cdecl;
function audioTracks: NSArray; cdecl;
function initWithAudioTracks(audioTracks: NSArray; audioSettings: NSDictionary): Pointer; cdecl;
procedure setAudioMix(audioMix: AVAudioMix); cdecl;
end;
TAVAssetReaderAudioMixOutput = class(TOCGenericImport<AVAssetReaderAudioMixOutputClass, AVAssetReaderAudioMixOutput>) end;
AVCaptureAudioDataOutputClass = interface(AVCaptureOutputClass)
['{9CF6D132-301A-4ADC-B2B6-E5A5EFD3FF9B}']
end;
AVCaptureAudioDataOutput = interface(AVCaptureOutput)
['{A8EFF619-2C77-4C43-89C1-E5701BF401AE}']
function sampleBufferCallbackQueue: dispatch_queue_t; cdecl;
function sampleBufferDelegate: Pointer; cdecl;
procedure setSampleBufferDelegate(sampleBufferDelegate: Pointer; queue: dispatch_queue_t); cdecl;
end;
TAVCaptureAudioDataOutput = class(TOCGenericImport<AVCaptureAudioDataOutputClass, AVCaptureAudioDataOutput>) end;
AVAssetReaderVideoCompositionOutputClass = interface(AVAssetReaderOutputClass)
['{869452E8-CE75-498B-8941-3379C56C1217}']
{class} function assetReaderVideoCompositionOutputWithVideoTracks(videoTracks: NSArray; videoSettings: NSDictionary): Pointer; cdecl;
end;
AVAssetReaderVideoCompositionOutput = interface(AVAssetReaderOutput)
['{9FB73616-F15C-4F19-8EC3-4AEB837AB6E8}']
function initWithVideoTracks(videoTracks: NSArray; videoSettings: NSDictionary): Pointer; cdecl;
procedure setVideoComposition(videoComposition: AVVideoComposition); cdecl;
function videoComposition: AVVideoComposition; cdecl;
function videoSettings: NSDictionary; cdecl;
function videoTracks: NSArray; cdecl;
end;
TAVAssetReaderVideoCompositionOutput = class(TOCGenericImport<AVAssetReaderVideoCompositionOutputClass, AVAssetReaderVideoCompositionOutput>) end;
AVCompositionTrackClass = interface(AVAssetTrackClass)
['{8CDE195A-1BE5-42A9-856A-396B2F965E39}']
end;
AVCompositionTrack = interface(AVAssetTrack)
['{C2EBC4AD-6629-4D45-9DC5-E1A6438FDCA1}']
function segments: NSArray; cdecl;
end;
TAVCompositionTrack = class(TOCGenericImport<AVCompositionTrackClass, AVCompositionTrack>) end;
AVMutableVideoCompositionClass = interface(AVVideoCompositionClass)
['{4269E1FD-E566-4305-9E6F-6F00A09B9633}']
{class} function videoComposition: Pointer; cdecl;
end;
AVMutableVideoComposition = interface(AVVideoComposition)
['{3DA3DD19-7D96-4EA8-A568-BB782C9EABE9}']
function animationTool: AVVideoCompositionCoreAnimationTool; cdecl;
function frameDuration: CMTime; cdecl;
function instructions: NSArray; cdecl;
function renderScale: Single; cdecl;
function renderSize: CGSize; cdecl;
procedure setAnimationTool(animationTool: AVVideoCompositionCoreAnimationTool); cdecl;
procedure setFrameDuration(frameDuration: CMTime); cdecl;
procedure setInstructions(instructions: NSArray); cdecl;
procedure setRenderScale(renderScale: Single); cdecl;
procedure setRenderSize(renderSize: CGSize); cdecl;
end;
TAVMutableVideoComposition = class(TOCGenericImport<AVMutableVideoCompositionClass, AVMutableVideoComposition>) end;
AVMutableTimedMetadataGroupClass = interface(AVTimedMetadataGroupClass)
['{2D6F6F7A-57FB-4ED3-9846-02C74D90A94C}']
end;
AVMutableTimedMetadataGroup = interface(AVTimedMetadataGroup)
['{C3F8CA9D-26F4-413B-98C2-4578D3DAC2F1}']
function items: NSArray; cdecl;
procedure setItems(items: NSArray); cdecl;
procedure setTimeRange(timeRange: CMTimeRange); cdecl;
function timeRange: CMTimeRange; cdecl;
end;
TAVMutableTimedMetadataGroup = class(TOCGenericImport<AVMutableTimedMetadataGroupClass, AVMutableTimedMetadataGroup>) end;
AVMutableMetadataItemClass = interface(AVMetadataItemClass)
['{1FD2B927-0ED5-40A6-A104-235F0FF9DEDD}']
{class} function metadataItem: Pointer; cdecl;
end;
AVMutableMetadataItem = interface(AVMetadataItem)
['{0B57E0FD-6591-4C6A-A8C4-B9A0A571FCB7}']
function duration: CMTime; cdecl;
function extraAttributes: NSDictionary; cdecl;
function key: Pointer; cdecl;
function keySpace: NSString; cdecl;
function locale: NSLocale; cdecl;
procedure setDuration(duration: CMTime); cdecl;
procedure setExtraAttributes(extraAttributes: NSDictionary); cdecl;
procedure setKey(key: Pointer); cdecl;
procedure setKeySpace(keySpace: NSString); cdecl;
procedure setLocale(locale: NSLocale); cdecl;
procedure setTime(time: CMTime); cdecl;
procedure setValue(value: Pointer); cdecl;
function time: CMTime; cdecl;
function value: Pointer; cdecl;
end;
TAVMutableMetadataItem = class(TOCGenericImport<AVMutableMetadataItemClass, AVMutableMetadataItem>) end;
AVMutableVideoCompositionInstructionClass = interface(AVVideoCompositionInstructionClass)
['{82B53FB8-7B8D-406F-9AFA-59876114874B}']
{class} function videoCompositionInstruction: Pointer; cdecl;
end;
AVMutableVideoCompositionInstruction = interface(AVVideoCompositionInstruction)
['{EC367C09-914D-484E-9FF4-610A3CC75365}']
function backgroundColor: CGColorRef; cdecl;
function enablePostProcessing: Boolean; cdecl;
function layerInstructions: NSArray; cdecl;
procedure setBackgroundColor(backgroundColor: CGColorRef); cdecl;
procedure setEnablePostProcessing(enablePostProcessing: Boolean); cdecl;
procedure setLayerInstructions(layerInstructions: NSArray); cdecl;
procedure setTimeRange(timeRange: CMTimeRange); cdecl;
function timeRange: CMTimeRange; cdecl;
end;
TAVMutableVideoCompositionInstruction = class(TOCGenericImport<AVMutableVideoCompositionInstructionClass, AVMutableVideoCompositionInstruction>) end;
AVCompositionTrackSegmentClass = interface(AVAssetTrackSegmentClass)
['{FE0CA707-FE80-407C-AE92-ABED9B818BBA}']
{class} function compositionTrackSegmentWithTimeRange(timeRange: CMTimeRange): Pointer; cdecl;
{class} function compositionTrackSegmentWithURL(URL: NSURL; trackID: CMPersistentTrackID; sourceTimeRange: CMTimeRange; targetTimeRange: CMTimeRange): Pointer; cdecl;
end;
AVCompositionTrackSegment = interface(AVAssetTrackSegment)
['{E4E4506A-7AA1-4FB6-8A6D-317516BEC05E}']
function initWithTimeRange(timeRange: CMTimeRange): Pointer; cdecl;
function initWithURL(URL: NSURL; trackID: CMPersistentTrackID; sourceTimeRange: CMTimeRange; targetTimeRange: CMTimeRange): Pointer; cdecl;
function isEmpty: Boolean; cdecl;
function sourceTrackID: CMPersistentTrackID; cdecl;
function sourceURL: NSURL; cdecl;
end;
TAVCompositionTrackSegment = class(TOCGenericImport<AVCompositionTrackSegmentClass, AVCompositionTrackSegment>) end;
AVMutableAudioMixClass = interface(AVAudioMixClass)
['{0B46ACE2-0232-4EF1-9070-0388CEE7FAFA}']
{class} function audioMix: Pointer; cdecl;
end;
AVMutableAudioMix = interface(AVAudioMix)
['{197E621B-9CD3-4449-9BAB-A0B147677C95}']
function inputParameters: NSArray; cdecl;
procedure setInputParameters(inputParameters: NSArray); cdecl;
end;
TAVMutableAudioMix = class(TOCGenericImport<AVMutableAudioMixClass, AVMutableAudioMix>) end;
AVMutableAudioMixInputParametersClass = interface(AVAudioMixInputParametersClass)
['{3DD9E0B8-C7B7-43A5-ABBD-9F54C0932569}']
{class} function audioMixInputParameters: Pointer; cdecl;
{class} function audioMixInputParametersWithTrack(track: AVAssetTrack): Pointer; cdecl;
end;
AVMutableAudioMixInputParameters = interface(AVAudioMixInputParameters)
['{A2B37032-3C1D-4F9B-B6C2-30235686CFF8}']
procedure setTrackID(trackID: CMPersistentTrackID); cdecl;
procedure setVolume(volume: Single; atTime: CMTime); cdecl;
procedure setVolumeRampFromStartVolume(startVolume: Single; toEndVolume: Single; timeRange: CMTimeRange); cdecl;
function trackID: CMPersistentTrackID; cdecl;
end;
TAVMutableAudioMixInputParameters = class(TOCGenericImport<AVMutableAudioMixInputParametersClass, AVMutableAudioMixInputParameters>) end;
AVCaptureMovieFileOutputClass = interface(AVCaptureFileOutputClass)
['{A26188D8-366C-4099-8076-61D74602DCE9}']
end;
AVCaptureMovieFileOutput = interface(AVCaptureFileOutput)
['{7A06F5FC-3105-4DB1-BC97-D695DFBD250E}']
function metadata: NSArray; cdecl;
function movieFragmentInterval: CMTime; cdecl;
procedure setMetadata(metadata: NSArray); cdecl;
procedure setMovieFragmentInterval(movieFragmentInterval: CMTime); cdecl;
end;
TAVCaptureMovieFileOutput = class(TOCGenericImport<AVCaptureMovieFileOutputClass, AVCaptureMovieFileOutput>) end;
AVMutableCompositionClass = interface(AVCompositionClass)
['{0A9AFAE1-587E-4BC3-84B8-628B60730380}']
{class} function composition: Pointer; cdecl;
end;
AVMutableComposition = interface(AVComposition)
['{03396B84-10CF-4070-91F1-5285014F163B}']
function addMutableTrackWithMediaType(mediaType: NSString; preferredTrackID: CMPersistentTrackID): AVMutableCompositionTrack; cdecl;
procedure insertEmptyTimeRange(timeRange: CMTimeRange); cdecl;
function insertTimeRange(timeRange: CMTimeRange; ofAsset: AVAsset; atTime: CMTime; error: NSError): Boolean; cdecl;
function mutableTrackCompatibleWithTrack(track: AVAssetTrack): AVMutableCompositionTrack; cdecl;
function naturalSize: CGSize; cdecl;
procedure removeTimeRange(timeRange: CMTimeRange); cdecl;
procedure removeTrack(track: AVCompositionTrack); cdecl;
procedure scaleTimeRange(timeRange: CMTimeRange; toDuration: CMTime); cdecl;
procedure setNaturalSize(naturalSize: CGSize); cdecl;
function tracks: NSArray; cdecl;
end;
TAVMutableComposition = class(TOCGenericImport<AVMutableCompositionClass, AVMutableComposition>) end;
AVMutableCompositionTrackClass = interface(AVCompositionTrackClass)
['{9704C005-4995-4ECE-B575-A380FE22F4F9}']
end;
AVMutableCompositionTrack = interface(AVCompositionTrack)
['{DA2D82C9-3500-42A5-8B0E-7D892689E227}']
function extendedLanguageTag: NSString; cdecl;
procedure insertEmptyTimeRange(timeRange: CMTimeRange); cdecl;
function insertTimeRange(timeRange: CMTimeRange; ofTrack: AVAssetTrack; atTime: CMTime; error: NSError): Boolean; cdecl;
function insertTimeRanges(timeRanges: NSArray; ofTracks: NSArray; atTime: CMTime; error: NSError): Boolean; cdecl;
function languageCode: NSString; cdecl;
function naturalTimeScale: CMTimeScale; cdecl;
function preferredTransform: CGAffineTransform; cdecl;
function preferredVolume: Single; cdecl;
procedure removeTimeRange(timeRange: CMTimeRange); cdecl;
procedure scaleTimeRange(timeRange: CMTimeRange; toDuration: CMTime); cdecl;
function segments: NSArray; cdecl;
procedure setExtendedLanguageTag(extendedLanguageTag: NSString); cdecl;
procedure setLanguageCode(languageCode: NSString); cdecl;
procedure setNaturalTimeScale(naturalTimeScale: CMTimeScale); cdecl;
procedure setPreferredTransform(preferredTransform: CGAffineTransform); cdecl;
procedure setPreferredVolume(preferredVolume: Single); cdecl;
procedure setSegments(segments: NSArray); cdecl;
function validateTrackSegments(trackSegments: NSArray; error: NSError): Boolean; cdecl;
end;
TAVMutableCompositionTrack = class(TOCGenericImport<AVMutableCompositionTrackClass, AVMutableCompositionTrack>) end;
// exported string consts
function AVMediaTypeAudio: NSString;
function AVMediaTypeVideo: NSString;
function AVCaptureSessionPresetPhoto: NSString;
function AVCaptureSessionPresetHigh: NSString;
function AVCaptureSessionPresetMedium: NSString;
function AVCaptureSessionPresetLow: NSString;
function AVCaptureSessionPreset352x288: NSString;
function AVCaptureSessionPreset640x480: NSString;
function AVCaptureSessionPreset1280x720: NSString;
function AVCaptureSessionPreset1920x1080: NSString;
function AVCaptureSessionPresetiFrame960x540: NSString;
function AVCaptureSessionPresetiFrame1280x720: NSString;
function AVCaptureSessionPresetInputPriority: NSString;
function AVFileTypeWAVE: NSString;
function AVFormatIDKey: NSString;
function AVSampleRateKey: NSString;
function AVNumberOfChannelsKey: NSString;
function AVLinearPCMBitDepthKey: NSString;
function AVEncoderBitRateKey: NSString;
function AVAudioSessionCategoryRecord: NSString;
function AVAudioSessionCategoryPlayback: NSString;
implementation
{$IF defined(IOS) and NOT defined(CPUARM)}
uses
Posix.Dlfcn;
var
AVModule: THandle;
{$ENDIF IOS}
function AVMediaTypeAudio: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVMediaTypeAudio');
end;
function AVMediaTypeVideo: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVMediaTypeVideo');
end;
function AVCaptureSessionPresetPhoto: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetPhoto');
end;
function AVCaptureSessionPresetHigh: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetHigh');
end;
function AVCaptureSessionPresetMedium: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetMedium');
end;
function AVCaptureSessionPresetLow: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetLow');
end;
function AVCaptureSessionPreset352x288: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPreset352x288');
end;
function AVCaptureSessionPreset640x480: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPreset640x480');
end;
function AVCaptureSessionPreset1280x720: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPreset1280x720');
end;
function AVCaptureSessionPreset1920x1080: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPreset1920x1080');
end;
function AVCaptureSessionPresetiFrame960x540: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetiFrame960x540');
end;
function AVCaptureSessionPresetiFrame1280x720: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetiFrame1280x720');
end;
function AVCaptureSessionPresetInputPriority: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVCaptureSessionPresetInputPriority');
end;
function AVFileTypeWAVE: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVFileTypeWAVE');
end;
function AVFormatIDKey: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVFormatIDKey');
end;
function AVSampleRateKey: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVSampleRateKey');
end;
function AVNumberOfChannelsKey: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVNumberOfChannelsKey');
end;
function AVLinearPCMBitDepthKey: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVLinearPCMBitDepthKey');
end;
function AVEncoderBitRateKey: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVEncoderBitRateKey');
end;
function AVAudioSessionCategoryRecord: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVAudioSessionCategoryRecord');
end;
function AVAudioSessionCategoryPlayback: NSString;
begin
Result := CocoaNSStringConst(libAVFoundation, 'AVAudioSessionCategoryPlayback');
end;
{$IF defined(IOS) and NOT defined(CPUARM)}
initialization
AVModule := dlopen(MarshaledAString(libAVFoundation), RTLD_LAZY);
finalization
dlclose(AVModule);
{$ENDIF IOS}
end.
| 50.075305 | 290 | 0.772591 |
f14ddf83260adbecc4303e80d3c7db459aab19f7
| 15,037 |
dfm
|
Pascal
|
u_about.dfm
|
Mirai-sp/EzTranslate
|
68fe9a825dd14f5cf6d11eb732878d4679400141
|
[
"MIT"
] | 1 |
2021-03-30T23:23:54.000Z
|
2021-03-30T23:23:54.000Z
|
u_about.dfm
|
Mirai-sp/EzTranslate
|
68fe9a825dd14f5cf6d11eb732878d4679400141
|
[
"MIT"
] | null | null | null |
u_about.dfm
|
Mirai-sp/EzTranslate
|
68fe9a825dd14f5cf6d11eb732878d4679400141
|
[
"MIT"
] | null | null | null |
object f_about: Tf_about
Left = 0
Top = 0
BorderIcons = [biSystemMenu]
BorderStyle = bsSingle
Caption = 'About'
ClientHeight = 90
ClientWidth = 443
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnClose = FormClose
DesignSize = (
443
90)
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 88
Top = 8
Width = 345
Height = 33
Anchors = [akLeft, akTop, akRight]
AutoSize = False
Caption =
'Component developed by Denis Queiroz. Use is free as long as you' +
' do not modify the credits. '
WordWrap = True
ExplicitWidth = 541
end
object Image1: TImage
Left = 1
Top = 8
Width = 81
Height = 73
Picture.Data = {
0954506E67496D61676589504E470D0A1A0A0000000D49484452000000C80000
00C80806000000AD58AE9E0000000473424954080808087C0864880000000970
48597300000B1300000B1301009A9C18000017884944415478DAED9D09D82445
79C7DF95432388077881D10F44D0A8084AA2A0C27A24E0ADA828887105944884
A81144BC10441150A2413C580F144134C610825124FAB1A06288318222060D5F
C4952024A0801197C3FA6DCDACC3385DF5764F4F5575CFFB7B9EF7816FA7A6A7
7AA6FFDD75BCC732310CA39265B93B6018256302318C002610C3086002318C00
2610C3086002318C002610C3086002318C002610C3086002318C002610C30860
02318C002610C3086002318C002610C3086002318C002610C3086002318C0026
10C3086002318C002610C3086002318C002610C308D09640EEEBEC61CEFED0D9
DD9CFD418BC79E076E7776B3B31B9C5DE5EC3267570EFEDDC848D38B783D67BB
397B81B3A7387B60EE13E921D738FBAAB3339D7DC1D9AF7377681EA92B908D9C
BDDAD9C1CE36CFDDF939E27A67273B3B4EBC708C44D411C8CBC4FF40F7CEDDE9
39E62667EF7076BCB35B7277661ED008643367A78A1F521965F01FCEF6747679
EE8EF49D9840B677F68FE227DF4659FCC2D95ECEFE397747FA4C48203B89FFF2
EF9EBB9346256B9CBDD4D919B93BD257AA04B29DB3F39D6D92BB8346945B9D3D
DBD9177377A48F4C12087B1ADF76B645EECE196A6E74B6B3B34B7277A46F2C9B
F037C3AA2613F225F1C25AEDECFF739F5807B9B3F89B13F3BE873578FFA5CE76
14FBEE5B655C20AF70F6911AEF67F36AA5B30F39FB7EEE93E9110F72B69FB383
9CDDA3C6FB58FE3D2477E7FBC4A840EEE9EC3FC52FEB6A38D7D9FECEFE3BF749
F4187E93F7899F886B60D2FE48673FCCDDF1BE302A90A39CBD59F9BEF7383BD4
D96DB94F604E7895B3139DDD49D1F633E2977F8D16180A0417929F38BB97E23D
88E3F5B93B3E876887BFAC6A6DE3ECBF7277B80F0C05F2E7CE4E51B43FC7D9EE
625EA6B9F880B30315ED8E16FD68C0083014082B57BB47DAFECAD943C5BB6197
CC5D9C1D2BF1E1C8D79D9D9EBBB335218C80F945CCB381A7C7837377B60F2010
BEF4EBC42F3386E0A27B43EE0E2B60FC7D9AA21DCBD1B8E9776D1EB5AFB38F2A
DAB1547C59EECE761D04F224F1710721B88816A4FCA707300CFC5365DBDD06ED
BBC486E2C51D5B6D6462FFA1DC9DED3A088409F771917617387B62EECE2A60E8
B124BAD51E6088B577EE4E3780D890FD156D5E99BBA35D0781B032F28A483B62
10DE92BBB30A98981E55A33DBBCEF717EF19DB2510F5A7236DCE73B63C7747BB
0E0239DBD9D323ED5EE4ECB3B93BAB3817E223EA4E4E0F907ADE0325C066E0C5
91363F76B675EE8E761D2EAA55121F3EED22DEBBB7647675B6D8E07DDF70F6F8
DC9DAFC9A6CEAE8DB4B9DAD9FD7277B4EB20908BC43BB985F86367FF96BBB311
3E213E2CB8096CAC75293A8FA5EC9853221EBE77CBDDD1AE8340B8F01F136957
BA403676F63FE23D029AF04E676FCA7D1235D008E4A6C1F7624C415F04A2DD1B
A882E5EB05E9CE9E880924117D1108F3A327045E67B811BB58D83B3937F78928
318124A20F0279887837FD10F82FB1D7131A82B16CBA4FEE9351620249441F04
C2FCE18D81D7B99088D46329F7C58176F89AB127F2CBDC27A4C0049288AE0B84
14A8046C85E2E7D9BF611FE739CEFE21723C76A7A799CBA4C2049288AE0B040F
E4585E2884416E2F7C98D81B0885B076C5A5C6049288AE0B847C507B065EFF5F
F1C3A63583BF3FEE6C45E498EC3EFF38F78945308124A2CB02215E9B52012137
7DBC595F35F237DEBB5F8A1CB70B7E672690447459206499FFDB481B864B178C
FCBDBEB39F49380137739A2DA5ECA849134822BA2C1072703D3AF07AD585FE41
677F113936354F62313239318124A2AB022135EA77236DDEE5ECF009FFAE716A
FC94F838FD52318124A2AB0239C1D96B226D1E219393D9114C450697D0D2307B
2278C2DE90FB442B308124A28B02D940FC3C221472CAD365FBC0EB1A81E1DFF5
F1DC275B810924115D14C8F39CFD7DA40D49ED4261C48F757661E418C4C9EC9A
FB642B308124A28B0239CBD93303AFE3914B6EDB9F468E436A9C2D03AF33B9DF
5ACA4CC066024944D704C2BC800B7FBD409B45F1995A6230893F2CD2E648676F
CB7DD213308124A26B022173F9B1913624A058A938D6A3C4D7FA0BB1E46C2B29
6F4FC4049288AE09841A18B1DA19ECAEFF4679BC0729DAF0345ACC7DE2639840
12D125816826D6B3809CC52B329FFB38269044744920F8551D90E173894664EE
7353E6F31FC5049288AE0884FCC10C9D7255DC5D21BAECF7A9308124A22B0279
89B353337EFEA2E856C652610249445704423285A764FC7C56B158CD5ACAD887
514C2089E882405869BA42AA6BBAA782FD902333F761880924115D10C85B9DBD
3DD20617764DE5A52A88453F39D2861D7576D64BD813318124A27481D03FC25F
B78CB41B0F8CAA0BB519C9CCB841A41DBE59AB5A3EBF1DC40F1F896DA1821721
C2A40CBD8F54AF9CB52190874B3C64A04B70E3BA457CA67EBC2DD833FB96F8E1
79E3AABFA50B4453DCA7AD08C02F3A7B5AA40DDEBDFBB6705E0F101FB445CC49
553935447263C56B6D088470804B5A38972E40D8C3C7C467ACA955EAA274817C
52E235C2DF2D719F2A0D24BEFE44A40DF121EC89FCAAE167909FEB08F122DB30
D2D604D23EE43CA34A339EDEB1EF6F2D250B6413F17B1F778DB4C3A72A562B43
037B2CA4058AD56AE4AEFFA906C74714C78B4F36A1C104323B969CED278AB0EA
9205A299387F4F7C3199B638D3D9B3236DF852EB2C392370B23ABEA4665F4C20
B385B008AA91B10054393C2F59209469DE39D2869205EF6CF13335A5CDF83217
C487EDC6E069419AA13F69D01713481A3E237E54B066D28BA50A645BD1953066
72BED4E2E77241FD5CBC6B4B08F266BD23D2860C8E8BE287804D3081A4830855
1210DE3AFE42A9023946E235D9BF29F1274C13FECED9F3236D7E243EAB7C154C
C0BF2CD315D13481A465E25E5AA902617977D3481BD6B667F10373E16BEEFA14
3FADBA48DFEFECA029FB610249CFEF25EA2855205D4693507B9CFF135FB39DF9
0A9B77ACA68582BE6C277D323CB9D963E27A7D96B33D243E5C1E85EF8C9C6BEB
F2102010761B6393488295FE35F7D977002E5C36A5B652B6E709817FD789A25C
971FC0CA582C3E8535FF5CE101A5408A5916724853BB9EF23DDCDCD695454720
2C5BC65CB94B4FC5590AA41B7AB7B2ED77C4CF75AE68F0396C565E156943EEB0
2D14C79A0728F3FD39F16E3C1AD695E343205F70F6DCC81BD854F958EEB32C1C
3618717BB9AFA22D7E63B8B5DCA8683B899DC4D7770FF103677F94FB4B298805
67E7397BA0A2EDBA9C6808E4BDCE5E1B79C349CEFE32F719168EC65505A8A7C8
90F5FA293E8B0580F747DAB088F04CC5B1C66128726B83F77501127E30A5D0D4
8F2733E77711C82B9D7D38D2188FDAAD739F5DE16882BAB8F010C7B7A7FC2C2E
FEA747DA70E3FBEB06C766A100EF688A0F5D3BF8EFF0FF2997AD1D42968AB664
F8DAEF0F816832A503E3B8D8637D5E61499A0DC63B45DA8D17F46902F30F76F1
63AEF92F14BFA7539750496D86900B53F63F375CF364C7892D4C3137DC6AD9E0
0DD7487CDF813A7FCFC97D7685C272E2E7236D787A3C58FC45360D78A2BE3ED2
067718E642D734387E68D99F7D93EDA6EC7F09680ABAC2D6C330563211EEA778
0325CCCEC97D760582976E6C38F315677F36E5E76C23DE7339E671CC53609786
9FC13275D5E4BE2B454E6330CF6215F0DE9176FB0C05A2094C82D5E2EF2E57E7
3EC3C2D0CC0928B7F0BE293E833D162EFC1D156D09C68ACD2BAB0825F5FE27F1
1B701A585245D04C8CD9B5DF6EF05F22256F99E27B680B4216F689B439662810
FE7BF1E004625C247E9DB8566456CFC1B172DB481B96669B668664BE81D7E91E
8AB6ECCAB394D934D11D37BFFB54BCC66E3F2B9E78296F3A30867288618B812D
0C6CA38A63D0E6670DFBD6269A1A97A78F660A414DDA402026F5D4E968B2C9D5
474217D5102EA49F373836172317E66ECAF6C4371C31E1DFF9BD88BC642EC41C
8578886523C60203438F1D44BFEBDC048E1F4B1A9E029EF86747DA9C3B2A10BE
20D688358F70C095E1CDE25766D628DFD357D8F0DB28D28621D2CD358EC96F83
0B36CB8D9B2BDFC39D795B99BC0159E706384BF055FB72EE4E88F704FF7AA4CD
37C6734DB1F4C5526E9D3B086BE37840323EE5C9A2CDACDE277E2DF18933C3A4
D8D89BEF9D313B17D1CBA5FE4EF85EE2876293D0AEDCCC9AA621CB6DF338F121
1321BE3529191B09D28E68F8A15C002C2D364D6A30CA1BC5FBCFD461417CF04B
2C8EBD2E6C00AE0EBC3EAD401846B184BA99E23855909A3594E0E2C9CEFEA5E5
EFA5092C51BF277727640A81701763CF23B62A336BB485708690E481A7DFC367
D09758E4E2B40241184DF62C86F0E466F93554951717F0123CB2D9C739347727
640A8100E3E945D1CF4766411D81206A265CDA896C5D4A1608435C56C85647DA
9194EE0733FA7EC6610E74D5A04FF46F49FC820E2E4B2474BB36513F424C2510
2096808BEEF1994EA08E4088A798A53365A902B95CFC92BB66779E40A22B2B5E
5B3338879B255C5E9BE47AB8B9200096F959A8B94EFCD232FDC767EB6A69EEA5
9C92A905028CE549BDB3778613D00A44E3D93A2D250AE46BCE5E2CFAA5637E6B
96A259DE65A977CDC010C530ED4D2C5291144BDF6BF81D96462B021982C72F63
C74D129E804620ACF6B07A36CB757B284920AC1252A1979C4E6DBBA5DF79702E
55304C6B9CE7B6305A1508B0168FAB334F9398D76A1BC404C2649C49790AD196
22105CD1F1F9BA7446E7491F43CBF4385B965837BE09AD0B64081B517F257ECD
FD1E333C819040182AB0A9B930C3CF1F25A74018F210F5895BC4AC8B9872E30B
3D951664F27C87451D5C48488774DB8CFBD8163313C810C6ABACAD3F557C1010
8FDF7BB578025502E17371ACDCA9C5CF8A9152202CD5328C21A88A202CBC8053
FABD85B2E49389FEA713FE9DC8C5B3C48B196FE04B0676F1C0A659C29E153317
C824B89330E461721F3A36E9425F18395695404E13FFF4D2C02A0BDEA7D33AC7
2D4978177C5A8170E7BEFFA0BF37485EE863D59C8EB928A30656C410F5C683B6
DC40AA76FDAF1BB42DEDC99245205A34F12793045267979FA10277B62F25389F
B65C4D4A40732E7560299AC4DD17E53EB1317A27109E1AA7D5F88C8325EECEDC
167D11883637711310089EC6310FDA54F44A20CC379877DC4579FC0F88F7F74F
45D705822F183E526CB6CE3AD91CCBF294B6C81D74D71B8150E5161FA258BCC5
105CA99F216953D7745520FCFE246C664F455BD8A70D9813F21BE58C0BE98540
3E2BDE675F13E908EC0FE0E79F3ADAB18B0261A28D07F0AE993E9FC93B0E96DF
CFF4F99D170871D5C430C40A6B0E612991E5E61C518E5D1308FE75C4866CD6E0
BDF8592D899FAB30F49D66BE82F3E2F692C777ABF3025912FD4620FE44C46CC4
22C46645970482C733E2D0CEE74661557038C9E666D4C6C6E509CE5E97E17BE8
BC40EA40A0D0A999CE05BA2210224671726C1A5046DA22362EB96E48015455C0
8827029BC8874B3CEF3337B705F175EA53323702395A7C6C7C4EBA201086534C
8A4319DFF1C3C295A4AA7AD68BC4CF0B630556474BD41D39F83B04C92452A734
9D0B811092CB8F76FBB4079A922E0824E6814054228EA8AC2E1D5BD186656036
5E115A5502683606718B1F4D5081A8429E133912D2F55E202CFD2E977A856766
45E90289954BE0A2A75609B90418AE7EB2A21D1924493258959AF4B6C1EBABC6
FE7D41FC84BCCA0B9CDF706349EB8ED26B811019C7783AF5B8B58AD205C2A4BC
2AAF32B9789F28BF8B03092577A0FFEB073E07011D52F11A13FAC706DE9B3AA1
5C6F05C20490ECE39A8CF4A9285920CC3DB8914C7240A43FEC318D064151E6E2
F2069F83D0583EAE8A27E1A914CABA82B363AA9879E8A5407804B32A7256A67E
5751B2407014AC5AE12345D278C96BCE83214F9D6B8362408F96F01E542C176E
EA68C55E0A8468BAF766EA7388920542C2EC832B5EAB72E864254B53AA0CB869
B13F12ABECCBC5F8B8C0EBB8FBA71C32172D109C090FACF99E8F383B20537F63
942C10729C556564A76CDCA40939FE6CDA520D6CF29D106943D11FE68D55F317
BE3FF66652AE46162D10960B4FACD19E4923091A726FB45551B24016A5DADFEA
14672B46FEE67A60158A2C319A047CFC860729DA914931B45B8E2B7CACE253DB
142D10329D2F89CEDDE187839399A6E8E5AC295920DC5C9E1C789D8B84543E94
32E07BD626CA3E43FCBE496C6996906C96914399678E119F6A3625450B04580E
3C36D28684642C0DFE28633F35942C100A56EEDBF231A97DB897E27CD8744448
B1CCF76B2BCA26FE5E8A1708109B8E9BC1A47EE02DCAE4AFB450CD49942C10B2
A99FD2D2B1785A9093EBAD127E72105B42F420416BB16B8C927EB34A191BA213
0219769434426C56911080D496678A1FB79690C35543C902E1EECDAA54AC486B
0CEABBE383757EA00D29A1589D24B9832632913D1376E573646BEC8C40FA40C9
0281698AE730CCE5A9C1C47D7C1390A02B2E70366E790A3CB2E6B159C9FC60A6
EFC4049290D20502C49CE331ABCD8AB9E4EC24F1C5407F39F61A054919424D93
D572D4E33707269084744120C0522AF307EEF6E37B12EC41308C22DE8349F82A
A9DE9760CF82C4760F6DD007F27EB19F757AE6EFC2049290AE086408AEEA8F12
BFDC4E720B6A79B09C5E67299D95A70B15E73D04B1E1F6CEEAE595CAF7CC1213
4842F05D8AEDE9942490B660A815DB45A71C35C2C045A8A4D2091A815C680269
074D955B862525C4AEB409D70F31EAE3893578427C75F01A45779AD66C9F2578
172C46DA9C6F0269078628F78BB459105D25A8AE41BE3276C2D9CCE509F1EF32
39C175695062FB8C489BB34D20EDC045B143A40D4551631EAF463A8E109FEB39
C44A13483BC462AE81BD84C37377D4580743C02745DA1C660269072EFCA3236D
88D2DB2677478DB5302CA402EFFA9176BB9B40DA013799558A76EC3F9C93BBB3
C6DABDA0B747DAB0E2B8A909A41D58C2C5B93256920EC74B96174B2B26334F10
A3CFD33CF65B9DE76CB909A43DB46EE59A083C6376B072B5A7A21D417D279940
DA43B3F104D426279C75317787E790D78A2EA701FB3638625E6F0269179267EF
AC68873F1279AABE96BBC37304092AFE4674D95AF05C2604A3566A17234E28E9
DA383C49C8294CDC4BCA623FF3067129086385B23D4F0F7213B3F96B029901E4
9A7A5E8DF6944BC6ED9B5AE86B7277BE4710D5F872676F107D753260C9FE5DC3
3F4C20ED437E275C2EEAD68CA7E2129B57C466931FAA8B62E1EEFBB906EFC36D
FE092D7C3E0EA3D472DF7170BC0D6BBE1F177EF218AFFBEE4D20B381587AF251
CDE3F77B873BB012AA89E58A2C1C42D93E8475870421F3F803A64293B5A58F10
F7F102F1434D2DB905C213839BDAEF6DE29A40660B738B37E5EE440628A3B08B
F8218B869C0261C79CFC5E1387862690D9433E619E24DA58F0BE402903427C57
2BDAE61208CBED1460AAF4B23681A481B4A96415695255B6CB7C47BC9F5A2C60
2A8740283F8D0776B0E48209241D2C35E262B277EE8E24861C677B48D8FF2CA5
40485D749CB3A3E48E65E2266202490F2E2904EAE0D93B2FDF3F17E4A181D753
08046150278579E115DA37CDCB0F5422C48650718982408FC8DD99049095F1A3
15AFCD4A207828E01FC78A1AE2B8A6EE014C2065C0F08B0C85A4EE24BB3A6979
08E629FDF7A1AEE0EECAB621274D8D402E13EFEB56C5ED83CF60C39598F84BC5
AFA2DD38CD0996FE031865C3F5F379D1BBD690C69421E6780D448D403E3C6897
FC040D631A48674434E56394EDC9DE8848AE1BF9371388D16B181652B77E0B65
7BDCFC59A418FA3C99408CDE43DA234A23C412E80D61C2BEFFE0FF4D20C65C40
10182B465AAF01FCD58E1713883147D471D264F390093E433413883137AC145F
694A036E28EC51C44A7C9B408CDE401A245CC797B7784C1388D12B88A8A47EC8
435A3A9E09C4E81D880391D40D3F9E8409C4E825CBC50FB73698F2382610A3B7
30615F39E5314C2046AF61E9F79029DE6F02317A0D9B8738363EB7E1FB4D2046
EFC10D0577945835AE4998408CB90087461C1B37AFF93E76DA0F4CDD59138891
035CE37191BF6B8DF710A67C64EA8E9A408C5CE083C59C447B0D92355F535EA2
554C20464E0E135D9AD2458917DC9C092610233727CBEFE24226416D79125167
A9BD6E023172C33548890252B46E3CF2EF24616008F66A6757E7EC9C6194C026
E28751942F20B9C305CE7E92BB532610C3086002318C002610C3086002318C00
2610C3086002318C002610C3086002318C002610C3086002318C002610C30860
02318C002610C3086002318C002610C3086002318C002610C3086002318C0026
10C3086002318C002610C3086002318C002610C3086002318C00BF05A62C2103
26E3139C0000000049454E44AE426082}
Stretch = True
Transparent = True
end
object lblGit: TLabel
Left = 88
Top = 65
Width = 42
Height = 16
Cursor = crHandPoint
Caption = 'GitHub'
Font.Charset = DEFAULT_CHARSET
Font.Color = clPurple
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = [fsBold, fsUnderline]
ParentFont = False
OnClick = lblGitClick
end
object Button1: TButton
Left = 358
Top = 57
Width = 75
Height = 25
Anchors = [akRight, akBottom]
Caption = 'OK'
ModalResult = 1
TabOrder = 0
end
end
| 57.174905 | 74 | 0.874377 |
f1817f890d66e0895d96756de7ace78612b232fd
| 158,910 |
pas
|
Pascal
|
references/jcl/jcl/install/JclInstall.pas
|
zekiguven/alcinoe
|
e55c5368ee8bfe7cd6d92424c29ab07d8a3e844c
|
[
"Apache-2.0"
] | 851 |
2018-02-05T09:54:56.000Z
|
2022-03-24T23:13:10.000Z
|
references/jcl/jcl/install/JclInstall.pas
|
zekiguven/alcinoe
|
e55c5368ee8bfe7cd6d92424c29ab07d8a3e844c
|
[
"Apache-2.0"
] | 200 |
2018-02-06T18:52:39.000Z
|
2022-03-24T19:59:14.000Z
|
references/jcl/jcl/install/JclInstall.pas
|
zekiguven/alcinoe
|
e55c5368ee8bfe7cd6d92424c29ab07d8a3e844c
|
[
"Apache-2.0"
] | 197 |
2018-03-20T20:49:55.000Z
|
2022-03-21T17:38:14.000Z
|
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) extension }
{ }
{ The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); }
{ you may not use this file except in compliance with the License. You may obtain a copy of the }
{ License at http://www.mozilla.org/MPL/ }
{ }
{ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF }
{ ANY KIND, either express or implied. See the License for the specific language governing rights }
{ and limitations under the License. }
{ }
{ The Original Code is JclInstall.pas. }
{ }
{ The Initial Developer of the Original Code is Petr Vones. Portions created by Petr Vones are }
{ Copyright (C) of Petr Vones. All Rights Reserved. }
{ }
{ Contributor(s): }
{ Robert Rossmair - crossplatform & BCB support, refactoring }
{ Florent Ouchet (outchy) - New installer core, resource refactorings }
{ Jean-Fabien Connault (cycocrew) }
{ }
{**************************************************************************************************}
{ }
{ Last modified: $Date:: $ }
{ Revision: $Rev:: $ }
{ Author: $Author:: $ }
{ }
{**************************************************************************************************}
unit JclInstall;
interface
{$I jcl.inc}
{$I crossplatform.inc}
uses
SysUtils, Classes, Contnrs,
JclSysUtils, JclIDEUtils, JediInstall;
type
TInstallerOption = (
joJediCodeLibrary,
joJCLDef,
joJCLDefMath,
joJCLDefDebug,
joJCLDefWrappers,
joJCLDefPCRE,
joJCLDefBZip2,
joJCLDefZLib,
joJCLDefUnicode,
joJCLDefContainer,
joJCLDef7z,
joJCLDefThreadSafe,
joJCLDefDropObsoleteCode,
joJCLDefUnitVersioning,
joJCLDefMathPrecSingle,
joJCLDefMathPrecDouble,
joJCLDefMathPrecExtended,
joJCLDefMathExtremeValues,
joJCLDefHookDllExceptions,
joJCLDefDebugNoBinary,
joJCLDefDebugNoTD32,
joJCLDefDebugNoMap,
joJCLDefDebugNoExports,
joJCLDefDebugNoSymbols,
joJCLDefPCREStaticLink,
joJCLDefPCRELinkDLL,
joJCLDefPCRELinkOnRequest,
joJCLDefPCRERTL,
joJCLDefPCRE8,
joJCLDefPCRE16,
joJCLDefPCREPrefer16,
joJCLDefBZip2StaticLink,
joJCLDefBZip2LinkDLL,
joJCLDefBZip2LinkOnRequest,
joJCLDefZLibStaticLink,
joJCLDefZLibLinkDLL,
joJCLDefZLibLinkOnRequest,
joJCLDefZLibRTL,
joJCLDefUnicodeRTLDatabase,
joJCLDefUnicodeSilentFailure,
joJCLDefUnicodeRawData,
joJCLDefUnicodeZLibData,
joJCLDefUnicodeBZip2Data,
joJCLDefContainerAnsiStr,
joJCLDefContainerWideStr,
joJCLDefContainerUnicodeStr,
joJCLDefContainerNoStr,
//joJCLDef7zStaticLink,
joJCLDef7zLinkDLL,
joJCLDef7zLinkOnRequest,
joJCLEnvironment,
joJCLEnvLibPath,
joJCLEnvBrowsingPath,
joJCLEnvDebugDCUPath,
joJCLEnvIncludePath,
joJCLMake,
joJCLMakeRelease,
joJCLMakeDebug,
joJCLCopyHppFiles,
joJCLCheckHppFiles,
joJCLPackages,
joJCLDualPackages,
joJCLCopyPackagesHppFiles,
joJCLMapCreate,
joJCLJdbgCreate,
joJCLJdbgInsert,
joJCLMapDelete,
joJCLExperts,
joJCLExpertsDsgnPackages,
joJCLExpertsDLL,
joJCLExpertDebug,
joJCLExpertAnalyzer,
joJCLExpertFavorite,
joJCLExpertRepository,
joJCLExpertThreadNames,
joJCLExpertUses,
joJCLExpertSimdView,
joJCLExpertVersionControl,
joJCLExpertStackTraceViewer,
joJCLExceptDlg,
joJCLExceptDlgVCL,
joJCLExceptDlgVCLSnd,
joJCLHelp,
joJCLHelpHlp,
joJCLHelpChm,
joJCLHelpHxS,
joJCLHelpHxSPlugin,
joJCLMakeDemos);
const
JclDefineNames: array [joJCLDefThreadSafe..joJCLDef7zLinkOnRequest] of string =
( 'THREADSAFE', 'DROP_OBSOLETE_CODE', 'UNITVERSIONING',
'MATH_SINGLE_PRECISION', 'MATH_DOUBLE_PRECISION', 'MATH_EXTENDED_PRECISION',
'MATH_EXT_EXTREMEVALUES', 'HOOK_DLL_EXCEPTIONS',
'DEBUG_NO_BINARY', 'DEBUG_NO_TD32', 'DEBUG_NO_MAP', 'DEBUG_NO_EXPORTS',
'DEBUG_NO_SYMBOLS', 'PCRE_STATICLINK', 'PCRE_LINKDLL',
'PCRE_LINKONREQUEST', 'PCRE_RTL', 'PCRE_8', 'PCRE_16', 'PCRE_PREFER_16',
'BZIP2_STATICLINK', 'BZIP2_LINKDLL', 'BZIP2_LINKONREQUEST', 'ZLIB_STATICLINK',
'ZLIB_LINKDLL', 'ZLIB_LINKONREQUEST', 'ZLIB_RTL', 'UNICODE_RTL_DATABASE',
'UNICODE_SILENT_FAILURE', 'UNICODE_RAW_DATA', 'UNICODE_ZLIB_DATA',
'UNICODE_BZIP2_DATA', 'CONTAINER_ANSISTR', 'CONTAINER_WIDESTR',
'CONTAINER_UNICODESTR', 'CONTAINER_NOSTR', {'7ZIP_STATICLINK',}
'7ZIP_LINKDLL', '7ZIP_LINKONREQUEST' );
type
TJclDistribution = class;
TJclInstallation = class
private
// identification
FDistribution: TJclDistribution;
FTarget: TJclBorRADToolInstallation;
FTargetName: string;
FTargetPlatform: TJclBDSPlatform;
FIncludeFileName: string;
FGUIPage: IJediInstallPage;
FGUI: IJediInstallGUI;
FGUIBPLPathIndex: Integer;
FGUIDCPPathIndex: Integer;
FGUIHPPPathIndex: Integer;
FLibDebugDir: string;
FLibReleaseDir: string;
FJclDcpPath: string;
FDemoList: TStringList;
FLogLines: TJclSimpleLog;
FDemoSectionName: string;
FLogFileName: string;
FSilent: Boolean;
FRuntimeInstallation: Boolean;
FProfilesTargets: TObjectList;
FInstallSuccess: Boolean;
procedure AddDemo(const Directory: string; const FileInfo: TSearchRec);
procedure AddDemos(const Directory: string);
function GetDemoList: TStringList;
function MakePath(const FormatStr: string): string;
procedure WriteLog(const Msg: string);
function GetEnabled: Boolean;
function GetIsProfileEnabled(Index: Integer): Boolean;
function GetProfilesTarget(Index: Integer): TJclBorRADToolInstallation;
function GetTargetSupportsCBuilder: Boolean;
function GetTargetSupportsDelphi: Boolean;
protected
constructor Create(JclDistribution: TJclDistribution;
InstallTarget: TJclBorRADToolInstallation; ATargetPlatform: TJclBDSPlatform;
const AGUIPage: IJediInstallPage);
function CompileLibraryUnits(const SubDir: string; Debug: Boolean): Boolean;
function CompilePackage(const Name: string): Boolean;
function CompileApplication(FileName: string): Boolean;
function DeletePackage(const Name: string): Boolean;
procedure ConfigureBpr2Mak(const PackageFileName: string);
{$IFDEF MSWINDOWS}
function CompileExpert(const Name: string): Boolean;
{$ENDIF MSWINDOWS}
function GetBplPath: string;
function GetDcpPath: string;
function GetHppPath: string;
function GetOptionChecked(Option: TInstallerOption): Boolean; overload;
function GetOptionCheckedById(Id: Integer): Boolean; overload;
function GetPlatformStr: string;
procedure MarkOptionBegin(Id: Integer); overload;
procedure MarkOptionBegin(Option: TInstallerOption); overload;
procedure MarkOptionEnd(Id: Integer; Success: Boolean); overload;
procedure MarkOptionEnd(Option: TInstallerOption; Success: Boolean); overload;
public
destructor Destroy; override;
procedure Close;
procedure Init;
function RemoveSettings: Boolean;
function Install: Boolean;
function Uninstall(AUninstallHelp: Boolean): Boolean;
property Distribution: TJclDistribution read FDistribution;
property Target: TJclBorRADToolInstallation read FTarget;
property TargetSupportsDelphi: Boolean read GetTargetSupportsDelphi;
property TargetSupportsCBuilder: Boolean read GetTargetSupportsCBuilder;
property TargetName: string read FTargetName;
property IncludeFileName: string read FIncludeFileName;
property GUIPage: IJediInstallPage read FGUIPage;
property GUI: IJediInstallGUI read FGUI;
property TargetPlatform: TJclBDSPlatform read FTargetPlatform;
property Enabled: Boolean read GetEnabled;
property OptionCheckedById[Id: Integer]: Boolean read GetOptionCheckedById;
property OptionChecked[Option: TInstallerOption]: Boolean read GetOptionChecked;
property LogFileName: string read FLogFileName;
property Silent: Boolean read FSilent write FSilent;
property RuntimeInstallation: Boolean read FRuntimeInstallation; // false for C#Builder 1 and Delphi 8 targets
property InstallSuccess: Boolean read FInstallSuccess; // True if Install has been called and returned True
property IsProfileEnabled[Index: Integer]: Boolean read GetIsProfileEnabled;
property ProfileTargets[Index: Integer]: TJclBorRADToolInstallation read GetProfilesTarget;
end;
TJclDistribution = class (TInterfacedObject, IJediProduct)
private
FJclPath: string;
FJclBinDir: string;
FJclBin64Dir: string;
FLibReleaseDirMask: string;
FLibDebugDirMask: string;
FJclIncludeDir: string;
FJclIncludeTemplate: string;
FJclSourcePath: string;
FJclOldSourcePath: string;
FJclExamplesDir: string;
FVclDialogFileName: string;
FVclDialogSendFileName: string;
FVclDialogIconFileName: string;
FVclDialogSendIconFileName: string;
FJclOldChmHelpFileName: string;
FJclChmHelpFileName: string;
FJclContainersChmHelpFileName: string;
FJclDeveloperToolsChmHelpFileName: string;
FJclVclChmHelpFileName: string;
FJclOldHlpHelpFileName: string;
FJclHlpHelpFileName: string;
FJclContainersHlpHelpFileName: string;
FJclDeveloperToolsHlpHelpFileName: string;
FJclVclHlpHelpFileName: string;
FJclOldHxSHelpFileName: string;
FJclHxSHelpFileName: string;
FJclContainersHxSHelpFileName: string;
FJclDeveloperToolsHxSHelpFileName: string;
FJclVclHxSHelpFileName: string;
FJclReadmeFileName: string;
FJclLicenseFileName: string;
FGUI: IJediInstallGUI;
FReadMePage: IJediTextPage;
FLicensePage: IJediTextPage;
FNbEnabled: Integer;
FNbInstalled: Integer;
{$IFDEF MSWINDOWS}
FRegHelpCommands: TStrings;
{$ENDIF MSWINDOWS}
FRadToolInstallations: TJclBorRADToolInstallations;
FTargetInstalls: TObjectList;
FProfilesPage: IJediProfilesPage;
function GetVersion: string;
property Version: string read GetVersion;
function CreateInstall(Target: TJclBorRADToolInstallation): Boolean;
function GetTargetInstall(Index: Integer): TJclInstallation;
function GetTargetInstallCount: Integer;
{$IFDEF MSWINDOWS}
procedure RegHelpInternalAdd(Command: Integer; Arguments: string; DoNotRepeatCommand: Boolean);
function RegHelpExecuteCommands(DisplayErrors: Boolean): Boolean;
procedure RegHelpClearCommands;
{$ENDIF MSWINDOWS}
public
constructor Create;
destructor Destroy; override;
{$IFDEF MSWINDOWS}
procedure RegHelpCreateTransaction;
procedure RegHelpCommitTransaction;
procedure RegHelpRegisterNameSpace(const Name, Collection, Description: WideString);
procedure RegHelpUnregisterNameSpace(const Name: WideString);
procedure RegHelpRegisterHelpFile(const NameSpace, Identifier: WideString;
const LangId: Integer; const HxSFile, HxIFile: WideString);
procedure RegHelpUnregisterHelpFile(const NameSpace, Identifier: WideString;
const LangId: Integer);
procedure RegHelpPlugNameSpaceIn(const SourceNameSpace, TargetNameSpace: WideString);
procedure RegHelpUnPlugNameSpace(const SourceNameSpace, TargetNameSpace: WideString);
{$ENDIF MSWINDOWS}
// IJediProduct
procedure Init;
function Install(InstallPage: IJediInstallPage = nil): Boolean;
function Uninstall(InstallPage: IJediInstallPage = nil): Boolean;
procedure Close;
property JclPath: string read FJclPath;
property JclBinDir: string read FJclBinDir;
property JclBin64Dir: string read FJclBin64Dir;
property LibReleaseDirMask: string read FLibReleaseDirMask;
property LibDebugDirMask: string read FLibDebugDirMask;
property JclIncludeDir: string read FJclIncludeDir;
property JclIncludeTemplate: string read FJclIncludeTemplate;
property JclSourcePath: string read FJclSourcePath;
property JclOldSourcePath: string read FJclOldSourcePath;
property JclExamplesDir: string read FJclExamplesDir;
property VclDialogFileName: string read FVclDialogFileName;
property VclDialogSendFileName: string read FVclDialogSendFileName;
property VclDialogIconFileName: string read FVclDialogIconFileName;
property VclDialogSendIconFileName: string read FVclDialogSendIconFileName;
property JclOldChmHelpFileName: string read FJclOldChmHelpFileName;
property JclChmHelpFileName: string read FJclChmHelpFileName;
property JclContainersChmHelpFileName: string read FJclContainersChmHelpFileName;
property JclDeveloperToolsChmHelpFileName: string read FJclDeveloperToolsChmHelpFileName;
property JclVclChmHelpFileName: string read FJclVclChmHelpFileName;
property JclOldHlpHelpFileName: string read FJclOldHlpHelpFileName;
property JclHlpHelpFileName: string read FJclHlpHelpFileName;
property JclContainersHlpHelpFileName: string read FJclContainersHlpHelpFileName;
property JclDeveloperToolsHlpHelpFileName: string read FJclDeveloperToolsHlpHelpFileName;
property JclVclHlpHelpFileName: string read FJclVclHlpHelpFileName;
property JclOldHxSHelpFileName: string read FJclOldHxSHelpFileName;
property JclHxSHelpFileName: string read FJclHxSHelpFileName;
property JclContainersHxSHelpFileName: string read FJclContainersHxSHelpFileName;
property JclDeveloperToolsHxSHelpFileName: string read FJclDeveloperToolsHxSHelpFileName;
property JclVclHxSHelpFileName: string read FJclVclHxSHelpFileName;
property JclReadmeFileName: string read FJclReadmeFileName;
property JclLicenseFileName: string read FJclLicenseFileName;
property RadToolInstallations: TJclBorRADToolInstallations read FRadToolInstallations;
property TargetInstalls[Index: Integer]: TJclInstallation read GetTargetInstall;
property TargetInstallCount: Integer read GetTargetInstallCount;
property GUI: IJediInstallGUI read FGUI;
property ReadMePage: IJediTextPage read FReadMePage;
property LicensePage: IJediTextPage read FLicensePage;
property NbEnabled: Integer read FNbEnabled;
property NbInstalled: Integer read FNbInstalled;
property ProfilesPage: IJediProfilesPage read FProfilesPage;
end;
implementation
uses
TypInfo,
JclBase, JclResources, JclSysInfo,
{$IFDEF MSWINDOWS}
Windows,
JclPeImage,
JclRegistry,
JclDebug,
JclSecurity,
JediRegInfo,
JclShell,
{$ENDIF MSWINDOWS}
JclFileUtils, JclStrings,
JclSimpleXML, JclStreams,
JclCompilerUtils,
JclContainerIntf,
JclPreProcessorParser,
JclDevToolsResources,
JediInstallResources,
JclInstallResources;
type
TOptionRec = record
Id: Integer;
Caption: PResStringRec;
Hint: PResStringRec;
end;
var
OptionData: array[TInstallerOption] of TOptionRec =
(
(Id: -1; Caption: @RsCaptionLibrary; Hint: @RsHintLibrary), // joLibrary
(Id: -1; Caption: @RsCaptionDef; Hint: @RsHintDef), // joDef
(Id: -1; Caption: @RsCaptionDefMath; Hint: @RsHintDefMath), // joDefMath
(Id: -1; Caption: @RsCaptionDefDebug; Hint: @RsHintDefDebug), // joDefDebug
(Id: -1; Caption: @RsCaptionDefWrappers; Hint: @RsHintDefWrappers), // joDefWrappers
(Id: -1; Caption: @RsCaptionDefPCRE; Hint: @RsHintDefPCRE), // joDefPCRE
(Id: -1; Caption: @RsCaptionDefBZip2; Hint: @RsHintDefBZip2), // joDefBZip2
(Id: -1; Caption: @RsCaptionDefZLib; Hint: @RsHintDefZLib), // joDefZLib
(Id: -1; Caption: @RsCaptionDefUnicode; Hint: @RsHintDefUnicode), // joDefUnicode
(Id: -1; Caption: @RsCaptionDefContainer; Hint: @RsHintDefContainer), // joDefContainer
(Id: -1; Caption: @RsCaptionDef7z; Hint: @RsHintDef7z), // joDef7z
(Id: -1; Caption: @RsCaptionDefThreadSafe; Hint: @RsHintDefThreadSafe), // joDefThreadSafe
(Id: -1; Caption: @RsCaptionDefDropObsoleteCode; Hint: @RsHintDefDropObsoleteCode), // joDefDropObsoleteCode
(Id: -1; Caption: @RsCaptionDefUnitVersioning; Hint: @RsHintDefUnitVersioning), // joDefUnitVersioning
(Id: -1; Caption: @RsCaptionDefMathPrecSingle; Hint: @RsHintDefMathPrecSingle), // ioDefMathPrecSingle
(Id: -1; Caption: @RsCaptionDefMathPrecDouble; Hint: @RsHintDefMathPrecDouble), // joDefMathPrecDouble
(Id: -1; Caption: @RsCaptionDefMathPrecExtended; Hint: @RsHintDefMathPrecExtended), // joDefMathPrecExtended
(Id: -1; Caption: @RsCaptionDefMathExtremeValues; Hint: @RsHintDefMathExtremeValues), // joDefMathExtremeValues
(Id: -1; Caption: @RsCaptionDefHookDllExceptions; Hint: @RsHintDefHookDllExceptions), // joDefHookDllExceptions
(Id: -1; Caption: @RsCaptionDefDebugNoBinary; Hint: @RsHintDefDebugNoBinary), // joDefDebugNoBinary
(Id: -1; Caption: @RsCaptionDefDebugNoTD32; Hint: @RsHintDefDebugNoTD32), // joDefDebugNoTD32
(Id: -1; Caption: @RsCaptionDefDebugNoMap; Hint: @RsHintDefDebugNoMap), // joDefDebugNoMap
(Id: -1; Caption: @RsCaptionDefDebugNoExports; Hint: @RsHintDefDebugNoExports), // joDefDebugNoExports
(Id: -1; Caption: @RsCaptionDefDebugNoSymbols; Hint: @RsHintDefDebugNoSymbols), // joDefDebugNoSymbols
(Id: -1; Caption: @RsCaptionDefPCREStaticLink; Hint: @RsHintDefPCREStaticLink), // joDefPCREStaticLink
(Id: -1; Caption: @RsCaptionDefPCRELinkDLL; Hint: @RsHintDefPCRELinkDLL), // joDefPCRELinkDLL
(Id: -1; Caption: @RsCaptionDefPCRELinkOnRequest; Hint: @RsHintDefPCRELinkOnRequest), // joDefPCRELinkOnRequest
(Id: -1; Caption: @RsCaptionDefPCRERTL; Hint: @RsHintDefPCRERTL), // joDefPCRERTL
(Id: -1; Caption: @RsCaptionDefPCRE8; Hint: @RsHintDefPCRE8), // joDefPCRE8
(Id: -1; Caption: @RsCaptionDefPCRE16; Hint: @RsHintDefPCRE16), // joDefPCRE16
(Id: -1; Caption: @RsCaptionDefPCREPrefer16; Hint: @RsHintDefPCREPrefer16), // joDefPCREPrefer16
(Id: -1; Caption: @RsCaptionDefBZip2StaticLink; Hint: @RsHintDefBZip2StaticLink), // joDefBZip2StaticLink
(Id: -1; Caption: @RsCaptionDefBZip2LinkDLL; Hint: @RsHintDefBZip2LinkDLL), // joDefBZip2LinkDLL
(Id: -1; Caption: @RsCaptionDefBZip2LinkOnRequest; Hint: @RsHintDefBZip2LinkOnRequest), // joDefBZip2LinkOnRequest
(Id: -1; Caption: @RsCaptionDefZLibStaticLink; Hint: @RsHintDefZLibStaticLink), // joDefZLibStaticLink
(Id: -1; Caption: @RsCaptionDefZLibLinkDLL; Hint: @RsHintDefZLibLinkDLL), // joDefZLibLinkDLL
(Id: -1; Caption: @RsCaptionDefZLibLinkOnRequest; Hint: @RsHintDefZLibLinkOnRequest), // joDefZLibLinkOnRequest
(Id: -1; Caption: @RsCaptionDefZLibRTL; Hint: @RsHintDefZLibRTL), // joDefZLibRTL
(Id: -1; Caption: @RsCaptionDefUnicodeRTLDatabase; Hint: @RsHintDefUnicodeRTLDatabase), // joDefUnicodeSilentFailure
(Id: -1; Caption: @RsCaptionDefUnicodeSilentFailure; Hint: @RsHintDefUnicodeSilentFailure), // joDefUnicodeSilentFailure
(Id: -1; Caption: @RsCaptionDefUnicodeRawData; Hint: @RsHintDefUnicodeRawData), // joDefUnicodeRawData
(Id: -1; Caption: @RsCaptionDefUnicodeZLibData; Hint: @RsHintDefUnicodeZLibData), // joDefUnicodeZLibData
(Id: -1; Caption: @RsCaptionDefUnicodeBZip2Data; Hint: @RsHintDefUnicodeBZip2Data), // joDefUnicodeBZip2Data
(Id: -1; Caption: @RsCaptionDefContainerAnsiStr; Hint: @RsHintDefContainerAnsiStr), // joDefContainerAnsiStr
(Id: -1; Caption: @RsCaptionDefContainerWideStr; Hint: @RsHintDefContainerWideStr), // joDefContainerWideStr
(Id: -1; Caption: @RsCaptionDefContainerUnicodeStr; Hint: @RsHintDefContainerUnicodeStr), // joDefContainerUnicodeStr
(Id: -1; Caption: @RsCaptionDefContainerNoStr; Hint: @RsHintDefContainerNoStr), // joDefContainerNoStr
//(Id: -1; Caption: @RsCaptionDef7zStaticLink; Hint: @RsHintDef7zStaticLink), // joDef7zStaticLink
(Id: -1; Caption: @RsCaptionDef7zLinkDLL; Hint: @RsHintDef7zLinkDLL), // joDef7zLinkDLL
(Id: -1; Caption: @RsCaptionDef7zLinkOnRequest; Hint: @RsHintDef7zLinkOnRequest), // joDef7zLinkOnRequest
(Id: -1; Caption: @RsCaptionEnvironment; Hint: @RsHintEnvironment), // joEnvironment
(Id: -1; Caption: @RsCaptionEnvLibPath; Hint: @RsHintEnvLibPath), // joEnvLibPath
(Id: -1; Caption: @RsCaptionEnvBrowsingPath; Hint: @RsHintEnvBrowsingPath), // joEnvBrowsingPath
(Id: -1; Caption: @RsCaptionEnvDebugDCUPath; Hint: @RsHintEnvDebugDCUPath), // joEnvDebugDCUPath
(Id: -1; Caption: @RsCaptionEnvIncludePath; Hint: @RsHintEnvIncludePath), // joEnvIncludePath
(Id: -1; Caption: @RsCaptionMake; Hint: @RsHintMake), // joMake
(Id: -1; Caption: @RsCaptionMakeRelease; Hint: @RsHintMakeRelease), // joMakeRelease
(Id: -1; Caption: @RsCaptionMakeDebug; Hint: @RsHintMakeDebug), // joMakeDebug
(Id: -1; Caption: @RsCaptionCopyHppFiles; Hint: @RsHintCopyHppFiles), // joCopyHppFiles
(Id: -1; Caption: @RsCaptionCheckHppFiles; Hint: @RsHintCheckHppFiles), // joCheckHppFiles
(Id: -1; Caption: @RsCaptionPackages; Hint: @RsHintPackages), // joPackages
(Id: -1; Caption: @RsCaptionDualPackages; Hint: @RsHintDualPackages), // joDualPackages
(Id: -1; Caption: @RsCaptionCopyPackagesHppFiles; Hint: @RsHintCopyPackagesHppFiles), // joCopyPackagesHppFiles
(Id: -1; Caption: @RsCaptionMapCreate; Hint: @RsHintMapCreate), // joMapCreate
(Id: -1; Caption: @RsCaptionJdbgCreate; Hint: @RsHintJdbgCreate), // joJdbgCreate
(Id: -1; Caption: @RsCaptionJdbgInsert; Hint: @RsHintJdbgInsert), // joJdbgInsert
(Id: -1; Caption: @RsCaptionMapDelete; Hint: @RsHintMapDelete), // joMapDelete
(Id: -1; Caption: @RsCaptionExperts; Hint: @RsHintExperts), // joExperts
(Id: -1; Caption: @RsCaptionExpertsDsgnPackages; Hint: @RsHintExpertsDsgnPackages), // joExpertsDsgnPackages
(Id: -1; Caption: @RsCaptionExpertsDLL; Hint: @RsHintExpertsDLL), // joExpertsDLL
(Id: -1; Caption: @RsCaptionExpertDebug; Hint: @RsHintExpertDebug), // joExpertDebug
(Id: -1; Caption: @RsCaptionExpertAnalyzer; Hint: @RsHintExpertAnalyzer), // joExpertAnalyzer
(Id: -1; Caption: @RsCaptionExpertFavorite; Hint: @RsHintExpertFavorite), // joExpertFavorite
(Id: -1; Caption: @RsCaptionExpertRepository; Hint: @RsHintExpertRepository), // joExpertRepository
(Id: -1; Caption: @RsCaptionExpertThreadNames; Hint: @RsHintExpertThreadNames), // joExpertThreadNames
(Id: -1; Caption: @RsCaptionExpertUses; Hint: @RsHintExpertUses), // joExpertUses
(Id: -1; Caption: @RsCaptionExpertSimdView; Hint: @RsHintExpertSimdView), // joExpertSimdView
(Id: -1; Caption: @RsCaptionExpertVersionControl; Hint: @RsHintExpertVersionControl), // joExpertVersionControl
(Id: -1; Caption: @RsCaptionExpertStackTraceViewer; Hint: @RsHintExpertStackTraceViewer), //joExpertStackTraceViewer
(Id: -1; Caption: @RsCaptionExceptDlg; Hint: @RsHintExceptDlg), // joExceptDlg
(Id: -1; Caption: @RsCaptionExceptDlgVCL; Hint: @RsHintExceptDlgVCL), // joExceptDlgVCL
(Id: -1; Caption: @RsCaptionExceptDlgVCLSnd; Hint: @RsHintExceptDlgVCLSnd), // joExceptDlgVCLSnd
(Id: -1; Caption: @RsCaptionHelp; Hint: @RsHintHelp), // joHelp
(Id: -1; Caption: @RsCaptionHelpHlp; Hint: @RsHintHelpHlp), // joHelpHlp
(Id: -1; Caption: @RsCaptionHelpChm; Hint: @RsHintHelpChm), // joHelpChm
(Id: -1; Caption: @RsCaptionHelpHxS; Hint: @RsHintHelpHxS), // joHelpHxS
(Id: -1; Caption: @RsCaptionHelpHxSPlugin; Hint: @RsHintHelpHxSPlugin), // joHelpHxSPlugin
(Id: -1; Caption: @RsCaptionMakeDemos; Hint: @RsHintMakeDemos) // joMakeDemos
);
const
// Names
OptionNameBPLPath = 'BPL-Path';
OptionNameDCPPath = 'DCP-Path';
OptionNameBPIPath = 'BPI-Path';
OptionNameHPPPath = 'HPP-Path';
VersionDir = '\%s';
VersionDirExp = '\%%s';
// native packages
JclPackage = 'Jcl';
JclContainersPackage = 'JclContainers';
JclDeveloperToolsPackage = 'JclDeveloperTools';
JclVclPackage = 'JclVcl';
JclExpertBase = 'JclBaseExpert';
JclExpertDebug = 'JclDebugExpert';
JclExpertAnalyzer = 'JclProjectAnalysisExpert';
JclExpertFavorite = 'JclFavoriteFoldersExpert';
JclExpertRepository = 'JclRepositoryExpert';
JclExpertThrNames = 'JclThreadNameExpert';
JclExpertUses = 'JclUsesExpert';
JclExpertSimdView = 'JclSIMDViewExpert';
JclExpertVersionControl = 'JclVersionControlExpert';
JclExpertStackTraceViewer = 'JclStackTraceViewerExpert';
SupportedExperts: array [joJCLExperts..joJCLExpertStackTraceViewer] of string =
(
JclExpertBase, '', '', JclExpertDebug, JclExpertAnalyzer,
JclExpertFavorite, JclExpertRepository, JclExpertThrNames,
JclExpertUses, JclExpertSimdView, JclExpertVersionControl, JclExpertStackTraceViewer
);
OldExperts: array [0..6] of string =
( 'JclDebugIde', 'ProjectAnalyzer', 'IdeOpenDlgFavorite', 'ThreadNameExpert', 'JediUses', 'JclSIMDView', 'JclVersionControl' );
JclSrcDirWindows = 'source' + DirDelimiter + 'windows';
JclSrcDirUnix = 'source' + DirDelimiter + 'unix';
JclSrcDirVcl = 'source' + DirDelimiter + 'vcl';
JclSrcDirCommon = 'source' + DirDelimiter + 'common';
JclOldIncludeDir = 'source';
JclOldJppDir = 'devtools' + DirDelimiter + 'jpp';
JClOldJppDirTemplates = 'devtools' + DirDelimiter + 'jpp' + DirDelimiter + 'Templates';
BCBIncludePath = '%s' + DirSeparator + '%s' + DirSeparator + '$(BCB)' + DirDelimiter + 'include;$(BCB)' + DirDelimiter + 'include' + DirDelimiter + 'vcl';
{$IFDEF MSWINDOWS}
BCBObjectPath = '%s;%s;$(BCB)\Lib\Obj';
// to be compiled and added to IDE browsing path
JclSrcPaths: array[0..2] of string = (JclSrcDirCommon, JclSrcDirWindows, JclSrcDirVcl);
{$ENDIF MSWINDOWS}
{$IFDEF UNIX}
BCBObjectPath = BCBIncludePath;
JclSrcPaths: array[0..1] of string = (JclSrcDirCommon, JclSrcDirUnix);
{$ENDIF UNIX}
JclOldSrcPaths: array[0..2] of string = (JclOldIncludeDir, JclOldJppDir, JclOldJppDirTemplates);
JclIncludeTemplateFileName = 'jcl.template.inc';
JclIncludeMask = 'jcl%s.inc';
ExceptDlgPath = 'experts' + DirDelimiter + 'repository' + DirDelimiter + 'ExceptionDialog' + DirDelimiter + 'StandardDialogs' + DirDelimiter;
ExceptDlgVclFileName = 'ExceptDlg.pas';
ExceptDlgVclSndFileName = 'ExceptDlgMail.pas';
ExceptIcoPath = 'experts' + DirDelimiter + 'repository' + DirDelimiter + 'ExceptionDialog' + DirDelimiter + 'Icons' + DirDelimiter;
ExceptIcoVclFileName = 'ExceptDlg.ico';
ExceptIcoVclSndFileName = 'ExceptDlgMail.ico';
JclOldChmHelpFile = 'help' + DirDelimiter + 'JCLHelp.chm';
JclChmHelpFile = 'help' + DirDelimiter + JclPackage + '.chm';
JclContainersChmHelpFile = 'help' + DirDelimiter + JclContainersPackage + '.chm';
JclDeveloperToolsChmHelpFile = 'help' + DirDelimiter + JclDeveloperToolsPackage + '.chm';
JclVclChmHelpFile = 'help' + DirDelimiter + JclVclPackage + '.chm';
JclOldHlpHelpFile = 'help' + DirDelimiter + 'JCLHelp.hlp';
JclHlpHelpFile = 'help' + DirDelimiter + JclPackage + '.hlp';
JclContainersHlpHelpFile = 'help' + DirDelimiter + JclContainersPackage + '.hlp';
JclDeveloperToolsHlpHelpFile = 'help' + DirDelimiter + JclDeveloperToolsPackage + '.hlp';
JclVclHlpHelpFile = 'help' + DirDelimiter + JclVclPackage + '.hlp';
JclOldHxSHelpFile = 'help' + DirDelimiter + 'JCLHelp.HxS';
JclHxSHelpFile = 'help' + DirDelimiter + JclPackage + '.HxS';
JclContainersHxSHelpFile = 'help' + DirDelimiter + JclContainersPackage + '.HxS';
JclDeveloperToolsHxSHelpFile = 'help' + DirDelimiter + JclDeveloperToolsPackage + '.HxS';
JclVclHxSHelpFile = 'help' + DirDelimiter + JclVclPackage + '.HxS';
JclHelp2NameSpace = 'Jedi.Jcl';
JclHelp2Collection = 'JclHelp.HxC';
JclHelp2Description = 'JEDI Code Library';
JclHelp2LangId = 1033; // en/english
JclOldHelp2Identifier = 'JCLHelp';
JclHelp2Identifier = 'Jcl';
JclContainersHelp2Identifier = 'JclContainers';
JclDeveloperToolsHelp2Identifier = 'JclDeveloperTools';
JclVclHelp2Identifier = 'JclVcl';
JclOldHelp2HxSFile = 'JCLHelp.HxS';
JclOldHelp2HxIFile = 'JCLHelp.HxI';
JclHelp2HxSFile = 'Jcl.HxS';
JclHelp2HxIFile = 'Jcl.HxI';
JclContainersHelp2HxSFile = 'JclContainers.HxS';
JclContainersHelp2HxIFile = 'JclContainers.HxI';
JclDeveloperToolsHelp2HxSFile = 'JclDeveloperTools.HxS';
JclDeveloperToolsHelp2HxIFile = 'JclDeveloperTools.HxI';
JclVclHelp2HxSFile = 'JclVcl.HxS';
JclVclHelp2HxIFile = 'JclVcl.HxI';
JclHelpTitle = 'JCL %d.%d Help';
JclHelpIndexName = 'JEDI Code Library Reference';
JclContainersHelpTitle = 'JCL %d.%d Containers Help';
JclContainersHelpIndexName = 'JEDI Code Library Containers Reference';
JclDeveloperToolsHelpTitle = 'JCL %d.%d Developer Tools Help';
JclDeveloperToolsHelpIndexName = 'JEDI Code Library Developer Tools Reference';
JclVclHelpTitle = 'JCL %d.%d VCL Help';
JclVclHelpIndexName = 'JEDI Code Library VCL Package Reference';
HHFileName = 'HH.EXE';
ReadmeFileName = 'Readme.txt';
LicenseFileName = 'LICENSE.txt';
DailyRevisionFileName = 'jcl-revision.txt';
EntriesFileName1 = '.svn' + DirDelimiter + 'entries';
EntriesFileName2 = '_svn' + DirDelimiter + 'entries';
RsJclVersionMask = 'JCL %d.%d %s %s %d';
RsJclVersionBuild = 'Build';
RsJclVersionRevision = 'Revision';
RsJclVersionTesting = 'Testing';
RsJclVersionRelease = 'Release';
{$IFDEF MSWINDOWS}
Bcb2MakTemplate = 'packages\BCB.bmk';
{$ENDIF MSWINDOWS}
PathEnvironmentVar = 'PATH';
RegHKCUEnvironmentVar = 'Environment';
RegHKLMEnvironmentVar = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
ProfilesSectionName = 'Profiles';
function FullPackageFileName(Target: TJclBorRADToolInstallation; const BaseName: string): string;
const
S = 'packages' + VersionDir + DirDelimiter + '%s';
begin
with Target do
begin
if SupportsLibSuffix then
Result := Format(S + '%s', [VersionNumberStr, BaseName, PackageSourceFileExtension])
else
Result := Format(S + '%s0%3:s', [VersionNumberStr, BaseName, VersionNumberStr, PackageSourceFileExtension]);
end;
end;
function FullLibraryFileName(Target: TJclBorRADToolInstallation; const BaseName: string): string;
const
S = 'packages' + VersionDir + DirDelimiter + '%s';
begin
with Target do
if SupportsLibSuffix then
Result := Format(S + 'DLL%s', [VersionNumberStr, BaseName, ProjectSourceFileExtension])
else
Result := Format(S + 'DLL%s0%3:s', [VersionNumberStr, BaseName, VersionNumberStr, ProjectSourceFileExtension]);
end;
function SortFileNameA2Z(List: TStringList; Index1, Index2: Integer): Integer;
begin
Result := CompareText(List.Strings[Index1], List.Strings[Index2]);
end;
function SortFileNameZ2A(List: TStringList; Index1, Index2: Integer): Integer;
begin
Result := -CompareText(List.Strings[Index1], List.Strings[Index2]);
end;
//=== { TJclInstallation } ===================================================
constructor TJclInstallation.Create(JclDistribution: TJclDistribution;
InstallTarget: TJclBorRADToolInstallation; ATargetPlatform: TJclBDSPlatform;
const AGUIPage: IJediInstallPage);
begin
inherited Create;
FTarget := InstallTarget;
if not Target.Valid then
Abort;
FDistribution := JclDistribution;
FTargetPlatform := ATargetPlatform;
FTargetName := Target.Name;
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 9) then
FIncludeFileName := PathAddSeparator(Distribution.JclIncludeDir) + Format(JclIncludeMask, [Target.IDEVersionNumberStr + AnsiLowerCase(GetPlatformStr)])
else
FIncludeFileName := PathAddSeparator(Distribution.JclIncludeDir) + Format(JclIncludeMask, [Target.IDEVersionNumberStr]);
// exclude C#Builder 1 and Delphi 8 targets
FRunTimeInstallation := (Target.RadToolKind <> brBorlandDevStudio)
or ((Target.VersionNumber >= 3) and TargetSupportsDelphi);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 9) then
begin
case TargetPlatform of
bpWin32:
FTargetName := Format('%s %s', [FTargetName, Personality32Bit]);
bpWin64:
FTargetName := Format('%s %s', [FTargetName, Personality64Bit]);
bpOSX32:
raise EJclBorRADException.CreateRes(@RsEOSXPlatformNotValid);
else
raise EJclBorRADException.CreateRes(@RsEPlatformNotValid);
end;
end;
FLibReleaseDir := MakePath(Distribution.LibReleaseDirMask);
FLibDebugDir := MakePath(Distribution.LibDebugDirMask);
FJclDcpPath := PathAddSeparator(MakePath(Distribution.LibReleaseDirMask)); // packages are release
FDemoSectionName := TargetName + ' demos';
FLogFileName := Format('%sbin%s%s.log', [Distribution.JclPath, DirDelimiter, TargetName]);
FLogLines := TJclSimpleLog.Create(FLogFileName);
FProfilesTargets := TObjectList.Create;
FProfilesTargets.Count := InstallCore.ProfilesManager.ProfileCount;
FProfilesTargets.OwnsObjects := False;
end;
destructor TJclInstallation.Destroy;
var
Index: Integer;
begin
if Assigned(FProfilesTargets) then
for Index := 0 to FProfilesTargets.Count - 1 do
if FProfilesTargets.Items[Index] <> Target then
FProfilesTargets.Items[Index].Free;
FProfilesTargets.Free;
FDemoList.Free;
FLogLines.Free;
FGUI := nil;
FGUIPage := nil;
inherited Destroy;
end;
function TJclInstallation.GetEnabled: Boolean;
begin
Result := OptionCheckedById[OptionData[joJediCodeLibrary].Id];
end;
function TJclInstallation.GetIsProfileEnabled(Index: Integer): Boolean;
var
AProfilesPage: IJediProfilesPage;
ASettings: IJediConfiguration;
begin
AProfilesPage := FDistribution.ProfilesPage;
ASettings := InstallCore.Configuration;
if AProfilesPage <> nil then
Result := AProfilesPage.IsProfileEnabled[Index]
else
if ASettings <> nil then
Result := ASettings.OptionAsBoolByName[ProfilesSectionName, InstallCore.ProfilesManager.ProfileNames[Index]]
else
Result := True;
end;
function TJclInstallation.GetOptionChecked(Option: TInstallerOption): Boolean;
begin
Result := OptionCheckedById[OptionData[Option].Id];
end;
function TJclInstallation.GetOptionCheckedById(Id: Integer): Boolean;
var
AConfiguration: IJediConfiguration;
begin
if Assigned(GUIPage) then
Result := GUIPage.OptionChecked[Id]
else
begin
AConfiguration := InstallCore.Configuration;
if Assigned(AConfiguration) then
Result := AConfiguration.OptionAsBool[TargetName, Id]
else
Result := False;
end;
end;
function TJclInstallation.GetPlatformStr: string;
begin
case FTargetPlatform of
bpWin32:
Result := 'Win32';
bpWin64:
Result := 'Win64';
bpOSX32:
raise EJclBorRADException.CreateRes(@RsEOSXPlatformNotValid);
else
raise EJclBorRADException.CreateRes(@RsEPlatformNotValid);
end;
end;
function TJclInstallation.GetProfilesTarget(Index: Integer): TJclBorRADToolInstallation;
{$IFDEF MSWINDOWS}
var
RootKey: LongWord;
begin
if FProfilesTargets.Items[Index] = nil then
begin
RootKey := InstallCore.ProfilesManager.GetProfileKey(Index);
if RootKey <> HKCU then
begin
FProfilesTargets.Items[Index] := TJclBorRADToolInstallationClass(Target.ClassType).Create(Target.ConfigDataLocation, RootKey);
TJclBorRADToolInstallation(FProfilesTargets.Items[Index]).OutputCallback := Target.OutputCallback;
end
else
FProfilesTargets.Items[Index] := Target;
end;
Result := FProfilesTargets.Items[Index] as TJclBorRADToolInstallation;
end;
{$ENDIF MSWINDOWS}
{$IFDEF LINUX}
begin
Result := nil;
end;
{$ENDIF LINUX}
function TJclInstallation.GetTargetSupportsCBuilder: Boolean;
begin
Result := ((bpBCBuilder32 in Target.Personalities) and (TargetPlatform = bpWin32)) or
((bpBCBuilder64 in Target.Personalities) and (TargetPlatform = bpWin64));
if Result then
begin
// If we don't have a command line C++ compiler we can't compile
// (fake BCB Personality from the Web Installer)
if TargetPlatform = bpWin32 then
Result := clBcc32 in Target.CommandLineTools
else if TargetPlatform = bpWin64 then
Result := clBcc64 in Target.CommandLineTools;
end;
end;
function TJclInstallation.GetTargetSupportsDelphi: Boolean;
begin
Result := ((bpDelphi32 in Target.Personalities) and (TargetPlatform = bpWin32)) or
((bpDelphi64 in Target.Personalities) and (TargetPlatform = bpWin64));
if Result then
begin
// If we don't have a command line C++ compiler we can't compile
// (fake Delphi Personality from the Web Installer)
if TargetPlatform = bpWin32 then
Result := clDcc32 in Target.CommandLineTools
else if TargetPlatform = bpWin64 then
Result := clDcc64 in Target.CommandLineTools;
end;
end;
procedure TJclInstallation.MarkOptionBegin(Id: Integer);
begin
if Assigned(GUIPage) then
GUIPage.MarkOptionBegin(Id);
if Assigned(GUI) then
GUI.Status := InstallCore.InstallOptionName[Id];
end;
procedure TJclInstallation.MarkOptionBegin(Option: TInstallerOption);
begin
if Assigned(GUIPage) then
GUIPage.MarkOptionBegin(OptionData[Option].Id);
if Assigned(GUI) then
GUI.Status := LoadResString(@OptionData[Option].Hint);
end;
procedure TJclInstallation.MarkOptionEnd(Id: Integer; Success: Boolean);
begin
if Assigned(GUIPage) then
begin
GUIPage.MarkOptionEnd(Id, not Success);
if Assigned(GUI) then
GUI.Progress := Round(100 * (Distribution.NbInstalled + GUIPage.Progress / 100) / Distribution.NbEnabled);
end;
end;
procedure TJclInstallation.MarkOptionEnd(Option: TInstallerOption; Success: Boolean);
begin
if Assigned(GUIPage) then
begin
GUIPage.MarkOptionEnd(OptionData[Option].Id, not Success);
if Assigned(GUI) then
GUI.Progress := Round(100 * (Distribution.NbInstalled + GUIPage.Progress / 100) / Distribution.NbEnabled);
end;
end;
procedure TJclInstallation.Init;
procedure AddOption(Option: TInstallerOption; GUIOptions: TJediInstallGUIOptions;
Parent: Integer; const Caption, Hint: string); overload;
begin
GUIPage.AddInstallOption(OptionData[Option].Id, GUIOptions, Caption, Hint, Parent);
end;
procedure AddOption(Option: TInstallerOption; GUIOptions: TJediInstallGUIOptions;
Parent: Integer; Caption, Hint: PResStringRec); overload;
begin
AddOption(Option, GUIOptions, Parent, LoadResString(Caption), LoadResString(Hint));
end;
procedure AddOption(Option: TInstallerOption; GUIOptions: TJediInstallGUIOptions;
Parent: Integer); overload;
begin
AddOption(Option, GUIOptions, Parent, OptionData[Option].Caption, OptionData[Option].Hint);
end;
procedure AddOption(Option: TInstallerOption; GUIOptions: TJediInstallGUIOptions;
Parent: TInstallerOption); overload;
begin
AddOption(Option, GUIOptions, OptionData[Parent].Id, OptionData[Option].Caption, OptionData[Option].Hint);
end;
procedure AddDefOptions(Parent: TInstallerOption);
begin
AddOption(joJCLDefThreadSafe, [goChecked], Parent);
AddOption(joJCLDefDropObsoleteCode, [goChecked], Parent);
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.IDEVersionNumber <> 3) then
// Delphi 2005 has a compiler internal failure when compiling the JCL with UNITVERSIONING enabled
AddOption(joJCLDefUnitVersioning, [{goChecked}], Parent); // UnitVersioning isn't threadsafe and causes crashes in COM-Servers
AddOption(joJCLDefMath, [goChecked], Parent);
AddOption(joJCLDefMathPrecSingle, [goRadioButton], joJCLDefMath);
AddOption(joJCLDefMathPrecDouble, [goRadioButton], joJCLDefMath);
AddOption(joJCLDefMathPrecExtended, [goRadioButton, goChecked], joJCLDefMath);
AddOption(joJCLDefMathExtremeValues, [goChecked], joJCLDefMath);
AddOption(joJCLDefContainer, [goChecked], Parent);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 6) then
begin
AddOption(joJCLDefContainerAnsiStr, [goRadioButton], joJCLDefContainer);
AddOption(joJCLDefContainerWideStr, [goRadioButton], joJCLDefContainer);
AddOption(joJCLDefContainerUnicodeStr, [goRadioButton, goChecked], joJCLDefContainer);
end
else
begin
AddOption(joJCLDefContainerAnsiStr, [goRadioButton, goChecked], joJCLDefContainer);
AddOption(joJCLDefContainerWideStr, [goRadioButton], joJCLDefContainer);
AddOption(joJCLDefContainerUnicodeStr, [goRadioButton], joJCLDefContainer);
end;
AddOption(joJCLDefContainerNoStr, [goRadioButton], joJCLDefContainer);
{$IFDEF MSWINDOWS}
// debug options
AddOption(joJCLDefDebug, [goNoAutoCheck], Parent);
AddOption(joJCLDefHookDllExceptions, [goNoAutoCheck], joJCLDefDebug);
AddOption(joJCLDefDebugNoBinary, [goNoAutoCheck], joJCLDefDebug);
AddOption(joJCLDefDebugNoTD32, [goNoAutoCheck], joJCLDefDebug);
AddOption(joJCLDefDebugNoMap, [goNoAutoCheck], joJCLDefDebug);
AddOption(joJCLDefDebugNoExports, [goNoAutoCheck], joJCLDefDebug);
AddOption(joJCLDefDebugNoSymbols, [goNoAutoCheck], joJCLDefDebug);
{$ENDIF MSWINDOWS}
end;
procedure AddWrapperOptions(Parent: TInstallerOption);
begin
// PCRE options
AddOption(joJCLDefPCRE, [goChecked], Parent);
if Target.RadToolKind = brBorlandDevStudio then
begin
AddOption(joJCLDefPCREStaticLink, [goRadioButton, goChecked], joJCLDefPCRE);
AddOption(joJCLDefPCRELinkOnRequest, [goRadioButton], joJCLDefPCRE);
end
else
AddOption(joJCLDefPCRELinkOnRequest, [goRadioButton, goChecked], joJCLDefPCRE);
AddOption(joJCLDefPCRELinkDLL, [goRadioButton], joJCLDefPCRE);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 8) then
// Delphi XE and newer have a licensed version of JCL's pcre.pas named RegularExpressionsAPI
AddOption(joJCLDefPCRERTL, [goRadioButton], joJCLDefPCRE);
AddOption(joJCLDefPCRE8, [goChecked], joJCLDefPCRE);
AddOption(joJCLDefPCRE16, [goStandaloneParent], joJCLDefPCRE);
AddOption(joJCLDefPCREPrefer16, [], joJCLDefPCRE16);
// BZip2 options
AddOption(joJCLDefBZip2, [goChecked], Parent);
AddOption(joJCLDefBZip2StaticLink, [goRadioButton, goChecked], joJCLDefBZip2);
AddOption(joJCLDefBZip2LinkOnRequest, [goRadioButton], joJCLDefBZip2);
AddOption(joJCLDefBZip2LinkDLL, [goRadioButton], joJCLDefBZip2);
// ZLib options
AddOption(joJCLDefZLib, [goChecked], Parent);
AddOption(joJCLDefZLibStaticLink, [goRadioButton, goChecked], joJCLDefZLib);
AddOption(joJCLDefZLibLinkOnRequest, [goRadioButton], joJCLDefZLib);
AddOption(joJCLDefZLibLinkDLL, [goRadioButton], joJCLDefZLib);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 9) then
// Delphi XE2 ZLib is up-to-date and can directly be used by the JCL
AddOption(joJCLDefZLibRTL, [goRadioButton], joJCLDefZLib);
// Unicode options
AddOption(joJCLDefUnicode, [goChecked], Parent);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 6) then
// Delphi 2009 and newer have unit "Character"
AddOption(joJCLDefUnicodeRTLDatabase, [goRadioButton], joJCLDefUnicode);
AddOption(joJCLDefUnicodeRawData, [goRadioButton, goChecked], joJCLDefUnicode);
AddOption(joJCLDefUnicodeZLibData, [goRadioButton], joJCLDefUnicode);
AddOption(joJCLDefUnicodeBZip2Data, [goRadioButton], joJCLDefUnicode);
AddOption(joJCLDefUnicodeSilentFailure, [goChecked], joJCLDefUnicode);
{$IFDEF MSWINDOWS}
// Sevenzip options
AddOption(joJCLDef7z, [goChecked], Parent);
//AddOption(joJCLDef7zStaticLink, [goRadioButton], joDef7z);
AddOption(joJCLDef7zLinkOnRequest, [goRadioButton, goChecked], joJCLDef7z);
AddOption(joJCLDef7zLinkDLL, [goRadioButton], joJCLDef7z);
{$ENDIF MSWINDOWS}
end;
procedure AddEnvOptions(Parent: TInstallerOption);
begin
AddOption(joJCLEnvLibPath, [goChecked], Parent);
AddOption(joJCLEnvBrowsingPath, [goChecked], Parent);
if not Target.IsTurboExplorer then
AddOption(joJCLEnvDebugDCUPath, [goChecked], Parent);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) and TargetSupportsCBuilder then
AddOption(joJCLEnvIncludePath, [goChecked], Parent);
end;
procedure AddMakeOptions(Parent: TInstallerOption);
var
HppDirectory: string;
begin
AddOption(joJCLMakeRelease, [goStandAloneParent, goExpandable, goChecked], Parent);
AddOption(joJCLMakeDebug, [goStandAloneParent, goExpandable, goChecked], Parent);
if TargetSupportsCBuilder then
begin
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) then
HppDirectory := LoadResString(@RsCaptionHppDirectory)
else
HppDirectory := Target.VclIncludeDir[TargetPlatform];
AddOption(joJCLCopyHppFiles, [goChecked], OptionData[joJCLMake].Id,
Format(LoadResString(OptionData[joJCLCopyHppFiles].Caption), [HppDirectory]),
LoadResString(OptionData[joJCLCopyHppFiles].Hint));
AddOption(joJCLCheckHppFiles, [goChecked], joJCLMake);
end;
end;
procedure AddHelpOptions(Parent: TInstallerOption);
begin
{$IFDEF MSWINDOWS}
if Target.RadToolKind = brBorlandDevStudio then
begin
// TODO: expert help
if (Target.VersionNumber >= 3) and (Distribution.JclHxSHelpFileName <> '') and (TargetPlatform = bpWin32) then
begin
AddOption(joJCLHelp, [goChecked], Parent);
AddOption(joJCLhelpHxS, [goStandaloneParent,goChecked], joJCLHelp);
AddOption(joJCLHelpHxSPlugin, [goNoAutoCheck], joJCLHelpHxS);
end;
end
else
begin
if (Distribution.JclHlpHelpFileName <> '') or (Distribution.JclChmHelpFileName <> '') then
begin
AddOption(joJCLHelp, [goChecked], Parent);
if Distribution.JclHlpHelpFileName <> '' then
AddOption(joJCLHelpHlp, [goChecked], joJCLHelp);
if Distribution.JclChmHelpFileName <> '' then
AddOption(joJCLHelpChm, [goChecked], joJCLHelp);
end;
end;
{$ENDIF MSWINDOWS}
end;
procedure AddRepositoryOptions(Parent: TInstallerOption);
begin
// BDS has an expert for objects in the repository
if Target.RadToolKind <> brBorlandDevStudio then
begin
AddOption(joJCLExceptDlg, [], Parent);
if Target.SupportsVCL then
begin
AddOption(joJCLExceptDlgVCL, [], joJCLExceptDlg);
{$IFDEF MSWINDOWS}
AddOption(joJCLExceptDlgVCLSnd, [], joJCLExceptDlg);
{$ENDIF MSWINDOWS}
end;
end;
end;
procedure AddPackageOptions(Parent: TInstallerOption);
var
HppDirectory: string;
begin
if RunTimeInstallation and TargetSupportsCBuilder then
begin
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) then
HppDirectory := LoadResString(@RsCaptionHppDirectory)
else
HppDirectory := Target.VclIncludeDir[TargetPlatform];
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 4) then
begin
AddOption(joJCLDualPackages, [goStandAloneParent, goChecked], Parent);
AddOption(joJCLCopyPackagesHppFiles, [goChecked], OptionData[joJCLDualPackages].Id,
Format(LoadResString(OptionData[joJCLCopyPackagesHppFiles].Caption), [HppDirectory]),
LoadResString(OptionData[joJCLCopyPackagesHppFiles].Hint));
end
else
AddOption(joJCLCopyPackagesHppFiles, [goChecked], OptionData[Parent].Id,
Format(LoadResString(OptionData[joJCLCopyPackagesHppFiles].Caption), [HppDirectory]),
LoadResString(OptionData[joJCLCopyPackagesHppFiles].Hint));
end;
AddOption(joJCLMapCreate, [goExpandable, goStandaloneParent, goNoAutoCheck], Parent);
{$IFDEF MSWINDOWS}
AddOption(joJCLJdbgCreate, [goExpandable, goStandaloneParent], joJCLMapCreate);
AddOption(joJCLJdbgInsert, [goNoAutoCheck], joJCLMapCreate);
AddOption(joJCLMapDelete, [goNoAutoCheck], joJCLMapCreate);
{if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber = 3)
and (Target.Edition = deStd) then
CopyFakeXmlRtlPackage;
TODO: CopyFakeXmlRtlPackage
}
{$ENDIF MSWINDOWS}
end;
procedure AddExpertOptions(Parent: TInstallerOption);
{$IFDEF MSWINDOWS}
var
ExpertOptions: TJediInstallGUIOptions;
{$ENDIF MSWINDOWS}
begin
// TODO :
// It has been reported that IDE experts don't work under Win98.
// Leave these options unchecked for Win9x/WinME until that has been examined.
{$IFDEF MSWINDOWS}
if IsWinNT then
ExpertOptions := [goChecked]
else
ExpertOptions := [];
AddOption(joJCLExperts, [goExpandable, goChecked], Parent);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber <= 2) then
// design packages are not loaded by C#Builder 1 and Delphi 8
AddOption(joJCLExpertsDLL, [goRadioButton, goChecked], joJCLExperts)
else
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 3) then
// expert DLLs are unstable on Delphi 2005 and BDS 2006
// (problems while adding menu items in menu not loaded yet)
AddOption(joJCLExpertsDsgnPackages, [goRadioButton, goChecked], joJCLExperts)
else
begin
AddOption(joJCLExpertsDLL, [goRadioButton], joJCLExperts);
AddOption(joJCLExpertsDsgnPackages, [goRadioButton, goChecked], joJCLExperts);
end;
if RunTimeInstallation then
begin
AddOption(joJCLExpertDebug, ExpertOptions, joJCLExperts);
AddOption(joJCLExpertAnalyzer, ExpertOptions, joJCLExperts);
if Target.RadToolKind <> brBorlandDevStudio then
AddOption(joJCLExpertUses, ExpertOptions, joJCLExperts);
AddOption(joJCLExpertSimdView, ExpertOptions, joJCLExperts);
AddOption(joJCLExpertRepository, ExpertOptions, joJCLExperts);
// the Stack Tracer Viewer experts is for Delphi targets only
if (Target.RadToolKind = brDelphi) or
((Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 3)) then
AddOption(joJCLExpertStackTraceViewer, ExpertOptions, joJCLExperts);
end;
AddOption(joJCLExpertFavorite, ExpertOptions, joJCLExperts);
AddOption(joJCLExpertVersionControl, [goNoAutoCheck], joJCLExperts);
if (Target.RadToolKind <> brBorlandDevStudio) and (Target.VersionNumber <= 6) then
AddOption(joJCLExpertThreadNames, ExpertOptions, joJCLExperts);
{$ENDIF MSWINDOWS}
end;
procedure AddDemoNodes;
var
I: Integer;
ADemoList: TStrings;
DemoOption: Integer;
FileName: string;
begin
AddOption(joJCLMakeDemos, [goNoAutoCheck], joJediCodeLibrary);
ADemoList := GetDemoList;
for I := 0 to ADemoList.Count - 1 do
begin
FileName := ExtractRelativePath(Distribution.JclExamplesDir, ADemoList.Strings[I]);
DemoOption := InstallCore.AddInstallOption(FileName);
ADemoList.Objects[I] := TObject(DemoOption);
GUIPage.AddInstallOption(DemoOption, [], ExtractFileName(FileName), FileName, OptionData[joJCLMakeDemos].Id);
end;
end;
procedure LoadStaticValues(AConfiguration: IJediConfiguration);
var
IncludeContent: AnsiString;
DefineName: string;
JppState: TPppState;
JppParser: TJppParser;
Option: TInstallerOption;
begin
if FileExists(IncludeFileName) then
begin
IncludeContent := FileToString(IncludeFileName);
JppState := TPppState.Create;
try
JppState.Options := [poProcessDefines];
JppParser := TJppParser.Create(string(IncludeContent), JppState);
try
JppParser.Parse;
finally
JppParser.Free;
end;
for Option := Low(JclDefineNames) to High(JclDefineNames) do
begin
DefineName := JclDefineNames[Option];
if DefineName <> '' then
AConfiguration.OptionAsBool[TargetName, OptionData[Option].Id] := JppState.Defines[DefineName] = ttDefined;
end;
finally
JppState.Free;
end;
end;
end;
procedure LoadValues;
var
AConfiguration: IJediConfiguration;
Option: TInstallerOption;
Id, Index: Integer;
StoredValue: string;
ADemoList: TStrings;
ResetDefaultValue: Boolean;
begin
AConfiguration := InstallCore.Configuration;
if not Assigned(AConfiguration) then
Exit;
if AConfiguration.SectionExists(TargetName) then
begin
ResetDefaultValue := not AConfiguration.OptionAsBool[TargetName, OptionData[joJediCodeLibrary].Id];
for Option := Low(TInstallerOption) to High(TInstallerOption) do
begin
Id := OptionData[Option].Id;
if AConfiguration.ValueExists(TargetName, Id) then
GUIPage.OptionChecked[Id] := AConfiguration.OptionAsBool[TargetName, Id]
else
if ResetDefaultValue then
GUIPage.OptionChecked[Id] := False;
end;
if not ResetDefaultValue then
// options in included files jcl/source/include/jclXX.inc overrides stored settings
LoadStaticValues(AConfiguration);
end
else
begin
GUIPage.OptionChecked[OptionData[joJediCodeLibrary].Id] := True;
// options in included files jcl/source/include/jclXX.inc overrides stored settings
LoadStaticValues(AConfiguration);
end;
if not Target.IsTurboExplorer then
begin
if FRunTimeInstallation then
begin
ADemoList := GetDemoList;
if AConfiguration.SectionExists(FDemoSectionName) then
for Index := 0 to ADemoList.Count - 1 do
begin
Id := Integer(ADemoList.Objects[Index]);
GUIPage.OptionChecked[Id] := AConfiguration.OptionAsBool[FDemoSectionName, Id];
end;
end;
StoredValue := AConfiguration.OptionAsStringByName[TargetName, OptionNameBPLPath];
if StoredValue = '' then
StoredValue := Target.BPLOutputPath[FTargetPlatform];
GUIPage.Directories[FGUIBPLPathIndex] := StoredValue;
if Target.RadToolKind = brCppBuilder then
StoredValue := AConfiguration.OptionAsStringByName[TargetName, OptionNameBPIPath]
else
StoredValue := AConfiguration.OptionAsStringByName[TargetName, OptionNameDCPPath];
if StoredValue = '' then
StoredValue := FJclDcpPath;
GUIPage.Directories[FGUIDCPPathIndex] := StoredValue;
if FGUIHPPPathIndex >= 0 then
begin
StoredValue := AConfiguration.OptionAsStringByName[TargetName, OptionNameHPPPath];
if StoredValue = '' then
StoredValue := Target.VclIncludeDir[FTargetPlatform];
GUIPage.Directories[FGUIHPPPathIndex] := StoredValue;
end;
end;
end;
begin
FGUI := InstallCore.InstallGUI;
if not Assigned(GUI) then
Exit;
FGUIPage := GUI.CreateInstallPage;
GUIPage.Caption := TargetName;
GUIPage.SetIcon(Target.IdeExeFileName);
AddOption(joJediCodeLibrary, [goExpandable, goChecked], JediTargetOption);
if RunTimeInstallation then
begin
// conditional defines
AddOption(joJCLDef, [goExpandable, goChecked], OptionData[joJediCodeLibrary].Id);
AddDefOptions(joJCLDef);
// wrapper options
AddOption(joJCLDefWrappers, [goChecked], OptionData[joJCLDef].Id);
AddWrapperOptions(joJCLDefWrappers);
AddOption(joJCLEnvironment, [goExpandable, goChecked], OptionData[joJediCodeLibrary].Id);
AddEnvOptions(joJCLEnvironment);
if not Target.IsTurboExplorer then
begin
AddOption(joJCLMake, [goExpandable, goChecked], OptionData[joJediCodeLibrary].Id);
AddMakeOptions(joJCLMake);
end;
AddHelpOptions(joJediCodeLibrary);
AddRepositoryOptions(joJediCodeLibrary);
end;
if not Target.IsTurboExplorer then
begin
AddOption(joJCLPackages, [goStandAloneParent, goExpandable, goChecked], joJediCodeLibrary);
AddPackageOptions(joJCLPackages);
{$IFDEF MSWINDOWS}
if TargetPlatform = bpWin32 then //there is no 64-bit IDE yet
AddExpertOptions(joJCLPackages);
{$ENDIF MSWINDOWS}
if RunTimeInstallation then
AddDemoNodes;
end;
GUIPage.InitDisplay;
if not Target.IsTurboExplorer then
begin
FGUIBPLPathIndex := GUIPage.AddDirectory(LoadResString(@RsCaptionBPLPath));
if Target.RadToolKind = brCppBuilder then
FGUIDCPPathIndex := GUIPage.AddDirectory(LoadResString(@RsCaptionBPIPath))
else
FGUIDCPPathIndex := GUIPage.AddDirectory(LoadResString(@RsCaptionDCPPath));
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) and TargetSupportsCBuilder then
FGUIHPPPathIndex := GUIPage.AddDirectory(LoadResString(@RsCaptionHPPPath))
else
FGUIHPPPathIndex := -1;
end;
LoadValues;
end;
function TJclInstallation.Install: Boolean;
var
AProfilesManager: IJediProfilesManager;
procedure WriteIntroduction;
var
Personality: TJclBorPersonality;
Index: Integer;
begin
WriteLog(StrRepeat('=', 80));
WriteLog(Distribution.Version);
WriteLog('');
WriteLog(StrPadRight(StrRepeat('=', 10) + TargetName, 80, '='));
WriteLog('');
WriteLog(LoadResString(@RsLogInstalledPersonalities));
for Personality := Low(TJclBorPersonality) to High(TJclBorPersonality) do
if Personality in Target.Personalities then
begin
WriteLog(JclBorPersonalityDescription[Personality]);
end;
WriteLog('');
WriteLog(StrRepeat('=', 80));
WriteLog('');
WriteLog(LoadResString(@RsLogMultipleProfile));
if AProfilesManager.MultipleProfileMode then
begin
for Index := 0 to AProfilesManager.ProfileCount - 1 do
if IsProfileEnabled[Index] then
WriteLog(AProfilesManager.ProfileNames[Index]);
end
else
WriteLog(LoadResString(@RsLogSingleProfile));
WriteLog('');
WriteLog(StrRepeat('=', 80));
WriteLog('');
end;
function CheckDirectories: Boolean;
function CheckDirectory(const Directory: string; ErrorMessage: PResStringRec): Boolean;
begin
Result := DirectoryExists(Directory);
if not Result then
begin
if not Assigned(GUI) then
WriteLog(Format(LoadResString(ErrorMessage), [Directory]))
else
if GUI.Dialog(Format(LoadResString(@RsWarningCreatePath), ['BPL']), dtWarning, [drYes, drNo]) = drYes then
begin
Result := ForceDirectories(Directory);
if not Result then
GUI.Dialog(Format(LoadResString(@RsErrorCantCreatePath), [Directory]), dtError, [drCancel]);
end;
end;
end;
begin
Result := True;
{$IFDEF MSWINDOWS}
if not OptionChecked[joJCLPackages] and Assigned(GUI) and not Target.IsTurboExplorer then
Result := GUI.Dialog(LoadResString(@RsWarningPackageNodeNotSelected), dtConfirmation, [drYes, drNo]) = drYes;
{$ENDIF MSWINDOWS}
if Result and OptionChecked[joJCLPackages] then
begin
Result := CheckDirectory(GetBplPath, @RsLogInvalidBplPath)
and CheckDirectory(GetDcpPath, @RsLogInvalidDcpPath);
if OptionChecked[joJCLCopyHppFiles] or OptionChecked[joJCLCopyPackagesHppFiles] then
Result := Result and CheckDirectory(GetHppPath, @RsLogInvalidHppPath);
end;
end;
function SetStaticOptions: Boolean;
function SaveDefines(Defines: TStrings): Boolean;
var
IncludeLine, Symbol: string;
IncludeFile: TStrings;
IndexLine, DefinePos, SymbolEnd: Integer;
Defined, NotDefined: Boolean;
const
DefineText = '$DEFINE';
NotDefineText = '.' + DefineText;
begin
WriteLog(LoadResString(@RsLogConditionalDefines));
Result := True;
try
IncludeFile := TStringList.Create;
try
IncludeFile.LoadFromFile(Distribution.JclIncludeTemplate);
WriteLog(Format(LoadResString(@RsLogLoadTemplate), [Distribution.JclIncludeTemplate]));
for IndexLine := 0 to IncludeFile.Count - 1 do
begin
IncludeLine := IncludeFile.Strings[IndexLine];
DefinePos := AnsiPos(DefineText, UpperCase(IncludeLine));
if DefinePos > 1 then
begin
Defined := IncludeLine[DefinePos - 1] = '{';
NotDefined := IncludeLine[DefinePos - 1] = '.';
if Defined or NotDefined then
begin
Inc(DefinePos, Length(DefineText));
while CharIsWhiteSpace(IncludeLine[DefinePos]) do
Inc(DefinePos);
SymbolEnd := DefinePos;
while CharIsValidIdentifierLetter(IncludeLine[SymbolEnd]) do
Inc(SymbolEnd);
Symbol := Copy(IncludeLine, DefinePos, SymbolEnd - DefinePos);
DefinePos := Defines.IndexOf(Symbol);
if (DefinePos >= 0) and NotDefined then
IncludeLine := StringReplace(IncludeLine, NotDefineText, DefineText, [rfIgnoreCase]);
if (DefinePos < 0) and Defined then
IncludeLine := StringReplace(IncludeLine, DefineText, NotDefineText, [rfIgnoreCase]);
IncludeFile.Strings[IndexLine] := IncludeLine;
end;
end;
end;
IncludeFile.SaveToFile(IncludeFileName);
WriteLog(Format(LoadResString(@RsLogSaveIncludeFile), [IncludeFileName]));
finally
IncludeFile.Free;
end;
except
Result := False;
end;
end;
var
Option: TInstallerOption;
Defines: TStrings;
begin
Defines := TStringList.Create;
try
if OptionChecked[joJCLDef] then
begin
MarkOptionBegin(joJCLDef);
for Option := Low(JclDefineNames) to High(JclDefineNames) do
if OptionChecked[Option] then
begin
MarkOptionBegin(Option);
Defines.Add(JclDefineNames[Option]);
MarkOptionEnd(Option, True);
end;
MarkOptionEnd(joJCLDef, True);
end;
if OptionChecked[joJCLMapCreate] then
begin
MarkOptionBegin(joJCLMapCreate);
Target.MapCreate := True;
MarkOptionEnd(joJCLMapCreate, True);
end
else
Target.MapCreate := False;
{$IFDEF MSWINDOWS}
if OptionChecked[joJCLJdbgCreate] then
begin
MarkOptionBegin(joJCLJdbgCreate);
Target.JdbgCreate := True;
MarkOptionEnd(joJCLJdbgCreate, True);
end
else
Target.JdbgCreate := False;
if OptionChecked[joJCLJdbgInsert] then
begin
MarkOptionBegin(joJCLJdbgInsert);
Target.JdbgInsert := True;
MarkOptionEnd(joJCLJdbgInsert, True);
end
else
Target.JdbgInsert := False;
if OptionChecked[joJCLMapDelete] then
begin
MarkOptionBegin(joJCLMapDelete);
Target.MapDelete := True;
MarkOptionEnd(joJCLMapDelete, True);
end
else
Target.MapDelete := False;
if Target is TJclBDSInstallation then
begin
if OptionChecked[joJCLDualPackages] then
begin
MarkOptionBegin(joJCLDualPackages);
TJclBDSInstallation(Target).DualPackageInstallation := True;
if OptionChecked[joJCLCopyPackagesHppFiles] then
begin
MarkOptionBegin(joJCLCopyPackagesHppFiles);
MarkOptionEnd(joJCLCopyPackagesHppFiles, True);
end;
MarkOptionEnd(joJCLDualPackages, True);
end
else
TJclBDSInstallation(Target).DualPackageInstallation := False;
end;
{$ENDIF MSWINDOWS}
// no conditional defines for C#Builder 1 and Delphi 8
Result := ((Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber <= 2)) or SaveDefines(Defines);
finally
Defines.Free;
end;
end;
function SetEnvironment(ATarget: TJclBorRADToolInstallation): Boolean;
begin
Result := True;
if OptionChecked[joJCLEnvironment] then
begin
MarkOptionBegin(joJCLEnvironment);
if OptionChecked[joJCLEnvLibPath] then
begin
MarkOptionBegin(joJCLEnvLibPath);
Result := ATarget.AddToLibrarySearchPath(FLibReleaseDir, FTargetPlatform) and ATarget.AddToLibrarySearchPath(Distribution.JclIncludeDir, FTargetPlatform);
if Result then
begin
WriteLog(Format(LoadResString(@RsLogAddLibrarySearchPath2), [FLibReleaseDir, Distribution.JclIncludeDir]));
{$IFDEF MSWINDOWS}
if (ATarget.RadToolKind = brBorlandDevStudio) and OptionChecked[joJCLDualPackages] and TargetSupportsCBuilder then
with TJclBDSInstallation(ATarget) do
begin
Result := AddToCppSearchPath(FLibReleaseDir, FTargetPlatform) and AddToCppSearchPath(Distribution.JclIncludeDir, FTargetPlatform) and
((IDEVersionNumber < 5) or AddToCppLibraryPath(FLibReleaseDir, FTargetPlatform));
if Result then
WriteLog(Format(LoadResString(@RsLogAddCppSearchPath2), [FLibReleaseDir, Distribution.JclIncludeDir]))
else
WriteLog(LoadResString(@RsLogFailedAddCppSearchPath));
end;
{$ENDIF MSWINDOWS}
if ATarget.IsTurboExplorer then
begin
Result := ATarget.AddToLibrarySearchPath(Distribution.JclSourcePath, FTargetPlatform);
if Result then
WriteLog(Format(LoadResString(@RsLogAddLibrarySearchPath1), [Distribution.JclSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedAddLibrarySearchPath));
end;
end
else
WriteLog(LoadResString(@RsLogFailedAddLibrarySearchPath));
MarkOptionEnd(joJCLEnvLibPath, Result);
end;
if Result and OptionChecked[joJCLEnvBrowsingPath] then
begin
MarkOptionBegin(joJCLEnvBrowsingPath);
Result := ATarget.AddToLibraryBrowsingPath(Distribution.JclSourcePath, FTargetPlatform);
if Result then
begin
WriteLog(Format(LoadResString(@RsLogAddLibraryBrowsingPath), [Distribution.JclSourcePath]));
{$IFDEF MSWINDOWS}
if (ATarget.RadToolKind = brBorlandDevStudio) and TargetSupportsCBuilder and OptionChecked[joJCLDualPackages] then
with TJclBDSInstallation(ATarget) do
begin
Result := AddToCppBrowsingPath(Distribution.JclSourcePath, FTargetPlatform);
if Result then
WriteLog(Format(LoadResString(@RsLogAddCppBrowsingPath), [Distribution.JclSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedAddCppBrowsingPath));
end;
{$ENDIF MSWINDOWS}
end
else
WriteLog(LoadResString(@RsLogFailedAddLibraryBrowsingPath));
MarkOptionEnd(joJCLEnvBrowsingPath, Result);
end;
if Result and OptionChecked[joJCLEnvDebugDCUPath] then
begin
MarkOptionBegin(joJCLEnvDebugDCUPath);
Result := ATarget.AddToDebugDCUPath(FLibDebugDir, FTargetPlatform);
if Result then
WriteLog(Format(LoadResString(@RsLogAddDebugDCUPath), [FLibDebugDir]))
else
WriteLog(LoadResString(@RsLogFailedAddDebugDCUPath));
MarkOptionEnd(joJCLEnvDebugDCUPath, Result);
end;
if Result and OptionChecked[joJCLEnvIncludePath] then
begin
MarkOptionBegin(joJCLEnvIncludePath);
if (OptionChecked[joJCLCopyHppFiles] or OptionChecked[joJCLCopyPackagesHppFiles]) and
(GetHppPath <> ATarget.VclIncludeDir[TargetPlatform]) then
begin
Result := (ATarget as TJclBDSInstallation).AddToCppIncludePath(GetHppPath, TargetPlatform);
if Result then
WriteLog(Format(LoadResString(@RsLogAddIncludePath), [GetHppPath]))
else
WriteLog(LoadResString(@RsLogFailedAddIncludePath));
end
else
WriteLog(Format(LoadResString(@RsLogIgnoreAddIncludePath), [GetHppPath]));
MarkOptionEnd(joJCLEnvIncludePath, Result);
end;
MarkOptionEnd(joJCLEnvironment, Result);
end;
end;
function MakeUnits: Boolean;
function CheckHppFiles: Boolean;
var
SaveDir, Options: string;
UnitList, CppFile: TStrings;
I: Integer;
begin
SaveDir := GetCurrentDir;
try
SetCurrentDir(Distribution.JclPath);
UnitList := TStringList.Create;
CppFile := TStringList.Create;
try
for I := Low(JclSrcPaths) to High(JclSrcPaths) do
BuildFileList(PathAddSeparator(JclSrcPaths[I]) + '*.pas', faAnyFile, UnitList, False);
// these headers are known to fail
UnitList.Delete(UnitList.IndexOf('JclDotNet.pas'));
UnitList.Delete(UnitList.IndexOf('JclNTFS.pas'));
UnitList.Delete(UnitList.IndexOf('mscorlib_TLB.pas'));
if FTargetPlatform = bpWin64 then
begin
UnitList.Delete(UnitList.IndexOf('pcre.pas')); // compiler: 'PCRE not supported on WIN64: use standard header'
UnitList.Delete(UnitList.IndexOf('JclPCRE.pas')); // uses pcre.pas => same "not supported" error
UnitList.Delete(UnitList.IndexOf('JclStringLists.pas')); // uses JclPCRE.pas => same "not supported" error
end;
SetCurrentDir(Format('%sinstall%sHeaderTest', [Distribution.JclPath, DirDelimiter]));
TStringList(UnitList).CustomSort(SortFileNameA2Z);
CppFile.Clear;
CppFile.Add('#pragma hdrstop');
for I := 0 to UnitList.Count - 1 do
CppFile.Add(Format('#include <%s>', [ChangeFileExt(UnitList.Strings[I], '.hpp')]));
CppFile.SaveToFile('jcl_a2z.cpp');
TStringList(UnitList).CustomSort(SortFileNameZ2A);
CppFile.Clear;
CppFile.Add('#pragma hdrstop');
for I := 0 to UnitList.Count - 1 do
CppFile.Add(Format('#include <%s>', [ChangeFileExt(UnitList.Strings[I], '.hpp')]));
CppFile.SaveToFile('jcl_z2a.cpp');
finally
UnitList.Free;
CppFile.Free;
end;
Target.BCC.Options.Clear;
Target.BCC.Options.Add('-c'); // compile only
if FTargetPlatform <> bpWin64 then
begin
Target.BCC.Options.Add('-Ve'); // compatibility
Target.BCC.Options.Add('-b'); // enum to be at least 4 bytes
Target.BCC.Options.Add('-k-'); // no standard stack frame
Target.BCC.Options.Add('-X'); // no autodependencies
Target.BCC.Options.Add('-a8'); // data alignment
{$IFDEF MSWINDOWS}
Target.BCC.Options.Add('-tWM'); // code format
{$ELSE ~ MSWINDOWS}
Target.BCC.Options.Add('-tC'); // code format
{$ENDIF ~MSWINDOWS}
Target.BCC.Options.Add('-w-par'); // warning
Target.BCC.Options.Add('-w-aus'); // warning
Target.BCC.AddPathOption('I', Format('%s%s%s%sinclude%s%s', [Distribution.JclSourcePath, DirSeparator, Target.RootDir, DirDelimiter, DirSeparator, Target.VclIncludeDir[FTargetPlatform]]));
Target.BCC.AddPathOption('I', ExcludeTrailingPathDelimiter(GetHppPath));
end
else
begin
Target.BCC.Options.Add('-D _DEBUG');
Target.BCC.Options.Add('-g');
Target.BCC.Options.Add('-fno-limit-debug-info');
Target.BCC.Options.Add('-fborland-extensions');
Target.BCC.Options.Add('-nobuiltininc');
Target.BCC.Options.Add('-fexceptions');
Target.BCC.Options.Add('-fcxx-exceptions');
Target.BCC.Options.Add('-mstackrealign');
Target.BCC.Options.Add('-fno-spell-checking');
Target.BCC.Options.Add('-fno-use-cxa-atexit');
Target.BCC.Options.Add('-x c++');
Target.BCC.Options.Add('-std=c++11');
Target.BCC.Options.Add('-O0');
Target.BCC.Options.Add('-tC');
Target.BCC.Options.Add('-tM');
Target.BCC.Options.Add('-I "' + Distribution.JclSourcePath + '"');
Target.BCC.Options.Add('-I "' + Target.RootDir + '"');
Target.BCC.Options.Add('-I "' + ExcludeTrailingPathDelimiter(GetHppPath) + '"');
Target.BCC.Options.Add('-isystem "' + Target.VclIncludeDir[FTargetPlatform] + '"');
end;
Options := StringsToStr(Target.BCC.Options, NativeSpace);
Result := Target.BCC.Execute(Options + ' "jcl_a2z.cpp"')
and Target.BCC.Execute(Options + ' "jcl_z2a.cpp"');
finally
DeleteFile('jcl_a2z.cpp');
DeleteFile('jcl_a2z.obj');
DeleteFile('jcl_z2a.cpp');
DeleteFile('jcl_z2a.obj');
SetCurrentDir(SaveDir);
end;
if not Result and Assigned(GUI) then
Result := GUI.Dialog(LoadResString(@RsHppCheckFailure), dtWarning, [drYes, drNo]) = drYes;
end;
var
I: Integer;
begin
// As people may only buy Delphi (without C++ Builder), we must make sure that bcc(32-64) is available before accessing the property
if FTargetPlatform = bpWin64 then
begin
if clBcc64 in Target.CommandLineTools then
Target.BCC := (Target as TJclBDSInstallation).BCC64
end
else if clBcc32 in Target.CommandLineTools then
begin
Target.BCC := Target.BCC32;
end;
Result := True;
if OptionChecked[joJCLMake] then
begin
MarkOptionBegin(joJCLMake);
if OptionChecked[joJCLMakeRelease] then
begin
MarkOptionBegin(joJCLMakeRelease);
for I := Low(JclSrcPaths) to High(JclSrcPaths) do
Result := Result and CompileLibraryUnits(JclSrcPaths[I], False);
MarkOptionEnd(joJCLMakeRelease, Result);
end;
if Result and OptionChecked[joJCLMakeDebug] then
begin
MarkOptionBegin(joJCLMakeDebug);
for I := Low(JclSrcPaths) to High(JclSrcPaths) do
Result := Result and CompileLibraryUnits(JclSrcPaths[I], True);
MarkOptionEnd(joJCLMakeDebug, Result);
end;
if Result and OptionChecked[joJCLCheckHppFiles] then
begin
// Only check the HPP files if we have a C++ Compiler
if FileExists(Target.BCC.BinDirectory + Target.BCC.GetExeName) then
begin
MarkOptionBegin(joJCLCheckHppFiles);
WriteLog('Checking .hpp files');
Result := Result and CheckHppFiles;
MarkOptionEnd(joJCLCheckHppFiles, Result);
end;
end;
MarkOptionEnd(joJCLMake, Result);
end;
end;
function CompilePackages: Boolean;
begin
Result := True;
if OptionChecked[joJCLPackages] then
begin
MarkOptionBegin(joJCLPackages);
if (Target is TJclBDSInstallation) and (Target.IDEVersionNumber >= 9) and (FTargetPlatform = bpWin64) then
Target.DCC := (Target as TJclBDSInstallation).DCC64
else
Target.DCC := Target.DCC32;
Result := CompilePackage(FullPackageFileName(Target, JclPackage))
and CompilePackage(FullPackageFileName(Target, JclContainersPackage))
and CompilePackage(FullPackageFileName(Target, JclDeveloperToolsPackage));
if Result and Target.SupportsVCL then
Result := Result and CompilePackage(FullPackageFileName(Target, JclVclPackage));
MarkOptionEnd(joJCLPackages, Result);
end;
end;
function RegisterPackages(ATarget: TJclBorRADToolInstallation): Boolean;
{$IFDEF MSWINDOWS}
var
PathEnvVar: string;
{$ENDIF MSWINDOWS}
begin
{$IFDEF MSWINDOWS}
InstallJediRegInformation(ATarget.ConfigDataLocation, 'JCL', Iff((Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 9), GetPlatformStr, ''),
Format('%d.%d.%d.%d', [JclVersionMajor, JclVersionMinor, JclVersionRelease, JclVersionBuild]),
GetDcpPath, GetBplPath, Distribution.JclPath, ATarget.RootKey);
PathEnvVar := RegReadStringDef(ATarget.RootKey, RegHKCUEnvironmentVar, PathEnvironmentVar, '');
PathListIncludeItems(PathEnvVar, RegReadStringDef(HKLM, RegHKLMEnvironmentVar, PathEnvironmentVar, ''));
ExpandEnvironmentVar(PathEnvVar);
if (PathListItemIndex(PathEnvVar, GetBplPath) = -1) and (PathListItemIndex(PathEnvVar, PathAddSeparator(GetBplPath)) = -1)
and Assigned(GUI) and (FTargetPlatform = bpWin32) and (GUI.Dialog(LoadResString(@RsWarningAddPathToEnvironment), dtWarning, [drYes, drNo]) = drYes) then
begin
PathEnvVar := RegReadStringDef(ATarget.RootKey, RegHKCUEnvironmentVar, PathEnvironmentVar, '');
PathListIncludeItems(PathEnvVar, GetBplPath);
RegWriteString(ATarget.RootKey, RegHKCUEnvironmentVar, PathEnvironmentVar, PathEnvVar);
end;
{$ENDIF MSWINDOWS}
Result := True;
end;
{$IFDEF MSWINDOWS}
function CompileExperts: Boolean;
var
Option: TInstallerOption;
DLLExperts: Boolean;
begin
Result := True;
if OptionChecked[joJCLExperts] then
begin
MarkOptionBegin(joJCLExperts);
DLLExperts := False;
// dual packages useless for experts
if Target.RadToolKind = brBorlandDevStudio then
TJclBDSInstallation(Target).DualPackageInstallation := False;
for Option := Low(SupportedExperts) to High(SupportedExperts) do
if OptionChecked[Option] then
begin
MarkOptionBegin(Option);
if Option = joJCLExpertsDsgnPackages then
// nothing, default value
else
if Option = joJCLExpertsDLL then
DLLExperts := OptionChecked[Option]
else
if DLLExperts then
Result := CompileExpert(FullLibraryFileName(Target, SupportedExperts[Option]))
else
Result := CompilePackage(FullPackageFileName(Target, SupportedExperts[Option]));
MarkOptionEnd(Option, Result);
if not Result then
Break;
end;
MarkOptionEnd(joJCLExperts, Result);
end;
end;
function RegisterExperts(ATarget: TJclBorRADToolInstallation): Boolean;
var
Option: TInstallerOption;
DLLExperts: Boolean;
ProjectFileName: string;
begin
Result := True;
if OptionChecked[joJCLExperts] then
begin
MarkOptionBegin(joJCLExperts);
DLLExperts := False;
// dual packages useless for experts
if ATarget.RadToolKind = brBorlandDevStudio then
TJclBDSInstallation(ATarget).DualPackageInstallation := False;
for Option := Low(SupportedExperts) to High(SupportedExperts) do
if OptionChecked[Option] then
begin
MarkOptionBegin(Option);
if Option = joJCLExpertsDsgnPackages then
// nothing, default value
else
if Option = joJCLExpertsDLL then
DLLExperts := OptionChecked[Option]
else
if DLLExperts then
begin
ProjectFileName := Distribution.JclPath + FullLibraryFileName(ATarget, SupportedExperts[Option]);
Result := ATarget.RegisterExpert(ProjectFileName, GetBplPath, PathExtractFileNameNoExt(ProjectFileName));
end
else
begin
ProjectFileName := Distribution.JclPath + FullPackageFileName(ATarget, SupportedExperts[Option]);
Result := ATarget.RegisterPackage(ProjectFileName, GetBplPath, PathExtractFileNameNoExt(ProjectFileName));
end;
MarkOptionEnd(Option, Result);
if not Result then
Break;
end;
MarkOptionEnd(joJCLExperts, Result);
end;
end;
{$ENDIF MSWINDOWS}
function InstallRepository: Boolean;
function AddDialogToRepository(const DialogName: string;
const DialogFileName: string; const DialogIconFileName: string;
const Designer: string): Boolean;
begin
Result := True;
try
WriteLog(Format(LoadResString(@RsLogInstalling), [DialogName]));
Target.Repository.AddObject(DialogFileName, BorRADToolRepositoryFormTemplate,
Target.Repository.FindPage(LoadResString(@RsExceptDlgPage), 1), DialogName, DialogIconFileName,
LoadResString(@RsExceptDlgDescription), LoadResString(@RsExceptDlgAuthor), BorRADToolRepositoryDesignerDfm);
WriteLog('-> ' + DialogFileName);
WriteLog('-> ' + DialogIconFileName);
WriteLog(LoadResString(@RsLogDone));
except
Result := False;
end;
end;
begin
Result := True;
if OptionChecked[joJCLExceptDlg] then
begin
MarkOptionBegin(joJCLExceptDlg);
{$IFDEF MSWINDOWS}
if OptionChecked[joJCLExceptDlgVCL] then
begin
MarkOptionBegin(joJCLExceptDlgVCL);
Result := AddDialogToRepository(LoadResString(@RsExceptDlgVclName), Distribution.VclDialogFileName,
Distribution.VclDialogIconFileName, BorRADToolRepositoryDesignerDfm);
MarkOptionEnd(joJCLExceptDlgVCL, Result);
end;
if Result and OptionChecked[joJCLExceptDlgVCLSnd] then
begin
MarkOptionBegin(joJCLExceptDlgVCLSnd);
Result := AddDialogToRepository(LoadResString(@RsExceptDlgVclSndName), Distribution.VclDialogSendFileName,
Distribution.VclDialogSendIconFileName, BorRADToolRepositoryDesignerDfm);
MarkOptionEnd(joJCLExceptDlgVCLSnd, Result);
end;
{$ENDIF MSWINDOWS}
MarkOptionEnd(joJCLExceptDlg, Result);
end;
end;
{$IFDEF MSWINDOWS}
function InstallHelpFiles: Boolean;
function AddHelpToIdeTools: Boolean;
function AddFile(const Title, FileName: string): Boolean;
var
ToolsIndex: Integer;
IdeTool: TJclBorRADToolIdeTool;
begin
Result := True;
try
IdeTool := Target.IdeTools;
ToolsIndex := IdeTool.Count;
IdeTool.Count := ToolsIndex + 4;
IdeTool.Title[ToolsIndex] := Format(Title, [JclVersionMajor, JclVersionMinor]);
IdeTool.Path[ToolsIndex] := HHFileName;
IdeTool.Parameters[ToolsIndex] := StrDoubleQuote(FileName);
IdeTool.WorkingDir[ToolsIndex] := Distribution.JclPath;
except
Result := False;
end;
if Result then
WriteLog(Format(LoadResString(@RsLogAddIDETools), [FileName, Target.RADToolName]))
else
WriteLog(LoadResString(@RsLogFailedAddIDETools));
end;
begin
Result := AddFile(JclHelpTitle, Distribution.JclChmHelpFileName) and
AddFile(JclContainersHelpTitle, Distribution.JclContainersChmHelpFileName) and
AddFile(JclDeveloperToolsHelpTitle, Distribution.JclDeveloperToolsChmHelpFileName) and
AddFile(JclVclHelpTitle, Distribution.JclVclChmHelpFileName);
end;
function AddHelpToOpenHelp: Boolean;
function AddFile(const FileName, IndexName: string): Boolean;
begin
Result := Target.OpenHelp.AddHelpFile(FileName, IndexName);
if Result then
WriteLog(Format(LoadResString(@RsLogAddOpenHelp), [FileName, Target.RADToolName]))
else
WriteLog(LoadResString(@RsLogFailedAddOpenHelp));
end;
begin
Result := AddFile(Distribution.JclHlpHelpFileName, JclHelpIndexName) and
AddFile(Distribution.JclContainersHlpHelpFileName, JclContainersHelpIndexName) and
AddFile(Distribution.JclDeveloperToolsHlpHelpFileName, JclDeveloperToolsHelpIndexName) and
AddFile(Distribution.JclVclHlpHelpFileName, JclVclHelpIndexName);
end;
function RegisterHelp2Files: Boolean;
var
JclNameSpace, JclCollection, JclDescription,
JclIdentifier, JclHxSFile, JclHxIFile,
JclContainersIdentifier, JclContainersHxSFile, JclContainersHxIFile,
JclDeveloperToolsIdentifier, JclDeveloperToolsHxSFile, JclDeveloperToolsHxIFile,
JclVclIdentifier, JclVclHxSFile, JclVclHxIFile: WideString;
JclLangId: Integer;
begin
Result := True;
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.VersionNumber < 3) then
Exit;
WriteLog(LoadResString(@RsLogAddHelp2Files));
// to avoid Write AV, data have to be copied in data segment
JclNameSpace := JclHelp2NameSpace;
JclCollection := JclHelp2Collection;
JclDescription := JclHelp2Description;
JclLangId := JclHelp2LangId;
JclIdentifier := JclHelp2Identifier;
JclHxSFile := JclHelp2HxSFile;
JclHxIFile := JclHelp2HxIFile;
JclContainersIdentifier := JclContainersHelp2Identifier;
JclContainersHxSFile := JclContainersHelp2HxSFile;
JclContainersHxIFile := JclContainersHelp2HxIFile;
JclDeveloperToolsIdentifier := JclDeveloperToolsHelp2Identifier;
JclDeveloperToolsHxSFile := JclDeveloperToolsHelp2HxSFile;
JclDeveloperToolsHxIFile := JclDeveloperToolsHelp2HxIFile;
JclVclIdentifier := JclVclHelp2Identifier;
JclVclHxSFile := JclVclHelp2HxSFile;
JclVclHxIFile := JclVclHelp2HxIFile;
Distribution.RegHelpCreateTransaction;
Distribution.RegHelpRegisterNameSpace(JclNameSpace, JclCollection, JclDescription);
Distribution.RegHelpRegisterHelpFile(JclNameSpace, JclIdentifier, JclLangId, JclHxSFile, JclHxIFile);
Distribution.RegHelpRegisterHelpFile(JclNameSpace, JclContainersIdentifier, JclLangId, JclContainersHxSFile, JclContainersHxIFile);
Distribution.RegHelpRegisterHelpFile(JclNameSpace, JclDeveloperToolsIdentifier, JclLangId, JclDeveloperToolsHxSFile, JclDeveloperToolsHxIFile);
Distribution.RegHelpRegisterHelpFile(JclNameSpace, JclVclIdentifier, JclLangId, JclVclHxSFile, JclVclHxIFile);
if OptionChecked[joJCLHelpHxSPlugin] then
begin
MarkOptionBegin(joJCLHelpHxSPlugin);
Distribution.RegHelpPlugNameSpaceIn(JclNameSpace, TJclBDSInstallation(Target).Help2Manager.IdeNamespace);
MarkOptionEnd(joJCLHelpHxSPlugin, Result);
end;
Distribution.RegHelpCommitTransaction;
WriteLog(LoadResString(@RsLogDefered));
end;
begin
Result := True;
if OptionChecked[joJCLHelp] then
begin
MarkOptionBegin(joJCLHelp);
if OptionChecked[joJCLHelpHlp] then
begin
MarkOptionBegin(joJCLHelpHlp);
Result := AddHelpToOpenHelp;
MarkOptionEnd(joJCLHelpHlp, Result);
end;
if Result and OptionChecked[joJCLHelpChm] then
begin
MarkOptionBegin(joJCLHelpChm);
Result := AddHelpToIdeTools;
MarkOptionEnd(joJCLHelpChm, Result);
end;
if Result and OptionChecked[joJCLHelpHxS] then
begin
MarkOptionBegin(joJCLHelpHxS);
Result := RegisterHelp2Files;
MarkOptionEnd(joJCLHelpHxS, Result);
end;
MarkOptionEnd(joJCLHelp, Result);
end;
end;
{$ENDIF MSWINDOWS}
function MakeDemos: Boolean;
var
SaveDir: string;
Index, ID: Integer;
ADemoList: TStrings;
DemoResult: Boolean;
begin
Result := True;
if OptionChecked[joJCLMakeDemos] then
begin
MarkOptionBegin(joJCLMakeDemos);
SaveDir := GetCurrentDir;
try
ADemoList := GetDemoList;
for Index := 0 to ADemoList.Count - 1 do
begin
ID := Integer(ADemoList.Objects[Index]);
if OptionCheckedById[ID] then
begin
MarkOptionBegin(ID);
DemoResult := CompileApplication(ADemoList.Strings[Index]);
MarkOptionEnd(ID, DemoResult);
// ahuser: The installation shouldn't fail if some demos can't be compiled like
// outdated demos. Otherwise the JVCL Installer will
// have a hard time finding a valid JCL installation
//Result := Result and DemoResult;
end;
end;
finally
SetCurrentDir(SaveDir);
end;
MarkOptionEnd(joJCLMakeDemos, Result);
end;
end;
var
Index: Integer;
ATarget: TJclBorRADToolInstallation;
begin
Result := False;
FInstallSuccess := False;
FLogLines.OpenLog;
AProfilesManager := InstallCore.ProfilesManager;
try
Target.OutputCallback := WriteLog;
if Assigned(GUI) then
GUI.Status := Format(LoadResString(@RsLogInstallingJCL), [TargetName]);
if Assigned(GUIPage) then
begin
GUIPage.Show;
GUIPage.BeginInstall;
end;
FLogLines.ClearLog;
WriteIntroduction;
Result := CheckDirectories and SetStaticOptions and MakeUnits and CompilePackages and InstallRepository
and MakeDemos {$IFDEF MSWINDOWS}and CompileExperts and InstallHelpFiles{$ENDIF MSWINDOWS};
if Result then
begin
if AProfilesManager.MultipleProfileMode then
begin
for Index := 0 to AProfilesManager.ProfileCount - 1 do
if IsProfileEnabled[Index] then
begin
ATarget := ProfileTargets[Index];
if ATarget.Valid then
begin
WriteLog(StrPadRight(StrRepeat('=', 10) + InstallCore.ProfilesManager.ProfileNames[Index], 80, '='));
Result := Result and SetEnvironment(ATarget) and RegisterPackages(ATarget)
{$IFDEF MSWINDOWS}and RegisterExperts(ATarget){$ENDIF MSWINDOWS};
end;
end;
end
else
Result := Result and SetEnvironment(Target) and RegisterPackages(Target)
{$IFDEF MSWINDOWS}and RegisterExperts(Target){$ENDIF MSWINDOWS};
end;
if not Result then
begin
Silent := True;
Uninstall(False);
end;
FLogLines.CloseLog;
finally
FInstallSuccess := Result;
Target.OutputCallback := nil;
WriteLog('');
if Assigned(GUIPage) then
GUIPage.EndInstall;
FLogLines.CloseLog;
end;
end;
function TJclInstallation.MakePath(const FormatStr: string): string;
var
VersionStr: string;
begin
VersionStr := Target.VersionNumberStr;
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 9) then
VersionStr := VersionStr + DirDelimiter + AnsiLowerCase(GetPlatformStr);
Result := Format(FormatStr, [VersionStr]);
{$IFDEF MSWINDOWS}
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.VersionNumber < 3) then
Result := PathGetShortName(Result);
{$ENDIF MSWINDOWS}
end;
function TJclInstallation.RemoveSettings: Boolean;
{$IFDEF MSWINDOWS}
var
JclSettingsKey: string;
{$ENDIF MSWINDOWS}
begin
{$IFDEF MSWINDOWS}
JclSettingsKey := Target.ConfigDataLocation + '\Jedi\JCL';
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 9) then
JclSettingsKey := JclSettingsKey + '\' + GetPlatformStr;
if RegKeyExists(HKCU, JclSettingsKey) then
Result := RegDeleteKeyTree(HKCU, JclSettingsKey)
else
{$ENDIF MSWINDOWS}
Result := True;
end;
function TJclInstallation.Uninstall(AUninstallHelp: Boolean): Boolean;
procedure RemoveEnvironment(ATarget: TJclBorRADToolInstallation);
begin
//ioJclEnvLibPath
if ATarget.RemoveFromLibrarySearchPath(FLibReleaseDir, FTargetPlatform) and
ATarget.RemoveFromLibrarySearchPath(Distribution.JclIncludeDir, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelLibrarySearchPath2), [FLibReleaseDir, Distribution.JclIncludeDir]))
else
WriteLog(LoadResString(@RsLogFailedDelLibrarySearchPath));
{$IFDEF MSWINDOWS}
if (ATarget.RadToolKind = brBorlandDevStudio) and TargetSupportsCBuilder then
with TJclBDSInstallation(ATarget) do
begin
if RemoveFromCppSearchPath(FLibReleaseDir, FTargetPlatform) and
RemoveFromCppSearchPath(Distribution.JclIncludeDir, FTargetPlatform) and
((IDEVersionNumber < 5) or RemoveFromCppLibraryPath(FLibReleaseDir, FTargetPlatform)) then
WriteLog(Format(LoadResString(@RsLogDelCppSearchPath2), [FLibReleaseDir, Distribution.JclIncludeDir]))
else
WriteLog(LoadResString(@RsLogFailedDelCppSearchPath));
end;
{$ENDIF MSWINDOWS}
//ioJclEnvBrowsingPath
if ATarget.RemoveFromLibraryBrowsingPath(Distribution.JclSourcePath, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelLibraryBrowsingPath), [Distribution.JclSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedDelLibraryBrowsingPath));
if ATarget.RemoveFromLibraryBrowsingPath(Distribution.JclOldSourcePath, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelLibraryBrowsingPath), [Distribution.JclOldSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedDelLibraryBrowsingPath));
{$IFDEF MSWINDOWS}
if (ATarget.RadToolKind = brBorlandDevStudio) and TargetSupportsCBuilder then
with TJclBDSInstallation(ATarget) do
begin
if RemoveFromCppBrowsingPath(Distribution.JclSourcePath, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelCppBrowsingPath), [Distribution.JclSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedDelCppBrowsingPath));
if RemoveFromCppBrowsingPath(Distribution.JclOldSourcePath, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelCppBrowsingPath), [Distribution.JclOldSourcePath]))
else
WriteLog(LoadResString(@RsLogFailedDelCppBrowsingPath));
end;
{$ENDIF MSWINDOWS}
//ioJclEnvDebugDCUPath
if ATarget.RemoveFromDebugDCUPath(FLibDebugDir, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelDebugDCUPath), [FLibDebugDir]))
else
begin
if ATarget.RemoveFromDebugDCUPath(FLibDebugDir, FTargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelDebugDCUPath), [FLibDebugDir]))
else
WriteLog(LoadResString(@RsLogFailedDelDebugDCUPath));
end;
//joJclEnvIncludePath
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) and TargetSupportsCBuilder then
begin
if (GetHppPath <> ATarget.VclIncludeDir[TargetPlatform]) then
begin
if (ATarget as TJclBDSInstallation).RemoveFromCppIncludePath(GetHppPath, TargetPlatform) then
WriteLog(Format(LoadResString(@RsLogDelIncludePath), [GetHppPath]))
else
WriteLog(LoadResString(@RsLogFailedDelIncludePath));
end
else
WriteLog(Format(LoadResString(@RsLogIgnoreDelIncludePath), [GetHppPath]));
end;
end;
procedure RemoveMake;
procedure RemoveFileMask(const Directory, Extension: string);
var
FileList: TStrings;
Index: Integer;
begin
FileList := TStringList.Create;
try
BuildFileList(Format('%s*%s', [PathAddSeparator(Directory), Extension]), faAnyFile, FileList);
for Index := 0 to FileList.Count - 1 do
FileDelete(PathAddSeparator(Directory) + FileList.Strings[Index]);
finally
FileList.Free;
end;
end;
begin
RemoveFileMask(FLibReleaseDir, '.dcu');
RemoveFileMask(FLibDebugDir, '.dcu');
if TargetSupportsCBuilder then
begin
RemoveFileMask(FLibReleaseDir, '.obj'); // compatibility
RemoveFileMask(FLibDebugDir, '.obj'); // compatibility
end;
//ioJclCopyHppFiles: ; // TODO : Delete copied files
//ioJclCheckHppFiles: ; // nothing to do
end;
procedure UnregisterPackages(ATarget: TJclBorRADToolInstallation);
var
ABDSTarget: TJclBDSInstallation;
begin
if ATarget.RadToolKind = brBorlandDevStudio then
begin
ABDSTarget := ATarget as TJclBDSInstallation;
ABDSTarget.CleanPackageCache(BinaryFileName(GetBPLPath, Distribution.JclPath + FullPackageFileName(ATarget, JclPackage)));
ABDSTarget.CleanPackageCache(BinaryFileName(GetBPLPath, Distribution.JclPath + FullPackageFileName(ATarget, JclContainersPackage)));
ABDSTarget.CleanPackageCache(BinaryFileName(GetBPLPath, Distribution.JclPath + FullPackageFileName(ATarget, JclDeveloperToolsPackage)));
if RuntimeInstallation and ATarget.SupportsVCL then
ABDSTarget.CleanPackageCache(BinaryFileName(GetBPLPath, Distribution.JclPath + FullPackageFileName(ATarget, JclVclPackage)));
end;
//ioJclPackages
ATarget.UnregisterPackage(Distribution.JclPath + FullPackageFileName(ATarget, JclPackage), GetBplPath);
ATarget.UnregisterPackage(Distribution.JclPath + FullPackageFileName(ATarget, JclContainersPackage), GetBplPath);
ATarget.UnregisterPackage(Distribution.JclPath + FullPackageFileName(ATarget, JclDeveloperToolsPackage), GetBplPath);
if RuntimeInstallation and ATarget.SupportsVCL then
ATarget.UnregisterPackage(Distribution.JclPath + FullPackageFileName(ATarget, JclVclPackage), GetBplPath);
{$IFDEF MSWINDOWS}
RemoveJediRegInformation(Target.ConfigDataLocation, 'JCL', Iff((Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 9), GetPlatformStr, ''), ATarget.RootKey);
{$ENDIF MSWINDOWS}
end;
procedure DeletePackages;
begin
DeletePackage(FullPackageFileName(Target, JclPackage));
DeletePackage(FullPackageFileName(Target, JclContainersPackage));
DeletePackage(FullPackageFileName(Target, JclDeveloperToolsPackage));
if RuntimeInstallation and Target.SupportsVCL then
DeletePackage(FullPackageFileName(Target, JclVclPackage));
end;
{$IFDEF MSWINDOWS}
procedure UnregisterExperts(ATarget: TJclBorRADToolInstallation);
procedure UnregisterExpert(const Name: string);
var
Index: Integer;
FileName, ShortFileName: string;
begin
for Index := ATarget.IdePackages.Count - 1 downto 0 do
begin
FileName := ATarget.IdePackages.PackageFileNames[Index];
ShortFileName := ChangeFileExt(ExtractFileName(FileName), '');
if StrMatches(Name, ShortFileName)
or StrMatches(Format('%sDLL%s', [Name, StrUpper(ATarget.VersionNumberStr)]), ShortFileName)
or StrMatches(Format('%sDLL%d', [Name, ATarget.VersionNumber]), ShortFileName)
or StrMatches(Format('%sDLL%s0', [Name, StrUpper(ATarget.VersionNumberStr)]), ShortFileName)
or StrMatches(Format('%sDLL%d0', [Name, ATarget.VersionNumber]), ShortFileName) then
ATarget.UnregisterPackage(FileName);
end;
for Index := ATarget.IdePackages.ExpertCount - 1 downto 0 do
begin
FileName := ATarget.IdePackages.ExpertFileNames[Index];
ShortFileName := ChangeFileExt(ExtractFileName(FileName), '');
if StrMatches(Name, ShortFileName)
or StrMatches(Format('%sDLL%s', [Name, StrUpper(ATarget.VersionNumberStr)]), ShortFileName)
or StrMatches(Format('%sDLL%d', [Name, ATarget.VersionNumber]), ShortFileName)
or StrMatches(Format('%sDLL%s0', [Name, StrUpper(ATarget.VersionNumberStr)]), ShortFileName)
or StrMatches(Format('%sDLL%d0', [Name, ATarget.VersionNumber]), ShortFileName) then
ATarget.UnregisterExpert(FileName);
end;
end;
var
Option: TInstallerOption;
IndexOldExpert: Integer;
begin
for Option := Low(SupportedExperts) to High(SupportedExperts) do
if not (Option in [joJCLExpertsDsgnPackages, joJCLExpertsDLL]) then
UnregisterExpert(SupportedExperts[Option]);
for IndexOldExpert := Low(OldExperts) to High(OldExperts) do
UnregisterExpert(OldExperts[IndexOldExpert]);
end;
procedure DeleteExperts;
var
Option: TInstallerOption;
ProjectFileName: string;
begin
for Option := Low(SupportedExperts) to High(SupportedExperts) do
if not (Option in [joJCLExpertsDsgnPackages, joJCLExpertsDLL]) then
begin
ProjectFileName := Distribution.JclPath + FullPackageFileName(Target, SupportedExperts[Option]);
if FileExists(ProjectFileName) then
Target.UninstallPackage(ProjectFileName, GetBplPath, GetDcpPath);
ProjectFileName := Distribution.JclPath + FullLibraryFileName(Target, SupportedExperts[Option]);
if FileExists(ProjectFileName) then
Result := FileDelete(BinaryFileName(GetBplPath, ProjectFileName));
end;
end;
procedure UninstallHelp;
procedure RemoveHelpFromIdeTools;
procedure RemoveIdeTool(const Title: string);
var
HelpIndex: Integer;
begin
HelpIndex := Target.IdeTools.IndexOfTitle(Title);
if HelpIndex <> -1 then
begin
Target.IdeTools.RemoveIndex(HelpIndex);
WriteLog(Format(LoadResString(@RsLogDelIdeTools), [Title, Target.RADToolName]))
end
else
WriteLog(LoadResString(@RsLogFailedDelIdeTools));
end;
begin
RemoveIdeTool(Format(JclHelpTitle, [JclVersionMajor, JclVersionMinor]));
RemoveIdeTool(Format(JclContainersHelpTitle, [JclVersionMajor, JclVersionMinor]));
RemoveIdeTool(Format(JclDeveloperToolsHelpTitle, [JclVersionMajor, JclVersionMinor]));
RemoveIdeTool(Format(JclVclHelpTitle, [JclVersionMajor, JclVersionMinor]));
end;
procedure RemoveHelpFromOpenHelp;
procedure RemoveFile(const FileName, IndexName: string);
begin
if Target.OpenHelp.RemoveHelpFile(FileName, IndexName) then
WriteLog(Format(LoadResString(@RsLogDelOpenHelp), [FileName, Target.RADToolName]))
else
WriteLog(LoadResString(@RsLogFailedDelOpenHelp));
end;
begin
RemoveFile(Distribution.JclOldHlpHelpFileName, JclHelpIndexName);
RemoveFile(Distribution.JclHlpHelpFileName, JclHelpIndexName);
RemoveFile(Distribution.JclContainersHlpHelpFileName, JclContainersHelpIndexName);
RemoveFile(Distribution.JclDeveloperToolsHlpHelpFileName, JclDeveloperToolsHelpIndexName);
RemoveFile(Distribution.JclVclHlpHelpFileName, JclVclHelpIndexName);
end;
procedure UnregisterHelp2Files;
var
JclNameSpace, JclOldIdentifier, JclIdentifier, JclContainersIdentifier,
JclDeveloperToolsIdentifier, JclVclIdentifier: WideString;
JclLangId: Integer;
begin
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.VersionNumber < 3) then
Exit;
WriteLog(LoadResString(@RsLogDelHelp2Files));
// to avoid Write AV, data has to be copied in data segment
JclNameSpace := JclHelp2NameSpace;
JclLangId := JclHelp2LangId;
JclOldIdentifier := JclOldHelp2Identifier;
JclIdentifier := JclHelp2Identifier;
JclContainersIdentifier := JclContainersHelp2Identifier;
JclDeveloperToolsIdentifier := JclDeveloperToolsHelp2Identifier;
JclVclIdentifier := JclVclHelp2Identifier;
Distribution.RegHelpCreateTransaction;
Distribution.RegHelpUnPlugNameSpace(JclNameSpace, TJclBDSInstallation(Target).Help2Manager.IdeNamespace);
Distribution.RegHelpUnregisterHelpFile(JclNameSpace, JclOldIdentifier, JclLangId);
Distribution.RegHelpUnregisterHelpFile(JclNameSpace, JclIdentifier, JclLangId);
Distribution.RegHelpUnregisterHelpFile(JclNameSpace, JclContainersIdentifier, JclLangId);
Distribution.RegHelpUnregisterHelpFile(JclNameSpace, JclDeveloperToolsIdentifier, JclLangId);
Distribution.RegHelpUnregisterHelpFile(JclNameSpace, JclVclIdentifier, JclLangId);
Distribution.RegHelpUnregisterNameSpace(JclNameSpace);
Distribution.RegHelpCommitTransaction;
WriteLog(LoadResString(@RsLogDefered));
end;
begin
if Target.RadToolKind <> brBorlandDevStudio then
begin
RemoveHelpFromOpenHelp;
RemoveHelpFromIdeTools;
end
else
UnregisterHelp2Files;
end;
{$ENDIF MSWINDOWS}
procedure UninstallRepository;
procedure RemoveDialogFromRepository(const DialogName, DialogFileName: string);
begin
Target.Repository.RemoveObjects(ExceptDlgPath, DialogFileName, BorRADToolRepositoryFormTemplate);
WriteLog(Format(LoadResString(@RsLogUninstalling), [DialogName]));
end;
begin
if Target.RadToolKind <> brBorlandDevStudio then
begin
{$IFDEF MSWINDOWS}
// ioJclExcDialog
// ioJclExcDialogVCL
RemoveDialogFromRepository(LoadResString(@RsExceptDlgVclName), Distribution.VclDialogFileName);
//ioJclExcDialogVCLSnd
RemoveDialogFromRepository(LoadResString(@RsExceptDlgVclSndName), Distribution.VclDialogSendFileName);
{$ENDIF MSWINDOWS}
end;
end;
var
Index: Integer;
AProfilesManager: IJediProfilesManager;
ATarget: TJclBorRADToolInstallation;
begin
FLogLines.OpenLog;
AProfilesManager := InstallCore.ProfilesManager;
try
Target.OutputCallback := WriteLog;
if Assigned(GUI) then
GUI.Status := Format(LoadResString(@RsLogUninstallingJCL), [TargetName]);
if Assigned(GUIPage) then
GUIPage.Show;
if AProfilesManager.MultipleProfileMode then
begin
for Index := 0 to AProfilesManager.ProfileCount - 1 do
if IsProfileEnabled[Index] then
begin
ATarget := ProfileTargets[Index];
if ATarget.Valid then
begin
RemoveEnvironment(ATarget);
{$IFDEF MSWINDOWS}
if not Target.IsTurboExplorer then
UnregisterExperts(ATarget);
{$ENDIF MSWINDOWS}
if not Target.IsTurboExplorer then
UnregisterPackages(ATarget);
end;
end;
end
else
begin
RemoveEnvironment(Target);
{$IFDEF MSWINDOWS}
if not Target.IsTurboExplorer then
UnregisterExperts(Target);
{$ENDIF MSWINDOWS}
if not Target.IsTurboExplorer then
UnregisterPackages(Target);
end;
RemoveMake;
if not Target.IsTurboExplorer then
DeletePackages;
{$IFDEF MSWINDOWS}
DeleteExperts;
if AUninstallHelp then
UninstallHelp;
{$ENDIF MSWINDOWS}
// TODO: ioJclCopyPackagesHppFiles
UninstallRepository;
// TODO: ioJclMakeDemos:
finally
Target.OutputCallback := nil;
FLogLines.CloseLog;
end;
Result := True;
end;
procedure TJclInstallation.WriteLog(const Msg: string);
var
Line: string;
LineType: TCompileLineType;
begin
if not Silent then
begin
Line := InstallCore.ProcessLogLine(Msg, LineType, GUIPage);
if Line <> '' then
FLogLines.Write(Line);
end;
end;
function TJclInstallation.GetBplPath: string;
var
AConfiguration: IJediConfiguration;
begin
if Assigned(GUIPage) then
Result := GUIPage.Directories[FGUIBPLPathIndex]
else
begin
AConfiguration := InstallCore.Configuration;
if Assigned(AConfiguration) then
Result := AConfiguration.OptionAsStringByName[TargetName, OptionNameBPLPath]
else
Result := Target.BPLOutputPath[FTargetPlatform];
end;
{$IFDEF MSWINDOWS}
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.VersionNumber < 3) then
Result := PathGetShortName(Result);
{$ENDIF MSWINDOWS}
end;
function TJclInstallation.GetDcpPath: string;
var
AConfiguration: IJediConfiguration;
begin
if Assigned(GUIPage) then
Result := GUIPage.Directories[FGUIDCPPathIndex]
else
begin
AConfiguration := InstallCore.Configuration;
if Assigned(AConfiguration) then
Result := AConfiguration.OptionAsStringByName[TargetName, OptionNameDCPPath]
else
Result := FJclDcpPath;
end;
{$IFDEF MSWINDOWS}
if (Target.RadToolKind <> brBorlandDevStudio) or (Target.VersionNumber < 3) then
Result := PathGetShortName(Result);
{$ENDIF MSWINDOWS}
end;
function TJclInstallation.GetHppPath: string;
var
AConfiguration: IJediConfiguration;
begin
if (Target.RadToolKind = brBorlandDevStudio) and (Target.IDEVersionNumber >= 5) and TargetSupportsCBuilder then
begin
if Assigned(GUIPage) then
Result := GUIPage.Directories[FGUIHPPPathIndex]
else
begin
AConfiguration := InstallCore.Configuration;
if Assigned(AConfiguration) then
Result := AConfiguration.OptionAsStringByName[TargetName, OptionNameHPPPath]
else
Result := Target.VclIncludeDir[TargetPlatform];
end;
end
else
Result := Target.VclIncludeDir[TargetPlatform];
end;
procedure TJclInstallation.Close;
procedure SaveOptions;
var
AConfiguration: IJediConfiguration;
Option: TInstallerOption;
Id, Index: Integer;
ADemoList: TStrings;
begin
AConfiguration := InstallCore.Configuration;
if not (Assigned(AConfiguration) and Assigned(GUIPage)) then
Exit;
// clean section before saving options
AConfiguration.DeleteSection(TargetName);
AConfiguration.DeleteSection(FDemoSectionName);
for Option := Low(TInstallerOption) to High(TInstallerOption) do
begin
Id := OptionData[Option].Id;
AConfiguration.OptionAsBool[TargetName, Id] := GUIPage.OptionChecked[Id];
end;
if not Target.IsTurboExplorer then
begin
if FRuntimeInstallation then
begin
ADemoList := GetDemoList;
for Index := 0 to ADemoList.Count - 1 do
begin
Id := Integer(ADemoList.Objects[Index]);
AConfiguration.OptionAsBool[FDemoSectionName, Id] := GUIPage.OptionChecked[Id];
end;
end;
AConfiguration.OptionAsStringByName[TargetName, OptionNameBPLPath] := GUIPage.Directories[FGUIBPLPathIndex];
if Target.RadToolKind = brCppBuilder then
AConfiguration.OptionAsStringByName[TargetName, OptionNameBPIPath] := GUIPage.Directories[FGUIDCPPathIndex]
else
AConfiguration.OptionAsStringByName[TargetName, OptionNameDCPPath] := GUIPage.Directories[FGUIDCPPathIndex];
if FGUIHPPPathIndex >= 0 then
AConfiguration.OptionAsStringByName[TargetName, OptionNameHPPPath] := GUIPage.Directories[FGUIHPPPathIndex];
end;
end;
begin
SaveOptions;
FGUIPage := nil;
FGUI := nil;
end;
function TJclInstallation.CompileLibraryUnits(const SubDir: string; Debug: Boolean): Boolean;
function CopyFiles(Files: TStrings; const TargetDir: string; Overwrite: Boolean = True): Boolean;
var
I: Integer;
FileName: string;
begin
Result := True;
for I := 0 to Files.Count - 1 do
begin
FileName := Files[I];
Result := Result and FileCopy(FileName, PathAddSeparator(TargetDir) + ExtractFileName(FileName), Overwrite);
end;
end;
procedure CopyResFiles(TargetDir: string);
var
FileList: TStringList;
begin
FileList := TStringList.Create;
try
if BuildFileList('*.res', faAnyFile, FileList) then
CopyFiles(FileList, TargetDir);
finally
FileList.Free;
end;
end;
function CopyHppFiles(UnitList: TStrings; const TargetDir: string): Boolean;
var
I: Integer;
TargetDirectory, FileName: string;
begin
Result := True;
TargetDirectory := PathAddSeparator(TargetDir);
for I := 0 to UnitList.Count - 1 do
begin
FileName := UnitList[I] + '.hpp';
if FileExists(FileName) then
begin
Result := Result and FileCopy(FileName, TargetDirectory + FileName, True);
// Always remove once copied because if they are left in place they
// will clutter the source folder and might even prevent compilation
// when multiple versions of C++ Builder are installed on the same
// computer. The easiest way to see this is when checking HPP files.
FileDelete(FileName);
end;
if (CompareText(UnitList[I], 'zlibh') = 0) and (Target.RadToolKind = brCppBuilder) and (Target.VersionNumber = 6) then
begin
Result := Result and FileCopy('zlib.h', TargetDirectory + 'zlib.h', True)
and FileCopy('zconf.h', TargetDirectory + 'zconf.h', True);
end;
end;
end;
var
UnitType, LibDescriptor, SaveDir, UnitOutputDir, Path, ExclusionFileName: string;
Index, ExcIndex: Integer;
UnitList, Exclusions: TStrings;
Compiler: TJclDCC32;
begin
Result := True;
if Debug then
UnitType := 'debug ';
LibDescriptor := Format(LoadResString(@RsLogLibDescriptor), [SubDir, UnitType, TargetName]);
WriteLog(Format(LoadResString(@RsLogBuilding), [LibDescriptor]));
Path := Distribution.JclPath + SubDir;
UnitList := TStringList.Create;
try
BuildFileList(PathAddSeparator(Path) + '*.pas', faAnyFile, UnitList);
ExclusionFileName := PathAddSeparator(FLibReleaseDir) + SubDir + '.exc';
if FileExists(ExclusionFileName) then
begin
Exclusions := TStringList.Create;
try
Exclusions.LoadFromFile(ExclusionFileName);
for Index := 0 to Exclusions.Count - 1 do
begin
ExcIndex := UnitList.IndexOf(Exclusions.Strings[Index]);
if ExcIndex >= 0 then
UnitList.Delete(ExcIndex);
end;
finally
Exclusions.Free;
end;
end;
if UnitList.Count = 0 then
Exit;
for Index := 0 to UnitList.Count - 1 do
UnitList.Strings[Index] := ChangeFileExt(UnitList.Strings[Index], '');
case TargetPlatform of
bpWin32:
Compiler := Target.DCC32;
bpWin64:
Compiler := (Target as TJclBDSInstallation).DCC64;
bpOSX32:
raise EJclBorRADException.CreateRes(@RsEOSXPlatformNotValid);
else
raise EJclBorRADException.CreateRes(@RsEPlatformNotValid);
end;
Compiler.SetDefaultOptions(Debug);
//Options.Add('-D' + StringsToStr(Defines, ';'));
Compiler.Options.Add('-M'); // make modified units
Compiler.Options.Add('-$X+'); // extended syntax
Compiler.Options.Add('-$G+'); // imported data
Compiler.Options.Add('-$H+'); // long strings
Compiler.Options.Add('-$P+'); // open string params
Compiler.Options.Add('-$U-'); // safe divide
Compiler.Options.Add('-$T-'); // typed address
Compiler.Options.Add('-$V+'); // strict var strings
Compiler.Options.Add('-$J+'); // writeable constants
Compiler.Options.Add('-$Z1'); // minimum enum size
Compiler.Options.Add('-$L+'); // local symbols
Compiler.Options.Add('-$Y+'); // symbol reference info
Compiler.Options.Add('-$J+'); // writable constants
if Debug then
begin
Compiler.Options.Add('-$C+'); // assertions
Compiler.Options.Add('-$D+'); // debug informations
Compiler.Options.Add('-$I+'); // I/O checking
Compiler.Options.Add('-$O-'); // optimizations
Compiler.Options.Add('-$Q+'); // overflow checking
Compiler.Options.Add('-$R+'); // range checking
Compiler.Options.Add('-$W+'); // stack frames
end
else
begin
Compiler.Options.Add('-$C-'); // assertions
Compiler.Options.Add('-$D-'); // debug informations
Compiler.Options.Add('-$I-'); // I/O checking
Compiler.Options.Add('-$O+'); // optimizations
Compiler.Options.Add('-$Q-'); // overflow checking
Compiler.Options.Add('-$R-'); // range checking
Compiler.Options.Add('-$W-'); // stack frames
end;
if Debug then
UnitOutputDir := FLibDebugDir
else
UnitOutputDir := FLibReleaseDir;
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 4) then
Compiler.AddPathOption('N0', UnitOutputDir) // .dcu files
else
Compiler.AddPathOption('N', UnitOutputDir); // .dcu files
if TargetSupportsCBuilder then
begin
Compiler.Options.Add('-D_RTLDLL' + DirSeparator + 'NO_STRICT' + DirSeparator + 'USEPACKAGES'); // $(SYSDEFINES)
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 4) then
begin
//Compiler.AddPathOption('NH', FIncludeDir); // .hpp files
Compiler.AddPathOption('NO', UnitOutputDir); // .obj files
if TJclBDSInstallation(Target).DualPackageInstallation and OptionChecked[joJCLCopyPackagesHppFiles] then
Compiler.AddPathOption('N1', GetHppPath);
end
else
begin
//Compiler.AddPathOption('N1', FIncludeDir); // .hpp files
Compiler.AddPathOption('N2', UnitOutputDir); // .obj files
end;
Compiler.Options.Add('-JPHNE');
Compiler.Options.Add('--BCB');
//Compiler.AddPathOption('O', Format(BCBIncludePath, [Distribution.JclIncludeDir, Distribution.JclSourcePath]));
//Compiler.AddPathOption('U', Format(BCBObjectPath, [Distribution.JclIncludeDir, Distribution.JclSourcePath]));
end;
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 9) then
Compiler.Options.Add('-nsSystem;System.Win;WinAPI;Vcl;Vcl.Imaging');
Compiler.AddPathOption('I', Distribution.JclIncludeDir);
Compiler.AddPathOption('U', Distribution.JclSourcePath);
Compiler.AddPathOption('R', Distribution.JclSourcePath);
SaveDir := GetCurrentDir;
Result := SetCurrentDir(Path);
{$IFDEF WIN32}
Win32Check(Result);
{$ELSE}
if Result then
{$ENDIF}
try
WriteLog('');
Result := Result and Compiler.Execute(StringsToStr(UnitList, ' '));
CopyResFiles(UnitOutputDir);
if OptionChecked[joJCLCopyHppFiles] then
begin
MarkOptionBegin(joJCLCopyHppFiles);
Result := Result and CopyHppFiles(UnitList, GetHppPath);
MarkOptionEnd(joJCLCopyHppFiles, Result);
end;
finally
SetCurrentDir(SaveDir);
end;
finally
UnitList.Free;
end;
if not Result then
WriteLog(LoadResString(@RsLogFailed));
end;
function TJclInstallation.CompilePackage(const Name: string): Boolean;
var
PackageFileName: string;
DpkPackageFileName: string;
begin
PackageFileName := PathAddSeparator(Distribution.JclPath) + Name;
WriteLog(Format(LoadResString(@RsLogBuilding), [PackageFileName]));
if Assigned(GUIPage) then
GUIPage.CompilationStart(ExtractFileName(Name));
if IsDelphiPackage(PackageFileName) and TargetSupportsDelphi then
begin
if Target.RadToolKind = brBorlandDevStudio then
(Target as TJclBDSInstallation).CleanPackageCache(BinaryFileName(GetBplPath, PackageFileName));
Result := Target.CompilePackage(PackageFileName, GetBplPath, GetDcpPath);
end
else
if IsBCBPackage(PackageFileName) and TargetSupportsCBuilder then
begin
ConfigureBpr2Mak(PackageFileName);
if Target.RadToolKind = brBorlandDevStudio then
(Target as TJclBDSInstallation).CleanPackageCache(BinaryFileName(GetBplPath, PackageFileName));
// to satisfy JVCL (and eventually other libraries), create a .dcp file;
// Note: it is put out to .bpl path to make life easier for JVCL
DpkPackageFileName := ChangeFileExt(PackageFileName, SourceExtensionDelphiPackage);
Result := ((not FileExists(DpkPackageFileName))
or Target.CompilePackage(DpkPackageFileName, GetBplPath, GetDcpPath))
and Target.CompilePackage(PackageFileName, GetBplPath, GetDcpPath);
end
else
begin
Result := False;
WriteLog(Format(LoadResString(@RsLogNoPersonalityExtension), [ExtractFileExt(PackageFileName)]));
end;
if Result then
WriteLog(LoadResString(@RsLogDone))
else
WriteLog(LoadResString(@RsLogFailed));
end;
function TJclInstallation.CompileApplication(FileName: string): Boolean;
var
OldDirectory, NewDirectory: string;
Compiler: TJclDCC32;
begin
NewDirectory := ExtractFileDir(FileName);
FileName := ExtractFileName(FileName);
WriteLog(Format(LoadResString(@RsLogBuilding), [FileName]));
OldDirectory := GetCurrentDir;
try
SetCurrentDir(NewDirectory);
if (Target is TJclBDSInstallation) and (Target.IDEVersionNumber >= 9) and (FTargetPlatform = bpWin64) then
Compiler := (Target as TJclBDSInstallation).DCC64
else
Compiler := Target.DCC32;
Compiler.Options.Clear;
Compiler.SetDefaultOptions(False);
if (Target is TJclBDSInstallation) and (Target.IDEVersionNumber >= 9) and (FTargetPlatform = bpWin64) then
Compiler.AddPathOption('E', Distribution.JclBin64Dir)
else
Compiler.AddPathOption('E', Distribution.JclBinDir);
Compiler.AddPathOption('N', '.');
Compiler.AddPathOption('U', FLibReleaseDir + DirSeparator + Distribution.JclSourcePath);
Compiler.AddPathOption('I', Distribution.JclIncludeDir);
if (Target.RadToolKind = brBorlandDevStudio) and (Target.VersionNumber >= 9) then
Compiler.Options.Add('-nsSystem;System.Win;WinAPI;Vcl;Vcl.Imaging;Vcl.Samples;Vcl.Shell;Web');
Result := Compiler.Execute(FileName);
finally
SetCurrentDir(OldDirectory);
end;
end;
function TJclInstallation.DeletePackage(const Name: string): Boolean;
var
PackageFileName: string;
BPLFileName: string;
begin
WriteLog(Format(LoadResString(@RsLogUninstalling), [Name]));
PackageFileName := Distribution.JclPath + Format(Name, [Target.VersionNumberStr]);
BPLFileName := BinaryFileName(GetBplPath, PackageFileName);
Result := FileDelete(BPLFileName);
Result := FileDelete(ChangeFileExt(BPLFileName, CompilerExtensionMAP)) or Result;
// delete DCP files that were created to bpl path (old behavior)
Result := FileDelete(PathAddSeparator(GetBPLPath) + PathExtractFileNameNoExt(Name) + CompilerExtensionDCP) or Result;
// delete DCP files that were created to target dcp path (old behavior)
Result := FileDelete(PathAddSeparator(Target.DCPOutputPath[FTargetPlatform]) + PathExtractFileNameNoExt(Name) + CompilerExtensionDCP) or Result;
// delete BPI files that were created to target dcp path (old behavior)
Result := FileDelete(PathAddSeparator(Target.DCPOutputPath[FTargetPlatform]) + PathExtractFileNameNoExt(Name) + CompilerExtensionBPI) or Result;
// delete LIB files that were created to target dcp path (old behaviour)
Result := FileDelete(PathAddSeparator(Target.DCPOutputPath[FTargetPlatform]) + PathExtractFileNameNoExt(Name) + CompilerExtensionLIB) or Result;
// TODO : evtl. remove .HPP Files
if Result then
WriteLog(LoadResString(@RsLogDone))
else
WriteLog(LoadResString(@RsLogFailed));
end;
procedure TJclInstallation.ConfigureBpr2Mak(const PackageFileName: string);
var
PackageDirectory: string;
begin
PackageDirectory := PathAddSeparator(ExtractFileDir(PackageFileName));
if clProj2Mak in Target.CommandLineTools then
begin
Target.Bpr2Mak.Options.Clear;
Target.Bpr2Mak.AddPathOption('t', ExtractRelativePath(PackageDirectory,Distribution.JclPath + Bcb2MakTemplate));
end;
if clMake in Target.CommandLineTools then
begin
Target.Make.Options.Clear;
Target.Make.AddPathOption('DBPILIBDIR=', GetDcpPath);
Target.Make.AddPathOption('DBPLDIR=', GetBplPath);
if OptionChecked[joJCLCopyPackagesHppFiles] then
//begin
// MarkOptionBegin(joJCLCopyPackagesHppFiles);
Target.Make.AddPathOption('DHPPDIR=', GetHppPath);
// MarkOptionEnd(joJCLCopyPackagesHppFiles, True);
//end;
end;
end;
{$IFDEF MSWINDOWS}
function TJclInstallation.CompileExpert(const Name: string): Boolean;
var
ProjectFileName, ProjectBinaryFileName, ProjectDEFFileName,
ProjectDescription: string;
LibraryPeImage: TJclPeImage;
ExportFuncList: TJclPeExportFuncList;
Index: Integer;
DEFFile: TStrings;
FirstCompilationOk: Boolean;
const
WizardEntryPoint = 'INITWIZARD0001';
InternalEntryPoint = '@JCLWizardInit$';
begin
ProjectFileName := PathAddSeparator(Distribution.JclPath) + Name;
WriteLog(Format(LoadResString(@RsLogInstalling), [ProjectFileName]));
if Assigned(GUIPage) then
GUIPage.CompilationStart(ExtractFileName(Name));
if IsDelphiProject(ProjectFileName) and TargetSupportsDelphi then
Result := Target.CompileProject(ProjectFileName, GetBplPath, GetDcpPath)
else
if IsBCBProject(ProjectFileName) and TargetSupportsCBuilder then
begin
ConfigureBpr2Mak(ProjectFileName);
// the compilation is done in 2 steps:
// - first compilation without changes, we try to find the internal export name
// for the wizard entry point function
// - second compilation with creation of an alias between the internal export name
// and the excepted export name
ProjectDEFFileName := ChangeFileExt(ProjectFileName, CompilerExtensionDEF);
// first compilation
DEFFile := TStringList.Create;
try
// the linker doesn't like empty def files
DEFFile.Add('EXPORTS');
DEFFile.SaveToFile(ProjectDEFFileName);
finally
DEFFile.Free;
end;
Result := Target.CompileProject(ProjectFileName, GetBplPath, GetDcpPath);
if Result then
begin
WriteLog(LoadResString(@RsLogFirstCompilationOk));
LibraryPeImage := TJclPeImage.Create;
try
GetBPRFileInfo(ProjectFileName, ProjectBinaryFileName, @ProjectDescription);
ProjectBinaryFileName := PathAddSeparator(GetBplPath) + ProjectBinaryFileName;
WriteLog(Format(LoadResString(@RsLogSearchingExpertEntryPoint), [ProjectBinaryFileName, WizardEntryPoint]));
LibraryPeImage.FileName := ProjectBinaryFileName;
ExportFuncList := LibraryPeImage.ExportList;
FirstCompilationOk := Assigned(ExportFuncList.ItemFromName[WizardEntryPoint]);
// the expected export name doesn't exist
if not FirstCompilationOk then
begin
Result := False;
WriteLog(LoadResString(@RsLogEntryPointNotFound));
// try to find the decorated entry point
// export names for pascal functions are:
// @UnitName@FunctionName$ParameterSignature
for Index := 0 to ExportFuncList.Count - 1 do
if Pos(StrUpper(InternalEntryPoint), StrUpper(ExportFuncList.Items[Index].Name)) > 0 then
begin
WriteLog(Format(LoadResString(@RsLogEntryPointFound), [ExportFuncList.Items[Index].Name]));
DEFFile := TStringList.Create;
try
DEFFile.Add('EXPORTS');
DEFFile.Add(Format('%s=%s', [WizardEntryPoint, ExportFuncList.Items[Index].Name]));
DEFFile.SaveToFile(ProjectDEFFileName);
finally
DEFFile.Free;
end;
Result := True;
Break;
end;
end
else
begin
WriteLog(Format(LoadResString(@RsLogRegistering), [ProjectBinaryFileName]));
Target.RegisterExpert(ProjectBinaryFileName, ProjectDescription);
end;
finally
LibraryPeImage.Free;
end;
if Result and (not FirstCompilationOk) then
// second compilation
Result := Target.CompileProject(ProjectFileName, GetBplPath, GetDcpPath)
else
if not Result then
WriteLog(LoadResString(@RsLogEntryPointNotFound));
end
else
WriteLog(LoadResString(@RsLogFirstCompilationFailed));
end
else
Result := False;
if Result then
WriteLog(LoadResString(@RsLogDone))
else
WriteLog(LoadResString(@RsLogFailed));
end;
{$ENDIF MSWINDOWS}
function DemoNameCompare(List: TStringList; Index1, Index2: Integer): Integer;
var
Name1, Name2: string;
begin
Name1 := ExtractFileName(List[Index1]);
Name2 := ExtractFileName(List[Index2]);
Result := CompareText(Name1, Name2);
end;
procedure TJclInstallation.AddDemo(const Directory: string; const FileInfo: TSearchRec);
begin
if not StrSame(ExtractFileExt(FileInfo.Name), '.dproj') then
FDemoList.Append(Directory + FileInfo.Name);
end;
procedure TJclInstallation.AddDemos(const Directory: string);
begin
EnumFiles(Directory + '*.dpr', AddDemo);
end;
function TJclInstallation.GetDemoList: TStringList;
procedure ProcessExcludeFile(const ExcFileName: string);
var
DemoExclusionList: TStrings;
ExclusionFileName, FileName, RequiredList, RequiredItem: string;
IndexExc, IndexDemo, SepPos, IndexReq: Integer;
ExcludeDemo: Boolean;
begin
DemoExclusionList := TStringList.Create;
try
ExclusionFileName := MakePath(PathAddSeparator(Distribution.JclExamplesDir) + ExcFileName);
if FileExists(ExclusionFileName) then
begin
DemoExclusionList.LoadFromFile(ExclusionFileName);
for IndexExc := 0 to DemoExclusionList.Count - 1 do
begin
FileName := DemoExclusionList.Strings[IndexExc];
SepPos := Pos('=', FileName);
if SepPos > 0 then
begin
ExcludeDemo := False;
RequiredList := Copy(FileName, SepPos + 1, Length(FileName) - SepPos);
SetLength(FileName, SepPos - 1);
for IndexReq := 0 to PathListItemCount(RequiredList) - 1 do
begin
RequiredItem := PathListGetItem(RequiredList, IndexReq);
if AnsiSameText(ExtractFileExt(RequiredItem), '.dcu') then
begin
ExcludeDemo := not FileExists(PathAddSeparator(Target.LibFolderName[FTargetPlatform]) + RequiredItem);
if ExcludeDemo then
Break;
end;
end;
end
else
ExcludeDemo := True;
if ExcludeDemo then
begin
if AnsiSameText(ExtractFileExt(FileName), '.exc') then
ProcessExcludeFile(FileName)
else
begin
for IndexDemo := FDemoList.Count - 1 downto 0 do
if StrMatches(PathAddSeparator(Distribution.JclExamplesDir) + FileName, FDemoList.Strings[IndexDemo]) then
FDemoList.Delete(IndexDemo);
end;
end;
end;
end;
finally
DemoExclusionList.Free;
end;
end;
begin
if not Assigned(FDemoList) then
begin
FDemoList := TStringList.Create;
EnumDirectories(Distribution.JclExamplesDir, AddDemos);
FDemoList.CustomSort(DemoNameCompare);
ProcessExcludeFile('%s.exc');
end;
Result := FDemoList;
end;
{
function TJclInstallation.Run: Boolean;
procedure EnsureDirectoryExists(const DirectoryName, DisplayName: string);
begin
if not DirectoryExists(DirectoryName) then
begin
if (MessageDlg(Format(RsCreatePath, [DisplayName]), mtConfirmation, [mbYes, mbNo], 0) <> mrYes) then
Abort;
if not ForceDirectories(DirectoryName) then
begin
MessageDlg(Format(RsCantCreatePath, [DirectoryName]), mtError, [mbAbort], 0);
Abort;
end;
end;
end;
var
PathEnvVar: string;
begin
Result := True;
if OptionSelected(ioJCL) then
begin
if not OptionSelected(ioJclPackages)
and (MessageDlg(RsPackageNodeNotSelected, mtWarning, [mbYes, mbNo], 0) <> mrYes) then
Abort;
EnsureDirectoryExists(BplPath, 'BPL');
EnsureDirectoryExists(DcpPath, 'DCP');
{$IFDEF MSWINDOWS
PathEnvVar := RegReadStringDef(HKCU, RegHKCUEnvironmentVar, PathEnvironmentVar, '');
PathListIncludeItems(PathEnvVar, RegReadStringDef(HKLM, RegHKLMEnvironmentVar, PathEnvironmentVar, ''));
if (PathListItemIndex(PathEnvVar, BplPath) = -1) and (PathListItemIndex(PathEnvVar, PathAddSeparator(BplPath)) = -1)
and (MessageDlg(RsAddPathToEnvironment, mtConfirmation, [mbYes, mbNo], 0) = mrYes) then
begin
PathEnvVar := RegReadStringDef(HKCU, RegHKCUEnvironmentVar, PathEnvironmentVar, '');
PathListIncludeItems(PathEnvVar, BplPath);
RegWriteString(HKCU, RegHKCUEnvironmentVar, PathEnvironmentVar, PathEnvVar);
end;
{$ENDIF MSWINDOWS
InstallationStarted;
try
Result := InstallSelectedOptions;
finally
InstallationFinished;
end;
end;
SaveOptions;
end;
}
//=== { TJclDistribution } ===================================================
procedure TJclDistribution.Close;
var
I: Integer;
Settings: IJediConfiguration;
begin
Settings := InstallCore.Configuration;
if Assigned(Settings) and Assigned(FProfilesPage) then
for I := 0 to InstallCore.ProfilesManager.ProfileCount - 1 do
Settings.OptionAsBoolByName[ProfilesSectionName, InstallCore.ProfilesManager.ProfileNames[I]] := FProfilesPage.IsProfileEnabled[I];
for I := 0 to TargetInstallCount - 1 do
TargetInstalls[I].Close;
FGUI := nil;
end;
constructor TJclDistribution.Create;
procedure RegisterJclOptions;
var
Option: TInstallerOption;
AInstallCore: TJediInstallCore;
OptionName: string;
begin
AInstallCore := InstallCore;
for Option := Low(TInstallerOption) to High(TInstallerOption) do
begin
OptionName := GetEnumName(TypeInfo(TInstallerOption), Integer(Option));
OptionName := 'Jcl' + Copy(OptionName, 3, Length(OptionName) - 2);
OptionData[Option].Id := AInstallCore.AddInstallOption(OptionName);
end;
end;
begin
inherited Create;
RegisterJclOptions;
{$IFDEF MSWINDOWS}
FRegHelpCommands := TStringList.Create;
{$ENDIF MSWINDOWS}
FRadToolInstallations := TJclBorRADToolInstallations.Create;
FTargetInstalls := TObjectList.Create;
FTargetInstalls.OwnsObjects := True;
end;
function TJclDistribution.CreateInstall(Target: TJclBorRADToolInstallation): Boolean;
function Supported: Boolean;
begin
case Target.RadToolKind of
brDelphi :
Result := Target.VersionNumber in [6, 7];
brCppBuilder :
Result := Target.VersionNumber in [6];
brBorlandDevStudio :
Result := ((Target.VersionNumber in [1, 2]) and (bpDelphi32 in Target.Personalities))
or (Target.VersionNumber in [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19]);
else
Result := False;
end;
Result := Result and (Target.Personalities * [bpDelphi32, bpDelphi64, bpBCBuilder32, bpBCBuilder64] <> []);
end;
var
Inst: TJclInstallation;
begin
if Supported then
try
Inst := TJclInstallation.Create(Self, Target, bpWin32, nil);
FTargetInstalls.Add(Inst);
// Win64 "virtual" target
if (Target is TJclBDSInstallation) and (Target.IDEVersionNumber >= 9) and (not Target.IsTurboExplorer)
and (bpDelphi64 in Target.Personalities) then
begin
Inst := TJclInstallation.Create(Self, Target, bpWin64, nil);
FTargetInstalls.Add(Inst);
end;
except
end;
Result := True;
end;
destructor TJclDistribution.Destroy;
begin
{$IFDEF MSWINDOWS}
FRegHelpCommands.Free;
{$ENDIF MSWINDOWS}
FRadToolInstallations.Free;
FTargetInstalls.Free;
inherited Destroy;
end;
function TJclDistribution.GetTargetInstall(Index: Integer): TJclInstallation;
begin
Result := TJclInstallation(FTargetInstalls.Items[Index]);
end;
function TJclDistribution.GetTargetInstallCount: Integer;
begin
Result := FTargetInstalls.Count;
end;
function TJclDistribution.GetVersion: string;
function GetRevision: Integer;
var
DailyFileName, SvnEntriesFileName, RevisionText: string;
TextFile: TJclAnsiMappedTextReader;
begin
Result := 0;
DailyFileName := JclPath + DailyRevisionFileName;
if FileExists(DailyFileName) then
begin
// directory from a daily zip
TextFile := TJclAnsiMappedTextReader.Create(DailyFileName);
try
RevisionText := string(TextFile.ReadLn);
Result := StrToIntDef(RevisionText, 0);
finally
TextFile.Free;
end;
end;
if Result = 0 then
begin
SvnEntriesFileName := JclPath + EntriesFileName1;
if not FileExists(SvnEntriesFileName) then
SvnEntriesFileName := JclPath + EntriesFileName2;
if FileExists(SvnEntriesFileName) then
begin
// directory from subversion
TextFile := TJclAnsiMappedTextReader.Create(SvnEntriesFileName);
try
TextFile.ReadLn;
TextFile.ReadLn;
TextFile.ReadLn;
RevisionText := string(TextFile.ReadLn);
Result := StrToIntDef(RevisionText, 0);
finally
TextFile.Free;
end;
end;
end;
end;
var
StableText, Source: string;
Revision: Integer;
begin
if JclVersionRelease = 0 then
begin
Revision := GetRevision;
StableText := RsJclVersionTesting;
end
else
begin
Revision := 0;
StableText := RsJclVersionRelease;
end;
if Revision = 0 then
begin
Source := RsJclVersionBuild;
Revision := JclVersionBuild;
end
else
Source := RsJclVersionRevision;
Result := Format(RsJclVersionMask, [JclVersionMajor, JclVersionMinor, StableText, Source, Revision])
end;
procedure TJclDistribution.Init;
procedure InitDistribution;
var
ExceptDialogsPath, InstallerFileName, ProfileName: string;
Index: Integer;
Settings: IJediConfiguration;
begin
InstallerFileName := ParamStr(0);
FJclPath := PathAddSeparator(ExpandFileName(PathExtractFileDirFixed(InstallerFileName) + '..'));
FLibReleaseDirMask := Format('%slib' + VersionDirExp, [JclPath]);
FLibDebugDirMask := FLibReleaseDirMask + DirDelimiter + 'debug';
FJclBinDir := JclPath + 'bin';
FJclBin64Dir := JclPath + 'bin64';
FJclIncludeDir := PathAddSeparator(JclPath + 'source') + 'include';
FJclIncludeTemplate := PathAddSeparator(FJclIncludeDir) + JclIncludeTemplateFileName;
FJclExamplesDir := JclPath + 'examples';
FJclSourcePath := '';
for Index := Low(JclSrcPaths) to High(JclSrcPaths) do
ListAddItems(FJclSourcePath, DirSeparator, JclPath + JclSrcPaths[Index]);
FJclOldSourcePath := '';
for Index := Low(JclOldSrcPaths) to High(JclOldSrcPaths) do
ListAddItems(FJclOldSourcePath, DirSeparator, JclPath + JclOldSrcPaths[Index]);
ExceptDialogsPath := JclPath + ExceptDlgPath;
FVclDialogFileName := ExceptDialogsPath + ExceptDlgVclFileName;
FVclDialogSendFileName := ExceptDialogsPath + ExceptDlgVclSndFileName;
ExceptDialogsPath := JclPath + ExceptIcoPath;
FVclDialogIconFileName := ExceptDialogsPath + ExceptIcoVclFileName;
FVclDialogSendIconFileName := ExceptDialogsPath + ExceptIcoVclSndFileName;
FJclOldChmHelpFileName := JclPath + JclOldChmHelpFile;
FJclChmHelpFileName := JclPath + JclChmHelpFile;
FJclContainersChmHelpFileName := JclPath + JclContainersChmHelpFile;
FJclDeveloperToolsChmHelpFileName := JclPath + JclDeveloperToolsChmHelpFile;
FJclVclChmHelpFileName := JclPath + JclVclChmHelpFile;
FJclOldHlpHelpFileName := JclPath + JclOldHlpHelpFile;
FJclHlpHelpFileName := JclPath + JclHlpHelpFile;
FJclContainersHlpHelpFileName := JclPath + JclContainersHlpHelpFile;
FJclDeveloperToolsHlpHelpFileName := JclPath + JclDeveloperToolsHlpHelpFile;
FJclVclHlpHelpFileName := JclPath + JclVclHlpHelpFile;
FJclOldHxSHelpFileName := JclPath + JclOldHxSHelpFile;
FJclHxSHelpFileName := JclPath + JclHxSHelpFile;
FJclContainersHxSHelpFileName := JclPath + JclContainersHxSHelpFile;
FJclDeveloperToolsHxSHelpFileName := JclPath + JclDeveloperToolsHxSHelpFile;
FJclVclHxSHelpFileName := JclPath + JclVclHxSHelpFile;
if not FileExists(FJclChmHelpFileName) then
begin
FJclChmHelpFileName := '';
FJclContainersChmHelpFileName := '';
FJclDeveloperToolsChmHelpFileName := '';
FJclVclChmHelpFileName := '';
end;
if not FileExists(FJclHlpHelpFileName) then
begin
FJclHlpHelpFileName := '';
FJclContainersHlpHelpFileName := '';
FJclDeveloperToolsHlpHelpFileName := '';
FJclVclHlpHelpFileName := '';
end;
if not FileExists(FJclHxSHelpFileName) then
begin
FJclHxSHelpFileName := '';
FJclContainersHxSHelpFileName := '';
FJclDeveloperToolsHxSHelpFileName := '';
FJclVclHxSHelpFileName := '';
end;
{$IFDEF MSWINDOWS}
// Reset ReadOnly flag for dialog forms
FileSetAttr(FVclDialogFileName, faArchive);
FileSetAttr(ChangeFileExt(FVclDialogFileName, '.dfm'), faArchive);
FileSetAttr(FVclDialogSendFileName, faArchive);
FileSetAttr(ChangeFileExt(FVclDialogSendFileName, '.dfm'), faArchive);
{$ENDIF MSWINDOWS}
FJclReadmeFileName := JclPath + 'docs' + DirDelimiter + ReadmeFileName;
FJclLicenseFileName := JclPath + LicenseFileName;
if Assigned(GUI) then
begin
FReadMePage := GUI.CreateTextPage;
FReadMePage.Caption := Version;
FReadMePage.TextFileName := FJclReadmeFileName;
FLicensePage := GUI.CreateTextPage;
FLicensePage.Caption := LoadResString(@RsCaptionLicense);
FLicensePage.TextFileName := FJclLicenseFileName;
FLicensePage.AddOption(LoadResString(@RsCaptionLicenseAgreement));
if InstallCore.ProfilesManager.MultipleProfileMode then
begin
FProfilesPage := GUI.CreateProfilesPage;
FProfilesPage.Caption := 'Profiles';
Settings := InstallCore.Configuration;
if Settings <> nil then
for Index := 0 to InstallCore.ProfilesManager.ProfileCount - 1 do
begin
ProfileName := InstallCore.ProfilesManager.ProfileNames[Index];
if Settings.ValueExists(ProfilesSectionName, ProfileName) then
FProfilesPage.IsProfileEnabled[Index] := Settings.OptionAsBoolByName[ProfilesSectionName, ProfileName];
end;
end;
end;
end;
procedure CreateInstallations;
begin
if not RADToolInstallations.Iterate(CreateInstall) then
raise EJediInstallInitFailure.CreateRes(@RsNoInstall);
end;
procedure InitInstallations;
var
I: Integer;
begin
for I := 0 to TargetInstallCount - 1 do
TargetInstalls[I].Init;
end;
begin
FGUI := InstallCore.InstallGUI;
InitDistribution;
CreateInstallations;
InitInstallations;
end;
function TJclDistribution.Install(InstallPage: IJediInstallPage): Boolean;
var
I: Integer;
KeepSettings: Boolean;
AInstallation: TJclInstallation;
XML: TJclSimpleXML;
AInstallationElem: TJclSimpleXMLElem;
LogContent: TStringList;
begin
try
KeepSettings := True;
if RadToolInstallations.AnyInstanceRunning and (not Assigned(GUI) or not GUI.IgnoreRunningIDE) {$IFDEF MSWINDOWS} and not IsDebuggerAttached {$ENDIF} then
begin
if Assigned(GUI) then
GUI.Dialog(LoadResString(@RsCloseRADTool), dtError, [drCancel]);
Result := False;
Exit;
end;
if Assigned(LicensePage) and not LicensePage.Options[0] and (not Assigned(GUI) or not GUI.AutoAcceptMPL) then
begin
if Assigned(GUI) then
GUI.Dialog(LoadResString(@RsMissingLicenseAgreement), dtError, [drCancel]);
LicensePage.Show;
Result := False;
Exit;
end;
{$IFDEF MSWINDOWS}
if Assigned(GUI) then
begin
for I := 0 to TargetInstallCount - 1 do
begin
AInstallation := TargetInstalls[I];
if AInstallation.Enabled then
begin
if (InstallPage = nil) or (AInstallation.GUIPage = InstallPage) then
begin
if Assigned(AInstallation.GUIPage) then
AInstallation.GUIPage.Show;
KeepSettings := GUI.Dialog(LoadResString(@RsKeepExpertSettings),
dtConfirmation, [drYes, drNo]) = drYes;
Break;
end;
end;
end;
end;
RegHelpClearCommands;
{$ENDIF MSWINDOWS}
FNbEnabled := 0;
FNbInstalled := 0;
for I := 0 to TargetInstallCount - 1 do
begin
AInstallation := TargetInstalls[I];
if (InstallPage = nil) or (AInstallation.GUIPage = InstallPage) then
begin
if AInstallation.Enabled then
Inc(FNbEnabled);
if GUI.DeletePreviousLogFiles then
SysUtils.DeleteFile(AInstallation.LogFileName);
end;
end;
Result := True;
for I := 0 to TargetInstallCount - 1 do
begin
AInstallation := TargetInstalls[I];
if AInstallation.Enabled then
begin
if (InstallPage = nil) or (AInstallation.GUIPage = InstallPage) then
begin
AInstallation.Silent := False;
if not KeepSettings then
AInstallation.RemoveSettings;
AInstallation.Uninstall(False);
Result := AInstallation.Install;
if not Result and (not Assigned(GUI) or not GUI.ContinueOnTargetError) then
Break;
Inc(FNbInstalled);
end;
end;
end;
{$IFDEF MSWINDOWS}
Result := Result and RegHelpExecuteCommands(True);
{$ENDIF MSWINDOWS}
finally
if Assigned(GUI) and (GUI.XMLResultFileName <> '') then
begin
XML := TJclSimpleXML.Create;
try
XML.Options := [sxoAutoCreate, sxoAutoIndent, sxoAutoEncodeValue, sxoAutoEncodeEntity];
XML.Root.Name := 'JclInstall';
for I := 0 to TargetInstallCount - 1 do
begin
AInstallation := TargetInstalls[I];
AInstallationElem := XML.Root.Items.Add('Installation');
case AInstallation.TargetPlatform of
bpWin64:
AInstallationElem.Properties.Add('Target', AInstallation.Target.VersionNumberStr + '_x64');
else
AInstallationElem.Properties.Add('Target', AInstallation.Target.VersionNumberStr);
end;
AInstallationElem.Properties.Add('TargetName', AInstallation.TargetName);
AInstallationElem.Properties.Add('Enabled', AInstallation.Enabled);
AInstallationElem.Properties.Add('InstallAttempted', I <= FNbInstalled);
AInstallationElem.Properties.Add('InstallSuccess', AInstallation.InstallSuccess);
AInstallationElem.Properties.Add('LogFileName', Iff(FileExists(AInstallation.LogFileName), AInstallation.LogFileName, ''));
if GUI.IncludeLogFilesInXML and FileExists(AInstallation.LogFileName) then
begin
LogContent := TStringList.Create;
try
LogContent.LoadFromFile(AInstallation.LogFileName{$IFDEF UNICODE}, TEncoding.UTF8{$ENDIF UNICODE});
AInstallationElem.Items.Add('LogFile').Items.AddCData('', {$IFNDEF UNICODE}UTF8Decode{$ENDIF UNICODE}(LogContent.Text));
finally
LogContent.Free;
end;
end;
end;
XML.SaveToFile(GUI.XMLResultFileName, JclStreams.seUTF8);
finally
XML.Free;
end;
end;
end;
end;
{$IFDEF MSWINDOWS}
const
// Reg Helper constant (chronological order)
RHCreateTransaction = 1;
RHRegisterNameSpace = 2;
RHRegisterFile = 3;
RHPlugNameSpace = 4;
RHUnplugNameSpace = 5;
RHUnregisterFile = 6;
RHUnregisterNameSpace = 7;
RHCommitTransaction = 8;
procedure TJclDistribution.RegHelpClearCommands;
begin
FRegHelpCommands.Clear;
end;
procedure TJclDistribution.RegHelpCommitTransaction;
begin
RegHelpInternalAdd(RHCommitTransaction, 'commit', True);
end;
procedure TJclDistribution.RegHelpCreateTransaction;
begin
RegHelpInternalAdd(RHCreateTransaction, 'create', True);
end;
function TJclDistribution.RegHelpExecuteCommands(DisplayErrors: Boolean): Boolean;
var
Index: Integer;
Parameters, LogFileName, ProgramResult, Verb: string;
ResultLines: TJclAnsiMappedTextReader;
TargetInstall: TJclInstallation;
begin
Result := True;
if FRegHelpCommands.Count = 0 then
Exit;
// step 1: compile the RegHelper utility
for Index := TargetInstallCount - 1 downto 0 do // from the end (newer releases ready for vista)
begin
TargetInstall := TargetInstalls[Index];
if (TargetInstall.Enabled) and (TargetInstall.FTargetPlatform = bpWin32) then
begin
Result := TargetInstall.CompileApplication(JclPath + 'install' + DirDelimiter + 'RegHelper.dpr');
if not Result then
begin
if Assigned(GUI) then
GUI.Dialog(RsLogRegHelperFailedCompile, dtError, [drOK]);
Exit;
end;
Break;
end;
end;
// step 2: create parameters for the RegHelper utility
LogFileName := JclBinDir + DirDelimiter + 'RegHelper.log';
if FileExists(LogFileName) then
FileDelete(LogFileName);
Parameters := Format('-c -o"%s"', [LogFileName]);
for Index := 0 to FRegHelpCommands.Count - 1 do
begin
case Integer(FRegHelpCommands.Objects[Index]) of
RHCreateTransaction:
Parameters := Format('%s Create', [Parameters]);
RHRegisterNameSpace:
Parameters := Format('%s "RegNameSpace;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHRegisterFile:
Parameters := Format('%s "RegHelpFile;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHPlugNameSpace:
Parameters := Format('%s "PlugNameSpace;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHUnplugNameSpace:
Parameters := Format('%s "UnplugNameSpace;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHUnregisterFile:
Parameters := Format('%s "UnregHelpFile;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHUnregisterNameSpace:
Parameters := Format('%s "UnregNameSpace;%s"', [Parameters, FRegHelpCommands.Strings[Index]]);
RHCommitTransaction:
Parameters := Format('%s Commit', [Parameters]);
else
if Assigned(GUI) then
GUI.Dialog(LoadResString(@RsLogRegHelperUnknownCommand), dtError, [drOK]);
Exit;
end;
end;
// step 3: inform the user and execute RegHelper
// simple dialog explaining user why we need credentials
if Assigned(GUI) and not IsElevated then
GUI.Dialog(LoadResString(@RsHTMLHelp2Credentials), dtInformation, [drOK]);
// RegHelper.exe manifest requires elevation on Windows Vista/7/8/8.1 and Windows Server 2008/2008R2/2012/2012R2
if IsAdministrator or IsWinVista or IsWinServer2008 or IsWin7 or IsWinServer2008R2 or
IsWin8 or IsWinServer2012 or IsWin81 or IsWinServer2012R2 then
Verb := 'open'
else
Verb := 'runas';
Result := JclShell.ShellExecAndWait(JclBinDir + DirDelimiter + 'RegHelper.exe', Parameters, Verb, SW_HIDE, JclPath + 'help' + DirDelimiter);
// step 4: examine output
if Result then
begin
if not DisplayErrors then
Exit;
Sleep(500); // wait possible antivirus lock
ResultLines := TJclAnsiMappedTextReader.Create(LogFileName);
try
while not ResultLines.Eof do
begin
ProgramResult := string(ResultLines.ReadLn);
if AnsiPos('ERROR', AnsiUpperCase(ProgramResult)) > 0 then
begin
Result := False;
if Assigned(GUI) then
GUI.Dialog(LoadResString(@RsLogRegHelperError) + NativeLineBreak + ProgramResult, dtError, [drCancel]);
end;
end;
finally
ResultLines.Free;
end;
end
else
GUI.Dialog(LoadResString(@RsLogRegHelperFailedExecute), dtError, [drOK]);
end;
procedure TJclDistribution.RegHelpInternalAdd(Command: Integer;
Arguments: string; DoNotRepeatCommand: Boolean);
var
Index: Integer;
AObject: TObject;
begin
Index := 0;
while Index <= FRegHelpCommands.Count do
begin
if Index = FRegHelpCommands.Count then
begin
FRegHelpCommands.AddObject(Arguments, TObject(Command));
Break;
end;
AObject := FRegHelpCommands.Objects[Index];
if (Integer(AObject) = Command) and
(DoNotRepeatCommand or (FRegHelpCommands.Strings[Index] = Arguments)) then
Break;
if Integer(AObject) > Command then
begin
FRegHelpCommands.InsertObject(Index, Arguments, TObject(Command));
Break;
end;
Inc(Index);
end;
end;
procedure TJclDistribution.RegHelpPlugNameSpaceIn(const SourceNameSpace,
TargetNameSpace: WideString);
begin
RegHelpInternalAdd(RHPlugNameSpace, Format('%s;%s', [SourceNameSpace, TargetNameSpace]), False);
end;
procedure TJclDistribution.RegHelpRegisterHelpFile(const NameSpace,
Identifier: WideString; const LangId: Integer; const HxSFile,
HxIFile: WideString);
begin
RegHelpInternalAdd(RHRegisterFile, Format('%s;%s;%d;%s;%s', [NameSpace, Identifier, LangId, HxSFile, HxIFile]), False);
end;
procedure TJclDistribution.RegHelpRegisterNameSpace(const Name, Collection,
Description: WideString);
begin
RegHelpInternalAdd(RHRegisterNameSpace, Format('%s;%s;%s', [Name, Collection, Description]), False);
end;
procedure TJclDistribution.RegHelpUnPlugNameSpace(const SourceNameSpace,
TargetNameSpace: WideString);
begin
RegHelpInternalAdd(RHUnplugNameSpace, Format('%s;%s', [SourceNameSpace, TargetNameSpace]), False);
end;
procedure TJclDistribution.RegHelpUnregisterHelpFile(const NameSpace,
Identifier: WideString; const LangId: Integer);
begin
RegHelpInternalAdd(RHUnregisterFile, Format('%s;%s;%d', [NameSpace, Identifier, LangId]), False);
end;
procedure TJclDistribution.RegHelpUnregisterNameSpace(const Name: WideString);
begin
RegHelpInternalAdd(RHUnregisterNameSpace, Name, False);
end;
{$ENDIF MSWINDOWS}
function TJclDistribution.Uninstall(InstallPage: IJediInstallPage): Boolean;
var
I: Integer;
AInstallation: TJclInstallation;
begin
if RadToolInstallations.AnyInstanceRunning and (not Assigned(GUI) or not GUI.IgnoreRunningIDE) {$IFDEF MSWINDOWS} and not IsDebuggerAttached {$ENDIF} then
begin
if Assigned(GUI) then
GUI.Dialog(LoadResString(@RsCloseRADTool), dtError, [drCancel]);
Result := False;
Exit;
end;
{$IFDEF MSWINDOWS}
RegHelpClearCommands;
{$ENDIF MSWINDOWS}
Result := True;
for I := 0 to TargetInstallCount - 1 do
begin
AInstallation := TargetInstalls[I];
if (InstallPage = nil) or (AInstallation.GUIPage = InstallPage) then
begin
AInstallation.Silent := False;
if AInstallation.Enabled and ((not AInstallation.RemoveSettings) or not AInstallation.Uninstall(True)) then
Result := False;
end;
end;
{$IFDEF MSWINDOWS}
RegHelpExecuteCommands(False);
{$ENDIF MSWINDOWS}
end;
initialization
JediInstall.InstallCore.AddProduct(TJclDistribution.Create);
end.
| 40.373476 | 199 | 0.679001 |
6a1a057fabcb75624bafe63c251691a01d2b1dc5
| 485 |
pas
|
Pascal
|
product-one-plus-sin-div-factorial/ProductOnePlusSinDivFactorial.pas
|
gusenov/problem-solving-in-pascal
|
92b839e5f9f4bbfba1759aef000c056052180249
|
[
"MIT"
] | null | null | null |
product-one-plus-sin-div-factorial/ProductOnePlusSinDivFactorial.pas
|
gusenov/problem-solving-in-pascal
|
92b839e5f9f4bbfba1759aef000c056052180249
|
[
"MIT"
] | null | null | null |
product-one-plus-sin-div-factorial/ProductOnePlusSinDivFactorial.pas
|
gusenov/problem-solving-in-pascal
|
92b839e5f9f4bbfba1759aef000c056052180249
|
[
"MIT"
] | null | null | null |
program ProductOnePlusSinDivFactorial;
procedure Input(var n: Integer; var x: Real);
begin
Write('n -> ');
ReadLn(n);
Write('x -> ');
ReadLn(x);
end;
function Product(n: Integer; x: Real): Real;
var
k, f: Integer;
begin
result := 1;
f := 1;
for k := 1 to n do begin
f := f * k;
result := result * (1 + sin(k * x) / f);
end;
end;
var
n: Integer;
x: Real;
begin
Input(n, x);
WriteLn('P = ', Product(n, x));
end.
| 15.15625 | 46 | 0.519588 |
f1ae9937b507b97d1eb7ac980d98d45dc17c30cf
| 374 |
pas
|
Pascal
|
Demos/Sample1/Ufrmform2.pas
|
devconsult/usercontrol
|
15fb9593042e9a7c92467271dab9127fda84c787
|
[
"Apache-2.0"
] | null | null | null |
Demos/Sample1/Ufrmform2.pas
|
devconsult/usercontrol
|
15fb9593042e9a7c92467271dab9127fda84c787
|
[
"Apache-2.0"
] | null | null | null |
Demos/Sample1/Ufrmform2.pas
|
devconsult/usercontrol
|
15fb9593042e9a7c92467271dab9127fda84c787
|
[
"Apache-2.0"
] | null | null | null |
unit Ufrmform2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;
type
Tfrmform2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmform2: Tfrmform2;
implementation
{$R *.dfm}
end.
| 14.96 | 99 | 0.671123 |
615612d299bf811ab07c506f49c477e596f3a96b
| 3,617 |
pas
|
Pascal
|
graphics/0006.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | 11 |
2015-12-12T05:13:15.000Z
|
2020-10-14T13:32:08.000Z
|
graphics/0006.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | null | null | null |
graphics/0006.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | 8 |
2017-05-05T05:24:01.000Z
|
2021-07-03T20:30:09.000Z
|
{
===========================================================================
BBS: Beta Connection
Date: 08-20-93 (09:59) Number: 2208
From: SEAN PALMER Refer#: NONE
To: ALL Recvd: NO
Subj: FAST mode 13h Li (Part 1) Conf: (232) T_Pascal_R
---------------------------------------------------------------------------
Hey! Here's THE fastest mode 13h bresenham's line drawing function ever.
(I think...prove me wrong, please!!)
It's written for TP 6 or better, uses BASM. If you don't know assembly, just
put it in a unit and don't worry about how it works. If you do, fine.
Some good optimizations in there...
Have fun! If anyone wants the mostly-pascal equivalent, let me know.
It's still fast.
{by Sean Palmer}
{public domain}
var color:byte;
procedure line(x,y,x2,y2:word);assembler;asm {mode 13}
mov ax,$A000
mov es,ax
mov bx,x
mov ax,y
mov cx,x2
mov si,y2
cmp ax,si
jbe @NO_SWAP {always draw downwards}
xchg bx,cx
xchg ax,si
@NO_SWAP:
sub si,ax {yd (pos)}
sub cx,bx {xd (+/-)}
cld {set up direction flag}
jns @H_ABS
neg cx {make x positive}
std
@H_ABS:
mov di,320
mul di
mov di,ax
add di,bx {di:adr}
or si,si
jnz @NOT_H
{horizontal line}
cld
mov al,color
inc cx
rep stosb
jmp @EXIT
@NOT_H:
or cx,cx
jnz @NOT_V
{vertical line}
cld
mov al,color
mov cx,si
inc cx
mov bx,320-1
@VLINE_LOOP:
stosb
add di,bx
loop @VLINE_LOOP
jmp @EXIT
@NOT_V:
cmp cx,si {which is greater distance?}
lahf {then store flags}
ja @H_IND
xchg cx,si {swap for redundant calcs}
@H_IND:
mov dx,si {inc2 (adjustment when decision var rolls over)}
sub dx,cx
shl dx,1
shl si,1 {inc1 (step for decision var)}
mov bx,si {decision var, tells when we need to go secondary direction}
sub bx,cx
inc cx
push bp {need another register to hold often-used constant}
mov bp,320
mov al,color
sahf {restore flags}
jb @DIAG_V
{mostly-horizontal diagonal line}
or bx,bx {set flags initially, set at end of loop for other iterations}
@LH:
stosb {plot and move x, doesn't affect flags}
jns @SH {decision var rollover in bx?}
add bx,si
loop @LH {doesn't affect flags}
jmp @X
@SH:
add di,bp
add bx,dx
loop @LH {doesn't affect flags}
jmp @X
@DIAG_V:
{mostly-vertical diagonal line}
or bx,bx {set flags initially, set at end of loop for other iterations}
@LV:
mov es:[di],al {plot, doesn't affect flags}
jns @SV {decision var rollover in bx?}
add di,bp {update y coord}
add bx,si
loop @LV {doesn't affect flags}
jmp @X
@SV:
scasb {sure this is superfluous but it's a quick way to inc/dec x coord!}
add di,bp {update y coord}
add bx,dx
loop @LV {doesn't affect flags}
@X:
pop bp
@EXIT:
end;
var k,i,j:word;
begin
asm mov ax,$13; int $10; end;
for k:=0 to 31 do begin
i:=k*10;
j:=k*6;
color:=14;
line(159,99,i,0);
color:=13;
line(160,99,319,j);
color:=12;
line(160,100,319-i,199);
color:=11;
line(159,100,0,199-j);
i:=k*9;
j:=k*5;
color:=6;
line(i,0,159,99);
color:=5;
line(319,j,160,99);
color:=4;
line(319-i,199,160,100);
color:=3;
line(0,199-j,159,100);
end;
Readln;
asm mov ax,3; int $10; end;
end.
... I'm not unemployed, I'm indefinitely leisured.
___ Blue Wave/QWK v2.12
---
* deltaComm Online 919-481-9399 - 10 lines
* PostLink(tm) v1.06 DELTA (#22) : RelayNet(tm) HUB
| 23.487013 | 77 | 0.582803 |
f169bcd002e1474a01d824e3f1cbaf06fbec3f67
| 4,430 |
pas
|
Pascal
|
AVXVecConvolve.pas
|
atkins126/mrmath
|
317630845b3b84c2c27245fdabd20827d620d5ae
|
[
"Apache-2.0"
] | 61 |
2015-04-30T07:28:54.000Z
|
2022-03-16T09:03:41.000Z
|
AVXVecConvolve.pas
|
atkins126/mrmath
|
317630845b3b84c2c27245fdabd20827d620d5ae
|
[
"Apache-2.0"
] | 6 |
2017-02-01T02:58:23.000Z
|
2022-01-24T13:59:34.000Z
|
AVXVecConvolve.pas
|
atkins126/mrmath
|
317630845b3b84c2c27245fdabd20827d620d5ae
|
[
"Apache-2.0"
] | 29 |
2015-04-30T07:29:02.000Z
|
2022-03-26T05:20:10.000Z
|
// ###################################################################
// #### This file is part of the mathematics library project, and is
// #### offered under the licence agreement described on
// #### http://www.mrsoft.org/
// ####
// #### Copyright:(c) 2018, Michael R. . All rights reserved.
// ####
// #### Unless required by applicable law or agreed to in writing, software
// #### distributed under the License is distributed on an "AS IS" BASIS,
// #### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// #### See the License for the specific language governing permissions and
// #### limitations under the License.
// ###################################################################
unit AVXVecConvolve;
interface
{$IFDEF CPUX64}
{$DEFINE x64}
{$ENDIF}
{$IFDEF cpux86_64}
{$DEFINE x64}
{$ENDIF}
{$IFNDEF x64}
uses MatrixConst;
// simple convolution: the input and output parameter are assumed to be vectors!
// it's also assumed that memory before A is accessible for at least bLen elements
// -> these elements are used for the convulution calculation
// -> needs an aligned B and blen mod 2 needs to be zero
procedure AVXVecConvolveRevB(dest : PDouble; A, B : PDouble; aLen, bLen : TASMNativeInt); {$IFDEF FPC} assembler; {$ELSE} register; {$ENDIF}
{$ENDIF}
implementation
{$IFNDEF x64}
{$IFDEF FPC} {$ASMMODE intel} {$S-} {$ENDIF}
procedure AVXVecConvolveRevB(dest : PDouble; A, B : PDouble; aLen, bLen : TASMNativeInt);
// eax = dest, edx = A, ecx = B
asm
push ebx;
push esi;
push edi;
mov esi, bLen;
imul esi, -8;
add edx, 8;
sub ecx, esi;
// one element convolution
@@forxloop:
mov edi, esi;
xorpd xmm0, xmm0;
// unrolled part
@@innerLoopUnrolled:
add edi, 128;
jg @@innerLoopStart;
{$IFDEF FPC}vmovupd ymm1, [edx + edi - 128];{$ELSE}db $C5,$FD,$10,$4C,$3A,$80;{$ENDIF}
{$IFDEF FPC}vmovapd ymm2, [ecx + edi - 128];{$ELSE}db $C5,$FD,$28,$54,$39,$80;{$ENDIF}
{$IFDEF FPC}vmulpd ymm1, ymm1, ymm2;{$ELSE}db $C5,$F5,$59,$CA;{$ENDIF}
{$IFDEF FPC}vaddpd ymm0, ymm0, ymm1;{$ELSE}db $C5,$FD,$58,$C1;{$ENDIF}
{$IFDEF FPC}vmovupd ymm3, [edx + edi - 96];{$ELSE}db $C5,$FD,$10,$5C,$3A,$A0;{$ENDIF}
{$IFDEF FPC}vmovapd ymm4, [ecx + edi - 96];{$ELSE}db $C5,$FD,$28,$64,$39,$A0;{$ENDIF}
{$IFDEF FPC}vmulpd ymm3, ymm3, ymm4;{$ELSE}db $C5,$E5,$59,$DC;{$ENDIF}
{$IFDEF FPC}vaddpd ymm0, ymm0, ymm3;{$ELSE}db $C5,$FD,$58,$C3;{$ENDIF}
{$IFDEF FPC}vmovupd ymm1, [edx + edi - 64];{$ELSE}db $C5,$FD,$10,$4C,$3A,$C0;{$ENDIF}
{$IFDEF FPC}vmovapd ymm2, [ecx + edi - 64];{$ELSE}db $C5,$FD,$28,$54,$39,$C0;{$ENDIF}
{$IFDEF FPC}vmulpd ymm1, ymm1, ymm2;{$ELSE}db $C5,$F5,$59,$CA;{$ENDIF}
{$IFDEF FPC}vaddpd ymm0, ymm0, ymm1;{$ELSE}db $C5,$FD,$58,$C1;{$ENDIF}
{$IFDEF FPC}vmovupd ymm3, [edx + edi - 32];{$ELSE}db $C5,$FD,$10,$5C,$3A,$E0;{$ENDIF}
{$IFDEF FPC}vmovapd ymm4, [ecx + edi - 32];{$ELSE}db $C5,$FD,$28,$64,$39,$E0;{$ENDIF}
{$IFDEF FPC}vmulpd ymm3, ymm3, ymm4;{$ELSE}db $C5,$E5,$59,$DC;{$ENDIF}
{$IFDEF FPC}vaddpd ymm0, ymm0, ymm3;{$ELSE}db $C5,$FD,$58,$C3;{$ENDIF}
jmp @@innerLoopUnrolled;
@@innerLoopStart:
sub edi, 128;
jz @@innerLoopEnd;
@@innerLoop:
{$IFDEF FPC}vmovupd ymm1, [edx + edi];{$ELSE}db $C5,$FD,$10,$0C,$3A;{$ENDIF}
{$IFDEF FPC}vmovapd ymm2, [ecx + edi];{$ELSE}db $C5,$FD,$28,$14,$39;{$ENDIF}
{$IFDEF FPC}vmulpd ymm1, ymm1, ymm2;{$ELSE}db $C5,$F5,$59,$CA;{$ENDIF}
{$IFDEF FPC}vaddpd ymm0, ymm0, ymm1;{$ELSE}db $C5,$FD,$58,$C1;{$ENDIF}
add edi, 32;
jnz @@innerLoop;
@@innerLoopEnd:
{$IFDEF FPC}vextractf128 xmm1, ymm0, 1;{$ELSE}db $C4,$E3,$7D,$19,$C1,$01;{$ENDIF}
{$IFDEF FPC}vaddpd xmm0, xmm0, xmm1;{$ELSE}db $C5,$F9,$58,$C1;{$ENDIF}
{$IFDEF FPC}vhaddpd xmm0, xmm0, xmm0;{$ELSE}db $C5,$F9,$7C,$C0;{$ENDIF}
{$IFDEF FPC}vmovsd [eax], xmm0;{$ELSE}db $C5,$FB,$11,$00;{$ENDIF}
// next element
add eax, 8;
add edx, 8;
dec aLen;
jnz @@forxloop;
// ########################################
// #### epilog
pop edi;
pop esi;
pop ebx;
end;
{$ENDIF}
end.
| 34.076923 | 141 | 0.546953 |
83550155c3b2109e001967b5ff123e56177ee118
| 4,160 |
pas
|
Pascal
|
Common/SELicenseSDK.pas
|
98kmir2/98kmir2
|
46196a161d46cc7a85d168dca683b4aff477a709
|
[
"BSD-3-Clause"
] | 15 |
2020-02-13T11:59:11.000Z
|
2021-12-31T14:53:44.000Z
|
Common/SELicenseSDK.pas
|
bsjzx8/98
|
46196a161d46cc7a85d168dca683b4aff477a709
|
[
"BSD-3-Clause"
] | null | null | null |
Common/SELicenseSDK.pas
|
bsjzx8/98
|
46196a161d46cc7a85d168dca683b4aff477a709
|
[
"BSD-3-Clause"
] | 13 |
2020-02-20T07:22:09.000Z
|
2021-12-31T14:56:09.000Z
|
unit SELicenseSDK;
{$ALIGN ON}
{$MINENUMSIZE 4}
interface
uses
Windows;
type
sSELicenseUserInfoA = record
UserID: array[0..255] of AnsiChar;
Remarks: array[0..1023] of AnsiChar;
LicenseDate: SYSTEMTIME;
end;
sSELicenseUserInfoW = record
UserID: array[0..255] of WideChar;
Remarks: array[0..1023] of WideChar;
LicenseDate: SYSTEMTIME;
end;
sSELicenseTrialInfo = record
NumDays: Integer;
NumExec: Integer;
ExpDate: SYSTEMTIME;
CountryId: Integer;
ExecTime: Integer;
TotalExecTime: Integer;
end;
sSELicenseHashInfo = record
Hash: array[0..15] of Char;
end;
const
SE_ERR_SUCCESS = 0;
SE_ERR_INTERNAL_ERROR = 1;
SE_ERR_TOOL_DETECTION = 2;
SE_ERR_CHECKSUM_FAILED = 3;
SE_ERR_VIRTUALIZATION_FOUND = 4;
SE_ERR_LICENSE_NOT_FOUND = 5;
SE_ERR_LICENSE_CORRUPTED = 6;
SE_ERR_LICENSE_FILE_MISMATCH = 7;
SE_ERR_LICENSE_HARDWARE_ID_MISMATCH = 8;
SE_ERR_LICENSE_DAYS_EXPIRED = 9;
SE_ERR_LICENSE_EXEC_EXPIRED = 10;
SE_ERR_LICENSE_DATE_EXPIRED = 11;
SE_ERR_LICENSE_COUNTRY_ID_MISMATCH = 12;
SE_ERR_LICENSE_NO_MORE_EXEC_TIME = 13;
SE_ERR_LICENSE_NO_MORE_TOTALEXEC_TIME = 14;
SE_ERR_LICENSE_BANNED = 15;
SE_ERR_SERVER_ERROR = 16;
SE_STATUS_INIT = 0;
SE_STATUS_NORMAL = 1;
SELicenseDLL = 'SESDKDummy.DLL';
function SEGetNumExecUsed(): Integer; stdcall; external SELicenseDLL name 'SEGetNumExecUsed';
function SEGetNumExecLeft(): Integer; stdcall; external SELicenseDLL name 'SEGetNumExecLeft';
function SESetNumExecUsed(Num: Integer): Integer; stdcall; external SELicenseDLL name 'SESetNumExecUsed';
function SEGetExecTimeUsed(): Integer; stdcall; external SELicenseDLL name 'SEGetExecTimeUsed';
function SEGetExecTimeLeft(): Integer; stdcall; external SELicenseDLL name 'SEGetExecTimeLeft';
function SESetExecTime(Num: Integer): Integer; stdcall; external SELicenseDLL name 'SESetExecTime';
function SEGetTotalExecTimeUsed(): Integer; stdcall; external SELicenseDLL name 'SEGetTotalExecTimeUsed';
function SEGetTotalExecTimeLeft(): Integer; stdcall; external SELicenseDLL name 'SEGetTotalExecTimeLeft';
function SESetTotalExecTime(Num: Integer): Integer; stdcall; external SELicenseDLL name 'SESetTotalExecTime';
function SEGetNumDaysUsed(): Integer; stdcall; external SELicenseDLL name 'SEGetNumDaysUsed';
function SEGetNumDaysLeft(): Integer; stdcall; external SELicenseDLL name 'SEGetNumDaysLeft';
function SECheckHardwareID(): Integer; stdcall; external SELicenseDLL name 'SECheckHardwareID';
function SECheckExpDate(): Integer; stdcall; external SELicenseDLL name 'SECheckExpDate';
function SECheckExecTime(): Integer; stdcall; external SELicenseDLL name 'SECheckExecTime';
function SECheckCountryID(): Integer; stdcall; external SELicenseDLL name 'SECheckCountryID';
function SEGetLicenseUserInfoA(var UserInfo: sSELicenseUserInfoA): Integer; stdcall; external SELicenseDLL name 'SEGetLicenseUserInfoA';
function SEGetLicenseUserInfoW(var UserInfo: sSELicenseUserInfoW): Integer; stdcall; external SELicenseDLL name 'SEGetLicenseUserInfoW';
function SEGetLicenseTrialInfo(var TrialInfo: sSELicenseTrialInfo): Integer; stdcall; external SELicenseDLL name 'SEGetLicenseTrialInfo';
function SEGetHardwareIDA(pBuf: PAnsiChar; MaxChars: Integer): Integer; stdcall; external SELicenseDLL name 'SEGetHardwareIDA';
function SEGetHardwareIDW(pBuf: PWideChar; MaxWChars: Integer): Integer; stdcall; external SELicenseDLL name 'SEGetHardwareIDW';
function SECheckLicenseFileA(pLicenseFileName: PAnsiChar): Integer; stdcall; external SELicenseDLL name 'SECheckLicenseFileA';
function SECheckLicenseFileW(pLicenseFileName: PWideChar): Integer; stdcall; external SELicenseDLL name 'SECheckLicenseFileW';
function SECheckLicenseFileEx(pLicenseFile: PChar; Size: Integer): Integer; stdcall; external SELicenseDLL name 'SECheckLicenseFileEx';
function SEGetLicenseHash(pLicenseHash: PChar): Integer; stdcall; external SELicenseDLL name 'SEGetLicenseHash';
procedure SENotifyLicenseBanned(); stdcall; external SELicenseDLL name 'SENotifyLicenseBanned';
function SEResetTrial(): Integer; stdcall; external SELicenseDLL name 'SEResetTrial';
implementation
end.
| 40.784314 | 137 | 0.803365 |
85588a57b05fae980040093e468f9064b968bf2f
| 4,993 |
pas
|
Pascal
|
samples/articles_crud_vcl_client_api_binder/MainFormU.pas
|
lukaszsegiet/delphimvcframework
|
f78156a9618694ae32fb5d1e70dd545418587475
|
[
"Apache-2.0"
] | 1 |
2018-01-02T09:13:27.000Z
|
2018-01-02T09:13:27.000Z
|
samples/articles_crud_vcl_client_api_binder/MainFormU.pas
|
lukaszsegiet/delphimvcframework
|
f78156a9618694ae32fb5d1e70dd545418587475
|
[
"Apache-2.0"
] | null | null | null |
samples/articles_crud_vcl_client_api_binder/MainFormU.pas
|
lukaszsegiet/delphimvcframework
|
f78156a9618694ae32fb5d1e70dd545418587475
|
[
"Apache-2.0"
] | null | null | null |
unit MainFormU;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf,
FireDAC.DApt.Intf, Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client,
Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls, Vcl.StdCtrls, MVCFramework.RESTClient, MVCFramework.RESTClient.Intf,
Vcl.DBCtrls, MVCFramework.DataSet.Utils;
type
TMainForm = class(TForm)
Panel1: TPanel;
DBGrid1: TDBGrid;
dsArticles: TFDMemTable;
dsArticlesid: TIntegerField;
dsArticlescode: TStringField;
dsArticlesdescription: TStringField;
dsArticlesprice: TCurrencyField;
dsrcArticles: TDataSource;
DBNavigator1: TDBNavigator;
btnOpen: TButton;
btnRefreshRecord: TButton;
Button1: TButton;
Panel2: TPanel;
EditFilter: TEdit;
Label1: TLabel;
btnFilter: TButton;
procedure FormCreate(Sender: TObject);
procedure dsArticlesBeforePost(DataSet: TDataSet);
procedure dsArticlesBeforeDelete(DataSet: TDataSet);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure dsArticlesBeforeRefresh(DataSet: TDataSet);
procedure dsArticlesAfterOpen(DataSet: TDataSet);
procedure btnOpenClick(Sender: TObject);
procedure btnCloseClick(Sender: TObject);
procedure dsArticlesBeforeRowRequest(DataSet: TFDDataSet);
procedure btnRefreshRecordClick(Sender: TObject);
procedure btnFilterClick(Sender: TObject);
private
fFilter: string;
fLoading: Boolean;
fRESTClient: IMVCRESTClient;
fAPIBinder: TMVCAPIBinder;
{ Private declarations }
procedure ShowError(const AResponse: IMVCRESTResponse);
procedure SetFilter(const Value: string);
public
property Filter: string read fFilter write SetFilter;
end;
var
MainForm: TMainForm;
implementation
uses
System.UITypes;
{$R *.dfm}
procedure TMainForm.btnCloseClick(Sender: TObject);
begin
dsArticles.Close;
end;
procedure TMainForm.btnFilterClick(Sender: TObject);
begin
dsArticles.Close;
Filter := EditFilter.Text;;
dsArticles.Open;
end;
procedure TMainForm.btnOpenClick(Sender: TObject);
begin
dsArticles.Close;
Filter := '';
dsArticles.Open;
end;
procedure TMainForm.btnRefreshRecordClick(Sender: TObject);
begin
dsArticles.RefreshRecord;
end;
procedure TMainForm.dsArticlesAfterOpen(DataSet: TDataSet);
var
Res: IMVCRESTResponse;
begin
if fFilter.IsEmpty then
begin
// this a simple sychronous request...
Res := fRESTClient.Get('/articles');
end
else
begin
Res := fRESTClient.AddQueryStringParam('q', fFilter).Get('/articles/searches');
end;
if not Res.Success then
begin
ShowError(Res);
Exit;
end;
DataSet.DisableControls;
try
fLoading := true;
dsArticles.LoadJSONArrayFromJSONObjectProperty('data', Res.Content);
fLoading := false;
dsArticles.First;
finally
DataSet.EnableControls;
end;
end;
procedure TMainForm.dsArticlesBeforeDelete(DataSet: TDataSet);
var
Res: IMVCRESTResponse;
begin
if dsArticles.State = dsBrowse then
Res := fRESTClient.DataSetDelete('/articles', dsArticlesid.AsString);
if not(Res.StatusCode in [200]) then
begin
ShowError(Res);
Abort;
end;
end;
procedure TMainForm.dsArticlesBeforePost(DataSet: TDataSet);
var
Res: IMVCRESTResponse;
begin
if not fLoading then
begin
if dsArticles.State = dsInsert then
Res := fRESTClient.DataSetInsert('/articles', dsArticles)
else
Res := fRESTClient.DataSetUpdate('/articles', dsArticlesid.AsString, dsArticles);
if not(Res.StatusCode in [200, 201]) then
begin
ShowError(Res);
Abort;
end
else
begin
DataSet.Refresh;
end;
end;
end;
procedure TMainForm.dsArticlesBeforeRefresh(DataSet: TDataSet);
begin
DataSet.Close;
DataSet.Open;
end;
procedure TMainForm.dsArticlesBeforeRowRequest(DataSet: TFDDataSet);
var
Res: IMVCRESTResponse;
begin
Res := fRESTClient.AddPathParam('Id', DataSet.FieldByName('id').AsString).Get('/articles/($Id)');
fLoading := true;
DataSet.LoadJSONObjectFromJSONObjectProperty('data', Res.Content);
fLoading := false;
end;
procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
fAPIBinder.Free;
end;
procedure TMainForm.FormCreate(Sender: TObject);
begin
ReportMemoryLeaksOnShutdown := True;
fRESTClient := TMVCRESTClient.New.BaseURL('localhost', 8080);
fAPIBinder := TMVCAPIBinder.Create(fRESTClient);
fAPIBinder.BindDataSetToAPI(dsArticles, '/articles', 'id');
end;
procedure TMainForm.SetFilter(const Value: string);
begin
fFilter := Value;
EditFilter.Text := Value;
end;
procedure TMainForm.ShowError(const AResponse: IMVCRESTResponse);
begin
MessageDlg(
AResponse.StatusCode.ToString + ': ' + AResponse.StatusText + sLineBreak +
'[' + AResponse.Content + ']',
mtError, [mbOK], 0)
end;
end.
| 25.090452 | 108 | 0.738834 |
83afb9885b2db3a944a711494854c69c16b78595
| 1,513 |
pas
|
Pascal
|
Codigos/UnitQRCReceber.pas
|
MDsolucoesTI/Artemis
|
3cc739f0b0f6700b9abc4b4aa414dc58e38c4c9e
|
[
"MIT"
] | null | null | null |
Codigos/UnitQRCReceber.pas
|
MDsolucoesTI/Artemis
|
3cc739f0b0f6700b9abc4b4aa414dc58e38c4c9e
|
[
"MIT"
] | null | null | null |
Codigos/UnitQRCReceber.pas
|
MDsolucoesTI/Artemis
|
3cc739f0b0f6700b9abc4b4aa414dc58e38c4c9e
|
[
"MIT"
] | 1 |
2021-12-03T08:22:41.000Z
|
2021-12-03T08:22:41.000Z
|
//////////////////////////////////////////////////////////////////////////
// Criacao...........: 02/2001
// Sistema...........: Artemis - Controle de Financeiro
// Integracao........: Olimpo - Automacao Comercial
// Analistas.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho
// Desenvolvedores...: Marilene Esquiavoni & Denny Paulista Azevedo Filho
// Copyright.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho
//////////////////////////////////////////////////////////////////////////
unit UnitQRCReceber;
interface
uses Windows, SysUtils, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, Quickrpt, QRCtrls;
type
TQRCreceber = class(TQuickRep)
QRBand1: TQRBand;
QRLabel2: TQRLabel;
QRBand3: TQRBand;
QRDBText1: TQRDBText;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText6: TQRDBText;
QRDBText7: TQRDBText;
QRDBText5: TQRDBText;
QRBand4: TQRBand;
QRSysData1: TQRSysData;
QRSysData2: TQRSysData;
QRBand2: TQRBand;
QRLabel3: TQRLabel;
QRLabel5: TQRLabel;
QRLabel8: TQRLabel;
QRLabel7: TQRLabel;
QRLabel4: TQRLabel;
QRLabel6: TQRLabel;
QRLabel10: TQRLabel;
QRLabel9: TQRLabel;
QRDBText4: TQRDBText;
QRDBImage1: TQRDBImage;
QRDBText8: TQRDBText;
QRShape1: TQRShape;
QRShape2: TQRShape;
private
public
end;
var
QRCreceber: TQRCreceber;
implementation
uses unitDmDados;
{$R *.DFM}
end.
| 24.803279 | 75 | 0.593523 |
f170a485b7695f313e2f1edbeb11ff97b5892fa0
| 5,270 |
pas
|
Pascal
|
Source/Base/Logging/Spring.Logging.Appenders.Base.pas
|
VSoftTechnologies/Spring4DMirror
|
083931ede091613e82173fa41da413bb9ffcebea
|
[
"Apache-2.0"
] | 1 |
2021-02-17T12:38:20.000Z
|
2021-02-17T12:38:20.000Z
|
Source/Base/Logging/Spring.Logging.Appenders.Base.pas
|
VSoftTechnologies/Spring4DMirror
|
083931ede091613e82173fa41da413bb9ffcebea
|
[
"Apache-2.0"
] | null | null | null |
Source/Base/Logging/Spring.Logging.Appenders.Base.pas
|
VSoftTechnologies/Spring4DMirror
|
083931ede091613e82173fa41da413bb9ffcebea
|
[
"Apache-2.0"
] | 2 |
2021-03-17T07:42:29.000Z
|
2021-05-03T13:55:00.000Z
|
{***************************************************************************}
{ }
{ Spring Framework for Delphi }
{ }
{ Copyright (c) 2009-2021 Spring4D Team }
{ }
{ http://www.spring4d.org }
{ }
{***************************************************************************}
{ }
{ Licensed under the Apache License, Version 2.0 (the "License"); }
{ you may not use this file except in compliance with the License. }
{ You may obtain a copy of the License at }
{ }
{ http://www.apache.org/licenses/LICENSE-2.0 }
{ }
{ Unless required by applicable law or agreed to in writing, software }
{ distributed under the License is distributed on an "AS IS" BASIS, }
{ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. }
{ See the License for the specific language governing permissions and }
{ limitations under the License. }
{ }
{***************************************************************************}
{$I Spring.inc}
unit Spring.Logging.Appenders.Base;
{$IFDEF DELPHIXE4_UP}
{$ZEROBASEDSTRINGS OFF}
{$ENDIF}
interface
uses
SysUtils,
Spring,
Spring.Logging,
Spring.Logging.Loggers;
type
{$REGION 'TLogAppenderBase'}
TLogAppenderBase = class abstract(TLoggerBase, ILogAppender)
private
{$REGION 'Helper constants and functions'}
protected const
//May or may not be used by descendants, its here just for convenience
LEVEL: array[TLogLevel] of string = (
'[UNKNOWN]',
'[VERBOSE]',
'[DEBUG]',
'[TEXT]',
'[INFO]',
'[WARN]',
'[ERROR]',
'[FATAL]'
);
LEVEL_FIXED: array[TLogLevel] of string = (
'[UNK ]',
'[VERB ]',
'[DEBUG]',
'[TEXT ]',
'[INFO ]',
'[WARN ]',
'[ERROR]',
'[FATAL]'
);
public
class function FormatText(const event: TLogEvent): string; static; inline;
class function FormatMsg(const event: TLogEvent): string; static; inline;
class function FormatException(const e: Exception): string; static; //noinline
class function FormatMethodName(classType: TClass;
const methodName: string): string; static; inline;
class function FormatEntering(classType: TClass;
const methodName: string): string; static; inline;
class function FormatLeaving(classType: TClass;
const methodName: string): string; static; inline;
{$ENDREGION}
protected
procedure DoSend(const event: TLogEvent); virtual; abstract;
public
procedure Send(const event: TLogEvent);
end;
{$ENDREGION}
implementation
uses
Spring.Logging.ResourceStrings;
{$REGION 'TLogAppenderBase'}
class function TLogAppenderBase.FormatException(const e: Exception): string;
var
len: Integer;
begin
SetLength(Result, 1024);
len := ExceptionErrorMessage(e, ExceptAddr, @Result[1], Length(Result));
SetLength(Result, len);
end;
class function TLogAppenderBase.FormatMethodName(classType: TClass;
const methodName: string): string;
begin
if Assigned(classType) then
Result := GetQualifiedClassName(classType) + '.' + methodName
else
Result := methodName;
end;
class function TLogAppenderBase.FormatEntering(classType: TClass;
const methodName: string): string;
begin
Result := SLogEntering + FormatMethodName(classType, methodName);
end;
class function TLogAppenderBase.FormatLeaving(classType: TClass;
const methodName: string): string;
begin
Result := SLogLeaving + FormatMethodName(classType, methodName);
end;
class function TLogAppenderBase.FormatText(const event: TLogEvent): string;
begin
case event.EventType of
TLogEventType.Text,
TLogEventType.SerializedData,
TLogEventType.CallStack:
Result := event.Msg;
TLogEventType.Value:
Result := event.Msg + ': ' + event.Data.ToString;
TLogEventType.Entering:
Result := FormatEntering(event.ClassType, event.Msg);
TLogEventType.Leaving:
Result := FormatLeaving(event.ClassType, event.Msg);
end;
end;
class function TLogAppenderBase.FormatMsg(const event: TLogEvent): string;
begin
if event.Exception = nil then
Result := FormatText(event)
else
if event.Msg <> '' then
Result := FormatText(event) + ': ' + FormatException(event.Exception)
else
Result := FormatException(event.Exception);
end;
procedure TLogAppenderBase.Send(const event: TLogEvent);
begin
if IsEnabled(event.Level, [event.EventType]) then
DoSend(event);
end;
{$ENDREGION}
end.
| 31.746988 | 82 | 0.551613 |
cd4be7857e6a76bf8628339f7d6cbad9f993c704
| 10,460 |
pas
|
Pascal
|
src/clientProcesplanForm.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | null | null | null |
src/clientProcesplanForm.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | 4 |
2015-01-27T21:45:53.000Z
|
2015-03-26T20:04:29.000Z
|
src/clientProcesplanForm.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | null | null | null |
unit clientProcesplanForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
clientProcesPlanFrame, stwvProcesplan, stwvRijwegLogica, stwvCore, stwvLog,
clientSendMsg, stwvMeetpunt, stwvMisc, stwvSeinen, stwvTreinInfo, StdCtrls,
stwpTijd, ExtCtrls;
type
TLinksRechts = (lrLinks, lrRechts);
PFrameList = ^TFrameList;
TFrameList = record
PPFrame: TstwscProcesPlanFrame;
Volgende: PFrameList;
end;
TOnHerkenProcesplanClose = procedure of object;
TstwscProcesplanForm = class(TForm)
LiPanel: TPanel;
RePanel: TPanel;
OpenDialog: TOpenDialog;
LiBtnPanel: TPanel;
ProcesplanToevBtn: TButton;
procedure ProcesplanToevBtnClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
PPFramesLinks,
PPFramesRechts: PFrameList;
FramesLinks,
FramesRechts: integer;
VorigeTijd: integer;
procedure AddFrame(PPFrame: PFrameList; waar: tLinksRechts);
public
RijwegLogica: TRijwegLogica;
Core: PvCore;
SendMsg: TvSendMsg;
Log: TLog;
// Event
OnHerkenProcesplanClose : TOnHerkenProcesplanClose;
// Dit moeten we doorgeven aan ieder procesplan(frame)
procedure UpdateLijst;
procedure DoeStapje;
function TreinIsAfgehandeld: boolean;
procedure TreinnummerNieuw(Meetpunt: PvMeetpunt);
procedure TreinnummerWeg(Meetpunt: PvMeetpunt);
procedure MarkeerVrij(Meetpunt: PvMeetpunt);
procedure TreinInfo(TreinInfoData: TvTreinInfo);
function CreateFrame(Filename: string): PFrameList;
procedure RecalcSizes;
procedure SaveStatus(var f: file);
procedure LoadStatus(var f: file; SgVersion: integer);
procedure ProcesplannenReset;
end;
var
stwscProcesplanForm: TstwscProcesplanForm;
implementation
{$R *.DFM}
procedure TstwscProcesplanForm.UpdateLijst;
var
Frame: PFrameList;
begin
Frame := PPFramesLinks;
while assigned(Frame) do begin
if Frame^.PPFrame.ProcesPlan.Gewijzigd then
Frame^.PPFrame.UpdateLijst;
Frame^.PPFrame.ProcesPlan.Gewijzigd := false;
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
if Frame^.PPFrame.ProcesPlan.Gewijzigd then
Frame^.PPFrame.UpdateLijst;
Frame^.PPFrame.ProcesPlan.Gewijzigd := false;
Frame := Frame^.Volgende;
end;
end;
procedure TstwscProcesplanForm.DoeStapje;
var
Frame: PFrameList;
minuutstap: boolean;
u,m,s,ou,om,os: integer;
begin
FmtTijd(GetTijd, u,m,s);
FmtTijd(VorigeTijd, ou,om,os);
VorigeTijd := GetTijd;
minuutstap := om <> m;
Frame := PPFramesLinks;
while assigned(Frame) do begin
if Frame^.PPFrame.ARI then begin
Frame^.PPFrame.ProcesPlan.DoeStapje;
end;
if minuutstap then
Frame^.PPFrame.RegelList.Invalidate;
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
if Frame^.PPFrame.ARI then begin
Frame^.PPFrame.ProcesPlan.DoeStapje;
end;
if minuutstap then
Frame^.PPFrame.RegelList.Invalidate;
Frame := Frame^.Volgende;
end;
end;
function TstwscProcesplanForm.TreinIsAfgehandeld;
var
Frame: PFrameList;
begin
result := false;
Frame := PPFramesLinks;
while assigned(Frame) do begin
result := result or Frame^.PPFrame.ProcesPlan.TreinIsAfgehandeld;
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
result := result or Frame^.PPFrame.ProcesPlan.TreinIsAfgehandeld;
Frame := Frame^.Volgende;
end;
end;
procedure TstwscProcesplanForm.MarkeerVrij;
begin
// Misschien kunnen we nu een in behandeling zijnde rijweg instellen.
DoeStapje;
end;
procedure TstwscProcesplanForm.TreinnummerNieuw;
var
Frame: PFrameList;
begin
Frame := PPFramesLinks;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinnummerNieuw(Meetpunt);
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinnummerNieuw(Meetpunt);
Frame := Frame^.Volgende;
end;
end;
procedure TstwscProcesplanForm.TreinnummerWeg;
var
Frame: PFrameList;
begin
Frame := PPFramesLinks;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinnummerWeg(Meetpunt);
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinnummerWeg(Meetpunt);
Frame := Frame^.Volgende;
end;
end;
procedure TstwscProcesplanForm.TreinInfo;
var
Frame: PFrameList;
begin
Frame := PPFramesLinks;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinInfo(TreinInfoData);
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.TreinInfo(TreinInfoData);
Frame := Frame^.Volgende;
end;
end;
function TstwscProcesplanForm.CreateFrame;
var
PPFrame: PFrameList;
s: string;
begin
new(PPFrame);
PPFrame^.PPFrame := TstwscProcesPlanFrame.Create(Self);
PPFrame^.PPFrame.Name := 'PPFrame'+IntToStr(FramesLinks+FramesRechts);
PPFrame^.PPFrame.Visible := true;
PPFrame^.PPFrame.Core := Core;
s := copy(Filename, 1, length(Filename)-length(ExtractFileExt(Filename)));
PPFrame^.PPFrame.FName := Uppercase(copy(s,1,1))+LowerCase(copy(s,2,length(s)-1));
PPFrame^.PPFrame.titelLabel.Caption := PPFrame^.PPFrame.FName;
PPFrame^.PPFrame.ProcesPlan := TProcesPlan.Create;
PPFrame^.PPFrame.ProcesPlan.Core := Core;
PPFrame^.PPFrame.ProcesPlan.SendMsg := SendMsg;
PPFrame^.PPFrame.ProcesPlan.Log := Log;
PPFrame^.PPFrame.ProcesPlan.RijwegLogica := RijwegLogica;
PPFrame^.PPFrame.ProcesPlan.Locatienaam := PPFrame^.PPFrame.FName;
PPFrame^.Volgende := nil;
PPFrame^.PPFrame.UpdateLijst;
result := PPFrame;
end;
procedure TstwscProcesplanForm.AddFrame;
var
tmpFrame: PFrameList;
begin
if waar = lrLinks then begin
PPFrame^.PPFrame.Parent := LiPanel;
if assigned(PPFramesLinks) then begin
tmpFrame := PPFramesLinks;
while assigned(tmpFrame^.Volgende) do
tmpFrame := tmpFrame^.Volgende;
tmpFrame^.PPFrame.Align := alTop;
tmpFrame^.Volgende := PPFrame;
end else
PPFramesLinks := PPFrame;
PPFrame^.PPFrame.Align := alClient;
inc(FramesLinks);
end else begin
PPFrame^.PPFrame.Parent := RePanel;
RePanel.Visible := true;
if assigned(PPFramesRechts) then begin
tmpFrame := PPFramesRechts;
while assigned(tmpFrame^.Volgende) do
tmpFrame := tmpFrame^.Volgende;
tmpFrame^.PPFrame.Align := alTop;
tmpFrame^.Volgende := PPFrame;
end else
PPFramesRechts := PPFrame;
PPFrame^.PPFrame.Align := alClient;
inc(FramesRechts);
end;
RecalcSizes;
end;
procedure TstwscProcesplanForm.SaveStatus;
var
count, countpos, nupos: integer;
Frame: PFrameList;
begin
countpos := filepos(f);
count := 0;
intwrite(f, 0); // Plaatshouder
Frame := PPFramesLinks;
while assigned(Frame) do begin
stringwrite(f, Frame^.PPFrame.FName);
Frame^.PPFrame.ProcesPlan.SaveBinair(f);
inc(count);
Frame := Frame^.Volgende;
end;
nupos := filepos(f);
seek(f, countpos);
intwrite(f, count);
seek(f, nupos);
countpos := nupos;
count := 0;
intwrite(f, 0); // Plaatshouder
Frame := PPFramesRechts;
while assigned(Frame) do begin
stringwrite(f, Frame^.PPFrame.FName);
Frame^.PPFrame.ProcesPlan.SaveBinair(f);
inc(count);
Frame := Frame^.Volgende;
end;
nupos := filepos(f);
seek(f, countpos);
intwrite(f, count);
seek(f, nupos);
end;
procedure TstwscProcesplanForm.LoadStatus;
var
i, count: integer;
PPFrame: PFrameList;
Filename: string;
begin
intread(f, count);
for i := 1 to count do begin
stringread(f, Filename);
PPFrame := CreateFrame(Filename);
PPFrame^.PPFrame.ProcesPlan.LoadBinair(f, SgVersion);
AddFrame(PPFrame, lrLinks);
end;
intread(f, count);
for i := 1 to count do begin
stringread(f, Filename);
PPFrame := CreateFrame(Filename);
PPFrame^.PPFrame.ProcesPlan.LoadBinair(f, SgVersion);
AddFrame(PPFrame, lrRechts);
end;
end;
procedure TstwscProcesplanForm.RecalcSizes;
var
Frame: PFrameList;
begin
RePanel.Width := Width div 2;
Frame := PPFramesLinks;
while assigned(Frame) do begin
Frame^.PPFrame.Height := LiPanel.Height div FramesLinks;
Frame := Frame^.Volgende;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
Frame^.PPFrame.Height := RePanel.Height div FramesRechts;
Frame := Frame^.Volgende;
end;
end;
procedure TstwscProcesplanForm.ProcesplanToevBtnClick(Sender: TObject);
var
PPFrame: PFrameList;
Filename: string;
begin
if OpenDialog.Execute then begin
Filename := ExtractFileName(OpenDialog.Filename);
PPFrame := CreateFrame(Filename);
try
PPFrame^.PPFrame.ProcesPlan.LaadProcesplan(OpenDialog.Filename);
if FramesLinks = FramesRechts then
AddFrame(PPFrame, lrLinks)
else
AddFrame(PPFrame, lrRechts);
except
on E: EProcesplanSyntaxError do begin
Application.MessageBox(pchar(E.Message), 'Fout bij laden procesplan', MB_OK+MB_ICONWARNING);
PPFrame^.PPFrame.ProcesPlan.Destroy;
PPFrame^.PPFrame.Destroy;
dispose(PPFrame);
end;
end;
end;
end;
procedure TstwscProcesplanForm.FormCreate(Sender: TObject);
begin
PPFramesLinks := nil;
PPFramesRechts := nil;
FramesLinks := 0;
FramesRechts := 0;
VorigeTijd := -1;
end;
procedure TstwscProcesplanForm.FormResize(Sender: TObject);
begin
RecalcSizes;
end;
procedure TstwscProcesplanForm.FormDestroy(Sender: TObject);
begin
ProcesplannenReset;
end;
procedure TstwscProcesplanForm.ProcesplannenReset;
var
Frame: PFrameList;
tmp: pointer;
begin
Frame := PPFramesLinks;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.Free;
Frame^.PPFrame.Free;
tmp := Frame^.Volgende;
Dispose(Frame);
Frame := tmp;
end;
Frame := PPFramesRechts;
while assigned(Frame) do begin
Frame^.PPFrame.ProcesPlan.Free;
Frame^.PPFrame.Free;
tmp := Frame^.Volgende;
Dispose(Frame);
Frame := tmp;
end;
PPFramesLinks := nil;
PPFramesRechts := nil;
FramesLinks := 0;
FramesRechts := 0;
VorigeTijd := -1;
end;
procedure TstwscProcesplanForm.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
OnHerkenProcesplanClose;
end;
end.
| 26.215539 | 97 | 0.72065 |
f13129c420e946b886e8678075423f9c5c485f42
| 620 |
pas
|
Pascal
|
Lazarus/YTDL.GUI.MainForm.pas
|
LaKraven/youtube-dl-gui
|
26b84f33f0b50a566f8df8c2c53d0fdbbf1c5373
|
[
"Unlicense"
] | 11 |
2015-05-06T04:15:32.000Z
|
2021-08-16T08:01:39.000Z
|
Lazarus/YTDL.GUI.MainForm.pas
|
LaKraven/youtube-dl-gui
|
26b84f33f0b50a566f8df8c2c53d0fdbbf1c5373
|
[
"Unlicense"
] | null | null | null |
Lazarus/YTDL.GUI.MainForm.pas
|
LaKraven/youtube-dl-gui
|
26b84f33f0b50a566f8df8c2c53d0fdbbf1c5373
|
[
"Unlicense"
] | 2 |
2018-03-11T00:05:51.000Z
|
2019-03-27T18:50:50.000Z
|
{
YouTube-dl GUI
by LaKraven Studios Ltd.
Offical Repository: https://github.com/LaKraven/youtube-dl-gui
This unit provides the visual interface for defining the Parameter Options for YouTube-dl.
It passes the relevant values over to the Runner Config to generate the Parameter String.
}
unit YTDL.GUI.MainForm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
type
TYTDLMainForm = class(TForm)
private
{ private declarations }
public
{ public declarations }
end;
var
YTDLMainForm: TYTDLMainForm;
implementation
{$R *.lfm}
end.
| 17.222222 | 92 | 0.735484 |
f1c87a650e56897f00e1aaf3c9e4a92820599d2a
| 527,311 |
dfm
|
Pascal
|
Notepad_SE/PRP.dfm
|
delphi-pascal-archive/notepad-se
|
d7e2bac66a85176556ecf59cd0d877bdbaf0e353
|
[
"Unlicense"
] | null | null | null |
Notepad_SE/PRP.dfm
|
delphi-pascal-archive/notepad-se
|
d7e2bac66a85176556ecf59cd0d877bdbaf0e353
|
[
"Unlicense"
] | null | null | null |
Notepad_SE/PRP.dfm
|
delphi-pascal-archive/notepad-se
|
d7e2bac66a85176556ecf59cd0d877bdbaf0e353
|
[
"Unlicense"
] | null | null | null |
object RegForm: TRegForm
Left = 222
Top = 631
BorderIcons = [biSystemMenu]
BorderStyle = bsSingle
Caption = 'Notepad - '#1088#1077#1075#1080#1089#1090#1088#1072#1094#1080#1103
ClientHeight = 231
ClientWidth = 425
Color = clWhite
Font.Charset = RUSSIAN_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
Icon.Data = {
000001000D00303010000100040068060000D60000002020100001000400E802
00003E0700001818100001000400E8010000260A000010101000010004002801
00000E0C00003030000001000800A80E0000360D00002020000001000800A808
0000DE1B00001818000001000800C80600008624000010100000010008006805
00004E2B0000000000000100200058190100B63000003030000001002000A825
00000E4A01002020000001002000A8100000B66F010018180000010020008809
00005E800100101000000100200068040000E689010028000000300000006000
0000010004000000000080040000000000000000000000000000000000000000
000000008000008000000080800080000000800080008080000080808000C0C0
C0000000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000888800000000000000000000000000000000
00000000888F8F88770000000000000000000000000000000000888F8F8F88F8
88770000000000000000000000000000888FFF8F8888F88F7787000000000000
000000000000088FFF888788F8F88F88878870000000000000000000088FFF88
888E7E88F888888888686173000000000000000FFF88888E7E7E86E7888F888F
87877337000000000000000888E8E7E78E77878E8FF88F888878617100000000
0000888E8687E87E77E7E676888888EFF868713300000000888E8E8E7E8E77E7
E7777E87E8F88F8F887872730000088E8E87E878E777E7787E8E77E77EFFF888
88877131000008E87E8E87E787E78C8E77C8E77E87888888FF7872530000007E
8787E87E868C8E77E87E87877E88F8F88F7E813300000088E8E878E88E88E78E
78E78E7E7868F88888878035000000078687E87878687E878E78C887E88E88F8
8F87870300000008E88E88E8E88E88E8788E8E878E788F8F8888770300000000
88E888888E88E787E8C887E8688E888EF8F78713000000000888E88E887888E8
88E8E888E877E8FF8F8876120000000008E8888888E8E888E88878E787E8888F
88F787210000000000888E88E888887887E8E888E88C8E888F88E71300000000
008888888888E88E888888E878E8878FF8F87713000000000008E88888888888
8E88E888E88E7E7888888730000000000008F8888EFE88E8888888E8878788E8
F8F8777300000000000088888F88888888E888878E8E888E8FF8870300000000
0000F8888888888E8888E88E8888E87888E88735000000000000088888888EFF
8F8888888E888E8E78FF772300000000000000F88F88FF8F88EFE88E888E8888
E8FF8753000000000000008F88888888EF88888F88888E878888872700000000
0000000F8F8F8F8F8F8F8F888E88887E8E8F87170000000000000008FFF8F888
8888888EF888E888878887370000000000000000FF8F8888F8F888F8888888E8
E8E8886300000000000000008FF88FF8FF8F888888E88E888788877700000000
000000000FFF8F8F8888F88F8F888888E8E88773000000000000000000FF8F8F
8FF88F88888888E8887E87770000000000000000008FFFFFFFFFFFFF8888E887
767788770000000000000000000FFFFFF8F888E7868687788888787000000000
00000000000FF888887E7788788788786787780000000000000000000000F887
E87887877868877887888000000000000000000000008887877877877888888F
00000000000000000000000000000F878778888F800000000000000000000000
0000000000000888FF0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000FFFF
FFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFF
FFFF0FFF0000FFFFFFF003FF0000FFFFFF0000FF0000FFFFF00000FF0000FFFF
8000007F0000FFF80000000F0000FFE00000000F0000FFE00000000F0000FF00
0000000F0000F0000000000F000080000000000F000080000000000F0000C000
0000000F0000C0000000000F0000E0000000000F0000E0000000000F0000F000
0000000F0000F8000000000F0000F8000000000F0000FC000000000F0000FC00
0000000F0000FE000000000F0000FE000000000F0000FF000000000F0000FF00
0000000F0000FF800000000F0000FFC00000000F0000FFC00000000F0000FFE0
0000000F0000FFE00000000F0000FFF00000000F0000FFF00000000F0000FFF8
0000000F0000FFFC0000000F0000FFFC0000000F0000FFFE0000001F0000FFFE
0000003F0000FFFF0000007F0000FFFF00000FFF0000FFFF8007FFFF0000FFFF
83FFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF00002800
0000200000004000000001000400000000000002000000000000000000000000
0000000000000000000000008000008000000080800080000000800080008080
000080808000C0C0C0000000FF0000FF000000FFFF00FF000000FF00FF00FFFF
0000FFFFFF000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000008887000000000000000000000000888
F8F887000000000000000000088F8F8F8F8F87800000000000000888F888E7F8
88888787370000000008F8F8E8E78688F8F88867370000000088E8687E7E7E78
F8888877130000888E8E78E7E777868EF88F887737008E8E78E7868687E7E787
8F888886170087E8E78E78E7E7878E7E88F88887330008788E78E7878E7E78C8
E88F8886170000E8788887E8C888E78E88F8888727000088E8E8E888E8E78E87
8E88F88817000008888888E8888878E8788F8F8637000008E8888888E8E8E887
E8E8888843000000888E88E8888888E887888F8773000000888F888888E88887
E8E78F88370000000888888E8888E8E8888E88886300000000F8888F88888888
8E8888F77700000000888888888E888E887E88F737000000000FF8F888F8F888
8888E7F8670000000008FF88F88F88888E888E88370000000000FF888F888888
88E888887700000000008FFF8F8F88888888E8E87000000000000FFFFFF8FF88
88E8777870000000000008FFF8F8888E8787878770000000000000F8878E8778
7878787800000000000000087877787878888000000000000000000F7888F000
0000000000000000000000000000000000000000000000000000000000000000
000000000000FFFFFFFFFFFFFFFFFFFFF87FFFFF803FFFF8001FFF800003FE00
0003FC000003C0000003000000030000000380000003C0000003C0000003E000
0003E0000003F0000003F0000003F8000003FC000003FC000003FE000003FE00
0003FF000003FF000007FF800007FF800007FFC0000FFFE0007FFFE07FFFFFFF
FFFFFFFFFFFF2800000018000000300000000100040000000000200100000000
0000000000000000000000000000000000000000800000800000008080008000
0000800080008080000080808000C0C0C0000000FF0000FF000000FFFF00FF00
0000FF00FF00FFFF0000FFFFFF00000000000000000000000000000000000000
00000000000000000000000000888F7800000000000000088F8F888870000000
00088F888E8F8F877770000008888E7E7788F888733000888E8E77E7E7EF88F8
77308E8E87E7E7878778F8887630887E8E787E7E7E8E8F8881700E87888E8787
87E788F8E370008E8E878E8E8E88888F8530008888888887878E788F77300008
88E8E8E88E878EF88770000888888888888E878F863000008888888E8E888E88
87700000F88888888888E888F73000000F8F8888888888E88770000000FF88F8
888E888E8770000000FF8F8F88F88E8887700000000FF8F8F888888E87800000
0008FFF8888E87777700000000008878E8778788800000000000F78788880000
0000000000000000000000000000FFFFFF00FFFFFF00FFFC0F00FFE00700FE00
0100F8000100C0000100000001000000010080000100C0000100C0000100E000
0100E0000100F0000100F0000100F8000100FC000100FC000100FE000100FE00
0300FF000700FF00FF00FFFFFF00280000001000000020000000010004000000
0000800000000000000000000000000000000000000000000000000080000080
00000080800080000000800080008080000080808000C0C0C0000000FF0000FF
000000FFFF00FF000000FF00FF00FFFF0000FFFFFF0000008777777777780000
8FF8FFFFFFF308888888888788F70888E88E8E8E7FF70888F8888888E8F70888
E88E8E8788F7088FF88F88E8E8F7008888E888887887008888F88E8E8EF70088
8888888887F70088F88888E8E88700F88888EF8887870008888F8888E8870008
F8F888888E8700086F68686868880000070708070700F0000000F00000008000
000080000000800000008000000080000000C0000000C0000000C0000000C000
0000C0000000E0000000E0000000E0000000FAAB000028000000300000006000
0000010008000000000000090000000000000000000000010000000100000000
0000002B4E0005314D000B354F0003335400073858000A3D5C000B405C002449
59000E45630013456400134A67001D4D6500154A6800184E6A001B526D001E55
710024536B003555610022567000325E71002A627F00366379006A645000435A
66004A64690050666F00446B7A005B6E72006E766E0071786C00667878006E7A
79007B7A7600727F7E00787C7A00778479007B837B00B2A14D00B6A45200B8A6
5500BAA85700B7A55B00B8A65C00BBAA5D008A846C008C8A7C00948E7B009C96
7500A2997700BCAB6300BCAC6A00BFB06C00AEA57D00BDAE7300B3A97800BFB0
7100BFB07D00C2AE5900C5B15C00CBB75D00C0AF6300C0AE6A00C2B16300CBB7
6000CDB96200C3B36B00C7B86E00CBBA6C00D0BE6A00C0AF7000C3B47300C6B8
7500CABB7300C4B67B00C7B87B00CBBC7A00D5C16500D3C16E00CEC07D00D7C5
7100D8C57400D8C87700D2C37C00DCCA7A00336E8A0038738F00436E85004570
860050788E00417B9500537B900046819A005C8195007A838100798A8E006889
9800518BA3007091A200868A82008B8C85008D8D8C008D918000939283009995
840097948A0099968C009D998A0092959300999790009B9A91009C9C9800A29B
8400A19C8C00A09D9000A6A18E00A8A28900B2A58000A4A19300ABA49300ADA9
9700A4A09D00A8A59900ACA99B00B0A79200B3AB9400B3AD9A00B9AF9C00BDB6
9000BAB19E008A9FA100A3A3A200ADAAA400ACA9A800B1AEA400AFB1A900B8B4
A500BFB8A200B2B2AC00B8B6AB00BCB9AC00B2B3B200BBB7B500BBBBB500BAB7
BC00BBBCB900C1B38200C6B88300CBBC8200C7BA8B00CABD8A00C4BA9200C0BC
A900C1BEB700BAC0B500BEC1BC00BFCBBB00CEC08300CEC18A00D1C38400D9C7
8600D9CA8300D2C48A00D5C98C00D9CB8D00CEC49400CDC39C00D2C69200D5C9
9200D9CC9400D0C59D00D6CA9B00D9CE9B00DDD09300DBD09C00E1D29300E0D4
9D00CCC5AE00D0C6A000D9CEA100D5CCAC00DDD3A400DDD4AB00C3C1B400C4C3
BB00D5CDB300D7D1B400DBD2B300DFD8B600DAD2BC00E0D6A700E7DAA200E0D6
AA00E2D9AD00E9DEAC00E0D7B100E3DAB300E4DCBA00EAE0B300E6E0BF00E9E1
BD00ABC7C100C4C5C100CBCBC400CDCEC800D0CEC900D2D1C400DDD6C200DED8
C400D3D1CA00DCD6C900DED9CB00D4D3D100D8D7D400D5DBD400D8D8D100DBDB
DB00E2DBC400E2DDCA00E1DED400E1DFDA00D9E1D800E6E0C300E9E2C300E5E0
CC00EBE5CB00EEE8CD00E4E1D200EAE5D400EEE9D300E6E3DA00E8E5DA00EDEA
DD00F1ECD800F5F1DC00E3E4E200E8E7E200E5EAE500EDEAE200E7EBE800EDED
EA00F1EDE400F0EFED00EFF0ED00F4F2E300F8F4E600FFFAE500F5F3EA00F8F6
EC00FBF8EA00F0ECF100F3F3F200F9F7F000FAF9F200F5F4F800FFFFFF000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000008391
EC6D000000000000000000000000000000000000000000000000000000000000
00000000000000000000838AD5F3FBF0DCCE6A21000000000000000000000000
00000000000000000000000000000000000000000000838DDCF0FBFBE6D3BDB9
BDCD6A7F2E650000000000000000000000000000000000000000000000000000
0000858DD8FBFEFBECDACFB9CFCFD3D0DCEB8668787A00000000000000000000
00000000000000000000000000000085D8FEFFFBDABAA69597CFE3E3E3E3E3D3
CFD29B67717F2100000000000000000000000000000000000000008ED4FBFFFE
E4B9A693934344453ACFEEE3DACFBDB9B9D3CC686A78180A6111000000000000
000000000000000000FAFFFEE1BAB29693444445413C3A3A3F36BDCFCFD3E3E3
DAE6D86A707C1A095C11000000000000000000000000000000BAAA9347494945
413C3B3B3F3333322C27BDEEE8E6E3DABDBDB97B6A7C1C065A11000000000000
000000000000C2AFA1444E45453C3C3F3F3E32322B282626262733E3CFBDBDCF
BDD3EF8A6878210556100000000000000000ABA3535252515045403F3F3E322C
2C28272727272C2B323333B9E8E4E6E6E0E3F0B8687A250455100000000000C5
53515251504E4E4444443F3F2C28282C282C2C2B3333323232272C36EEEEE8DA
D0BDBDCD6A7C640415100000000000A34D4E4E454444444444492C322C2C3232
33333233322C322C2C32432BB9BDBDCFD0CFE3ED767A6A021010000000000000
4044494949494343474943333E333E323F323F3F323F43334736334793E8E8E8
E4E3E8EB7B737A020E10000000000000A33F49494949494C494C4C3F47433F43
433E474747473E4743433F432CD9E8DAD9B9B9CF8B717C080710000000000000
004449494C4F4F4F9D9FA3434B4747474747474443434343434747479339CFDA
E3DAE4FBB8717E12040E00000000000000B5499F9F9F9FA39FA3A34C934C4C4C
4C4C494C4B4B934793474C434C32E4F1F1E4DAE8CC6A811A010E000000000000
00009F9FA3A3A3A3A8A9A9A39F9F9F939D93934C4C4C4C494949494C494395DA
BDBABADAD772811C010D000000000000000000A0A8A9ACACAEAEAEAE96A39EA3
9FA39F9F9F9F4F4C4F934C934B9332D9EEF1E4F1EE767F1F010B000000000000
000000AEA9AEAEAEAEB0B0B0A8A9A4A3A3A3A3A3939F939D9D9D4C4F4C5349A5
F1E8DADAEC7B7E22010900000000000000000000AEAEBEB0B0C0C0C2ABABA8A8
A5A396A3A3A3A3A39F9F9F534C499347B4CFCFDAEE857C5E0409000000000000
00000000B5B0BEC2C0C0C0C0B3ABACACACACACA9A3A8A3A89EA393934C4C4C43
B3F1E8E8FD8C7A2506090000000000000000000000C2C0C0C0C4C2BCC0B5B5B3
ACACA8A8AAA8AAA8A8A39F9F9F5349532BDADABAB9B77A2E0A0D000000000000
0000000000BAC4C4C4C4C5C6BCAEB3B3B3B3B3BEBEBEB0ACA9A4A39F9F93939D
93A6E4E1F8CB73640A0E000000000000000000000000C4C8C8C8C6C5C8BEC4C2
BEC2C4C4BEC0B3A8A89E9EA39FA39F9F9F3FEEE8FED37A640A13000000000000
000000000000C5C8C8C8C7DFDFC4C4BABEBAC0BABEB3B3ACACA8A8A9A9A9A39F
A343A6B9B9DA7A2E091300000000000000000000000000C8DFDFE1DFDFC4C3C4
DFDFDFDFC4BEBEB0B3ACB3ACA8A39EA3939D3EE4F8F17C640916000000000000
0000000000000000E5E1E1E2E1DFE1E2E2E2DFC4BEC0B3B3B3BEB3B3B3ACA8A4
A3A448C5F1FB7E6409160000000000000000000000000000C8E9E5E2E5E1E1E1
D9C4C3C3BAC2CFC8C8C5C3BEB0B3A9A8A3939D39B4F188690558000000000000
000000000000000000E9E9E9E9E8E5E5E2DFDFDFDFE1DFDFC5C3BEB6ABABABA8
A39FA043C0FF8C690758000000000000000000000000000000C8F8F5F5F5E9E5
E1DFDFDEDFD9C5C5C5C5C4C3C3BEB0ACA3A49D9393E4B86A0C59000000000000
00000000000000000000F5FDF5E8DFDFDFE1E5E8E5E5E5E5E1DFDFC4C3BEB3A8
A89E9D9F4CE4CB6A115B00000000000000000000000000000000C8FFF5E9E9F5
F1F5F5F5E8EAE2DFD9C4C3C3BEB6ACACA8A8A49F4FBED572145D000000000000
0000000000000000000000E5FDF8F5E8E9E8E5E1E1E1E4E2E2E1E1DFC5BEBEB3
AFA9A4A1A1A4B16F1B5D000000000000000000000000000000000000FFFDE8F5
F5F5F5FBF5F5E9F5E5E5E2DFC8C8C6C2BFB0AF934C39936F1B62000000000000
000000000000000000000000E5FFFDFDFDFDFDF8FDF9FDF9F9F6E2E2C4BE9797
753031173168A07E1B6200000000000000000000000000000000000000FFFFFF
FFFFFFFDFDE9DFBD8970352D682D2F7A317E98758B747F906000000000000000
00000000000000000000000000E1FFE6E3B7887E7A786A686A8C68988870B770
7A8A6725CA825FC900000000000000000000000000000000000000000000FF85
867A7BB77C8CB768B7661EB81D728D6C6D9185648F8FB8000000000000000000
0000000000000000000000000000B9CD886687671E9A632491226D8E8A87CACC
9ADD0000000000000000000000000000000000000000000000000000000000EF
9C24CB656ACA8FB8CCDDD5000000000000000000000000000000000000000000
000000000000000000000000000000EBCDCBDCED000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000FFFF
FFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFF
FFFF0FFF0000FFFFFFF003FF0000FFFFFF0000FF0000FFFFF00000FF0000FFFF
8000007F0000FFF80000000F0000FFE00000000F0000FFE00000000F0000FF00
0000000F0000F0000000000F000080000000000F000080000000000F0000C000
0000000F0000C0000000000F0000E0000000000F0000E0000000000F0000F000
0000000F0000F8000000000F0000F8000000000F0000FC000000000F0000FC00
0000000F0000FE000000000F0000FE000000000F0000FF000000000F0000FF00
0000000F0000FF800000000F0000FFC00000000F0000FFC00000000F0000FFE0
0000000F0000FFE00000000F0000FFF00000000F0000FFF00000000F0000FFF8
0000000F0000FFFC0000000F0000FFFC0000000F0000FFFE0000001F0000FFFE
0000003F0000FFFF0000007F0000FFFF00000FFF0000FFFF8007FFFF0000FFFF
83FFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF00002800
0000200000004000000001000800000000000004000000000000000000000001
000000010000000000000A3C5900123B55001C40580024475D000F4565001A53
73002B4E630037596B003A5C6C00225D7C003E5F710034657E004F5E6500405E
6A0049616B00476670004E6C7B0057697000536F7C0055717C0067737500767F
7C00B3A24F00B6A45700B8A65700B7A55C00B9A65900BBA95C009E946C008786
79008D8B7F009D967E00BCAC6300BFAF6800BFB06400B1A67B00B7AD7E00C5B0
5C00C9B55E00C1AF6000C0AF6C00C4B26300C8B66400CCB86200C4B46A00C2B2
6D00C4B46D00C7B86D00CBBA6C00C4B57300C7B87400CAB97100CDBC7000C9BA
7500CBBC7600CDBC7700C4B67B00C6B87E00CBBC7B00D4C06400D4C16A00CFC0
7C00D8C67300D9C87D003E6A82003C70890031709000406D8500446F88004171
890049748B004F788F00577E9400657882005E859900668A9D007092A4007F99
A0007998A900868B8300888C8100999585009596890093948F009A9A8C009596
900097989200A39E8C00A19E9100A7A08900A5A08F00A9A18C00A3A39200A4A1
9100A4A19400A6A49700ABA29100A9A59100ADA69300ABA59400AEA69600A4A5
9A00A8A79E00ADA89B00B2AD9D00B6B09C00A3AAA300A9ABA300ABAEA900B2AD
A000B2B1A100B2B1A500B9B4A900B8B7AF00BFB8AC00A5B5B100B1B2B100B4BB
B300BBB9BA00CCBD8100C3B98A00C8BC8A00CABF9100C0BBAF00C8BEA800C0BC
B000C0BDBE00BDC1BA00CEC08200CFC18A00D1C38400D9CB8600D2C58A00D5C8
8D00D8CA8B00CDC19400D3C59000D5C99300D9CD9500D1C79E00D5CA9900D9CD
9A00DFD19200DCD09D00E2D59B00C6C1AF00D5CCA700D9CEA000D7CEAA00D8CF
AE00DCD2A300DAD0AB00DED3A900DDD4A900DED5AD00C4C3BB00C8C2B900CCC8
BA00DAD2B300DAD2BB00DBD4BD00DCD5BE00E4D8A400E0D6AC00E2D9AD00E0D7
B200E2D8B200E4DBB000E6DDB200E3DBB500E4DBB400E5DCB500E5DDBA00E1DA
BF00E6DFBD00E8E0BC00C1C1C000C3C6C000C6C6C100C7C8C100C6CDC400CFC9
C400CECDC700D0CFC700D8D4C100DDD7C300DCD6C400DFD8C200DED8C500D4D2
CB00DAD7CD00DED9C800DBD8CC00DEDACF00CFD0D000D4D2D000D5D4D400DAD7
D600D1DBD200D8DDD600DAD8DB00DDDBDB00E0D9C200E0DAC600E1DAC800E1DC
CA00E4DDC900E2DDCD00E4DECD00E2DFD000E4DFD300E3DFD700E1DFD800E0DF
DD00D7E1D800DCE3DB00E6E0C000E9E2C400E7E2CD00E9E3C900EAE4C900ECE6
CB00EAE3CC00EBE6CC00ECE6CC00EEE8CF00F2EACB00E6E1D300E9E3D100E9E4
D300E9E5D600EDE8D200E5E3DB00E9E5D900EBE6DC00EDE9DB00EEEBDD00F0EC
D600F1ECDA00F3F0DF00F8F3DA00EDEBE100F1EDE200F0EDE500F3F0E200F4F0
E100F5F1E500FDF8E300F5F4EB00F8F6EB00FBF8ED00FBF9F400FEFEF9000000
0000FFFFFF000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000075C5B75400
0000000000000000000000000000000000000000000000B1B1C5F3ECCDC26F1F
0000000000000000000000000000000000000077C3D6D4E7E7CFBDC2BDD4725B
5E0000000000000000000000000000C97FC6F7DF9882342FCFEACDBDA0BBB452
640D114A000000000000000000C9E4AEAC8A342B2B27261C7ACDE4D2CDCDBE55
5C0B430C0000000000000000AC87342B2B2B2A281C1C1B171CCDE4BDBDA0C25E
5C0F0A42000000009787403F3D2C2B2F1C1C1B191919191A1A88EAE4E4D2E972
5A12064600008B3D3D3D3131312A211C1C1C2121212121211C21CDE4CFA0CD9C
6415054600009727313431313333212F212821282122222F222288EAE4D2EAB8
641601440000003431343B3B34832F322F32323232322F2F2F2F32CDE4CFBCBE
65500144000000003481838383873B3B3B3B343B333432333333328CECE7E7E4
6E530244000000008A83878A8B8B8A818281818181813B3B3B3B343ABDCDCFE4
715E03410000000000879090909097878A858585818181813B813B2F93F4DFF4
7E5E04410000000000A59090A397A58C8B8A8A898785858581813B3B3ACFCFEC
9C5A074100000000000097A5A5A5A59797908E8A8A8A8A8985813B3E2F93EAD2
9E590845000000000000AEA5A9A9ADA5979797979899908A878381813B33CDEF
C25B0B4700000000000000A9D9ADD9ACACA4A4AC98998E8A89898A8785349FE7
C2640B470000000000000000DEDADED9A7AEADD9AC9997908E8E8A8585813AE7
F4640B490000000000000000DAE3E2E2DAE2DAAEA59798A5A497978E87853B9F
F46E084B000000000000000000F0EEEEEEE2DAB0AED9DAD9AC988E8E8A853B3B
F373094C000000000000000000DAFBF7EEDFDADADFE2D9B0AEACA4978E85833B
CF920E4D00000000000000000000FCFAE8E8EFF0F0EEE3DAAEACA4948E89853E
98B6104F00000000000000000000DAFCF7F7EFEFE8E8E7E2DADAACA599918F84
847D13000000000000000000000000FBFCFAFBFCFCFBFBF8F1E3D9998B7A251D
248913000000000000000000000000DFFFFFFCFAF4E7A0926A5A5A205C5A645A
5E6E4E00000000000000000000000000EFBE7E6E6E6E5E5E54645568556C5756
6B74000000000000000000000000000000B155661E67516B516D6C80B1B4D700
0000000000000000000000000000000000D86B8076C7C8000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000FFFFFFFFFFFFFFFFFFFFF87FFFFF803FFFF8001FFF800003FE00
0003FC000003C0000003000000030000000380000003C0000003C0000003E000
0003E0000003F0000003F0000003F8000003FC000003FC000003FE000003FE00
0003FF000003FF000007FF800007FF800007FFC0000FFFE0007FFFE07FFFFFFF
FFFFFFFFFFFF2800000018000000300000000100080000000000400200000000
0000000000000001000000010000000000002950670027546E0030536500295F
7B0037627C00425D680053676E004B6371005D6E7300637375006B787A006C7A
7A00727E7F00B4A35500B6A55700B9A65400B5A45800B9A75A00B9A85B00B9A8
5E00BEAB5C00BDAC5F00BBAA6100BCAB6100BFAD6400BAAE7700C0AD5B00C1AE
5D00C4B15E00C8B55F00C0AF6900C6B36100C0B06700C8B56500CEBB6600C0B0
6900C1B26D00C9B76800CBBA6800CAB96C00D2BF6900C6B67200C1B27600C6B7
7400C7B87700C8B97000C9BA7500C5B87E00C9BA7900CBBD7B00CCBD7B00CDBE
7D00D3C16E00CEC07E00D0C17C00D3C47F0037678000356B86003B6881003B6C
86003C728C00436F880048738B004F789000587F9300687D87007B8789006487
9A007F8C91007292A3007897A7008A8882008D8D8100888F8700959183009091
86009C9783009A9A8F009F9D8F008F9D980099989000A09A8B00A6A18A00A6A2
8C00A9A28900A5A19100A9A39200A9A59500A0A29900A4A09900A1A19D00A1A8
9B00A4A89F00ACA99D00B1AA9200B0AA9800BCB59E00ABABA000A9AEA600ACB0
A800B6B3A700B9B2A200B6B3A800BFB9A900B5BAB200BDBDBD00CCBE8000CDBC
8500CABE8900CCBF8A00C4BDAE00B5C0B900BDC1BC00CEC08100CFC18500CDC1
8B00D0C28500D1C58700D7C88000D2C58900D2C58C00D4C78F00D5C88B00D5C8
8E00D8CA8A00D9CB8F00CEC29100D2C59400D5C89100D6CA9500DACE9600D9CD
9900DACE9D00DCD09900DBD09F00DCD19E00E5D58E00E0D49E00D2C9A400D7CE
AE00DBD0A100DCD1A100DED4A000DCD2A400DED4A800CCC6B500C5C3BA00C9C8
BF00D0CBBF00D8D0B100DCD3B800DCD5BA00E0D6A700E1D7A900E0D6AD00E1D8
AB00E3D9AF00E4DAAC00E1D9B200E4DBB300E2DBB500E4DBB600E5DCB500E0D8
BA00E4DBB800E5DDB900E5DEBC00E6E0BF00E8E0BE00BEBFC000C1C1C000C7C3
C000C6C4C200C4CBC300CAC9C300CFCCC200D6CFC100DDD7C200DED9C600D3D1
C900DBD7C900DAD7CD00DFDAC900D1CFD000D4DED600DDD9D100DADFD400E0DB
C700E0DBC900E4DDCA00E2DDCD00E4DFCC00E2DFD100E4DED100E7E0C100E5E0
C700EEE5C000E9E2C500EBE4C700E5E0CD00EAE3C800EBE4CA00ECE6CA00ECE6
CE00EEE9CF00E6E1D100E3E1D400E7E3D600E9E3D300ECE7D000E8E2D500E9E5
D600EEE8D200EEEAD600E5E2DB00E9E5D800EDE8D900ECEADE00F6EFD300F1EC
D600F1EDDB00F1EDDD00F9F4DD00EBE9E000F4F0E000F7F4E600F8F5E200F1F0
E900F6F3E900F6F4E800FAF8EE00F9F9F300FDFCF80000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000FFFFFF00000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000006AABAFE0625B0000000000000000000000000000
00AAABD7D8D1C0C094584800000000000000000000B8ABCEA48F386BC0C0B3B2
B45849084200000000000095A4887D28201D1B108BCEC0B3B55848043A000000
A18A8935221D1B15120F110F2BCFCFB3CE674B023D0088292923282215151511
17171715128CD1C0B79452013C008F1E2E282E2E1F252521212121212530CECF
C0AF5703390000332E7236782E332B2C2B2E302B2A2197D1C0B5600605000000
377C7C837C72386B7233332E33336DCEC0CF6607050000008F83888F8F808078
783872726B332B98D1D86809050000000088999A9C8383838280807872332E74
D1D16F0A3C00000000A19AA1A19B9B8D858F85827838723398D9920B3E000000
0000A9A9A9A19C97A19B8382828078337FD8B10B3F0000000000A9CBCBC3A9C5
A49A9B858F83807833C4CF0B40000000000000CDDCDCD1C5A4A1A4A49B8F8380
3780D10D4100000000000000E7E1CDCBCBD1CBA9A49C8583386BC04344000000
00000000DDE6D6DDDDDCCBC5A89B9B8383389B45460000000000000000E9E6E6
E2E2E2E1DBC59A856D1A6C4A470000000000000000D6E9E8E6D9B792665F5555
5552545000000000000000000000BA6762584F4F4C4F5A5B6462700000000000
000000000000BA5C5B5D6971AEB9000000000000000000000000000000000000
0000000000000000000000000000FFFFFF00FFFFFF00FFFC0F00FFE00700FE00
0100F8000100C0000100000001000000010080000100C0000100C0000100E000
0100E0000100F0000100F0000100F8000100FC000100FC000100FE000100FE00
0300FF000700FF00FF00FFFFFF00280000001000000020000000010008000000
0000000100000000000000000000000100000001000000000000534F45005652
46009A937F00B5A66900BBAE7100BEAF7300BFB27B00C2B37300C4B67700C7B8
7600C5B67A00CCBC7B00CBBE7D00CDBE7F00D4C47D006184910090A9B200CBBD
8000CDC08300CEC18500CFC38B00D4C78600D6C88400D8C98700D1C48B00D1C4
8E00D5C88C00D8CA8900D9CB8E00D9CC8E00D2C69200D3C79500D3C89500D4C8
9600DACD9100DCCE9400D5CA9900D5CC9B00D6CC9E00DCD09700DCD09800DED2
9D00E0D49F00D1C8A100D7CDA100D8CFA600D5CDA800D9CFA800DAD1AA00DAD2
AD00DCD4AF00DDD5B200DED6B600DFD8B900E0D5A300E1D6A500E2D9AA00E3DA
AC00E4DAAE00E5DBB100E6DCB300E6DEB600E7DEB800E0D9BD00E8DFB900E8E0
BA00E9E0BE00A7C4D100E2DCC200E3DEC800E0DEDB00EAE2C000EAE4C100EBE4
C400ECE4C500EAE4CB00ECE6C900EEE7CE00EEE8CE00EEE8D000E9E6D900ECE9
DF00F0EAD200F1EAD400F1ECD700F1EDDA00F3EEDC00F1F1EE00FEFEFE000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000FFFFFF0000000000111010101010
1010101010440000000047585858585858585858581000171C1C24241C241C24
241C0AFFFF1000294B4B312E2D251F19140D0451581000244B423E3B3838241C
1C0F094CFF1000384B4831312E252219140D062E581000483E4B4B483B3B3829
241C0D1FFF1000003B4B3633312D2E221F1409075810000028504D4B483E3B38
29291609FF100000295445403333302E22191404521000003B4C544D4D4B3E3B
382B24094C1000004B484645403333302E1F15052F100000003856544D4C483E
3B2E280D2710000000285756544D4B3E3B382B1419100000003B024B0248013B
0238011B194400000000000300030003000300030000F0000000F00000008000
000080000000800000008000000080000000C0000000C0000000C0000000C000
0000C0000000E0000000E0000000E0000000FAAB000089504E470D0A1A0A0000
000D49484452000001000000010008060000005C72A866000000017352474200
AECE1CE90000000467414D410000B18F0BFC6105000000206348524D00007A26
000080840000FA00000080E8000075300000EA6000003A98000017709CBA513C
0000FF8E49444154785EECFD057894D7BA368EEFB3CF3EE7FBCEF9B6BBD6DB5D
DB7577A5420D8A3B944229B49416282E856245E381B8BBBB404290900477B7E0
565AEA2DCFFFBED77AD73B6B2613E83EBFFFD96D215CD773BD9399C96432E4BE
9FFBD1F5A31FB5FC6BF9045A3E81964FA0E51368F9045A3E81964FA0E51368F9
045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368
F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E513
68F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E5
1368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0
E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964F
A0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E8196
4FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81
964FE087FF09A41795DC061B092B80ED837DED5CBBFCF07FBB96DFA0E51368F9
04BC3E8115070B7F0CFBEFB28692EB73CACB42B34BCB8F2DA95FF9C58E3D7B65
FFA1C372F0C85159B56193C465E69D19FD41C0897EC346D58D9F3D3B3EBBA274
0E88616D5A61F1295CCF26E7157C383F39397A4563C9B52B0E14FF15AFF95BD8
AF9D2B6F9BAF7FCE9F07FB89F3B3F9F3BDACE5BFA8E51368F904FE059F80017F
D1B2D27BB3CBCA172D6D58F5C5A79F7D26FCF7C5975FCA86ADDBA5A0B2FAAB88
94CC139302C34F4C981B7234382EF993A4BCC2AFEBD6AE9763274FCA975F7DA5
9EBF70D90AE9F6FA5B879F6DDFE5E0A86933172517E445A415162D4BCE2B3C0D
82F826A5A0E854446A6A72EED2F44741105780287E8F9F6FC8E0A7B86D8CE4F0
7F61FFD94210FF823F82961F71F17E020459E5BA922B01FE8AD51B376BE4E3DF
D286D53262FADC13FD868FD9F772CF57B6BFDCABEFD6DE6FBC7D68414AFAC70D
EB3688218943478F497852FAD121EF4D6F1C30727CE3D0F73F3830737ED48711
29695FC466E67EBEB7F1A07CF6F9E7B263CF3E094D483DFDCADB234EB4EED0F5
709FB786AD7C3F64EE0490C08D4A3134965CEFDCE6F51A8B207EE9A80592028D
246113845211FC1F6C511117EFDF71CB6FFE3FF8041CC0FC3CBBBC7452F58ABA
3304FEE98F3E1600F970AF37DFD9342B3AE82D80F1265ACDD6B2A71373F3B78C
9EFAC1D12FA10C3EFAF88C7C101E7DB46D8F5776BFDCB3EF8EBE6FBFBBFEB5E1
A31AA706049D9EBD201A2FA35E4EF8DC6DBBF6487E45D5977322E38F4E0D8938
316CCAACC32FF77AB571F098891F421DEC295858F5615669B94025487C56CE37
EF8C9F74FA8D31EFD50E183132D9F9F9D72852D024416388010551FC47FC0E86
20A8180C49982BEF73C38CFFC147D4F22D2D9FC085FB09101C854B4BEEC82A29
3B781C52FEECD9B3CAEB8F983623DB011A25FAAF19CFE75596472D6958A9407D
EAC3D3D2AE77BFC667DB776E7CBE53F7DD8F3FDFA6715CC0A471D9E565F9F995
557B9837E0BF465C01F8831DFB0ED8DDA9DFC09D9DFABDBEF5C5AEBD1A412E07
C293D2CE00F8B266D366397EF2940A37986B58BE6AAD44A5659F4628D1D867C8
BB27A68745ED49C92FDA1A97957B263127FF1BE41B908BC8FEFADDC9530F0C1E
373133243DF80510C1D50E215CEDA809280A75DF65569861420A5E6D6B21880B
F74FBCE5373BD72740F99F5556F24E556DDD29023631A7F04C97D7066D51DE56
27EF1883FF77716DC9FDD965151F9E3AFD9102F66B23C635CE8E0A99D1AE578F
F4079E7CBAF1EE871F6B1CF5FED40D79950BD753EE9B108224F168EB17773FFD
72C7DD4FB57D79C58A7DE5AD17AE2DEF139192DE889FE98611083D64DCECE07D
C81DEC1E3466D2E1F702C24E4C0E0C3F9C5552FE7549758DACDFBA4DE51ACE7C
FAA9ECDCBB5FAA6AEB657644DC5128951343A7CCDA1F9A9054965A50BC292127
FF9421092889AF26CE0ED83A2960DE7C456624032626F5F50AC72E7108822AC2
10047F679AFDB51B66B4FC45B57C0217CC2740059059525AC06C3FFF751F38E4
F3B951F38758E057D5819C8AB2C9D575F5EA3988E3CF0C1831A65C49F3FDA577
DE7CD7BD7B1E6EF5CCA190D8F8CF37EDD8F9099FC378BFCB6B6FEC9A1D1B38B2
559B76EB4912773DF46863BFE16FCECA2E2B5BBC7AE326F55A9F7FF105817FF8
B98EDD76B76AD3BEB1DBEBAF970C9BFADE82B7C74F28CF2DAF94755BB62A92F8
F8CC27925552F139730C788F8D7DDF19D9386666E0E189F3428F6616977D5554
55AD9484494832FC285A54F3CD9BE3A71CC6CF3DFCEED459ABA233D2A273CA2A
EA11721C4728F3259544624EDE6721F18925D1F9914F8110341930ACF010C55F
9D308364C8DC0389816440334461EE537988967F2D9FC00FE613600E0000DA0D
09BE97B21EF1FCE7CE1FBA5D9EFB4FC4E7AB4812DF7CF38D7478E5B5230366BC
F668A7311D6E2168EE79F491C4AE7DFA9E991618F2D9574E3560E48C79A78312
C387005037B7EFD363F64D77DCDD78E36D77368E9834796DE5D2E5C708FE0FA1
267A0C7ABBB1EB6B03973384B8FF89A71AEF7DEC89CD4BB695772DAE5A7C7CFB
9E3D8A24EAD6AC17029EEA80F6D684B149EF4C9E18DBE5D5013BF22A167A91C4
A2E5753278C2D4C6DE6F0D57F6F6A4198A24A8244A172FF152127B0F1C948973
434E202441D5A2F381A92121099925C58909D979FB92F30B3F01419C05417CFA
7E40F08A69E1F3863921C59FF1F980244014078AFFAC4CE72158DE6435C32BE7
6091454B98F18341C545F646338A4B3FFBEAEBAF85E0419C7ED064D4CDC7A048
A2A4EC0493836535CBCE761F306867D73E97A4DEF6C88FE58EBB7E2477DEF75F
BB8222C2D7C564E47C49C0B26C88BCC02E37FE46C2EEEA1BFEB1FBF67BEE3B15
1A97F0D581C34714B0E19D4F8C9C3E33072AE2E1879F7EA6EAA63BEF69BCE1D6
3B1AC39353EB56AC59AB9E535C55F34DFB3EFDB6BED8B97BEDA3CFBED0F860AB
671B5BBDD4A61224D1198F9D3624B162F53AE9FDD6B0DD7C4EBB5E7DD74C0E9A
3DEFB57747967479F5F5C6F4A2D2AFF89EA8248E1E3FA14A9A2005860E8751D2
5465CD99E1911F22C7F0E5B295ABE5F0B1632A1F61940CFB1EA0500E7778A5FF
9629C1C151C9F9F9A9D1E9597BA1223E2549248024662F88CC77C20CD3FB4032
605861F7409864A5AB18F8D95A24E1F6415C647F822DBFEE77F90980003E671D
3F21BB8004F031DF4B5656D635F9F9F9F3E2E2E2F6272626EEC073CE9224E627
67C8D071E3F7BD33E27E69FFCCBF4BDB277F248FDCF76F929C95766259C3EAB3
040D2A03671F7EEAC94377DCF56F67EFBDF3DF4E3F72FF2F2A1F7EF8B7AB070D
1DB621383EF96B3E67F7FE467AFF3D3AD1587CF54BDD3B4EB8FC9A6B4FDC71EF
FDC710CB7FC95C03653F4A86BB4010F7CF4D9EDD09527EC72D77DFD708A2D85D
B868D112F620F0DFC66D3BD07B3078EB132FB46D7CF8E9E71A1F7AEAD9CD2BF6
953D55D650D8AFAC66E947BBF6ED57CF6372714AF082832F74EEB1BB439F7EAB
FABE33B4A4D7A021BB4213533F5DB87C859B8F60F890925F7C7AF8D4D98D485E
3211D9081238302D38FC432423BF5EBE7A8D1C3A7A54F53E3079B9A47E95201C
39C1AA06D4CCC2B8FC9441A8AACC04392C4945DF03FB1FA0283E8CCE480F74CA
9B541126A4B0898204C130C35745B434497D9700B9D07F767A49D9D1A3274E48
4C46EED9E73B743EB26FDFDE86DDBB774B6D6DAD141515496656968000D41F3C
32F2D2E3F5C102621010842C5DB654EAEA96496671E9371BB76E570400CF2EAD
5A3F7DFCE55BFF8FB4BEE527F2F84D3F92C76EFF77098F9CB32FA728F7109F93
9C5774F6F1675BEFBFF9C19F34DEFAC8CF2AAEBFE3D7C9975C717943CFFE034E
9A5C435EF9A22F068F1B1F0525711581F3D0D34F255D75DD0D87EF7AE0A16388
E58524C184204A903B01F856500655773CF070237212875FEADE2118E1C19A55
4EAE6171DD4A413FC32E2624A9129E7EB95DC5926D656D324B4AAAAA57D4ABAC
252B10A8801C6655E399769D1A7B0C1AB2E1D57746ACE93EE0CDC6E9412167EA
4138A6F7614FE301C9282AFB6472D07C2A88134C5A8E9D157474D2DCC08FE727
267F59B9ACF6E4A6ED3BD56B32D4401315AA1A830F23197AB8FBC041450BD2E2
078324666494945682288E932460C7721795BEAD92930C333C0D52A6F7C16E92
F255112D5D94173A50FF377EBFF691994F85E5957CBE76F316CA7B69D7FF0D79
353E4F26E456C8FBE9853237AB501664E402B0054292786F5EA8F47C6D90CC9A
335782C3C2253E2945B2F158504C3C62F575CAD3A27C2743478D95E8E868494B
4B9182FC4CC9498F92ACA2C24F376DDFA19E03C0C813AD1E3BFCEC9DBF3DF6C4
ADBF3CF1E0EDFFF9D5DDB7FDC75791F1E17BE9B1E9FD5F1D3AEACBBB1EB86CE9
8D8FFEB4E2D6E7FFEFF4BB9EFECDBC6B6FBAE5F41B23467F560B2FCC7F00F5E9
09013346B28168E0B82183AEBEFEC6C357FCFDBAC36DBA76AB4562F01B92C4F6
DD7BA5FFF0D1B5812981FD00FE1DB7DFFF90228984BCECE8A2458B8F326F41C9
4F0F8E04E31E2A04104563FF918367902472CB2B566C401582FFF8BED00DB90F
CFDDFD52B7DEBBBB0E7863239FDFB9EF8043F3A262CF20DC807A39AD9ECB7F24
8AD2C54BCF8625A61D8D4CCD3A8126A9A3E367CCFE302623FB331054634276FE
67A8769C7875D8E8136DBAF73981D73CF1CA90E10D83468F0A719AA2D8FBE0D3
24A5CA9B26D4304D5136499826A996CAC5FF06682E94D76C93547A4BB7C4A24F
370094C528B5B1F3AFCF5BC3657E69B54C01018C482D94371372A4577496CC4C
CA90951B364A4649853CDEA1ABF49B13264302E6CBFBA111322B74BEA00220A9
39F94230C123CBF899F3E48359B325202454A2E212A4B472A104C725CA017844
FE03B865F69CB9DF2425C54B667AACA425869C0D9CF1CE37A1B1D167986B6088
D0B96FFF4F5BDD7BC5FE476EFFCF2FEFBDE53FBFBCF3819FC86D0FFFBB4427C5
EEA6573D89A4E5FD8FB7FAFCCE7B6EA9BCF3E9FF33E5C167FFDFD02BAFBD7E3B
54C2895153669C6958B75E3521C1AB1F8AC808EFD2B0A7E496C79F7B3611F908
A522E2B2728E921C98D804000F8F9D35B7A8DFB021F3EF7EE4F14692C4434F3D
5D99555E12B5B8BE417534ED3B78481812B062C1B22612871B196AE806A9BC2A
FCCC1326097AECC44901E08F22A4C2EBB466BFC4E18E7D5E3D343722FA34AA10
9F1E46F7A4F9C730A2A47AC9591A14D6D1CEFD07B1747A3830266125D4C11EE4
26BEB0FB1FDE9B1B7C7C5A6878E182CCC82E4E48A11492D524C52ECA4B1C1571
BECA450B495C2880FE677F0F104059D2FA1D278EE28F95253724D564C4B43912
383F52B6A28CB7174D3C1B76EC922D0009FE3805B1B98AB75B77E929AF05C748
AFC06879795E8CB49E1B2BA32213656444A22AEB91005E9B305546CE0E92F7E7
05494070882C888E91B0C464F53A04C7838FB79229B3E7C99C8040494A4D9382
92528413CB253C2159986B58B7659B209977363626E26C44F86C991F30F1EC9C
4903BF19F1CA83679372F3BE2449F039F73DF6C4978FDCF18B3377DEF9EF676F
7FF82772CB7D3F967B1FFEBF929495B29E24C1F7FBD8B32FECBBE7F15FCC69F3
CC9F3B3CFFFC65AF82004EB36A3127225AB53DAFDDBC55003AE61AEEA6DD7ACF
7DEBFEFE8F9B1BEF7DF8D1FD94E56C90E23FF43E9C183B737676DBEEBD6A4912
B7DDFBC0E117BA7408C9A92C9B0195B0C6F43F302C4158B0EFA9B61D76B7E9DE
B36AC5FEB2276BB6953D1B97955D3F2528FC3813A97C3D7E0EE8BB388572A96A
A8621584A5D081A3261C88CEC83E63FA1F4810274F7DA8DE676A41C947F87C49
10CC4DEC8B4C4B2F07A1EC457BF6E7ECA0646913558CAF42E393D704C5478C56
950B3D6FF15BAB72C15E08542FD4FDCC45B84359FFECDF50CBF37FA09F00C0DF
BA7D4A79D557DF7C73F6CBAFBF918D8857119753DECAEBC347496A66966CDCB9
5B36EDDC03DB2DAB376F4362AC887F80F21662FCD113DE933D070EC92ED81A00
B100E41190942E354888BD35719AB4E93B503A05C7CBF373A2E5C9B971D23E28
5E66C624C8BCC434F5878FBE00193F3B40851241A16112018288848582001867
23532FBDDF7C5B464D9C2C0BA262A4BAA646366EDE2CBB76EF51EDC22409862C
8F3EFBFCD98890E9F2C1C481327148DBB3EFF4BDF793979EFE91A4E566AAAA05
BCB0DCFFE8C3A7EEBBFFC7F2D03D3F3E7BFF1D3F96076FF9B1CC8F0A5EC7EFE7
3FBCDF4F5EEED6ADAC75EB2BBBF7EDF1F84B8FB56A15F3D7CBAE38D1B9579F33
850BAB3FE573D853D06FE8C81524886133460F402872984AE29997DAD6203FB2
D9F43FB0C2F1E6B8C9DBEF7BBC954A482271B919DF730FFA28A6152C5CE49204
150E5447E323CF3CBFBB7DEF57D7E42E4FEF139A1C3565524050616842CAA7A6
FF8173166C9F665764FB3EFD554292DF479298179DF021929C6E69733DFE1F32
8BCB3FC54CC661FE6C10D0E1C1E3262D89C94919857C433812913B93720B54E5
82E5CDE921E1CB425317F472720E2C632A22F881FE49B7BCED6FFB0900FCFF09
DB5EB3F770FD57DF9C3DFB0508E0CC679FCB2EC4AB2480A1EFCF9471EF4F95BA
55ABE5C8A9D3D278FC94EC3A7C4C56ACDB882A403ABD9B74EBFFBAE416154B23
FE40374321D4ADDF2CB199391C0A12FC61CA536DDACB1264DD576EDA220D1BB7
C8ECAC62991597AC6C0B08A575A7EEF2D2B8E9D22A20415E9C1B2D1DE6444AEF
B911323B2A4EF6436AB324D96BE060993C65AA04218C484C499542A88485D58B
917C2B55C3452489675EEE20F323A3A4B8A444D6AC5D0B82D82DBB76ED56494B
9204C9A863B7AE67668C7D5586F579F06CF7F697C8E38FFF4892B2D34EB0FB90
ADCAE87D38DBEAB1FFF3F55DB7FDF89BBBEEFAF1D95B6FFD8F4FEEBFF7D2F5D3
02024F6E06313AB986334F777E3EF4B50FFADF4DB97DCD8D37ADFFF325979EEE
F5DAEB0752F20BD71AEFCFDE830519D1A31F6BDDBAF0BA9B6F5524F1C6E8E1D3
F07EB6DA4D52A86EEC84B7DF4B8F7FCFA34F1C1EFEC1984108259ECCAF5CB86D
2BDE3FFF912490506D6475A3D79B6F5562702AF0AD8913E2313FB10E5EFF7353
DAE4EFC0612CF43C34327CE09C051393FD878E3A3076DA071FB2AA82F2E617F6
D42688E29377A7CD39C1D084A3DD61E9F3BB387905860C2D24F06DC1F4437C1E
C03FA85BC6C2CCAFBFF9E6AB2FA1004800343403C8E7B806C6264941C5229936
3740C64F7A1FB1FF6659B5739FEC38764ACA96AC905133E609FED864C4F849B2
BCBE410E9D3825FB8E9E905A4C08962E592E13E78549CF37DE9197BB76979DFB
0FC8FA1DBB65EDB65DC8332C41A8B110A1C612193F27447ABF3E481A366D9505
A50B655C5CBA0C0E4F90C99109EA792CD9F57A77BC3CF741B874847A7835304A
868444CBA8D06828954239845C02868BE4B9761D551811019590959B2725E515
B268718D5209AC5A30D7F0E688D1121D1B8BAA4581AC5CB91204B10B24527296
C9469211926F32F58DAE32A4E3839FB4B9F7E7F2F0833F92FB1FF8912466A6A1
57E963D5D5F8F8F32F7D75D76D3FF9F2F65B7EF2F93FAEFB8F93D7FCFDCFB597
5E71C5AEF1D3A6A3CC57AA3284242D24F0EA99BCEB3AA8D71B7FBBFCCA137FBD
ECF21343468D5E0160AF627E803989FEEF8E6D0C4B8B1CF552B7CE714C46A2F7
E1F0834F3D999EB7B03C9C3B18F85AF4FC6889DE6594041BA4A0241E612881F9
8943A6FF813F13EA80390990C4909AB726BC97D7B9DFEBB59D5EE97F302826E1
0C1AA0BEF9F0E38F15A1B0D10B2AEF34AA152758ED4049F4041BA5581501091E
7E77DAD4D0657B8B2F7794404B57E30F11DCE77BCF00FFAF6127777FF8F1FEAF
CF9EFDCA809FC03786B04022209D911197EEF0F43DFBF69377C720AB9F532C07
118B26E715CB689040746AA64C9C36434222A2642D40BE6ACB4E590695908430
01DE45BABFFA9A840198BB192A1C3AA29E935B59A5BE1F7F7CD2B14F3F098E8C
963D478EC9EA6D3BA51E6450087288CBCA53B13BA4B44C080C95F753736508F2
0B7D9173E81E182393A393D4721294E1E4E98E5DA5C79CF9322818E4303F4E66
C724CA82C414C1DE0194094FCB2B83DF9111085766CF9D27E11191929C9E21E9
5939121015AB1A96581E240144C5C44A7C42A22C5EBC58B66CD92CB5CB170BA5
3249844AE3F98E5DBE7AE5A5EBE4A95B7F228FDDF02379F8FA1FC93D77FCE49B
24F43F542D5FA1627AF4357CFDC8530F6DB8FACEFF387ADDCDBFACFEFB0DD7AE
BDECAA6B1AA7CE0DD88BB907E5D601C033BDDE78BBC1B451A36AB1FFD22BAF3E
F1F8B3CFD5A1DBF228AB1624090C501D8D29881EF858EBE72AD1FB70185D9487
7BBCD977625E6565DED295AB14A0F9DE9FEBD87527E4FE6E261AD920C57063F1
96D207B2CB4AB393720B8FB2BA410B894F61C723A7367777EE3F706BDB1E7DB6
B324C9A94FB657B3ECF9E48B2F1F7E67F2B8094B77AB04227B115A48E07C80FA
A13D0EF087BC55BC3C0E20FF0AF6E5E790C936F8A90210154828627502039E41
5EE8D44D86BC3B52A25233E4C899CFE434C285CAE5F532795E08FBFDA553EFBE
D2EBD5FE52B3A21E20DF235BF7630230344A1624A7C92B03DF94C1EF8E92D8F4
2C590D02A85ABD5ECA96D52A05F0E6D8C9D2A65357C92C2997862D3BA47ECB76
590E024983F70E8A4D96511F0448973E7D6515C8E0F0E933EAF19AB51B246F61
B5A416964839D40624AFF418365A0684C64AEFA058E9189224CF0725CA9C944C
D98ED6E5DE6FBD2BED416483E786C9F8C030998D0427CB97E84854494F26EC9E
7CEE459905820844A8110B12484ECB90D48C4C41BCAC929A4C5C3EDBAE93E4E6
E6CA9A356B64DDBAD5B26471B9E4674621D428F99A6102138E00D4D956F7FCFE
F063D7FD48EEFEC7BFC95DB7FF585EBAED476C923ABE06A110FFC15B7FF568AB
07EB6EB8F36795D7DFF4EBC41B6EB96DF5F5B7DC7EFAD537DE6A342DD22BD76F
423566D8D215FB4B6EEB3FF28D216C90029120DFD0A60AFD0F1F93243EC150D4
1B63276D8B2B8A198841AC9D4848B2416A3F88E50E6C699A9C535E514F8FCF7F
6F8E7BBF91E0E714E65B93878FE1FC060928BA20A20D3A2C97320C5195072801
2417F7CC4AF8A095D3C5D8120AFCD0007EAEF70BF05FD536A974D7C75F7CF9B1
E3FDBFD0046093C0D782C790F02B91F6DD7A22A3FE98DC74C75DF2C8134F4A60
749CD4ED3F2A67BEF8528E9EF954C6CF0A1024A604757079B143674512E900F3
86C32764D7C9D3327ACA7441EFBEDCFBE813D2B3DF007973E870C9AE5C2C6B76
ED95E39F7C2688556502CA8549E99908151A65E7E1A3B206A1463D128E093905
02A92A03468C935193A6E0FE3DB26AFB2EA9C3634B4002C9F0F0F139852CF1C9
034F3CA508A4168F55AE5A2FE50D6B24B9A4E26C51D562098E4F91A751B51808
826837374A9E9F172B4F06C4CB84A8440981CA61C211009077A6CD9609730265
5E50B0AA5A9010A252D3558EA01E3FAF0D48300AA5CEDCC22255B1C843FEA318
9593509436A9565891400391D4D42C96E5CBAA657155A114674749D8CC21929A
5FF015139FEC214009F1ECD357FEDF4F1FBFFAC7DF3CFC8F1FC97D77FE9BDC73
D74FBE0E8D0CD8C95E0CFE439BF257773F74FF8AEB1EFED5EC2BEEFCED4C9436
1B4102A7070E1DBE69113A16F92F3E2BFFCCE8191FCCAFDB5772C7A3AD9F510D
522089135D5F7D250CA4B4B176F5DAE37C1E9B95BA0E78732743895BEFB9BFF1
81279F2C5395013DBBC079862B068C7EFB5DA8885D24827B1F7BF230A6360B9D
7CC0FFBD90FEFE2FFADF050450F0C1B275295F41FA23F3FF25E4FF179FABB85F
1300BD3F0D8941A987179A1910241DBA7453E0BFFBDEFB24A060A12CDC79503E
F9F22B39F0D127322B384C79F0DBEF7B50EE7AE061B9E39E7B657E5AB6646FDC
AD88A2FFE0B7E5D6BBEF63838D3CD8EA1969879C40BBAEDD64F3D153720C0472
E0F4C752B1AC4E6687474897DEAF481C88A066CD06A95EBF4516AF5C836463A8
4AE28D9C3C4D92B37364DB81C32002241C112E142FAD9558840A540924A13E90
FA6BF736CAF28DDB64196C05C289243428CD8D8C97763D7A4B28929775502095
78FD9C9ADAB3D3E253CFCE4B4C1566ED91559756BDFAC94B01B1D22A3051DA04
C449A78018991411A754068791209951A988568D4F2482B00511121D172FB119
595281F74239FE5297EE2A5959CE1D07EB372A5B8744630C7EAF23C78EAB3904
4876494F4B90D888B9123F7FCAD990696FC89BAFDE2DA97999A7F639BD0D9DFB
0DFCE6991B7F75A2D5ED083560F7DFFC932F9FB8EBBF4E074786EF67D8C2BE85
E73A743D76EFDD9745DF7AEF9FDEBEE7FEBF0D47D5E2F4EFFEF8A7D303DF195A
9F535656C60E44861220A5C31159D1A341E29B4912484A6E579D959EC9C69FB2
243872CEB8AE5012FB38B1891E8803AAA7009D880D12FE6F173D702E840F00E0
7FBA5D4AF962CA7E009CB1FF17B0CF55E2CF210143003A21F89594D7AE94F85C
740202D413D38AE4BDCA95B2F5D88772060470ECD3CF54967F2C9284CFB77959
81FF9A6BAF93E999C592BB690F88E2800C1B334E5E6CDF511E7EEA5941A65BEE
819AB8FEE6DBA468EB7E39F1E9E7B2132AE138AE689145CDFF55452663274F91
45F5AB05390A398C706362E07C95331832728CF479FD0D991B1123A575AB64C5
D69D5254B31CB904C4FF63262149D746068E1C274B36EF94F2359BA472C316C9
42BE014B47542EA31B14486A712594C947B26CD376295FB9160A224FE53AA812
5AB7EF2CA90B6B246BC98AB3E3E3D3BE79073987B1C82984A7A11C0A0FDFA1EF
EBF2D4BB93E4A5A004E900A2E885BCC3C0B9E132073907CE47B0A2F03CC01D3A
7F81CA312CC2E461252A166520035409841D9054092FE0E74422DF500005B161
D326D9B663A7EC44693306211249829B9390F53F9B183D4FE6BE3FF89B29233B
CBEBFD6E97C79EF87749CCCAF88824C116E3479F69FDF913B7FCE8EC1337FFF8
9B47AFFFF7CF9FBAF5FF1D79E0CE2BD706CD0FDE18123E7709138EDC99C036E9
7EDDEEEE79DF430FE7FEE1CF7F39FDFB3FFDF9F4CA3DAAD5D84C2E32D6FF3907
B71E6CD5AA98539B68A73EFCC8B3ADE6502580005AF2003F740200F8FF1DB63A
73F39E8AAF3DE087FCD704E06B9F3AF79DFAEC0B59D97854E2566E93D4B53B65
133C37C14FFB08610043813278F0F766CE9151D33E90F7324A6454699DAC3F7C
52561E382679C8D23349F80AB2FDF73EF4885C7AE555F2F7879E90BCCD7BE404
5E7B1D42850224FDDA76EBA500FC74DB0ED2A9676FB41ABF2E2BF0731B4102EB
F19CF0D46C956BC0908FB4435882785932F1DA3B01E6528EFF8E9D24AFBF3B46
FA0E7A53A607844831DED362242457ED3B2C9169394848CE56E01C38628CE42E
5E2685AB3648E1CAF5925CB65012D0FBC0B66455B5C06BD76EDD25359B7748D9
6A743DE2B971D9795012853270F47BC889F49619A9B967874526C96B4151D227
204ADE098B95D9A89A300780F8593A4F0990FEA1F1322C2A59C621CC98BE2046
22900BC94755A57A4583B4879298036515151BA72A16554B96CAE2E5B5129D96
29BB100661FE01D5939E525A86506AE346D98D91E83D7BB199B9B1515536A822
98BBC0E77576EA98BE32F09507A54BC7CBE50E0C65DDF4142A17286F7E103845
CD514F0D59F0CD33CF3F7DE8D527FFFDD3EE8FFCDFE30FDD7BDDEA1B6EBEF9C0
5DD7FE3CFDAA4B7F1373FDD53F7BF7D24B7F3DF4B22B7FD766D3FAC25FAFDB54
722D08E018428E1337DC7AFBF2BAA3B9BF0301FCA44505FCC01900E01FD03563
6136BD3FCA7E48FC7DF3B9B6AFBD0880C0F7B54FBEFC1A925F9B01BF7D3D062F
BD78F72199BD649D84D46E940600FFF4E75FAA1081798245680C0A46C6FD9537
8648BBB7474AFF8422A9C77348006B0F1D97ECB24532F09DE1F2E853CFC815D7
FC5D7EF7FB3FC89F2EBB5C62566E550AA072C701990F0268039240FCEC84123D
A4638F9EB2F5C469D90D12C8ADAC41963B59068F1A274FBED05649F11EE821C8
59520F9239AEF2042C07764155620A3A13ABD0B350BD0565491041FED23A193D
335095359F439C3F60E458C981F2C95CB146B2EBD7495209E27C840A980614C4
C9120A4259C3F7BD629524552D9388C2324940B230323D5BDE41FF44DB3EAFC9
9BF313A57F0892922171F232D4C280B078998FC799086CDDA987BC32334486A3
A43907CA230AC04F41C2312C3E494D1532E1D8AE6B0FA8041244A5D4D4AE90C5
489A524D9000B86A8DD58FB6784E1A2A1A1515152A3179E4C811D9BA65C3598C
6D7F939453A05634535975EFF2DCC1979FBC7A5F97477F76AAFBC33FFE46D943
3F925E8FFEF89B3E8FFDF8ABDE4FFCC799AE0FFFE7E93BAEF9EFFD775FFFF365
77DC71CBEA9BEFBCE7D36B6FBC7EE97DB7FCA6E7CDD7FFDBF3C756B7A8801F2C
0500FCBF60D96FD7A98FF652FADBE027017C0AA968144013F0831034F8B5D737
F6316E7FFC85C73EC26D2A02DA69D887200063A73FFF4AF69CFC580AB6EC95D8
555B65D9DE230AFCB41D00F0495C0341106F0E7B579E7EE14581549569E90512
BE62B322809C8D7B241520EC3B68B0DCF7C8E382385629899BEFB85B16ED3A28
7B3F3C236BA1122220D57BBEFEA6220994C4E4A5CEDD644A7894AC3B724236C0
A68545A32D391844F496B4EBD94786A0872118DFB374EF21A903210D1CF39EBC
F3DE3419346C84CC414EA2607983E4542F93BCFAB592803E859120000C1E496B
28893490435ADD5A495FB11A4401831A89421314498209C5E892459285EF0B43
C83117A5D39969B98A241A901340424E3A0C1EA62B16E86F7811150B36438D8B
403E213B5F0D2E3D81D7181FB240E6A76420E15826394C7822F7908CD7600E80
04802E4555DA6438918DFE8645354B4016756ADEA200A10F773B32F4619871F8
F0613974186DD11B6B65594D8A94E7CF95B8797D64CA9087E5DDEED70B09C158
8F87410E8FFC485E79EC47D2E5D19F9EE8847E885B2FFF91DC7C292A1B7FFF8F
86B1FD6FFD47CCD4677EFB8305C4C5F6C601FEA9FDF26A12E0F9BFF80246D03B
F619AE9F7D0A3093009AF7FC7EC06F118006FF570AF8CA2CF093044ED1007202
9D66C07FE2D32F544991A4C1E7E5A03A9054542E710B11D72F5A258BF71C5604
B064EF61D98712E0F8E9335195E881198227E4C65B6E9549091992B8760708E0
63450401A850F443D2F1D1679E93ABAEBF517EFD9BDFA2D418282B00EE8DC73F
9435084BDE1A334125245B77E8221D50BA7CA8D5D312087056E3672CDD7F44F5
26BC0D6278A66D7B79091E76E42CF40EE495E2F143F2414CB20A033ABFD25F25
25CB37E0AC84359B2565F91A49A95B2799A59532160D502C9D62604892964321
2C5B25A9CB49126B25B5B442C2912B606503893609C4EBCEC82C94F753B26552
621609E02C1395CC133CF1523BE93233542523D946DD2E38413A0744CB5C2886
3C84125C7EF234DE2387AD58D28C4B4C52FD0D2948368663DE2212AFC31C40CF
41432405F988A52086DA86554A4D2CC1ED250839AA411879208EEC9C1C5CF325
252D51E2E2C3CF46CE9F2CD1A1C324785A6F19D5EF0179E3E54BA5F713FF2DBD
1EFF2FE9FDD88F3F07F82738D6F162C3D20FEEF73565BFD39F7F715A4B7F057E
057C809EF63909C006FF27F4FACAF37FE557F637E7FD0D0118CFAF80EF982FF8
8F830898FCA39DFAFC0BF5F3A82828E7593D587BE88402FF21D8AE531FCBA18F
3F912A2406A33373651E5A8927A515CAC8B23AA942E84102E0F7241597CB8C90
7079B66D3BB9E5AEBBE58AABAF91E0F45C895BBB5D11C0D27D47A40F660BEEC7
0C024A5D18107A5E7EF68B5F48000098B46E87E46DDD27CB1B8F21D937403092
2B18CCC1B597DC87E797ED3E288BF61C92E9F0D2D39174ECD2E7557909F98037
DF9B2AEFA3292975E152C9DFDE2841E9793260D40479A1631719F7C15CC95FB3
4532576E90389040EC8AF5128F70613CFA113021A8FA2B52A0249296AE94B4DA
D592BCB401FD0F65E8C24CE6B665E904A5302919AA222E0D1D92F1675F0F8E3E
3B7A7E0CF22199B219035A4F6222F3292887E7306BD1615E94BC121029830317
C807917132373A5E7512F64375637670B8E4A32DDA581E87859253257441A484
A1812B1C8D58AC6AC482449898ACC5DEC71D3B77CAEA75EB64073A26B76EDB2E
5B300ABD63D75A19D1EFE1B3FD5FBE62C1B4A1F74F0A99F044AB1F1C202EB637
0C02C89AB47875E297E8F675E27D037C97000874430036F8FDC5FB36F87D65BF
AFF77709C08FF737E0E7F518ECE827DA8EA0378066C04F023808E37D5411047B
15CA90B94822D602F47B4F7F023BA3C28043C8372C80A47F67DC0479BE5D0799
87C1A3E4F53B2578C526D980CA059F3F233C52DAF77A45EE07015C72C595F2AB
DFFC46E62467CB84852B6526721849E5554806BEA59291A89BCB83483AFED77F
FFB7CC4CC9912A842E95BB0E4904762310C0584D268F3DFF92BC88A4DE28CC4F
146DDF2F655BF7CA3424FEA62011D9031D942C4F0E9C3045428A16216C582729
1B76C9FB11096A610A9A86E4C59EAFC8CCF26532BD7489842F5F07B5C0AA4B81
609807AFDD46E665174A2208227A71BD4454AF90F9E54B51B928E07090B40181
F485221919930272883AFB2A08A0F7BC48191A8E6EC8843489CB2D526AA3EDEB
43644078A2BC151A2323D1463D0161D0742421239063884558119B90841C4496
E422CC285F542D75D8B3B00E53871F9F3923C7B1FF611F12933968800A8F8890
67EEFC8DF47CFC9732F0A5BF7D3CB8FDA579373FF2CB9612E1F7955400FE075E
4E2EAB43BDFF73D8178EC737C0FF145F7F0AE07FA13CBDEBF59BC6FB5E71BF23
FD9B801F9EDE96FEF4EADABE6C22FD8FA38BD0009FE03FE680DF10C0613F0470
F063F40CC01A3FFA54F623B9B80FA6C1FF89EC010134E23192139FB7032A6223
AA15D99B76CBB8CA06A512361D3F2D9BA102CA51169BB1205ADA40DE3FF1FC8B
321584105DBB5EA656AF91698B11D71757C898394118646A2737DD79B7FCFAB7
BF979FFEEAD732342643114016F2118150152F01F4AC5A3C8A0EC2A7D021F893
FFF80F4942EF43C1F60352B163BF042169D9B6475F4D12484A3E85BCC1ACB43C
490301246DD82D6FA301EA6D10C3EB487E62584742F3914884528985C5D4AE91
91D3E7A90EC7C721F3C76597C9FB45D532AD04D396D52082E2851286DCC07894
47A7417DCCC7F72E58DC204195CB657256898C4FC8441355BE8C4365634678B4
DC0B0533202406158B48E93677814A4AB64623D4B3C83D740D4B924151E93236
395702F2906B4042B412E5D163003EDB878F4045CCC59CC51C4C6B72D0EBA53B
7F2A5D1FFAB9BC8BAAC33BED2FDBF67DFDDBBFE8DF9729FB656CDA53CE861FD4
F9097C02DE005FDD260110E0CD65F995C7F713EF1B02F017F76BCFAF09A089F4
7764BF4D001AF8DEDEDF28007AFF836C1822F8FD1000C14FDB0D05C0E732BF70
04CF5B73F038807F501A7065A5600B6C3B4209BE9F1DB8C6165548645681646D
DA2B53AA574BC98E46294008C0E7CF8A4B4125601C877F047B016410B2F593AA
57690200A984E51449EFB7DF95FB9E6825975E758DFCBF9FFD4CFEDF2F7F2563
92318884D74907114C8D4E96E7BAF450B906B4D7CA834FB79617D06814B11221
C1E6BD9288E7CC85D41F3276A2A0FF5E5AB5EB2C6FA3E929068A250AE5D605AB
B7B17D573A6156022724490C428C782888F94B574948FD4689C843B975163C79
7C1A720B0B656C6A814C2D5E2C33A024E64025A42F5C2CF1F9C5286F86B3A740
DEC2DCC6EC8AA5323A3157062F489481F89D0604459C1D08E5F04E74EAD97713
7364081EEB1D9529738AAB650B06BBEA31093A2B341C7D14A98205A8AA5A4102
E8F6F0CF14010CEB70D9BE8B1E68DFD70F0004D0AB535A653E1A7A3E63B38F03
76037A73FD04DEFFCB3388BD9B95FB160178BCBE95F0F349FAB9E007D09A24FE
90F433D25F797ECBFB1B02B0BDBF02FFC79F29F01B02A0F7570AC091FE0AFCB0
5D2000DA4E809B00DF8EAAC33628019A2180CD50017C0EC985C947AA04E60596
23F9578F9C43034A7B4C366E44B8301F99FB5949993201B98661252B94745F04
025882E73399380CF13D3DFFED0F3C2457A22AD1797AB00C2D592EC520807854
3ADE47C2F0658409773EFCB8606C5830362C3FFFEDEF64F4C20649449354F49A
ED32253A1125C3FE82FE7C956F78A0F50B323C3C5616ACD921E1B058FCCC7968
7AEA8950E205288E9E90FB939272246ECD36495EB74DC6E0B9C301EC10AC6C9B
199324D1CBD64858CD4A995EBE5CA62F5E25E94BEA64044802EBD4A515429AF7
732BE58352A80810C482EA3A4900A1442D592989AB36A1C7639B8CCA2997F70A
2AE5C5A81C9980557061C8358461A88A46F047620E8404F06AAB9F2A0218DEF1
F293DFD7BFFF8BFA7D01FC3F851D6838746C1DBBFD2CF07F82DBAE41F67F02E0
3721806FEDF5FD82DFF1FEDF26EE77627F5FEFCFB85FC5FE00BF2BFDCFE5FD1D
02D8E9450006FC1F29EFBF990602D8085B0F80AF3E724A56B15909E5C306809F
04B002DE7F03C204124C2308A61E8D485405C5E868AC02F01782006A0F203989
10A5B2B641A646254847F41A0C8C481174584A68DD2629461E201F79808CC5B5
32E8FD0FE44180FAF2BF5F27BFFFF35FA4EBAC7079A368992600F43810C04F75
EE2EFFB8EB1EC148B05CFD8F9BA52FFA08662C5DAF082013AF3362EA07AAAAC0
B2E67DB0E75E1D2841C99912028530173F6F124A9B510849FAA0FC4985F11A00
3F1B9393D396AC9569CB36484476910C463E81139103D1DF409208AF69906965
4B657C41B58CCAAE907733A014105E4C0571744E2890E7A373E5ADDC85C87B64
A2C3314D1100C16F08E0B5A73501C03EBFA881F67DFDE59DB25F3CBDFF673082
1E12FF13025E5DBFFCCAD81978FFAF3018A465BE8FDC6756DE94F8BCCA7C06F8
3EF57EE3FD8DECB7E5FF71C7FBBB9EDF2BF1A7E5FFFFC4FBEF01E829FF95F747
82D0288026DE1F04C03C00098009C175F0FE8A001CF01B02587EE0B82C6B3C2E
4B510D5882A4E1625835C04FF9BF700F9280B095F83EE6200E83A0568334D2E1
A95361C588FF49000B117A9044B26A6AA53F7A0B1EC33054E7B991D23AA158A6
2F5BAF08803D11EF4125741A325C6EC10CC59F2EB94C7EFDBB3FC83B0B12A47F
6E8D22806278E641E8607C10DD85773CF8882A1D5E7BDB9D3232364DE6D46D96
39F55B240DC9D031502324897B91B4BCF7E9E7E5B1CE3DE57D807FCAF28D3279
C97A0986429817192BFD870C9327D186FC6E46A94C444E613C14C1E8BC85F26E
5699646EDC298950169D924B65041E7B7876944C472291E02709D04C08D0FF99
5F1902E0F53FBFAF38B828DF17C0FF177AFF239F7C7A84DEDF07F004FE19DB00
726F02F002BD6EEC31CD3DBE65BEA6E53E4FCCEF55EFB74A7E86008E9ED7FB6B
D9EF91FEBEC93FC4FE36F84F3595FF5B4F68F96F7BFF0DC73401AC3F8AFD7A50
015400047FDD41AD000C012CB10880DE5F1100AB00E84D284739B00C89C512F4
1E14C38A50952884E58300F2500ACC0509548338188670EE20177983F7916708
40352209E04F40FCCFD0231712FDCDD9C1F21842897BE0DD9F841A189594277D
7317830030F6BC75B70C0B8A9087DB7490EB308DF9BB3FFD45FEFBA73F95E168
431E89AAC56C9000BB157B8D182F0F8124984B20095C73EBED128405AEEF01FC
EF2DDD2091C82984A17B9149C5475BBF24F7B66A2DAD90A01C8E85AE63F3AB65
7A49B564ACDF2E01CBD74BAFAC45F24A4A91B40D4D50B13F0980579CE3E80901
9EFEBD4B00AF77B8F26F1725D0BEAFBF34C09F38B2A23E0EDD7EF4FC9F1AB043
EA9FF167F0FE5F6B901B6F6F6E3B4D3DA6B9C74F879F57B28F093F2BE96713C0
F9BC3F6372DFB29F97F40711EC47F69F5ED72BF6370460819FF1BF8AFB55ECEF
C87F787DDBFB13FCEB480050016B8E9C542100C15FEB1200BCFFB7250007FC05
685736E0CF01016462D82903E143FA967D92066F9F82C45F32C09FEA1040F1AE
034A25D420FF30370B7B18D10834BE6A950A25A812480055209B64B41A771D35
51EE78FC29B91A435477812846A349EAF5A2E58A00B2576E94413383E456E41A
FECAB226F20CFFE7BFFE4B464424C990B27A450059780FAFA315BA15FA0638AE
CCEAC5232F7792A731C23DB36615129BA84C2007D005DE7F0272148F623DDBE4
380D7E1302D839803EADFEE812C0DB1D2EBBEEFB8A858BEE7D99B2DFA75F7EFD
F16768F47100FFB1EF1552FF636300BF45004DBDFD39BBFB9C6CBF2DF9DD2E3F
A7E3CF80DF37EB6F67FEBDC1FF6993B8BF69E94F67FE9B24FEACE49FF1FE8CFF
0DF84DFC6F13C06A10C02A583D1400BDFF7223FF11FFD750FEC3E8FD9900A402
A8A00280F72F453F00154011AC1039029B00B2B7D904B05752017E43004601C4
23642845A84075C27C431D7E5EC2BAED327FD53699AF9280DB4122FB94CAC9AC
592113E2D365747CA68CC234661B90C4E8AAD58A000AEBD64864C94279121EFD
7A8C5DFF162AE10A241D072171D93B77894C840AC804E9BC896D490F77E826FF
C0D8F615D7DD283F4503D42DF73F28C1A80CE481B0C25059E89EB950DEC8A994
E7B1C8D524FFE8F97D9380BD9EFC9D1D02DC7ED101EDFBFA0B83009605D56D4A
03E03F06703F84BCFF88B75DC07F81DBDEF6116AF7DFB07EEFDBBE6BF7F2DBB7
BDBAFB9AF3F846F23BD7E6E3FECF95E7F794FC007EA7E4676AFE1AFC8EF7776A
FFA6ECA708C09FF477BC3F937E348FF7D709408FF73F8564A02600C6F5540176
FC6F1300C1CF1C804D005AFE1F5004A0E5FF7EA1F76F8E00087E43007120005A
CCFA5D12B50EA53FD802B43513FCF357EF90B0D5DB251489BE1C90C9062895C3
9F7C2A2B404621F59B6406E27BC6FF248004F4146CC78E842890403B4C33BEF8
E630793B3A5D5AC516CB5B98CA641810C7D72DAD9217878C949BA114FE74F995
F24BF4373CFFC67019899C03F30894FEA3CA57C89381F1321E9D87DCCC1C82E1
247F49C0BEAD7E6913C063DF573C5C54EF0BE0EFD231ADA288C007983F82C73D
4103783F84BC27F03FC2F5235EF5ED2FD5D76811D604E0A78FDF37A967BCBBBF
249F794CB7F8EA729F6FBCEFDDEDA7C1EF66FCAD7ABF77DCDF14FC360130E9E7
5BFAF327FD7DBDFF1A808AE0A711FC2B0FE950806100E53FC1AF13805A01543A
F17F858AFF0FBAF1BFF1FEF928FF31F6B709C0C87FA5002CF013B4043FCB7C86
0022D18AAC0800E00F07F849002150032118C30E52B65502EAB7CA5C009FC624
2009601606A6A82EF8DE37A18291823E82A1652B646839E43F7300B0407CEFBA
A327252CBF545E1EF8963CD4B6A33CFDE608E9846C7F18CA80415575D203DEFF
6DE4035E0C4B76E37E120033FFBE5580579ED48D408EB5B9A880F67DFC654DD9
AF7AEF9125F4F8043EC0779C86DBC700CE1300F9690D7A8F01F41FA1567FD69F
B7B73D7D738D3D2EC8D1C4C36E3EDBD37B81DF4DF8396DBE4EC6DF805FB7FB7A
BCBFA7E1C74AFCF9F1FE4DC1FFB11BFB535AD3F37BC5FEE7F0FE0D2000930C64
28E02BFF490015BB8DFC6F4A0076FC9F85F89FF2DD2600C6FFC6FB7B11C03A28
0024E998A863FDFFDB1000BDBF218099208019B55005B0A9C8FA4F59BE41DE87
4D4229D110C044DC8E06B92C03B1ADD97F4862EB36CA30A883998B1A241DDEBF
5F7AB9BC53BA5C9E0AC630101A8D8CFC27013004A01AE0353C2141F501F478F4
976C02D2BD009DAEE8F37DC4C445F59E4000237A66552503D0A700E65300DF31
63F0BAC768FC1A9EFB248900CF73EDD4679F9F25C0FD0DF0A86E3ED6F37DA47E
930CBF9BE5FFC225012DED3F7525BEFADA69F1F597F0F397F433D27FAF0D7EA7
EBCF6EFAB11B7F98FCDB82E49F97F4776AFF46FEAF41F69FC93FE3FD097E7AD0
3AA71A4015B00C1384F4FE8CFD99F9A7F4270130FB5FCAEC3F927F2AFB8FE49F
3FF9AF09A0F9F8DFC8FF68CAFFE608009E3FD85100810D1E0560E4FF2CF4017C
80CA822F014C46E2EF3D809EF1BFB675CA262D5D27EFE3FEA90821E6D6237F80
8A45D49AADD225AD428615D5C8339838DC80556BCCFAD36C05A02A0258AB4E02
E8F2D0AFE49D76972A0218DAF9CA911715D8BE6FBFAC29FB41F66EA5B43780C7
F5A831D4D88F3A7684F701D8A740041F323C38A9A6F13C537B06F4761B6F9331
5E6BA4D79EEAF317EB7B25FB4000F4F63ABE47B38DB9E2B6DBEAEB64FCFDC6FD
3EE0F796FEDAFB2BF0FB787F02DF13FB632C180460C7FE04BF2200550AD46100
0960C9FE635E04A0C06FE4BF29FD2902C0161FC4EA8CD74DFC9FEE8700D8FECB
12601CE2FE5818E53F0980DE3FC24FFC4FF9AF0900E00701CC7342803900EF2C
C8FF9900BF370168EFCF1E006F02A01A700800150612400A661AE8FD07E6D7C8
1B854BE599D02449C048F3622C2421D87D73008A10A2A31401747CE05732E4E5
4B340174BC7CCAF70D1317D5FB0101C4BD53BA228A9E1F4336272CB013F44768
F0B8CA003E6387A90800F2D3DCCB670FECF8C6F7BEDE9EB1BE27CEF78EF55DD9
EF4EF621CE370D3E3E033E66CACFADF533D1C7F65EA7B4676AFCBCEE71067EDC
861F9FB89FF576057ED8665FEFEF809F04B016A53FEDFDD104E424FF1ABCFA00
007E560260AA11C8A90498ECBFAFF72FB0B3FF16F8335076A3FC570A00B306C9
4E0990E08F47FC4FF0D3A22DF91F41F9CFEC7F33F1FFBC0627F607F855EC0FEF
3FD35200D35508E0C87F55FFD7218051003601CCC6F7152267118BC69F0EA9E5
32B264A93C86F31D3FC7494B5C3462127FB6026058108A85A8248076F7FE0204
F057330F30F7A202DCF7E99705F86F699B5CB6E1E8279F1DA447B7C1EE80FE30
AECA00386387106F1FC2D7BC1E3F0299FE3F013D137D5E1EDF4F679FDBDDE76F
BACF51025ECD3E98F937937E66DA8FE027F095CC07B8B7C1BBB3B9671B6F3BBD
FEDB0C0158DEDF74FC7D1BEFAFA53FFA001CF03356763B011106B0135027FF9C
E61F47FE930028FF73A1006CEF4F0260ED5F27FFF6AAD83F111E97E0370410ED
1080F6FE3AFE0F771280A14E0290DE9F09BC00809F0440CF4F7309C092FFD3B0
8ACD8B001C12B04380C92005860009EC5C4473D2A0821AE99FB7585A87A1DF1F
EDC124001E016F1380290392008C0278F99E9FC93B2FFFC92401C3BF4F98B8A8
DE0B08A066CE8A0D49F4FE94F63E407701EF805D011FB1B6B183073EFEE4C43E
B4CF72E88609BD26357C93D1F793D9F7F2F65E5D7DDE6DBD76BCAFFBFB759DBF
C9908F92FECE98AFD7A82F08C04FDCCFC93E3DE8F3916C529D7DA720F361BCC2
D3B3DB4F75FC31F167797F3503C0E61F64FE3DDEFF38B606690270CB808EF75F
0C02A0B11B90F57FD5FDE7DBFC63CBFF2DFB95F74FF52100E3FDE31C05400260
E9CF1080F6FEA6FCB71DD27FAB327F04A0E43F15804FFCAF0880F2DFF5FCEB65
42CD3A9900F9AF14006C068882790B9606DBA594C9E8B2E5F2E0EC4839834346
480009D9B95E044032A01220010445452A05D0F6AE9FCA3B6DDD66A0948B0A74
DF975F16E06FD721B5A20CDEFB28EC04416E4C01DD98057800EF20E26E630700
B8535CB06126EC084CA809CB9AC9EC53E2FBF5F896E4B74A7C46EE9B449F1DEF
9B3ABF3BE5772EF05BBDFE46F61BE96FC7FEC6FBB3D36F15B3FBF0EE6AE00757
3DF5A7937E2AEB8F0940D50548F0BBD25F97015525C001BF6A038695820498FC
53DEDF74FF39F29FD97F23FF4900C9CAFB63F4D7E9FEA3F7770980F2DF210095
FD77E53F4A7F28FF7908608B5200AAF4E7280023FFBD0980BDFFCD11C05A4500
248658FCCC34BC9FB78A964A9F6C9CAB383F553EA858A6C04F8B4E43B6DF4A02
DA0AC0100049E0ED767F39EB54012ABE2F98B868DE07C0AF4EF62DDCBEAF92DE
FFD0274ACE1FB4BD3BC1EE037802FF00926FC61AB149E72312806AB17580B71F
24C0E93CEF849E1E9F35DEDC34EFB8DB7BAC419E261EDFD9E843956180EF3DDB
EFF1FCEA3DB8197F6FCFCFAC3FC3007F197FDFC4DFB9BC3F6BFE6AF00749BEA5
ACF56317600DBCFB62C7540BB0E90370C0BFC89904D4D500AD026CF9CFC41F2D
0304E05DFA73E43F00E72BFFA34000B6FC9F8FCE3FC6FF6CFE3104C0CC7FA023
FF0D019C2FFE57150047014CC07542CD5A2880B532114A800AA108A4950012C0
A2181953B64CEEFD60819CC6694504FF6758D4C2B97FBB0CC8AF9910E47DB383
E72905A008A0FD658600D65E34C0FBBEFCA256D98F99FC538CEF2DCFAE816E19
BC2BBD3D81DF48C3ED4680AD1109B7337B4000F6661DBD604367E555E38EE5E9
7D33FA4CF0710D9789E3EDAB92F9CE6346EEABACBF63241A3BD36FC0AF137EDA
4CD2CF0BFC56AF3F81AFC18F30C05FCD5F497F9DF4F38CFF5ADEDFE9FFF7487F
5DFF5FC87A3F405E0A4F5F0A4FCFB65F96FECA9D3E00E602D805A86BFF8D0AFC
591601D0FB33F6A702B0BD7FAC8FFC57B1BF93FDD7C9BF6DCA98F557F25F95FE
10FFFB36FFF8C87FAF04A095FC3304301104F01E0820123F8BB1FF30EC2D60E3
CF73F3D3657C6195EBFD79D6A069FC51313FA47F730430D829036227C0CEEF0B
2E2E8AF701F0AB937D779CFA683B5A7C3F32F57E928001BA735540B78DA0776C
3FBCFF7E80FF539EBE63B6EA980E3B028F461052BE37D9D8E333BAEBDDD0E3D9
E0A317779C714C27F8B4356DEF35ABBDD47BF9D0037E35E38FF7A83CBF037E13
FB1B02D8E433EA6B127F06FC26EB4FEFEF36FC38D25FF5FF5BD29FA53F2DFD31
0108537D00CE0C00898025BF1C94F87200F24C009C723A1DC93E4A7F37F9D78C
FC37D97FDDFABB4395FEB4FCD79D7FA14AFADBA53FC87F0BFC6CFE9985B89FD2
DF4BFED71AF9EF9DFD1FCFF81F0A8004C00460019795A053507BFF5AB9735AB8
1CC1E1A146FE7FF4F1194500A605B8090104CDB514C0DFCC5290831705F0BE2F
BF24C01F32A8685934B2FEA718FB5B75FF63AC0220A676410EB0EF3780E76D82
DEB17D00DA3E9C13F03909C000DEF6B8F67C3DC16937F2D88077E37B76F2A905
1E9E251EDE197ECF3E3F55E2039869DCF8ABC946938E77C2CF1AF1B5C1EFD4FB
6DEFEF95F587D727F839EE6BB7FB7AC0EF3BFDA7CB7E358EF4AFC6849E01BF8E
FD7523103DBFAA04380A80B900E60138F9978A9A7A3CE37A009ADB7E2261ECBE
8B5BAFEBFE9EE49FEEFB775B7FADD29F21002A0037F9A7627FDDF73F1B5D7F86
003E60F7DFF24D321DA6B3FFC8F0A3C66FD7FF3D04B00EE1054E7602598D44BF
7FD70C0CFC2CC890A1D80360C0CFEBB193271501F05C011306F06B7F21C0E88E
EE40D047DF176C5CF0EFC394FDE0F50F99B29F4FDD5F35FC80040E00B4FBB429
D0F3AA40EFD85E5CF7E258AD2F0D00CD649DE9B0334D36C6F3F24ACFDDD4DB3B
6DBCCEEC7EF3717EF3B1BEA7B79FABBC74A94F95F8DC521F32FE3ED25FD5FB29
FDF15C82DF250035EAABC16F7B7E1DFB3BF13FA4BF3DFBAF6BFEF4FCC754FF7F
13F0830028FF75239096FF6607809A02846735ADBFBEC9BF5810C0027A77C4F2
DC07100C300721991784AF09CAF055BAF64FF033F667DF3FC14FF94FE94F733B
FF4000A6F9A7090100FC2CF1B915809AF5327EB156004C00724E217EFD0EE5FD
47A0EDF78E6961B2F7F849C4FD9FB9B6FFD021550108720880C0B77302734202
5C0530B2E36FDC79800B1E78DF975F100450366DE9DA047A7FF4DE1F736AFCAA
D9C731D3F1779439015FC0C3C3EEA501E4EA8A5379BE22D07DC76ADD649BAFEC
062829C9097293D4B3E37E3BC6E76D5BF2DB89464FCE416FF4B5177B6802D266
27FCB8D17703C0CD7D7D1B50EE53893EDCE7057E67D38F0D7E33E967F7FA9BD9
7F66FD59F3B7C16FBCBF9AFEA3F427F81DEFEF825F8D002311B8830A005D806A
1008CB40111AB0F6CFCC3F2D4125FFF4D41F077F1802E8B65F2DFF09FA792CE9
A174370D209D8E04DE0C78F30FD0D34FB96F067F94F777E43F3BFF688CFBE9FD
A72CDBA8BBFF007ED3FFCFDAFF38807F3C1380B010EC28A4F71F5B592F9DD1F6
FB426496BC965228672CF09308B6EDDEED1280E904E41E00930FF022802EBA11
C8B15F7C5F3072C1BE0F80BF75FB94F22AA7EC77D26AEC719B7D4CC79FB9B22A
00A0EF23E0B57DBC8706D02BDB76FCC36FE865B7C283F2BAFD144DC7DAC6BC96
6B58D29B72DD96F86E72CF89EFED861EDFECBEBBC9D707FCF64A2F4FCCEF59F0
E19BF4D3ABBDB0DF0F9E7D1532FBB6AD56FBFEB4F903BF1DF71BCFAF66FF9DB8
DF95FE8EF727F829FD39FF4FD3E0D7DE3F1796B38DC9C0463400EDD38D3F4EE9
CF77EA2FCA01BF29FDE9B15F3DF9671A7FE6410170CAEF7DC4F0EF2D0688B14D
8832FF03D4F00D014C53D21F04E074FF31C6B7B3FF94FF8600B2404C2CFFB1EE
3FB464998AFD371D3CAA08E053CBD66CDEA44A8054008CFF7D3B016705CE7115
C0886E57DB0470C9050BBCEFC32F66CA7E79DBF6959BACBF29F9210B6FEAFF76
B79F57E71F49C001FD6E5C77035CCAB6C2937A797B9F397A7A5B1A076BB858C3
94DB54AF3D3BF2F07C7A73EDED8D35EDE66BE2F19D4DBE76CE4181DF49F6793C
BF057EDF211FE7BD99661FB6F97A32FECE7C3F3D3C40BD0C4D3D2CF9D1DBAB95
5FCA4CB79F93F473127F6EC98F71BFE5FDDDB8DFC7FB13FCBA128030808B4060
1CCFA5F7377DFFECF95763BFF0FE8600ECC61F35F66BC97F53F7A70298EDC4FF
94FC5359E26362AF7A2DB60BAF9291152B6514B6038DC779060AFC786C1C0903
F27F9C43007C2D8E224F5CB4523AA556489B986CE91E9B231FE368775F0258BE
7AA59AFA6B8E00A6CD7CDF2580777BDC6013C03FBE0F38B960DF030860104EF6
CD40AFFF5174EC1D87E745179FAEF35BA63BFCAC2620A7318864700820DC0F60
ED3286587BDF161080F2F46A85B6678DB6F74A2D3D5C431230CB34D7A2938EC6
589BF7F1358CC4B7AF3AB36F0EEFD072DF241CDDB0C3DAE46BBCBE793F6AAD97
DBE36F2FF730A1803DE463CA7D5003C6F33B1B7FD9EAAB867C1CF033CBCF63BE
2AE1D12B79852D84CC27F81701F426E9C7C45F29627FE5FDCDF61F5FEFEF2C00
611990E0576BC09CDE7FCA7F77E8C7210095F9774A7F614EE79FF1FE8CFF039C
D65F5DF7F710801BFB43FE4F0319680580A59F88FD29FDC7E16093D18B568310
56CB9072EC1A2CAE95C1C52BB0427C0796886C96F6F0FE6F162E91BBA6CF97BA
DD07E46354723E01097C4A735440F9926A150230096814805908CA90C0268091
DDAFB509E0810B167CDFF52F66CA7EE85C5B79EAB32F4FE1C86DB7CE0F1238E0
98172158E460B7FE1E624500E0DA0580EF44A2EDE06610800D7C0338BD50C353
63F79DAE530937C6E44EAB2D476B1977B3477F27C20893D5373D05AAA66FB5F3
EA0A8363A6B9C7841D2E1961C0C77E1F6E9D5F83DF4CF7B9DB7DD4820FB3EADB
D3E6ABB7FD7A867C94E7E7A49F95F433D29F4D3EACFB17C09B1700D885E8F32F
828767C28FABC1F5FA2F2DFDF50210487FB301C8801F25C0341080CE05EC7109
C0D7FB9BAD3F4DBC3F08C05DFAE1787F8603860018FB1BF94F0260FCEFDBFCC3
F89F4A802DC38CFD79A8497B0CFDB489C99517D0F75FB971972CC5CAF155986C
DC76F0981CFBF023398D390C1E3D6E08C090004302DEE74B00E3BAFDC52680D6
DF354E2ED89FAFCA7E854BA3E1F98F3AB57EBBB66F75F6B1CB4F99D3F1E769FB
358A81894148F503540100EB114D00F602CDF303DF64DBED3E7BF6DAABCC3B8C
64A10840ADEA76B6F538197D0EF39890C3BEBA390707FC66A1A7511E669F3F0F
F8747FAEBDD8D307FC66D3AF6EF5E578AFF1FE5AF6EB929FB3F1C7C4FDAADBCF
E3FDCB1CEF5F82DABF2AF7810C3200EA74008A5765007BF6B67D621680A83E00
07FC9E0D403803C027F9E725FF51097067FEE9FD717290AFF72701D8C9BFA6F1
BFD5FDA7C28075321604908CA69F68F41B70E26F00867EEE46D75FF996DD720A
25DB8FE0F91906B00BF0D009844F7B0FAA8C3F43005B01D804307DD614370498
D0F3CF360174B96001F85DFE6200FF556D934A772136DE8E419DE32CE939B57D
53DFF76AF471BAFC54D71F814E6347A0EA02346DC0EA0A1238F9D1879B4000DE
9EDE535AB33BEBB4C7D7218001A019B231C0E78A2DDBA82CE8E9BDE27C6B8C97
DE5DEFECFB500DF3F0B65AE4A9627D9D73F0DEE9A7BDBEBDD34FC5FCBE9EDF99
EDF705BF4AFA39713FEBFD2CF7E9211F840304BF43006AE79F25FD59F2A3A9D5
5F76FFBF330148B99FC44C3F926C7188F1E3D068C38D3F343305C8DBACFDBBF2
DF1AFA399FFCB7BDFF0C27FBAF937F8EF74705C13BFBBF561100092305BD0953
6BD628F9DF213E4F9E0D4D9663F0F4A7007A430067980B80B10988197FB30A9C
2100BDBE990B6025C02680713DF44620671E60C07789930BF66783000AC62C6A
8884E73F40F96ECA7A8CE769989F578400801B534D40BEDD7FBE1D81AA1518D4
8F3E004F2BADB544C3DEA2EB17F896F735207481E84CDBAD5439029D1FB04FEC
71E37C3BF7A0F6F7EBF76226FBD6E17574AE81537EDE9E5F35F9F8B4F832EE37
8B3D0CF8CD908F4EFC39ABBE1DCFEFEEFB73C0CF3E7F1A3D3F8D493FE5FD9DC5
9FDEB3FFF6F8EF3EC974E6FF29FB696AFD17C67F99790F83570F8771DB6F28AE
21B0B055CECE3F3FDEDFB4FD9AE49F210082DF13FB6FD2D21FF1BFCAFE5BDB7F
28FD69241DCE1A7442D9EF95EC4572CFCC48C9C051E59A00B40230E0E7958781
DA63C004BF6900326703D80430B6F77532ACBDDE0A041B71C182F0BBFAC500FE
A751B6A906A077367EFCC90180721BC0B40BD25A35F178C84037F978BAFC2C72
3024A1AF00BDE7BAE7D4C79F710E80713A8167EAE96E5DDD9FC7FF16C0577577
67D1A61EB93DA95EBB696F81937474C0EF2EF2B4B7F998433C9C9EFE554CEA71
A20F806E80ACE7A93E9CF633E027F04DCC6F36FBE8833E3CE0A7F467CC6FA6FC
E8FD99F4336BBFB4F4B70FFDD09E9F0D3F6C03CE457EC0CCFE2BE9EF80DF33FF
BF4713004B811B5009503B009C05A0E814E4E20F3601CD42498FFBFF3F80079F
89DB33E1D159EB3727FE98E61FD5F2EB98210055FBC7F711FCF4FE66F5174B7F
04FF34BC1643910FF0FA6CFCE99458288FE334E0C31F9D694A00D8367C0676FC
E471B70DD880DF2800430093DE1FE38600E3FADE86B56097A88120D8E4EF0A27
17E4CF05F8FF1DB63AA4614B32937C5B4F9EDE81F8772B48602B80B203B27A8F
69EA0121E8EE3E7375BAFE3429A84E405EA918BC3A03779FFAE80B26EC789436
9B81B851D664F59B487D7FC077066CF47CBD9EB137C057B57776DE996D3B0026
EF23D1788EECF2787D7B879FAB3E007E23F93D33FD9E4CBF5AE9E578FD5A67B2
6F095A787978A72AF9E13E65CE9E7F02DF6BD3AF91FEEE693FA6D30F0B3F911C
F374FB39E077927E24003DFCA33DBF3BFEEB6CFE75C10F05E0057EB30108AA80
BDFF3CDBCF96FF6AE107867C3CB57FF4EFA33988E7FB4D2759A8E41F967E00FC
53087EC7FB37258075AAE988DEBF4B7A857443DBEFBDB3A22462F95A39E410C0
49A8808F00FA8F1DF093001A0FED77E37FD30D68C2014304E327BEEBE903E8F1
0F2C05F9AB2180C00B1288DFD52F05F00FE8925E9905F0EE22D001802D00A56B
888DB7B19E6F1A7B3C8D3EBAC38F46A5A0AE500BEC033057DE56CD41273FFACA
93ADD7253AB6E1AA83339D33F3DCC61A7CAD566959B2DB0BF83E4D376AD106CC
94DF8C37E6AE3DBE8E89F1DD611E27C3AFC16F2DF37088C7778FBF01BF4B34EE
424F7DBA8FDAE907AF8F2DC9AADC5701194F63D96F11CB7DF0F876BDDF1CF5C5
7D7F3417FCF0FACAF3FB033FCA7D06FC2AF1078F6F127F6AFBAFE3FD552310FB
00D4FC3F4D7701CE47F38F27F9C7F29F27F9370BD97F66F059FB9F020F3F1E25
3E1E08320236123606A5BE09F0F4ACFBDB04300E5D7F2408AE226377615B9CF4
D335A544EE0701EC05C91F80E23B8658FF24FA363E7408802440DBB37F975713
1013812624F04700C33A5D26C3DAB989C0B8EF0A2B17DCCF05F87FC1693FFCA1
56B1C64FF0C3336FC6D5CB480800EC2E1281E9ECD384A0D4013BFE087C7EEDB6
FEFAB4017F630F0199DB94EAA6C3CE8DB59D1DFA94DD9CA3570680718D9689BB
95DC67AFBDE5F55DE03B1377CBF17D340294A06E5A5EB4928CAEEAC01E3F37D9
A7BDBEA7CEEFACF276567AA9FE7E73BC177EA699ED57093F75CA8F33DD87DA7E
09405D004FCE725F01A43DE7E4B9E94725FD9C6DBF06FC66EC97DD7EF4FCECAC
73C1CFED3FD6DE7F3BF167F70168F0EB44A09902E40C80A9FD9BCC3FA53F0980
EBBE67AA75DF1B95F97A7F12C05810C1B0F206195C52276F97C150FF67BE8179
876EE995D231B54CEE9B1D2DB3B1F77F2FC8FD2092B2474100271C02A00A30B6
79C766450081B1092AF627019865202621682B80375EFAA3BCDDD65D0B9677C1
01F1BBFA8500FEA9AFE42E8E8547DE4580C3636E42224CDBD1539B4006AE61FD
D5668604A6B3CF210343089642D0ADBF18FCB1DB807599CEA9C7EBC61C96ED74
0F3EE3F66FE3F1F5720D64D8013023BF59665363B6D69E3D02DFDDB5E74CDD51
21906C363AB1BE5B6170BAFAEC715EDBEB7B8FF57A36F99AD15E37E1E78CF61A
F07BDA7CAD729F9AF0D37BFEB92A2B875B7DE0C139EACB0C7F262C1B8067A79F
92FEB8EDD9F9AFCB7EF4FCC6FB73F79F96FE3ECB3FD502107B04586F01622830
CF2EFDA9859F043FF7FD6BF033049806CFEE4FFE9BF65FC6FFCC0BF0FDCD4328
81BF23E902EF7FE7F405B270CB1EA9C55984EB0F1C919D474FC841FCFF9E02F8
4F5BD6B06EB5EAF93704C06E40B31B80B7490E3601F47FF60F32F825A717A0D3
154BBF2BBC5C503FD794FD00F2D5CCEEE38F7E039A6C361A03096C04289A18C0
BA8D0D3E34A7D3CF6DF735E4C0AB2108DCDE8F390067E846CFDA1BB30FDBA087
B6A5BE19ACF1EDB13759772DF9CDA49D06BC91E194DE5590DE4CBE99755B0426
6373BE9E8EF34FB9FD0466A0A7E90A6F7BA6DFD3E4E3AEF432A53EBFE03FEC53
EBF7805F75FA59BBFE393B4FCF4F23E053096C80381EB1753C3C7902647D12B6
FC32E677A53F9FE3B3F9579FFCE3EDFDF5D97F1806723600510598D37EF4BA6F
1FEFCF859F8A00F4CA2F93FCB3C1CFD21F09261A65C89E38E6EB65C8FFFBE6C4
C8849225B213FF8FFB90EF3988308F0AE030887EFDFEC3D2B0AB51D6A0FEBFEB
C809295FB25449FE809878D505482288C9C8D6BB001D02183B7E989B0378F599
3FCA9B2FE9100087836CBAA080F85DFD322080ACE1E5750BE0FD77C32B6E85D4
5D0FDB609B2F291872C0424C86043BD9E5C7AB364D0854129A2070653BF0C98F
0E6F0501D89979BB3C67DFCF55DB2401037A3BEEF6077C15835B92DFF6FA66D5
166BEF8CC7CB00B832008F46A2A0B43773FCEE161F7374971362B8077834D3E1
A79A7C14F875ADDF33DB6F811F446466FBB9E9C72CFA54BBFE9C833ED4AE7F6B
E34FB675DA8F5AFA69567D03E0111CEB85EC5E80521F2D82BB0010EB73E73F57
7F33214770BADB7F007E73F69FBBFB0FE3BF6AE1873FEFFF2D927F939668EF1F
84EFA7F7EF99562EB74E09938DF8FC7621F96A13C049F4011805C05CC0719042
5669B9F2F8F3A2E35CD0FB12C0E831435C02E8DDEA4F20007731E89EEF0A3317
CCCFC57FDA0328D9D401A89B18C7A39B6D9D3187084806B6791103BC33D4C2A9
8D48B06D0709EC50EDBECDD989D3C7B68000D8736F66013CF30066F6DE331BC0
121D01A932FBCE4CBD5D6B37E3B51EE07B866DCCACBD7DDE9E5D8337B2DC9CC0
C3DD7C6E9E81B906E619907B30253E1EDE4153DD7D6EBCEF0CF658EDBD1AFC66
BACFDBF3ABD37D9D137E6CF0BBE7FC39C037EBBE0CF8DDE3BE9D7ABF2201787D
D6FC3D877E68E94F12E0ECFF3C94F0B8072000C00C06C8D90BC03E0077FE1FF7
05A9DD7F7AFE5FD5FDEDD8DF95FFFEBD3F4B809CFAE3CE811810CE2B58F4F962
62B1DC3B2756DEC9AD942D50562480FD5000AC0250019CE42A78009FE0379684
75E08CF96D05C0CE40331DC8EB9037BAB904D0FDB13F2007F02BD30770FC8201
E277F18B98B25F60DDA60478FF3D00DB0678BAB596ADC36DD76C72B06F23FBAE
08823D03CC0DD84652305F03FCA7D8066C3AEF74694E0F04B9F300CE64A03D1F
C0965F0FF06DB9AFD76A99861BD36EAB40EFC4FB6E09CEAAC1DBA3B7AA0DD739
828B64C07042C7FA1AF0CB59CBE7E24E3C46E3224FE61DEC9FC59FE726FC9C95
5E55FB1CF03BAF4DF0FB9EF0A3977B58B57E7BD79FE3F9CD515F6EABAFD5F0E3
82DF89FBD5893FCEDA6FEEFD53597F6700882430974D3DC8EE4F8771F69FBD00
DCF4A31780E8BE7F37F6B7BCBF3FF9CFB5DFEFE1C8AF5CE427B87484DEBF07CE
FABB697288AC06416EF5210036029DB009006AE04318BB00A9000C01981C00EF
3321C05B83BABA04D0F9A15FCBC46EBF3604F0C577819B0BE667E23FAD173AB6
F2003695D483D75BE3D85A5C950178AEF990834D147C8E220A560D502EDC8E38
7E3B55816D00FF479BF187C1721C3BEFD4920DEED247B65DB5E53AA3BFA64C67
566FF17E26EA4802A6DCD61CF00DF80D206D8F4CE0FB825F9DBDE7B4E1AA6E3C
0095DF4322308776BA3FD3F1FC043F15C3423C974B3CCB01E47224F44824CC39
787AFB510AE473CE0B7E1EF1AD077C54B30FC0AF567D3BC77C19F0DBDD7E36F8
B9FE4B83DF59FBE51CFAA1C18FEE3F76003AA3BF94FEF4FC348EECCEA9DB2253
B8BDB70AA3BD28FB710F00977C4CC108B06FEC6FB7FE9200B859882DC8FD7317
CBF3094572CFDC581990562A9BF0FFC950CF0D019C3E0045000EF0097E1A816E
CE00600EC0260093187CF3F54E2E0174BCFF9732B1A75B052011FCD70503C87F
E52F02F0FF14762063F39E7C96ED0874FCA1AF06E8698608BC0801E5B7B5DFC2
D63024A01AB00D20DEB6F1E8A94F09745F80BBF3FE4E17A03E6443B7E4B24988
D97AD3A843CFDC64B6DE6CD7B18ED7F600DF91E3D6C20D7BDF1EFBEFD5E61DA7
134F77E3696F4D32B1730B66938F7B7C976AEF3DA2E27D2EF324F0D5211EF0EA
850072BE53EE33A53E8FECC7E3AEE7D7E0B74FF931E0E7D00FC1AF32FE8E51F6
3309480250FBFE017E33FA1B053046B2E48758DF2CFD545B7F1DF09BB5DF06FC
EEFCBFB3F9871D814C0412FCE3AA56CBBB98FB1F8EE3BEDF4199EFDD8A06198D
FBC6ABB97FBDEB9F64158ED77E89DE3FA35C6E9C140CB57458F0FFAC14009ABE
643F127FAA110876026100E7010CF88F7FF8A1571BB02100860424061200EF1B
D4BF9D4B00EDEFFBB98CEBE999070001FCF15F899B0BE667A9B25FCEE218787F
36FA6C42096B154A668E1DC7F5F86ADB480C00C31ADB7C898204620C61C13A78
F82DA814A84E427614AE3F72F20B7A7D82590DDC38BBF5CC765D3308645F558B
30BBF3DC7D7B27952C67669FF2DE96FB9EBABB89C3F5C08D9EB7D7ABB654FBAD
B36CD305BF139B9B3EFC6210806ACAA177073128B96F167998B3FB2CF057B1F1
47BDBEF6FE1CEFA519CFAFF6F9ABADBE68E1E5341F4A7D205E74F4ED5520E2DE
3CAF365FC7F3B3B1C696FEACF513FC6EC6DF5DF7CDA49F4EF845FA01BF89FB7D
BDBFEAFF77DA80F5DE7F4F258025405BFAD3FB13FC5C044242988E6EC1507C7F
FFDC6A792E9EDE3F4EBAC5E5AA166945005000BB11CEA91CC069340281007CBD
FFC1A34755FC6F760098CC3FAF8600D81B30A8DFCB2E01BC7CCFCF654CCF6BEC
81A0EB2F1850FEAB7E1180FF2FF4FEF8A3AE41F96DD7D2034757E140CA95F843
5F092230B68AA4601B0802A4E06B2E519034BC8C0481C69B4DA69B70DDE1135F
1B02F09D01D040D76101BBF29439C338F624A069D3657D7E09176C10D0007005
77E8C3AB96E3EA2ED968C6EBFB4A7EB3768B9EDF4CE199197CAEE0E22C3E7F8E
7742517B7D02DF80DF1CE0C10E3F57F6E335B5E787D747A69FA61B7DF4D97E94
FBA90075D20696F9B0CD17F29D653F96F9B8F1D73EE7CF06BFDEF6EB487F02DF
02BF3EEF8F077E60DFBF2BFDF5A93F3CF0839EBF39EFAF13813A17C02620DFD2
1FBB00A90098F95F80433E5F4A2A41F34FB9DCF05E909481CC16B1D1094AA40C
23C14B717B353EB7AD878FCB8193A79B10C09E03FB9B2C03359B815909605E80
04D0BFE7335E0430AE8F672908CE07B8E75F859B0BE6E700FC896F162F0FA7F7
47C26B1D3C690308401948C036450AE73294DB56FA33F33D24109610D955B806
3BF155038E33E66BCFF89B3900FBEADD93AFA7F3D8C9678C150236DFF8CA7DF7
545D028F7F90001AAF2CFB119846F29B6DBB7AED96057EEB0C3E730C17657A11
9A5A984330BBFB795B797D67A24F797D07FCFA500F0FF88B1C0270C18F061F26
D0CCE93E5CF1ED0EF8A82C3FE43DBD3A80CC12DF7CD4EC1700D05CEDC5693F82
3F1644E17A7E67D7BF92FE0EF8E9F93D3BFF4DD6DF1BFCA604A8CB801EF0AB26
20271168C7FE2400AE0F27190D295EA6BCFF7D0109D22E3253D6223C5B8B042A
7300DB8E9F923DC8DD343A0A601BCF43D8B15F6AB7EF93D5D80CB4B9F1886CDA
81F004DEDE00DD7402F23E4300BCDDAF7B2B9700DADEFD7399FCAA3B0D4825F0
E40503CC7FC52F62CA7EA8DFAF666F3FFE88EB686894A90790680DC66C623004
E17BF5210C451EF0CC1E23B1E06BC4EE5B57630B8C0D6AF73640ED05767EED02
5D8FE03217607600985661D3B1C738DDCCD7DB72DF57F2ABDDFA04226BED005C
0EEAEAB9B81294F4CC7A04D7CACC3B67F0A918DD398893529D1E9D8AC080DF93
487432FD7EC0CF9F61C06FBF9E39DDC733E003D9EF1CEFAD4FF8D51B7EF4ACBF
06FC0296F3E0C551BD9179006A20C0ABC77D411496E7F73AF0C339EE4B9DF8DB
E4C41F0D7EB5F2DB787F9F2E4035FAEB787F562658617829B144BA60E9C70DEF
054B3136FD9000D641996902F850F6C0EB3762EBCF918F9A8600A7CE9C91D59B
362A02600F8069FB35A3C02C059218F878EFF6F7BB04D0E6AE9F49F850AFAD40
6DFE15B8B9607E060860D9E49AB591C8FA6F03585741BEAE0001D01411683250
566F8CC400326862365958B7BD9E87241948E5483DCA673B962359A6B7F818F3
00DB1FC0D9126CCFE0ABC120CBCCE11BBC326BAF3D32E2FC3DDEB1FEB925FF21
95902328D97ACB8D3B94E4DCC0C3189D0035E0A75CD7197A9CD083FB4928EAB5
ADA3BB8CD7F774F879643F37F96AF0EBD15EEEF333FDFDBAC7DF037E7DC0A71E
EF65CC4F02E0411FEEAE3F00906A40B5F952F273BB2F0FF3E4E93DE8DE9B8E24
DD07002DC77FE722D36FA4BF3FF0B314782EF03317409B88B89FDFCFF0E4DDB2
15DAFB0726CA7361A9CAF3AFC53C862180ED0E011C7008E0384E66528D4000BE
B145CB57A87A3F09C0AC03E7D7BCCDF2A051063DDBDEE54500D1A3BD3603F7BA
60C0F9BFFD8B00FC5D3AA65614A1DD15B1F9A94D88596BE1C5604794910C8CD9
8460918221079B246CB2F07DDCF3F5DEC3FBAA502A631DBD8E73F590849CFE23
A0EDE51E4D41AE77EE791B06739CB15C33A0630EDF64138E5DDAF39BE5374B37
9C165C4A7B9395F71AC4E1100E009FC6CC3BBC2F0FB74C407C4B79CEA3B998A5
27A075771F26FA9CEE3E037EBE269505A7FADC0E3FAFB97EDDDFEF19F0B1167B
582BBEE9F9D5293FCE96DF1867CBAF578F3F3C3FBD3FCFF853493FE7A82F5DEA
C32E7FB6F2F2B00E94FAB8EE7B32BC39477E0DF80D0118E9CF19008EFFAA44A0
B5FD87EF953F97DEBF434AA9CAFC67E3E00F4500960250048010C010C031A880
1316F84FA12250B0B04A25FBE646C5BA8340660FA0E90DA002E8FEE26D1601FC
54E68FBED55E0B36F87F1B3717C4EB9BB25FD2C65D99D8C5BF0DC05F81787539
0D80A92519203BEE1A1F37E6430C4631B8CAC17EDC2210974C785FF59E434716
EF3DA432EA6CD32560E9B9B9478F1D77240576E2F1286D2EDCE0E30AE406E866
EEDF69D1B5816FDA84CD84207302FA441D6DBAFB4E97F774ACAFF7ED29803A66
80AF0EDC7024BF3FCF4FC0A66D464BAE92E5F0C800430C3C703A4822178FB197
DFF39A1AF86AA1875AE5A5077BA834F83A06FCDCE9EFB5D587E077B3FD980370
C0CFD83FDA2FF875DC6F0EF934E0D763BFDAFB3739ED07A4300331FE2490024B
7E6391DDE7A41FF7FD13FCC6EB2BF03B04C0F302A952C6E0A00F7AFF078393E5
F1C004594722C7FF2349C056007B110290000E7FF411AA001F69026029D0B14C
B401B30A6008801EDF1C09661340D7E76EF2228088F10FDA558096A520DF86A1
4000237A642E4A82875DC3861E8062293CD732C796E3AACC210492C272450A16
3168B5706E03D8D5736C32E16B2CDA7DF05435E4B25A90A1966400ECDCAC6383
DC1EB975466DB974833BF66B9D31607E0FE7FECDD69F7AD526AC7700D8330224
1A95E47312712A13EF005F25E4BCC0EF01AA3FF053A69B693C57AA3BF57995A5
47B69E8339198883F350D2CBE2C20E66F1410AA990EE0C27B29C70C2BC8E3DD9
A75F43AFF4628B2FC1AFEBFC1AFCEA704FD5DFAFF7FBAB8CBF39E0B319CFCF44
9D01BF39E99723BF4CFA99D37E6CEFAF177FE83D7F13B0EF7F2C4861E442F401
A0FE3F7261833A03802549B6FDD2FBB74D2A961BD1F597B47A8B1701A0D42B9B
4D12F0E4872E011CA702B0C04F1288CBCCF19A0320019823C14C2B30C3812ECF
DEE012008F089F3FE12919D641F702A00A10F46DFEFE2FEAE798B21F246A1912
7F5B018CA500C412928065CB70DB10827BD584A054C2F9AC964AC231F7B900BF
2295CA5D8D9FB0766F77E8F1369B7AEC811F77E2CFD9EEE301BA6ECD55B3F754
119CE843BCCFB65CCE027047809908D433022754858059795DDA43928F2BB67D
80CF0A8191E7BEC93E13EF3789D3FD80DF6CE461769C61833DD4C3789F49BE14
7A757A7394FBA81A98E537937D7A9F9F06BE59EED914FC4EADDF07FCEE197FF0
F8DAFB7B83BFC9515FAADEAFE37E9ABBF5078AC0C87E1EF8398986B89FC65C02
DFFFD80AEDFD1F80F7BF776694E4E3775984DF6F051A80B402388124E049D981
10602F09005580C3A73F92E3A611C8228128C87F53FB671290B9001280E90BE0
958F777EEAEF5E041031E17119DEE1124D001D2E8BBDA8C1FD6D7E7910401C4E
F60D47ACAD4A7EF07E3590C04B680087B1A5B8ADCC900289C231450800D379CD
A80A94DB96D1DCAF77347EA1C6729D9E7CB31B8F893B7A6B3374A3BCBBE3CDCD
7D5E03398EB75FE1F4EABBE7ED999E7DB6FB426970CACF9CCAC3FABC97D76746
DE01BE2736B7927D2A39E799C13747709BC61C4F738EF6FC36F88D74E77D2410
4F838F33CFAF9A7C28F9194670B3EF1E89A14747EC3E1F67E98541B2CF078039
D5A7CA7DAEE7F7787F96FA16A0C557D7FAB5F427F03DE0D704608EF876D77DAB
937E3779C5FD7ADF1F467E9D921F816F8C6A80E0E7219FFC3DE9FDDBA0EEFF3C
08E0C6F7C3647EED5AE5FDEB48C618F12D87022A443F43DEDA6D52B876BB2CD9
B657361C382A479A210082DB2EFDCD8E8C510460128286083AB5BADA8B00E227
DE26C3DBBB6704667C1B0C5CB4CF01F86F699B5CB601DE7009177BA0AEBD18F1
EE62908031900109C1430A363150293806622039F89A51114D1FC3F75169282B
DDBEEF2C4B74A61F5FF5E45B46622098CDD41D25BD6B5EDE5DCF03F89B04F4B4
087BA602D9B3CFFE7C3609518AD3084AD37EEB5B92337DF8B6E46F4EF62BC96E
16715A1D7A6CD251C77343C23357C09E7ED5D7EF037E4D1E6802A2E777567A9B
7D7E3CE29B99FD907A34EFF0C04E0095653F4EF511F4BADCA7A7FB3C493F02DF
69F681DC3704E039E65B835F0FFD18CFAF09600A8EF99EE2805F9DFAE3787F82
9FCFCF02B8A761D5F7F3F1C5F25878BADC35234228F799F95F83FFAB3568F6E1
EDF5DCC14805806ACF4E5CB71C42BE0775FF153BF649F5E6DD52B17E3B7A01F6
CADEA3C7DD893F36FF10F4CC05B0FE6F5A820D417478EC526F0298749BBC6596
8274BCBCECA205F7B7F9C5410035E3AB56CF47D67F3D637C24B9AA1D5B8CAB22
03635406B639A440B5E0CF6CF5E0EF760D565CF1FE1AC8EF15A5F0069EAE395D
AEB38DEDB97C9CFDF666A5970B7267DF9EEF20901E08729670AAABDEC9E799D4
63AB308C1ECA39838F597926F718A733934F599B08CF960CB072130FC16E27E8
E8F5ED965C13F39F0FFCA65CC79D7C31786DC6F8EE500F3CBFFE7E6FF0B3B75F
9DEA8B4A03BD2D8DEBBC4CDC4FAF4F6FCF11DFD93CB4131E7A1A26F238D537A7
6EA302BCF1FC6EB9CF39E547F7F9EB137EBDC18FA11FBC9601BF92FECED65F7A
7F96FE484EFC7DB8ECE399D87CB911F3FEB3ABEB1501A8E41F088013802482F5
F89A04B00B877EEC4312F020928047D10ACCF8FFA423FF8F4311EC3D74D8AB09
88D97F12803915D81C154E32E8F0E8255E04103DFE2E19D2D65D0CBAFCDBE0E0
A27C0EC0DF0E4733950248B5F0A66B9081AEA221236DAC1AB7410807480A8A10
A8108CD94AC12209A51C2CD5E097206C2229DE71606D0976DAE9C61CC7D83DE7
F4E5DB67E251AE33416866EECDD49F67FA4F83DCDDBEEB1CB9E53D9E6B128DCE
465E2C02E1611C26EC605BAEDDD8A3E7EE317D4769CE0CBC4ABE0180001CB3FC
490000BDB5D9C167C0CF355C9E6C3D3DBEF7700EC1EF2EE660CC0F10999081E0
A719CFAF077B98F0D3C057093F07FCACF373CE9F04603CBF3BDBEFC4FCF350EB
679C3E15E065B96F224A7D9390B8E3F8EF0C1CE8619FF167627E26FD68C6FBAB
8DBF86001CF0B32CC8AAC52C2884E7138AE5C90599720B086003567CD1DB13FC
4A0120E7C22B17816C750860FFA9A60470F2E38F4104D807B177AFF2F404BD59
FFCD108055011AF301A622D0FE91BF7A114024AA006FB7FBDB377A35F8155B2F
4A709FEF9706F8FF13B63DA07E731C06693610C000FF221FABCAF1900149A11A
92B889F912834D10B682E06D9B40CC6D9C73B7AD100A8067DFB10B0F84A06AE6
A65E6F5F75DDFE90EAECF3805C9FAC6B406E5F9587B7BCBC67ED17E6F715E83D
ADBBBA775F6FE7E5CFB7476F6DAF6F4B7E3D820BCFCC715B0031922074B6F010
A8DA6B3705BF5AC7A54A767A3A4F4FE86D5757BE962DFB3D7BFCAC985F81DF7C
2F7E267FAE13F77B167B6C55093FDDE3AFA5BFEDF929FD09FEF779822FEAFF2C
F58D42567F0C4B7EC8F24FC2187013E96FC5FDF4FEA6F988A7FC3C199D07EF1F
2E93CA96CA0624FBBC08007D1D0C0114011C3B29BBA1003808C4042015C07180
FE042A018600D66EC1921247F693088C02300440623009C1F60FFDD98B008247
3D2243DBFFCD94020F9F0F0B17E5E32CFB7547D90FDE7F053BF9108356E28F7C
210D092E65361980081659A688C1369283B166484211871562A8DBB8AFAA70FB
FEFD25E803374D39AA175FB5E5EA2939B6E5727496F29CE53AD6EDF9389581D9
B0EBB93ADEDD2D277AF6EEDB8077FBF59D611D1D7E78DA77D5693CF8192A436F
D5E46DC96F27FBCCA93BDAEBEBD65C8283D377EAF41DD59A8B965C5CD9AACB7A
3D577219E02BEFED26EEB8BE4B2B0237D30FCFEF26FCD4641FCCF1FC2EF8D55C
BFD9EAE31FFC240055EE335B7E94ECC7F20F98DAF38F789F313F67FE2722A61F
85E3BB39EACB721F8941F7FD6BE94F72C881729B8BEF7B01DEFFE9C86C34FE84
2890930098007415804500DB380A0C02D07300A75D0250E02709C096AC5CA53C
3FBD3E09C03404910048062621C8C7DA3DF4272F02983DF46119DDC525804F2E
4A809FEB9706F87FCD15DF00781E62FF0D007F05FACB9521035D492321342185
6D2006C7FCA805A31E5418E143100E797885177C9EBABF60DBDEE35C87EDD598
E380DC0CE498661DAEC6568D336CBB8524CF034039EDC7649EF2EED6115BE69C
3D037C3BC16846746DE013F41CDC713B059DF7C0061DE3F57D477059E3D733F8
1AF8F6F65DDF797C5DA7D7A00F63130E1371CCBA2346678B2EB7F2A8093DA75B
8F60667C1F63CB7E8738F458AF451A7EC06F567A79F5F7FBC4FC33FD807F2A80
4D23C019F39BC33E08FA3155ABD43900C351EE5349476C0AEA00EFFF5854AEDC
00EFFF6EFE22C7FB7B086035C1AF068150020439680238050570DA210096013D
E0270194D52C55527F5644B42200331464C880044022603F40BB07FFE8450053
07DD21E37B78CD03FC7B0B09589F00C01FF26A5ECD7CC4D1752CC3C17B952309
A50C2440031118F32203AA0412C3429A510AFEAE003715843F23514069283259
44CBDFB2F7E3E29D8DBA238F9EDF98D39DC70E3DDBCC8E7C92813A229B876B38
1377DCC0C38C7E198CDB76E8D509765D55D089443D97EF99CF37DF6B0FED9871
DD32A75188D500B37CC36CDE315EDF80DFADCF1BD96F967138537946F29BFE7C
02D8067128482100B1FA6CD6DF410A53D18E3B031E97C93B9206BFDF33D67B7E
F01B02B08FF5D6197F1DF31BF0CFB0BC3F137E06FC4CFCD927FDD0F3D3262034
2031304F1284D752DE3F2A47AE9D1828E5C8E417A1D497BD7AABE4E2F72B4112
7531FE6F5721445B8B4AC0462883AD58FBB647290010C087A7E51843001F02C8
29AB54E036046032FFBE04401278F9FEDF7B11C07BAF5E2763BC8F09FF750B01
389F8029FBE18FBD1CCD316B90A42A4DDCB4A70C7FCCC60C1954801094197580
96542A04DB5CA5601483EF15400769789B51198ED25898B779F7174CBC35057A
D3315CB3225B5FBD3BF6386EABBCBC25EBE9D14908C8334891935FE0D82FC9C1
CCE79BB55C6A14D8ACE752137B7A33AFE9DD671B2F49C053D7F7F6FA66EFBE4E
F6E95377F4C93B1EF0AA03381CEFED2BFB8DE737537ABA6487D55CDCC757BB01
C4B0512DF39C0590CEC16D2A084EF8F9CA7E8FE7C7424F0E00B9B29F4B3DBE1D
F86DCF6F0EFA54E0470291C6A4631C80CE833E1E89C891EBA7CE9701E925AAC9
47C7FF3AFBBF92FD1728F39581180A3013900B62600F4035CE04588715E007D0
0CE48F00E2B373DDB8DFD4FBCDF1E0261C20F81501DCF75B2F0218D9ED4A19DB
DD6B2BD0E52D04E02180B2A1E575C138346325657AFCC6DD2598262BA5293280
61C2CC25035B1D382AC1250678C20A1A8941DBDECAE6CC80DEF35CFD3DBC3F7B
E3CEB3FAF41BEF997B1BEC5CBAE131DFE11CBD40237FBBCE1178797753497067
F29DB55C3C7083CD3E0825F2D8A30F99AF49C8037A77F987211B6751077BF39B
97FC9E23B774A6DE9ACAB3C06F27ED6CD96FFAF455ABAEB3955793804EE0F1B6
02BD3AC30F8B3C016866F767B046CF23B8D484DF26057A03FEB920100EFC3401
BF73B807E37EDBF39B461F02DF05BF1AF5D5E09FE42CFB643EE345B4FDB68EC9
956BC607A0D477D48DFF37B0FF9F035D28FF3104E0ED752084CD2087ED6805DE
01A2D88CE7F30C80252083CA0D3B64E1C69DB26CDB1E693C7E5295FB9804E4DA
2F02DF3E19C824043D04F01B2F0278ABDD6532F115CF521054036E6921007C02
F0FEADDBA5942F82045EC4F15D1CD6584C83C72AA1910C0C212096554460CC52
08248772632674E0156440F5E01284CF6D37CCE0F38CA1B6BE347BE32EF7F00B
F7100C2FC02319C884A0B327CFCCCD1BD09B83324CF30E1FA71AA874CC7BFA4F
2710DDFDFB26EC507300FAA45DEE01C8E4B82FE27BF60350EAD2FBBB9380B8CD
6E3D5BF2BBA3B88ED737E0377DF9B6E7F705BF77B30E0774FC83DF64F0096EC6
F5EEF7810882618A28D4741F4EEF61F98E6DBA18E0198FA3BA58F69BCA537F49
1690FC66BBAF4EFAE95ABF1BF73BC057E04785E03D807FA2037E12000988834E
BD71D0C7C3F0FED74E992FBD13F395F7670270FD11805D35006902588552EC1A
1EBBE610C00E84007B11021C400870047D005400AA02C0BD0008098EE27EC6FC
B6ECE71C80590ECAD080550043006DEFFDB51701BCD1E63279FFB59BCC01A1AC
063C70D1138029FBA1D32B0AADB3AB096C6C8A2D72AC1857870C7615237955A2
CC4B1DEC813AF0984D0EE7200A3BB4F0BA0D7250E492BE79F7BAEC4DBB34B8FD
99B5284301DE315FD073865ECFD16BE3741D416ECB7AB3769BD2DE98F1F89EBC
82F74C0041AF4EE1E12C3EE2D914FCE173DC973B0138F567CED933076DEADABE
F7504E73E0F700D8339E7B3EF0BB5D7BCED04E0037F83A84C1DBF4FADAF3A33B
10C6789F9E9F1D7ED339CC432063C32F4B7E239DCCFE449004C1FF3ECD809FC0
77CC063FC9808418BE6A8BBC40EF1F9B27578F9B27B5FB0E61D71F8E54A3FC37
0440EF6F11C07A10C0163C6727B601D904A00681DC1CC04720828F94F7B7F700
F0B64D00664908C3015F0218F0C2A53267C8EDF64870EB1602482A1D84937DD3
513AAB66FF3EB6C316D2D04C528875D145344308F8632E36867655280487141C
85602B05133EE810C29B24CEF5B5F9BEF44DBB7766213E5467DF21BE662B2EC1
C5DBFC43A3AC576BB7AC23B1086E653EA0F78CD3EA5E7D96F038E4F33F05BE39
8DC7DDCAEB35B2CBC620F6EAE3F45A0290076C0070A100210FC3703DBF4FBCAF
4B7DBA3DD72CE3F4EAD1F723FBFD76ED39B13C3BF7B8AE4B65FA2DF053F2BBE0
C76D3E8FA53EF7504FE41454930F54C17B48EA8D834218C5E93E1CEAF94EE90A
95E51F8BDE0017FC5412306E16627313977D3E1209EF3F7581B48BCA80F7478D
5F11001400927DF4F66E08804D4F54001B5417A026807D88FD0F3A0A40270035
F069474F9E749B80A802580D304D406627A039274011C03DBFF45200AFB6FEAB
840FBFC526802E17350198B21FCA49C9F4FE043D8E83CA87672A8858B7539921
033EE68F14480E7E49C1A8054B3538CA81B98566CD841D691B771DCA86D4CE53
20D7DED6809D004E475B2C0981ADB86CCB2531E88D3B1E6FAF67E83DFBF2097E
B543CF31CA772F4FAFA6FFCC997BBEA3BFE6200ECF3A6EB595D7DDC9EF19FD55
FD016C05C67B62C79E89F7E703E02484B9001C5B72D9A7CF841D1B727CC1CF99
7C3D9DE75FF6DB197CBD9917493C0BFCAA75D701361F33F1FEB701BF6AF1359E
1FDE9E0D41936193D818044F3FC68CFC72F57759BD0CABA8535D7FDC3DC8CCFF
33317972D5B8B952BD6BBF2600787F82DC24003D04A073007C4C75018200F683
00580138023B6E81FF041A8376ED6F5404C00A004301B313806037ABC1CC4A70
E60ADADCF30B2F02E8DDEA0F20809B6C021870B113802AFB61B866096BEF616B
B6E7853B8603210B688A0C1C4200191418225064609BA316B46AD06183954B60
3EA159C3F34A680C378CA5AEDFF12167E15DAF0EA0117066153649409B063CC1
4DC0E9D1596EC8C5C82CC881D9791BF46642CF6CD3E16BA892A1D9F2E3ECF933
5B78DDBC021487FD5EB2F15EB2D1ECC23F7CDFB97F2A00BE17D310C4EE3D55E7
F793ECA3B70FA42457093BC4DB88CF99B8E3F49DEAD1773C3F65BC49F8B963BA
6CDA31493C3FE09FEE7873029A329F72DF3C5F797EF7345F787DEBB9CC094C81
E4A7ECF7023F1B7DD82EECC4FDF4FCB420280CC6FE03F2AAE5D1C85CF9FBB408
793228412AA1E03601FC6BB9D311DE9FA61B8010FFE33E3D076013C04987003E
94A3C8019000087C63EBB6202472088057829C646008C01C12CA2BBB01DBDCED
4D00DD1FFBAD848DBCC3268091172D01C0FB5FD536A97457FAE67D39380EAB21
78F5B6BCD0D5DB7271022CAEDBF34006F9349080316F42002990106C73C8A108
57D740062404D7A818CCD726B488C27DC6CC63C9EBB67F4A02F000DD00DEB311
D76CC6D523B87A0C579BC7CBE3F753A4C01372635166628F7EA2D35BCF589D20
251998059F3AA9872A806346E6ABCD3C04BD3FE0739187320D7C17FC0C5B3838
A466F6F7A8E61D53E2F3B4E7FA4A7EEDF94D8FFE34806E3240C6A41DB3F9042D
3DFEEC6F097E93C8A3A4A7B1AB4FCFF39B849F07FC5CF5C5B97E35E0E3809F5E
9FA64FF6F524FD0CF8B9F0830B4D58FE63CFFF53D1B9F0FEF3A4748B06FF6A8C
F5AEC089BED598EAE3CAEF02543F323072CCD2DF227C9624808D20062A80DDC8
F237AA104013C0310BFC2481250DAB94D7FF607EA422024E0032043004602A03
1C08E2636DB009988B408C757DE4D71239E1219B00A65FCC0450F056696D10BC
FF32C6DD012BB7E604ADDA9613BC6A5B2E4D93C1B65CAA02C71421F8920266CC
0B8CB96AC1A886B53B0A719F32935BF8B6D7A4B5DBCE66D1C35A2BB0F579F7B6
F9C86ED39AEBECCBF3F5F6DC9AABBDB2DEA0C3C51AAA4F1F5E98C4C0B082F905
861AC6DB6B85E199CFA7D75723BFAC0838E67603D2EB5BA057033CD6893C8C91
D9EA6B4EDDF197EC33B25FF7E8337BEFF1FC7354DD1F23B8042262F37148D8D1
D8AF4FD0EA693D787BC79BDBE077EBF76A7457C7F95ECF35E0B73CBF01BF92FE
06FC3CE107360EC0A7F13D916087142D95C7A3F2E4BA1951F25860BC023F8DF2
9FA6E37F787CC7EB3760BDF7F23D07A50AEBBEA9144AD13B908F2D411CFD5DB5
E7804B00C7110A1805508A2E4026FCE8F519F313E4BCCDEC3FCD6C03368FF912
40E7077F2509D39FB50920E4A2240078FFA7DBA594B1E7BE9889BFB90D5BB2E6
356CCDA6910802612001652120019A51068E3A30A4E02A05430E20837CD74004
C829FCD306C2284B5CB3D595EE1ECFEE19B9357DF86A3F9E31C7139BBE7CB32D
D7037CBD3CD35DC74522501E9A4D3C7AC9063D36B3FAC988DD9552C0959E9D65
3F1BF82684503F8BAFE90B7CC7EB9B6D3DE648AE787401B21AE02EE1B41671DA
F1BE02BE7302AFBB98C369D7F595FD043E253BB3F86316EA2CFE28B4E5B247FF
3DA806B77E6F4FEDA1664F2FCFF0C0F5FC0EF84DBC6F08C01BFC1AF8C6D2F019
72D089DB7E9E40DB2FBD7FF6BA6DE72480D598F5E7AAF735B0B5B8BD01C4B04D
29007402622068EBA1A3B21E7B20EB77EE472FC06E29C3A2903DA820A4179528
0530734194520026043065BFA604F0332F05D0F1815F4A4640076C03BAD49402
132F3A023027FB8EAB5A158CC1975AC4FCF9282165D148043490403648401955
8131A30E0C29F81203C9C1E410AC6B3E7FC6B731136EE00F6A6922FED38D073F
17D8ED5E7C5FC0DB8763DAA0679FBE19CD751773580B3549182681A8D67A39B9
051D4660E30E2C1E65BD14EEEEB380EFCEFA5B5EDFAB0DD82CE954DD802001F4
E9FB4BF619F07B127D94FCCE4E3E9F98DF64EFFD797E029C7BFA54161FD9FBB7
91C51F86E3B9B8B38F893C35BC83A41EEBFA26E627F86D02F0807F8DDAEF6780
3F16B79953A0F71F51562B4F4463DEFF8318B96F76B40B7EA300D8FCE351001A
FC34DD07704C3621094802D80302600870A89910203E3BCFEB3C009304240198
51602A018F02F026800E3820B420AC23B602B90341051723010CE89C5E998912
5A29076E3EA8DB9C31D331C495993619A07C0465E0210478A81CD7FC10030902
07492AC5702E0B638EC19F21DC0089E446AFD9B63E0E1965AEBCA24CE79C3D65
BBEDD9DDE93B6727BEF1F2FF0CE8B93B1FEDCEEE6CBE3A3BCF59AA49CFAD967C
E0F5A9005429D249ECA99FE1ECE22319A8537890B5E77AAE58C4B8EC01F000DF
DACE6BE6F691A4642860C28126997E1EC96DB5E9FE4FC04FCFDEC4F3AB787E9D
0232CFEA1B8A2CFE1090C29B45CB91CDAF93D11CF7AD46BE41C5FC9CECA3DCC7
3A70982FF849001C7736DEFF5194FEAE42D75F42C3063F04C01080DE9E218006
3E6D356C2D42824DF0EE36011C4619D03BFE6718705A81DCF40130CE379D7F66
0E80CA80F90012804A02E230103B07D0EEDE5F487E681B79A79DBB16ACEAA222
0078FF5F70DA0FB1672CB6DDD4CDAEDB9289250FE9C8086B0311D0503FCEA491
100C29E830C19847212895601383B9ED84102694F07355B906DBA0347269D1AB
B7EE4D4492C8CEA4D3BB72EC350A60B31763D29B9B73F07CBDBC3F4F6F0ECD30
0B39D4E11966932E177A70B38EB34F9FB70976FB7DA810C249EC79967438537F
4EAF7F34928D3C962B0CD9F110786EF603300148E9AFCC01BF19E2614E4037EB
68E06BF0A34D975EDF8FE737093CDDB5E727E6B7C1EF34F06839AF87768CE7A7
F7F724F3D6CA4867A28FC440B5F05649ADBA72BB2F4FF8A5F727F069FCD9A920
80B1950DD22AA6406E9A152BB7CF58E0057E8F027008800D40043E486025A633
797B1DEE631BF00E48FFBD8E023004700CA027F08D853BC78111FC660EC0D4FD
990F2001302C3047853725809F4B4EC0B3DC0A64F2006B2E360298DA2BBB2A1A
19EF7264A54BA7D66E4CA381048CA56B420011C04002C65C428042A04AC834E1
02FE68DDFC81C92398AB0923FC5D7D4983790763D1ABB69C488497346BAFCD11
D79EAB96F00431554204C0462F1CC54114A518F4CA2CDBCCCA6CCFF65C0D7663
0AF40EF0B95D476DD851B3F6ECF0D3246303DF8CFAAADE7FE60B9C23B8580ED3
EBB9B4B11390A067963C8C433CECC473867782709BEDB37A651749E0FF1BF8B9
9B9FA63CBFD5B6EB0FFC13167B837F1C3C3F1B7CC620B94880ABFE7E4A7EDC37
0A79059EEC4B421804B5F056C90A45C6C6FB3FB8204BAE1C1F28A14B57352100
55FFE7C11F2601682900AA81F5B8DF10C03E4E022204388C1080E03FEE809F89
405A30E27E02DE1000B3FEE6360980D5017A7E2A00D507E0A30078427076C0F3
F2B68700F65E340460CA7EB11B76A7A0077ED994DA8DA953967B9B4B085003D3
61331CF3430819F04C50079BBD4206430A3EE4408250062FD7ACD9E411BD6AF3
675CA7C5C49CB7796277E3C90DC8ED9DF8F4B65CB641CF4B4FCC3F54EECB2338
0D40BD80EF48737BAD9659AF65BC3625BD6F46DFC87CB39093537034F33A9ED7
F0ECE457BD008E212FE21CCBB5514DF2CD40628EA3BE1CDC51E5BE15BAC1C70C
EB9C2BDEB7817F3EF0FB7A7E02DF809F04401B0D353016574A7FE3F5CD752A2A
064C8E8E4103D053CAFBC7C9F5D8F5BF08E5C03528FB29CFCF2D3FB06609C049
021A02D80905B00FBB000E9C3CE5210007F804FF91132715B0D9EB4FE0331C20
19F03E53F69B1EB6401100BFE6F5A5BB3C254086026DEFFE99E4877592A19E10
E0D4C5440059038B9605A2E96511937538B4311927B7A4D0DE5FAECD9710A6D5
6E4CA7910C6C42203198BC81735564E0CF4C4EE19FB946366C3CABC0E66CCEF5
5CE1D5B910933BF19C5DF81EEFEBD98B6FC66FB97883808F72567285416207A3
86CE2B37E74641AA9B259A36E0CD7CBE3B67EF34F05011B8A183977AF02806F3
7A7E877E14F0CD8E3E10147206E6286E2A01CEFDB3A5760E926BEF5BA53E66F6
B1A0D53D968B4D3D6CD6A17926F498CCD3C6A93C9A96FB68DC718C5E9D927F9C
6B1AF82EF8F133981C1C05F03347A00D8AC0798E2100158A21D7C1AEBFFBC233
E5CA094132A3B21672FE98D461D0AA065B9C2A119A15E13959A8F9E7E13870F6
002C41FBB549FE99042009600B0863E7B1138A000E9E02016029E8510BFC2480
ADBBF7AAF89F757F3BFE270198987F4678842A0D7A4280A604501CD35FDEEDF0
2713027C7D51108039D91740CA84FCAF1EBF645D326DC292F5CA4806E7230410
419A638A140C31B82AA18E398426C4E02618411499BE6685186EB88156D582C8
864D48CE59203F0FD86DC07355963912CBC87023C5D549394E069E408D041843
586E03E054CF7E03E275A5182C8FAD7AF63DC65E7EB5928BC77B59A182178138
00F14CFC61A79F01BE5AD009E053A1A8997DA7FFDF013F0940EFEA43979FE9D6
C3641E414F52E0715CA310770F479C3E02476D71786722BCB40D7C7FE037B1BE
5FF03BC077C1EF10C0480E06394622E0E37C0F4C8A4EC5CF7C26AE50EEC4219F
D7BE17A44A79BE4670D3480C2B400C0B5151298642CAC1EF9F56BF098B41B6AA
1E8006F403ECC4BA6F96001BE1E90F211438C230C0B2BA751BDC1E00B3F78F57
3319488F4F02304D416C15B61380BCDD068AA03CF14D19DBE577762FC04F2F68
123065BF918B5606E2B8ABC53300D231356B13C7D6AC4D1A57B34E9921838920
025A738460A98434A8054508E82CB30D390428061889C15C3DA1C426E416B499
FB7CAF73566C5C14B972B33ED9D698B5FBDE0BECDCB0F32D006F83DE57DAFB7A
7B6ECF656B2B176BD0E6616D36BFB68FD066175F0C92946A251733FAF6365E78
3D128B3E80537B7BB7FBCF02BE6902525707FCC1F0965CCFCD9FC7B65F9A99D6
D39B7875379FBD8A5B0DEC30798732DF3064F2DF29AD43A9AF1E893BA8062796
6F16FCEC1BF816E027098C708880AA89670FBC98582CF78465C8151383645441
D5790960AD93F95F79E0884A00AEC2955D82B55005355CFDBE69A794ADDB2E85
6C06C214E85A3403ED4575E0084282432085F225CB140130D147E91F8BE3C1D8
0464760330E6670EC0F40404C6C7FB2580D2E83E32BEFB1F6D02F8CB854E00BD
3AA655E4226996CB51DB518BD7C68F5EBC36813666F1DA441AC90024A0CCA802
5E7D09C1A8041CFC984A7B1F39049A091D4C0EC1DFD552104649F8BDCE5BB1A1
3E0CC9319E7643E9EE6ECF75926AFEBCBBAF87F7F5F4E703BD3DA1A7B7F26843
5F825AC849F03361370B9E78C6D20D3213409C8BF89C9E5C1188EBF1B9BDD763
5EE077BCBDEBF1FD005F1DC5ED007F1E7E1E6D0E3CE52C0CF5F803BF7FC9AF65
3FE3772EED7C1BC771BF595C2B83612CF5BD8B1E80D10AF8FA1C3F43004AF6FB
F1FC06FC2400124A3AA4FD8CA56BA5351A7FEEC1315F574F08F00B7EAA01EDFD
B53137B00A660860258E7C5F0D22588FE51F5BD025B80B0A601F5B8101F603A8
066C2541609868191A81F6A08498595CA6BC3B09C01C04C270C01C114602A002
30FB00E7C444F8258094D92FCAF89E5E5B81AEBF6009C09CEC8B5831141D7F35
0075D2BB556BE24654AF89A78DAA5E93004248A469225897685481A30C9A2505
9283C92198AB2685731B8E924A3D9705D4AEDF1A05F03369670EBA502BB50920
48635E59463320F707763B0E77BDB3B36ADBDEBFE73D9AEB037CF7141D1DA7A3
2DDA35F43A38FDFA0029643A95820A2338F6CBC93E27B3AF167CF803BEEAFE33
DB79F529BCBEE027F0CDE8AEDED587ED3C7E627EDF78DFC4FC26DE77637E64F9
097612C0DB50096F801006142C9341B8A2255C86424130E6B765BF0D7E1200C9
2B029FCBCB49A5727768BA5C3E3158DECA2A3F0F01B0D67F541300DA7FD902DC
00E0AFC495F76D4027A04D00079107388C4A807708704A62B372DCADBF5400A6
0DD8100093822400D3163C65FEDC2604C03020E2BD276542EF6B6C0570D7854C
002CFB45A56ED957381F63BEC316AD8EA30DAFD266C8602489C098430686109A
23055B2D584A21052AC1CB705414128D1E0349A49CCB8296AF3FC4729E89AFBD
E26CE79C7B8298A3A7DCA01BCC5A3B8C9ED796E266D3AE3FC07B966FFA7A7B7D
5CB69B9CF3037CAEDBE2961D636CE22139980338F838496126C0CACCFE6CA886
7900B07A9F78CC009F32DF00DF809F1E5F8DED3601BF7340076AFE6CF03957B2
CFACE772653F80CF121FCB79540563FD78FEE1A8F3B3216850912685D7F297CA
C04294FB38FF8F7C03C1CF04209BA1662D5F87B6DF6279203455AEC0C8EF5A05
E2A6F13F81BD1EC6F89F04406F4FD037C0F39304A80048001BD9060CA9BF1B63
C35400240082FF089281C72C8B48D54D4094FD5400661700098049403324640E
0B193B7B8C5F02983FFE0999F4EAF536013C7941128039D93760E59668CCB82F
1E56B53AF69D45AB940D85F99041FC882AA80218C9C026043B54B049C19718A8
18ECF0C15F286188E25C8411B27CDD973CE0D2CECEFB4A78B7A1867BF51CA34A
A0E7E59EFD00008E1E99DE58C7E28E79497B2DF1C369D66199ECD1577DFA8ED1
DB6B6B0A7CB59C53998EDDCDE93B26B9A7E53EE7F9F5E93B9CECE3B8EF7464E8
67728127DFA723F55DE05BE037E7F1A92DBD003F6D06077DD4293C4D33FD5EE0
77816F83DF23F9CF95F0D39E7F256AFFF5AE52988A0AC25CFCEC0E29F0FE6199
72D97BC1D227A9C00FF8D9DBAF8D04C0D85F7B7F47013804403540F23004C004
A02680930AFC471DF01F450E8066927D04BF6F17A0F1FACC01F03192C1B0F706
FA2580E0B1AD64E6402F02687FA1124062FFFC25413858B284E5B9B72A57460F
A95C19F3F6C255CA6C32F0218478A8039710BC48C1C91DF8E6103CB984752A8C
30E62F9C30B9067F57AC954E0BAE5D7756039C9D731E334037CB3558EBB7CFBC
3772DE24DF98802320E97155F30D08814B38E889B587774EC86D56A26B99EE91
EACE720EAF051D8E7447F58040A69174087A5A084881893D95DCE38A2ECBEBCF
03D03FE0D20D94E426AA121F26FA00B2E9003727FE34F837EA15DD0EF055D79F
33DBCF555DA6CC6780EFCA7ECBEB7B3CFF3F037E9DF433C62EC04C787F863A1C
F9BD3F2C4D2E1F334732F17B65C398C95F8D4DBE06F80AFCF0FCCAFB5B04E051
009A0C48009BA100B64301EC4119B0F1C40924FCA800600EF00D0110D894FE86
00E8E94D15C0F4FF9B122109E0CDE15DFC12C09C114F49D010AF10A0EF054700
A6EC17B16E4732D7750F2AAF8F7AB3A2219A46223064D01C210C5BB44A850A4E
B8A00801E102D581972177C01C826B8618EC2B2B0EBE86A423138F4D6C7CF5EA
DCE015EB9557B701EDE5C56D8FEEDC5EC06CBB6FC6DD391C43CDDD1B738EC4E6
161EB3469BFBF529D1094E7354B60D7A772BCF39806F127646C2F3B53CC0D759
FD2092046C1ECD91FAEE7E3E92139775709C1704C051DF3190DEE3556FFE1AB5
AF8FCD4104BF39976F2A92911CE0E1B41FC773DD965E2FF0B3864FD9AFC14F20
D39A4BF8D9A037B7DF4535818949926DF78C4A64FEE9FD43A4734CB60BF85500
FF524CEE2DC216DF62544772B017300F6BBE79BB1A197E9600A9004800F55000
BC9200D6290238263B8E1C7309E02012808701FE23200203FE7D38109404C006
2026014DDC6F1A8198F86318600880C9C2816FBDE89700660C795422465D6787
006F5F880450F34649ED1CCCD39733F1F77A597DE4409000ED8D8A86F3928151
085A19900C8C69527857E70F1429D8E64B10F6D7A3AA41143EE64B1813AA5796
87A0EC6667E2EDCE3917E816D8ED051B66ABAE2FE8D5FC3DA5BD5D7737F5772B
A1C7AD3C1F008094EA8CE1B95ADB6B238FBB5F0F8AC259B365AFDA52EBB6E0B1
6904B98AED6DE0DBE0E7520F0BF80C1168F4FE346EEF353615729F1B7C59EAE3
A8EF6824F2D80F40F04F46469E0B391501FC0FC1EF0FF8BC8FE067FD9FB13F4F
FB61E3CFA368FBBD7CCC6C34F5ECF7487DB6F4FA9892FD00FB12340595A26722
17CD40ACFD6743191582E0490C5E04801CC0FEE327C41080013FAF3C0FD00CFE
3007C0DB24042E00252998E61F731F2B02FD07B4F24B009306DC29D1E3BDF602
4EBCA00800DEBF4B87D40A2EE148C57AAEC2FE25750B5E2BAD8B78ADAC2E9244
401B54DE104523199C8B106C85005250B9036386144C425127159B37537938D7
75E2A295CB43F047D21CA85976536679772FB0BB67E8398077E279AFD29B037C
EDEDBD25BEEDEDE9F508509EC4338D23B200D81494D70852037A3B4B6F80CFAB
91EE6AAD978FD79F83F2A101FE6C9285057CB6FFAA411F07FC46EEABC51E5CD8
E1787DB6FA12FC9CF71F8ED2DE5094FA38E6CB219E77B107806DBCAAA5D7F5F8
DAEB8FAC5AA90DF1FD0890886B96DCB73D3F09602E888A75FF57B0EAFB81F900
FFA4507971419A8EF1FD00DFDC67E43F65BEF2FEB8AA0A0048A11607822CDABA
07C4B05D0AD00C94BF6AB3DAFF5FBF63AF6C43F94FE501DC10E0A42CC52620CA
7C029E713E3DBC090748006C0232CD41FC9A04F04AAFFBFC12C0881E374AF4C4
076C051070C1108029FB41120662ABCDC2C1152BA3FB16AF58D00F24D0AF6445
8422021849808430B0BC41597384E02F64202938C4104B52A0BD038332F8FF62
4A594C5E54BF891B74033911A762769D41673C6D32F3F6D524EC8C67370763B8
493CCBCBDBF2DE57E2FB2EDFD4F3F8FAC00D25D7E9ED616CD19DC9C3323868C3
CD380018E53A937236F075DCCE955B48DCE1368982C0F780DF037C12802FF049
00BADDD76306FCA602A03AFFB8DFDFB4FB3ABBFA98B57F13433BAF239BCF521F
077738C8C34CBF02BF0DFC666E93446824084EFCF1FFE47964FE1F8FC856DEBF
12527F3D007D2EA3775F0BE0AFA1DC4788D0D07818F2FF90D4C1566255387306
EB701F0F01D9893AFF1E84011BB13AAC61FB5EA9D9BC4BCAD7A24B108B45761F
3A22F9958BDC434059EA23E04900C60C0150091842E8DDED4EBF04F04EA7AB25
7EEA533601C45E480430A25BE6C2C4C8753B3202576ECBEE53543B9FF64AF18A
F9AF96AC584023111832185056AFC84087089A0CFC1182AD1206238F301824E0
6B86187C548327E9E81005C9C29849489AEBCCC5F59F84596037B29DC93426D8
E620469E095050AA33AE36C9369570734CADD4F6F5EC00B457324FC5E44E198E
A7EAA803353CABB74C4C6F80AFC0EFACD3A6CCB7A53E01CCB87D3201C8693A78
D331000EE37636EF282F8EF7CCA41E3DBEF1FA94F906F8BE5E9F1B7A0CF8097C
B59FCFE9F3B781EF0B7EE60268ECDD77E37C787ED6F8DF4089AF7FEE125DFBC7
44DF6094F8783FFB020874037AFBCAF7C869CB0158F5CD833EAEC2411FAD8213
CF0B7E1283260094FA00F255B095007E3D4E63AA03F80D01AC87B7DF0202D805
02D88B46A00348041E4622F008ECA863878F1D9794FC2277E59719F861BC4F02
3080A73A201198AF7BB4BBD12F01BCF9F2159236AF2D08C06D06CABA2008C094
FDF08713866D3695F4FC3D0B9787F72EAA55E62183DA05AF14D72A323084D01F
AA806460134273A46042079354E45591828F9964A39D70B449C2DC769392150D
89B36B1ABE6C22D79955B74C835B83176DC3CA23738B2EA53A81ABCEBDE7D08F
9375D709380BF004BE01BDDB75D7D4DBBB5EBF39E05B52DFF6F826534FC04EA0
0C07B8D8BB3F12F61EC0C9CDBF36F85DB9CF50C3023E09C017F85E5EDF3995C7
DDD2EB80DF2CEF60F24FC97EC87D7A7D5FCF3F0CB984378A974BBFBC25826A91
BC5E08C500E530046A818F9108B8ED27146DD9ACFBD3FB5F3176AEE4C12B9FCF
FB13D8EB60860056C2DBD703F87520807A1CC4BA124605C0D7D982F55FBBE0FD
F71E3D268D00FB2187008E201F608C929E893F829C3900E3F10976DF1080CFA1
12E8D1E6EF7E0960509BCBA56041670C045D6A5440E5854200717DF36A82B07E
3B8F89BFEE05CBC27A142E574622684206C554063E64505AB780646013C2B948
C1473144831C5C330401A540C5705E7BBBAC2E73CED235678DF73ED75581DC18
33EE0EC0595A9BC5929993C863598D5F07220E67299066CA7576E6DE96F9C6DB
37E7F14D7CEF29D169A96F1673A84CBD03660FA0F5E4DE244EE52DC6882D076B
B8960BC6293F0ED898E7BA1B797DBCBE013F137EE6482EB59EDB07F8EECA2E95
F94712CF0FF84DECEFCFEBB36DB83F486134082B0CF13FBD3F8FF8FEFBD40879
645EDC79C07F048F6B2301AC01C8097443002B1C02685004704436E239DCFF47
02D877EC981C4022F090057C12C06158887316A0A90290004804A634684202A3
006232B2A4DBB397FA2580D75FBC5C2AA23BC8B076EE5AB0FA1F3C0198937D67
ADD81C8589BF92AE054B43BBE42F0DED96BF4C19C9C0108221835E45CB5D55D0
0764403384C06B3F908131430ABEC4E04B0E4E381185ABAA38D8F606938EE7B0
B74B6B0BE72E5BE701B605725D43B7CDE3D5595E33A6806ECC013B55C2070425
01C505995CAD0D69AEE27227B6F7077A7D6C96CEE8DBA0674CEFC6EC06F84ECC
DE14F87A6C97E53A636A11A74510DCF04BA5C0CCFE0826F160042DCB7F6EC71F
E37C1FE06BF0375DD7A5EAFE0EF849000C493818E495F4F323F987C3E3DB9680
AECB30282D2EFB7C7401BC3FBAFE6697D7E204DF6D5281619DE538DADBA3043C
C027F895E767A71FC0CFF8DF8B00B0EC9321001F23016C438CBF1B21C03E2800
430004BD6D043EE53EBD3B937DA607C01C0E6A804FA5A0928099E9D2F5E9BFFA
25807EAD2F91D2A897EDA520DB2E0402A81954BC7C36C05F38A472554CA7BCA5
219D1D23119C8B0C48045E64C0BC8143088614DC70C1220592834D0CDE245117
390049C66F63260731B464F9226ECAB125BB5FF96E83DCB96DBCBABFAB5D7337
A0E791DAD3094A820AE063326F1ABBF39C061CBB1C67CA720AF40837682649E7
66E99B787CFFC027F84DDC4E3530058437053FD7D7EB4F44531041CC611E4EF7
B1779F477311CC043D1FE7608E3182DE9802BD037CEEF8A399D9FEE63CBF2FF8
99E4E402D4E125CBE549B5EC335AEE9D19E902BE7E374E5AE68E7F6E6EAEDF88
75DE5BA50C59FC2558F1CDD15E7F04C0D89F568F449F2180CD2080ED50002E01
200770D007FC3C0DC8487DB30DC810809904F4258088CC14E9F2C41FFC12409F
A7FE2CC5511DE49D97DDB560477FD00400EFDFAE7D6A7929B6F0C47111E7CBD9
35C1ED73960477CC5D124C22F836644075602B035F526012B16F89B71952B0AF
B66A684E41F892C600E61F60EF552EDFCB8CBFAE9DFB33DD40D39C99A61AFB6A
006F5F3D2538A7F9860D383C468BD97D66D5092600681CBC26D50241CEC7F4D5
D389E75FEAFB07BEDEB2ABA7F458BEA3F1E04DB5B21BF76BE36D2CE4E431DB7C
0E1F778CCF1DAF5673811050F21B0C600E46FCFE3632FCEF42AAB3B98731BF01
3E89C206BE67B9875602B6F4F7053FBFE65AB570C7FB3FC6659F98F88B5ABED6
21006F6FBF8E0D3DECEDE78E7F54073429A0DE8FDC4111F205540BACF92FDBDD
A808A061DF4159852BBF8704B003E5445600F63B49405F02A85BBBD62D0152F2
D3CBB32DD834FD9004CC1620960AF9F582CC44E9FCE8EFFC1240CF277E2FA5D1
3D9103F88BC9017CF683250073B2EFDB950DB3B1B3AEA47761EDFC36598B83DA
66D728231990086C32F89684A07206FE488109451282AFF91244735FFB238E57
4B6AA3262DACFDFC7D78354A6266CA4D09AE49ACEED345775EC09B249E69BA71
00AF8EC9F269BEF1CACCABE3B175769F0A610C9269DCB5CFDB4CF0D9253A55A3
37A7E958BBF5B96EDB05BE037E82D9988ADF9D4E3F037C7FE0E7F355720FCF35
468FAFA6FBA012F4AE3E64F791C8E3D82F177992186CE09BDB261C2009F803FF
647CFE3C0F613492815CF775CB6C2CFB9C3EDF8DEDDD18DF01BE2100FB6A14C0
6A64FE5700F824810C2C79494393571EE6FDA916968214D6800C764001180220
F89903F0C8FFE352525DE54A7EB3FD978AC09C024C3560F600F2366D7E56BC74
7CF8377E09A0DBA3BF918A848132A6F39FED63C2FFF30749022080115D331626
C063267306FFF9CCEAC017B3162B7B0944406B9355A3CC5606FED4014306DF70
A19BCE1D84DBE64D0CB5081F7495E15CE68F304CBE81D589570B9727CEA8AEFF
DA6CC32530D9A2CBFD78EFF1D41B8090D97E03767F9EDDDC67CA74EAEA0B7A3F
80F705BDF1F646DEBBEDB78ECC57ABBAB827CF39469B31FB68A805D595E7ECD4
F7F2F8CD01DF01BF01345FD3D7EB1BE0FB825FB5F73AE62BF9D5BA6F3407BD09
85C0CCFE8082A528012E5324318C9D842629C8AD42200F5FE30E86F9F0FEECF9
7F04A5BFAB27044A7075BDAC47298FB68EF57B5FF32283C308010E3B0940C4FB
208106C4FD5C1556CFF81FC6C4E012104031D4421E88A162FD36598EB9FF757B
1A65E781C3720809C1C3C78F2B4BCE2F505E9F1EDFECFB671EC09E09309E9FDE
5F8507A961D21E8780F86E04E2D75D1EFE9554678C94F1DD5C054025F0BB1F1C
0198937D4756AD0E84F72F7F31B33AE8B98CAA40DAF3195541BE64E090008920
A85DF692605A07840AC64CB8602B04430A5DF39786D14808B635470C240912C3
B7B5D70A96664DAB6E701373BE00279829BFA90E3834C3E69BC9000C937B5E80
7716682AEF6E79F866637A2BAEB7016FF7DC9BC49E57538ED9CAC38620EED007
F8D5AA2E758C36B6F2509A035C04A7EDF135A0B5D7A769F0A32AC063BED415BF
9B9BD5F7F6FA7CDC06BE9DE86B2AF7A156A8581C23E8B90CE40DD4FF0760D4F7
3594FD063A6A8163C08604DEC367CA03552722D4E0BAAFBB0312E5A629A1CD03
DF8B0820EB01F6B58EAD81CC5FC5781F568FF06005F2068CFF9923588DC736E0
7BB9F4632714C0DE2347A51103410701FC251BB74BD1CA8DB270DD56D975E0A0
6AFB25A8CDA93FDC04640880F7D1FB2BAFEFCC03F03A236EA6B4BBCFFB605043
069D1FFA952CCF1B83AD406E19900470F90F9100427AE5548762243563D8C255
094FA52E0C7C3A6D51C033B0D6E98B1411381644422041D0102204D34804C60C
21F89242C7DCA5218E85820C5432D19821055F7230A5C77FE6FA5ADEE29219F0
94BEF1F9B9BEE6E00C3BF04C030E637636E2D0839BC49DEFD56DBC692E996786
6D7C6AF2BA0BCF5BE6DBDE9EB2D957EAD36B33167F175E7728927894E6F4CC5C
B16D406F804F709340086ACEEBBBD97D8724BCC06F65F87D937C36E879DB37F3
EF7ECD197F188FF61E84B97F96FD704AB4048234E7D6AE9717E1FD1F46E6FF1A
ECFA9B52B204A086576FD63CA027F8D73846902BF0C35600F4B52401ACF96AC0
D7CC01ACC7EB6D3B784476290238820AC0314500872D3B00626009909EDD64FF
CD81A07617A02100D3133025E23D6977AFF7C1A086003A3EF02B599A3D444677
F5DA0A74CB0F8A004CD90F63B761E8852F7C326561C013C995014FA6682319D0
9E4D5B18440321287B2E7D51304821E8051001EDC5AC6A86090E2190143CD62E
BB26C49F52E890BB84A410EA6BBE0441A2E85AB0EC5BD9D0E29A8D1CC221A86D
9BC9CE3FCB7CBDBAAF6767C71D253AC3064ED28D419C4B694DA2B033F83A99C7
2E3D0CFE1863EF804FC94E1F97C533F43C46B01BB35B715582CF8AEF3D71BEF6
F6342A8291784F439D1DFB94E62406EEF0F32ADD392BB95DE03B493E3E877DFE
CABC127DDE1EFF7CC027F89923B08DFD0829F0FEEF2D6AD0EBBEE0FDAFC5BEBF
420CF1542286AF47FFBE37097803DFF5FC2000057EC4F704BB4D00752001DEC7
106063E3214D00878FC83E2A0055063C26877C8CB1BEE9F8A377A7C7E73C00C1
6EF7FF733EC010C0E8B96F09CF00F01702F07CC0B2F8BE32AEFB15763BF0C33F
340228EB9BBF6436BAE6727B152E8F7A28B13CE0B1E40A658F275706DA64D08A
CAC00F19B88400527831B3CA351282B1B620046324074D0ADE46423897D944E1
8F244014E113CA977EDC9CD75631BAE3B1CF75A5E7F7671C9B65628D7FE0A301
BE51F0C8AAF906A026E015E821E35D3B0FE88DB7F7F2F8E701BEEDF18DD7D7DE
1E6103077AB8BBAF04713B24FAEB90E86FC02B3391C7249F79DEFFBF80EF0FFC
2482F928E5CD47EF45DBA412795079FF10199DBF48819EF17A091676E620B39F
85B25F2162F78558E2598B1160037C7365E28F1EDE10401DBCBE5100BCBD72EF
01A512361D3824DB4100ECF5DF77F8A856003EB675D72E77E88724601300F301
2604303B02CDD743A7BEA2CE00F047001DEEFF8594C4BE22EFF7B9CA2680977E
300400EFDFBA5D4AF9A231D56BA2D1F893F3607CF93CDA4309E5013611183250
8490A20D4410E458E0335006B467A10C6886105EC8A80AA6D9A4C0DB2F655687
B80692B0C9C18B24721687B4CFA909F5D8127CED6D366174CB5E1C3F6951EDD7
36786DA0DBF74F57E5B87318140055806B4E1FBEEEB2D3DD786AAF9ED5A6CB11
DB77E19199D4F32ECB31DFE06D9354338E53CAB34A749E38DF91EF6E8CAFE37B
637A361FEBB54CAD5ED5EB798A2F26F8685CD8C9862025CF71124FF10A1DB723
91C7FE7D96FDF8D8B796FACE6BF17B9A033EC1CFF0230D75FD194BD6A8B6DF47
C2D3E5EF48FE9DCBE32FDEBA5B4A90BCCB754881E5BFF28D3BA406C33C2B7635
2A02D0DE5F1300AFF50E01902C364101EC0001EC7108C028009B0496AFAC73BB
FD0C0198DD7F0C0B0CE09920646EC08C06BFF55E9726A70219326068501CF79A
CC1E78AD4D00DD7F100460CA7EAF152F9F89A519C5CFA72F0ABD2FAE64DE03F1
A501B407E3CBB42594053E9C581EF858129481634F265704D25AA5560619B308
8164106CECB9F4AA6018420624134106C6FC1183210A430E6DB2AA4395652F0E
F135104588B176395012B01E59559993AB1A9C4D371E704F5365B866CC6ABCB1
BBEF7C7BE96DD0BBDD7896B7F7D4E0794A2E866800044A74EEDCE78A6D26F5D8
6C736EE07B62764F72CF037A4FFC7E0EE05BE0E7CF34C633F994A9598295EA3D
B1FECF72DF6B88DB5F07310C76B2FB04B297F477407F2EE09B10201459FF0518
A6E2BAAF87E8FD31F2FB56466913EFEEEBEDED989F5EBD0A99FC629042F64A96
FC36482E4A7EC5EBB74BC5965DD80BB04F250399185C0F85B01995829D54000C
01D0094802F055008595C56E0990A100653EE37D2E0531FB014C5BB0D9094022
1830F4597506803F05F0F23D3F93E284211230E4469B0006FD50086050A7F4CA
742C7F48C092C6B4BB628AE6DD1353ACEC5E1001ED7E1001ED2110C143096501
2402638F269507D29E0011186B95521164ECE994CA201A1289CAA00C828D39A4
406270CD26079B247C55C44B9955500F3E9655AD5444CFEC45A523D0DC623C30
A5383BD19A98CFA08CAEBD3767DEEDB70AFC0EF06DD09BDBFE3C3D41AF4ED175
08E11D487266CC99D41B8B5E7EE6164CB2CE005F25F32CD359FB7F1EF8BA7FDF
06BFF6E0BE433D04309502496120A6FC98CC63969FAA811D849E189F7B029AC6
FDBC8F7989749CC23407CB3EB9F0E389059972F5B879002A637EFF71BE2FF0DD
C41FE37F1302E0FBEB1C055002659081D0210DDB9EF2B12D88B3FF2BA0143641
25344F004725011D7D06E826BE672F80BD138004400560E601E2B03DB8EF8007
CF49002589C3247CE4ED36018CFEDE138029FB0D285E3E3766DD8ED287124A83
EE882E9A47127088200044A0ECDE5865F3EE8F0319C0A80E1E7248E1E1041082
6350075409CA6C527812A4407B0A6440B395026FDBC4701E92502AC236430EE6
FA467ED54676DFB125964934B5E48267D8E38F539D7A83C754979C9588F3EAAD
07B0DFA7B963B3FA604C753E9E95B0F34ADE01DC04B80D7C7EEDE5E955371E6B
F32CCD794C67F68D44C7F41C64F97064D329E10DF815E87D80AF24BE559AF378
79CFB49E9ED8A327D780A7F9D6E9D5FDFEE6F82D996F8EFC663EA15F6E8D520B
CC2B0CC1FAEF77719A90B1E120B320944EE9FDBBA6956BEF3F394CFA26E503FC
68E905406D63E3CEB96C35BBFC007C5AC3DE4625F9D908540B5BB1673F4A808D
4A016C80FCAF460EA164CD162960C90FAA6105428A0DBBF7ABD2DFC1A3479585
257A8E00370440D94FC093184C08604F08C6E7644BAF9EB7FBF5FE6DD007F032
720385D1832462DC7D3601CCF821104048AFECEA30C8DAB4FE45B5F1B74616CE
BBDD585461C0ED20833B4106B4BB1D22B0C82000A142209481B2071D23293CCC
7001F6486259D06389E55EF6445245904D0C8610ECAB2F3998AF8D8A38E7357D
61F0F0C2AACF98A47301AADA633D36CE5985350C20E31F3FCFC9534761D9DFC3
165ACBD463E817303689325E4979D36AEB0D763352ABAE0ED855CFBD65B6B767
BDDE05BBCAEC3728793E04197DCA7326F358F21BC1ED3CFF43E0FB033FC9408F
EA5A24E057EA7B404EB00F8771F73FBB0507A007E0D5DCC5500B356A1C3819E7
2FCCA985F74F2C91A722B3E5CAB173642936F39C0FECDE8F23B1B70FE7FEC174
ED9FE047EB2F81EF12004881040092D8D078103D000801B0EB6F2F4280FDAA0A
A041BF70DD16A9DBBA4B0EE23ECA7E3306CC3660CA7B82DF94044D17A02100F5
9C9C0CE9DEEE7AFF0480B08021407A6037891CE7B51528E47B4D00E6645F78FF
508CC116DF1A5910707344FE3C5C5DF3220310C29DD11EBB3BBA2850198901EA
E0BED8122A83268460880164106CEC5110836D2409450C30E41494B54282D198
3F92502AC28F3D9BBA307C44F192B32AB1E6785B5E5DC0BAB7015CA8039A2AA7
55AE522BB068F4C6A6B66EBF86BFDB7EC10D4F3DD1B109B84EC0B8AEB1F11CDD
35E636EC604E00CFF3787B8FCC37C93DBE9FE13839D7CEEC0F82441F82789D20
3652DE23E93D5E9FBF8FBF0E3D02DF3645025EC9BDA6A027F06D6327A06DDC7B
4805A0BC3FBAFEAE991C2E6DB1EEAB1AB1FCB723000D7C63ABE9FD11E7AF04D0
1B2CF0D72229B8026544DEB71A04B111EA621B7200BB0E820040028DEC03801D
A4811068BBF6EE734F0236DB7FCD11E0FC9A49401ABB040D015025C4E56112B0
F5E5CD1200938031D35E92B8F71EB51540D2F79D000A7AE72E9E8B925876FBCC
EA881BE7E7CDF9C782FC793412814306012406DA6D9185CA6EA73270CC10824B
0620847B628A02112AB8767F5C4990220618D4419032841AC66C62F02588C793
CA838C198270AF56CEC15614CF2597C58F2859E6D6C95D2FEBC4D71E0FCC98DB
C700487604D2944AC0B41CB3E41C9661128F253F66B76DD07BBC38400E108FF7
631ADC8E71284865ED57BA661EB365BE01BEAECDFB97FA54038CD7396FCF755D
8CD775120F6AC121B26F03FCA644707EE093047CC14F0261E63F70C506C4FE25
F26C4CAE5C89755FCCEC339B5F0079CE49BF6CB4EA9621914779EF31EDED5D03
F015F8612B55B65F037E3980BF9C0A00579E01D880C748001B48002803EE3C78
085580C3500047A4D101BE2180DA55F5EE08B05102A607C08C06B322C0366012
0213846A3F407284747EE24F7E0980A5C1F6F7FD5CC226B696A469CFDA0450FA
BD250078FFA7DBA5942D1E54561B3179C9DAECEBC273E7D26E98AF0D641060EC
A60579013781106E8928083066C8405DA30A038DDD115D18482331DC0532A021
64F022049283268592A007E24A82690FC639C4E08720481424864713CB7D0D2A
A2DCB5C7122B106A5404B54F2B2B1801AF48207226DE18EBF47ECD2AA999D21A
BFC7B7CECEAF993567E2EE4DC6BE001DE3F411F0A2CC2BA8693F1A81EE94E54C
798E8FD34C798ED7B18EB9F739CB3CB8D083653B1DCF5389E8C49D2AD339F7FB
7A7B4F9C0F503A0D41ECD9E7561E4A7395C483342759F882DDFB6B0FA88DCCF7
F5F8FE80CF3560342E4A89C4D2D457B317C9A391B972EDD4F9F2D2FC541FA0A3
9407002FC6024F430A19F51B24AB61A314A35597A0B78D357ECA7C430004BE22
012A0045008D4A2D50016C0701EC22014005EC07F80FF858112A00A6D9C7487E
7AFBA9A1F3DD8DC0E624603ECFB40CCF4B09C720D06FFD9E0B68082070F4D392
13DCC92280CB967F2F09C09CECDB23A77A269656143C1C5F1AF6F7B09CB93490
C03C6320827937E0EB2664404280DD12911F48BB2DA2C031904184520981CA40
0C240012822282E8E2202FF32106430A36311882302441A2700D64813C43131B
5CB0E8D0C8725D01704169C0695D094E7AF36F632E907D804DCFCCEDB983119F
BF01C0BDC5385DF5C1EB051CCC2D983ABC7DF5AAB93701B593A937197BB764E7
91E746A6EB981E73FD30561268FCD9B6D14BEB411EAA0424F010A7F765120FE4
C0CCBEAF1757CF778CB79B93FCE639EACA1227AE291B7741FE6F5499FF6763F2
E40A78FF226CE9F5F6F4C6EB7B7BFC7AAC04AF41D2AE9C5B7D51EACB40C92F13
C440D55086FB166FDBA31400096099B2FD2A174082584B02809AD88E44200960
2F4A81FB007E2A00DB92B233DC166093F423E04900A607C010803929480F0285
4AFBFB7FE5970018FF77B8EF671230EA193403F50101B8F300EBBFAF0430A053
5A65E6E0B2BAB82165F569570465CEBD32386BDED521D9CA5C3208031938767D
586E000D8410084250F68F0579814A1D58646048E15690024D9143644110ED8E
A8421AC8C09856087EC9016401A5A0ECBE386D3641580A822AC27D0CE4103838
BFEA2B36E1503AAB659AE7301BD8B677F6BEEDFD1A4DE4B86FC30D80C0C11D26
EED428AD6AB6E1D41CAA10FECA7050155416BA2EEF80DC276BEF5B6ED3893B7A
732EF5F098C961E875DE4DCD063BBB02CD200F7BF6FB4229185220A03DDFAF09
85ADC5E6F5EDC7F473EBD5CAB428B4F80ECCAB96C7A3F2E4866911F234967D36
05BF7FA96FBCBEC9F8F35A870C3E95020920176BBE53115AA4A2EC97B36A9314
21AC2029303CE0B1DF9BA1007680001802EC558D404D0920343159C97B829F31
BE91FB2400DE260990008C3A30938053E23FC01C40D341207AFF760E01CC1DF9
8C2C4CEC2FC3DA5F6254C0DEEF1D01C0FBFF0276B26B5655000EBF2CBD3E3C27
E8B2A08C79208179200112C15C4304D78466CF33766D584E80B1EBC372026D42
2029D0FE31DF311003C9E1E605F9413492822104FB8A3C822105F7EA21074D12
F74417413534B57B638A8395392461AE2083D03773AA944C67824C497580915E
7A0462567FDEF8BCF739001F897E76DA289A23CDB998D32CE73400B6AFC6530F
055099C5A7147FBD6009DE974EDE0D8352E1FBA2B9A534C793DBDE5C25F1908F
A0D9203740E78A6EDADB7ECC3C76CE2B1482AEFDD7AA893E860E7D7316C38C52
58E69C11D00CB1E0E72621F31F04AFCD915F7AFF2B71CC57F6EA4D4D24BDAFC4
F7077C43025AFE6B995F87921F3DFE7278FE4568022A421B3149814A211B4AA1
74ED1659BA79A7ACDDB5AF190238AC2A0094F5E63050E3EDCD5660B31BC0F404
98306042CC2469EB3307C0A62025FF9100ECF8C0CF65E6D0C7A514EDC043DBFD
CDEC04F8F0FB480053BB652E8A1E56599FD233AF26E9D2C08C79B4CB0233028C
5D013560ECAA90EC006320830012C2752000DB34216803110459E62105871C6E
5E900752A06972B87541813228042A052F2341F89204720BC12086206F2BC2D7
DA9E8C2F4A199C5FED7AD39100D648E5BD20D3D9D8E2F4C40FC13A6B450A94EA
788E6DFE80EC0D6A0D587F6640EC4A740097390202D8635AAAB3844632E8A762
F41AA885A568D3D5A53E23E1B5D735DE184486DF83EF9BC6C4E4DBAE01FCF83E
2F6B86105C92B09ECFD76ACED40E00860E58FFFD4AF66227A7C01E8065AE4A98
86938462E0FD07172E915631F9F28F1951F2E8DCD8A6E067C2CEB255B8DDAC31
F9A76AFF4C00EE57E53F15FF635680C6DBCC25F0FBD721046840572009601136
0615A36BB008560D9550BF75A76CDAB34FB6EDDEAD804F909B6120B3F68B04C0
72201381248569F89AB901D32A3C66C12869E33307400260FD9F09C0CE0FFE52
A60D7E400A237ACAC84E97B84B41BE570460CA7E5DB2AB42B008A3F89279E901
7F9B97A6EC9280F4804B03D2E7290BC46DD8E520052803D7AE0ACE0A34764D48
5600EDEF215981D785E604B96691811F4250E400A560CC2508430CB74680145C
03394468F34710F67DB7833CEE882A08EA9E51BEEAAD821A2F701A1220D88D71
E1C610F5878D2E3764CE093E12044140C2A0A97E7E155BFB33EF78BB79EFADE3
F3E115CC0B681BE698BADF96EFF89A937CACA5D3FB528EBF8EF7F50632FA431C
8012F8BCFD3FB12604A108C02611EFDB43CAD09064D9DBB84DE367A4D50C138C
35D23B6BB18461A3D28C9AD5CAFB3F43EF8FBA7F62FD3AB7818720FDD6C07749
01F1BD53FAAB47285047D0E348B0E53BF7C972809D24500735B00A24B01E24B1
458500E8024422702F9380870E4923AC0104B07CD376A95FD3A008C0240119E3
9B55E0F4F8A6EFDF1080E906A462183ABD6F932E40450094FFF7FF5C2D049934
E02E298CEC2363BA7AED04F8C5F786044000593DB3AB0391F4CA793AA92CE6CF
735303FE32374DD95F4102C64806C640048120026520039A22049B0C781B6410
64ECDAD0EC605890B1EB70DB2689E688C1871C14498018104A34672AB4704902
A5CAC08179559F0D295EEA0116BD298C39016FD39B726904211F1B0A8F4C00BE
066F4C5352BD7819C209D6D93590DDB8DBF9BAB9F85BCB741EADE598037ADB83
2B4F8EC77D3DAF0D34863224825772AAA5378C1D786A1B0FC8EA2D3CF6165EC3
D79A2507A7ED981D7DECDEF36724045FE0DB5FBF0502A0F167E8E7AE50BD16F4
FE6FC3FB73DDD7CD3363E40EACFBCA81072EC1B6DF45E8CE3BA7A7F75201F4E8
1E5B097037D0D333E1A708609F2C7308805383BC9F04B00104B01504B0133980
DDE8FADBE7809F04D0889C00AD786199BBF4C3F400989E7F9E0C64FAFE990B60
4EC02C092101F41DDEDA0F0120FE57F2FF17D2F5915FC9C4FEB72104785DC6F7
F01A09FECBF78200CCC9BE5DB3AB22D17156F0A739A9817F999B1A0812301660
08014410680C441068CC26038B101431207710640C84E092810F2990185CD3C4
60CC521150143EA184DFAFFF313F0F24817C8365FDB32A546CCD04178D003A9F
19496D0396C02440DE80071E008FACBBDC162B52A05260A69F52DD35957023A0
115A28F301B6F53ECC7B6B72753CAC22000BA01CCCB18D6A85B179AFAC6AE943
52C0FB33BDFA8A14F0BDE7335FF0BF55AA5B7A79F56783713FCD10804D044CFC
0561DF2233FF4F45E7C955E8F98F58B24A817E319A7F480239A8FBA7A2335091
02247A0D127B4CDE794C7B7BD798DD27F861F5AADC07F053FA9300E8FD619A00
5002C4F79100B6ED3F80D55F5A01280270806FAEC93939EE21204C0232196812
7E540066072009E0FDE030B743905FF77CED7EAF0A801DFF770201747BF45732
BEEFAD580B365CDEF31E09BEFE3B270053F603F8E76218A6E48EC8FC883FCE49
0DFAD35CC7701BE0A76932003918FB2BEE772CF01210833290C265DA826C334A
81D72B83321521800C828D810C821DF322089B147C6E5B04D154455879079584
BC3B322FB65F6685CAB87B9943060670DA036A532461E2697E8D84A16AFCB101
8BAF9948A4B1C186F1707F00B04FB6011FE261280582D6359FF74052F2051D7F
B6D77D780E77ECD158B26342CECB7C88C02605A512F07E7A6656A9AB520ACE00
8F794DF76A118401B6EF9524D0DC63EEFDF82CC6A1992906001F05D2E2BAAF3B
E7C5CBEDD3C25D8FEF0D720D78CEFC17E18CBE6CD4FDD3B0292817A45086585D
81DF01BE0B7E870028F51501C0FB2B02C06D924203428335C80F6C04016C7708
600F54C03E1FF09304087873DCB7C9F213DC04BF69FAE1E3B602E08460646ABA
74EBFC8F260440F9AFE2FF877E29DD1FFDA58CE9739334944C94F77A5F6D3703
DDFB7D20805E38D937EF95FC254938E031E70F73528201FE10A880601A40CF6B
9031450673521CE36D4D081619285240BEC0367F8410043270ED8AC08CE0AB82
323DE69F1CFC920495443344E1861ACFC4172E1C800694267FF004150FB4B48C
4D3C5E6681DC80DD73E5708E3F6385018450A4636102AF4F7695BCEAC4EFEC91
F7F75ED4FA6DC798603BB7693268CE3441E875DECAACD7A66AE99D55253D3216
29B2E27B1CE0843583D129E931EFEF7B13AFF12608E09CE6FC1C2EFA0C505D7F
C5F2244EFAB97AFC3C995359EBE3DD6D4F6F6E7BBCFD1294F22A30C95788DA7F
1632FAE90E2950292CC2D6A03A2BF1B7D451000C036A91ED676E60ED5E4D00DB
90086408B047E5000EC97E1F23C829E70978B30BD01000F302ACF7F36B3E8721
80C90144A4A54A9767BCDB80DBDCF53327FEFF858AFF7B8000C6BE728BD4E68F
F1258067BE53023027FB76C85818842EAD4A48EE05F0FE21DA524802CA78DBF9
5A9102ED8FB353824104B8ADCD430A2407A50C821D0B4222D19710A80E827D2C
8824D09C811C421CF34B12B69AE06D3BEFC0DBBD32CA3FE9915EA132D5FDF1C7
3E506DAEB5C0A140E2ED553DA40079CBB8DA8F1158DE40F67E1E1F3720666CCE
DBFD91436022AF1700D81B52BD2FA43AEFA352E0739A181B898CF97BDCB9CF9B
2C50E63C2F81787E7FE6335E4189B457E622288545F89CAA740502A4A0DF9736
3EAFA939BF23DE231380FCB93CE62B0E47A78F45F8D33AAE48EEC3BAAF7F4C0E
3E0FF8FD4B7DE3F929F9696C0862AB701ECA7C1CF765F8908530A210A53E760F
9200568000564205AC8502D804F05301EC4212900440054002E095C62D404C00
1A02308057CB3E11FFB332402301303968E60054AF00C6873B3FFE672F05A0EA
FF56FCDFF3F15FC9E8DE374955FA5099D4E7EFB602E8F85D13802AFB0D2E5B91
DD35677106BC7B38C01D660CA00F051984E26B5C795B99173910FC0E1984FC69
7632080384303B19E64D0A7FC1FDB4BF811894CD4B0BBED498A516480A9707A4
87F8B3731184FB18C20BE41D9A589FF4B2B30301B28188915F57756C2D897B39
B298E3AB83F8C75E4462B0CCFAE3B781A0C0002FEE6B4C14D206E171DB6C50FB
3EC6321FDF0FDF4BF78C85EAAA33FD28FFF1B59A1816740068349718D46D0F50
F9FE7C7F0EBFF6FD1DF8BEBC9E67FD2C561CA85A7AE03DF5CC5CA808A21F721D
BEA4607E6773E567128A819F79F0D62F25E2904F1CF4C155DF938BABBD64BC47
D2EFC7FDCD1BA5BCAFA9CC3F937F00BA91FE85081DD8329C8C3D036920850234
0455A149A861FB1E9700E8FD6906FCBC720B101500253E41CD061F13129870C0
74FEF16ABA0449143C10A4E3439E03414CFC4F02E884F25FF7477F2DBD9FFC8D
8CEC79A35424BE293307DE609F0DD0EF3B230073B26FDBB4CA082CAC5C747950
460432FEF34102B470870C48088A14007C0F31CC4EE1D7A100BEB23F68E08300
400EB84D5364E0DCD65F9318BC0D4410E21282430CC82304D35C72D0B7438C5A
688E1C9CFB491E4DECC6D0AC98DEA9A5AA6C462309B806B00F84BDCA4C7AD622
E98E3F745E29D95F030098546BCECC6BD80065A38C6DECF6F3FA79FCD9501FEA
3EE7677BAE782EC0C3EF572534820FEFA75B46A5430AD5AABCC6C7BD4981EBBB
3CA65EC3325F0219884A0841CFAB6BD67BB15F4BDFF6FC3C8630BDF0F9742329
F0735289469D003504C0AA491C927F132AEBD4397F0F86A4C87538E9C78EE19B
001E60A6C7B6AD8171BC1F63769F56474FBF732F927E380568C71E590AA02FC3
D28FE5309605F95A9CFB2F5DBD59F2EAD74B11C8A17AC35694FE76C9A6DDFB40
02A808C08A1696BBB13E4300E3ED09701BEC54048CFB490224085E43336210EB
7BDA804DF9AF3D5684731D788FC77E23AF3CF53B19D1E33A29891F24016F7B2D
0519F65D124022BC7F28163D143D975299F6D779E90BFE322F4DDBDCB4057F56
A6C8603E08804652980F790F4248718881A4003220216823198402E82486903F
CE0219C0FE000319E03E4D0E1E92D0A441833A80A54225A8D081C4609B473980
281C8208213118F31352B821C69331F98BFB6494AB049D364EC59DDB9828638C
4C8FDC1D713249815E5903D08744482C04F5395FDBFCECF33DCFFB7D999FC59F
AB5402DE47D7F44AAD149CF7E4EFFD3425174D38CC4968D364782E526CEE357C
09B10F9401898AEF8BA4F00196A2CCC4AE042EFB7C04477CD3FBBF9B5DEE1080
8FA7FF96A0B789A09EF13D8C04500B02A805E009FCA5C8171802A8C763AB01F2
F50801B66057C00E9CF7B70BA5C03DA8042CDFB44D16AED9240575EBA47EF30E
49CECB5740372DC066E537D5009B82D8F46372046C0AE2E35409248090CC48C4
FB9E36601DFFFF1CFDFF88FF41003D1FFF8DF47BF6F720806BA53CF96D091DE9
B51464F2774200A6ECD73967710A76C257FC2D2023EAAF011991CAE6A5D12240
043490412A89C0DB40082002659A0C52C201F870A8025C93C341022083E43000
5F99510A2083509201ED8FB39242BDCC87183421F8DAF909E21210879781247A
A4967EF24AD6421567FBB3D74006CD19E5AE3126CB2887BBA655E25AA948E155
1C656D3F47DD06587D8D99785A93E75AAF6F3F763E82E2E33A91C7F7B448BAE0
3D695240A211E44542E2EB19800F401DFE756386FCECFB9ADCF643100EC9B90A
C62242FE9C01EC56444294B1FF082402D9F8F340708A5C85B6DF62C4E78BD1A2
EB4A791FCF6EBC7A735EBF01803766C05FC7721FBC3F3DBEF2FE0E01F03E12C0
2A10C006540FB6BA047000047040F6196B3C20BBF7354A38004D6F4FEF4FD01B
02301500D3104405302524DCDD0CA4144172005A7E3DEBC05D02C026E0AE8FFC
5A7A3DF15B10C0EF6478D7ABA4267BAC444F6A65E700E67E570450D3095B77B1
667AE1C309A569970565C55C1A94197349606634C980760949615EBA22049000
C303586A04401F4142B06FE3BE0520011A09613E004FD36430CB5812C82029EC
F78E39E400424852F6FB994921B426C4E0100515C49F4112DAFC91838F8A40F2
F2AF8E754B2E3EDB0F40ED0702F0B5E648A1C9F3D041D8DF9843240C1B7A3A84
D035AD427AA4337C40FCEE6CBF61CFBC31D34074BEEB3F43105E24E310C92B50
294CE2D11B7749AD906EB85229FC33AFEB453E248666D59247D5B00189360B43
3F73B119B94372290EFAC0219FD8F3FF466A91027E1E627266F13391CD2F842C
AF4022AF06BD0006FCFEAFDADBBB06602BE90FF0AF70C04FAFBF04044005B094
218043006B40001B01FEADFBF62B05B01B80570480AB6DCCFA33FE67C28FB719
02D83301B6022001B03FC0CC0D4C0A1BE7AE03F78AFF71164037C4FF7D5AFD4E
FAB7060174B94A96E64E90E8C94FDB0410FD2F270078FF2E1D52CB8B5E2DAECD
7DA77265C555A1B9F15786E4C45F11921D777970761CC82096A60821202306B3
00D1B88218D24108695120021242A4228239298A103C5FA74680008C2D80B45F
00120019C06625CF07E86920852465007C18ED77AE25F26B92813F5304412268
CE3C040192807AA0DD149C91D925B918A02430B5D16BBF8AA9348FA1871D716C
BF7C1FE37DB601D80C0DFC9AD310C42C3AC1D709E0A35220413091C68C3A9B85
BCCC8790FCAA13A7F3D09B38B49A30D6ACB2617211BF2B958A562E784F785F54
0A7C4FAF81D08C7913044B82EC15708CCD44B699FB7DDEDB9B082BE8FD276120
4A95FEB0ECF3F25133559CEEEBD9097696F258EF4FC129C05918D829C2686F25
B2F89A089A029F5E9D6608C0E3FDF76235F81EA901012CB10860F5EEBD6802DA
8F2E401200AA003092C05EC748025BB6EF702B0094F724029A5D1234D97FDE37
2930449500CD96E077C67673D781BB0D4056FCDFF7993FC880E7100274FFBB54
678D9198295E0490FB2F250053F6EB94531333BB7EF3B2BB624BD2FE3E3F3FE9
9AF0BCA4ABC3F3124106095786E624800C4808F10E21C4810C1421800CA01260
01E9D17F9BE71202488184904262880221A8DB344506B3936129112081089000
09610189401342D27C809A463250F6BB9989DA3E480CA3FDD6635EA4C070C28F
B97907937F782EB6607B5B24A2E80D59DAEA8B78D5BFE9721C8D9EDD1801644C
11C7B73082DD1881462F4C42E8980200E236C1A848C19760FC7D6D4802006456
DED8B9BEB7394230F7F373E8899088EFAB33DE5717AA178BA85E03112AC3FB31
46026052D498FD5ECCEDE9D889381719F8CEA965F230D67D5D8563BE7AC765BB
D29D12BE09B07DEEA332C8AC43690FA490037228C1EEFF45240507FCBE04A0BD
BF56009A00F64001EC910690CE5AA88E8D2400D80E94029502B0088044C02D40
043EBD3E877C28FF4DC69FE180E90930F7B10B906DC1A66C38E88DA7DD36605B
FEB3FEDF93F2BFF51F65E08B7F94513DAF93D2E4E19238FD795B0154FFAB0960
44978C85C9832B56960D286BA8B821A228F5FA88C2D4EB1614A4D0FE3EBF2059
9141182C341784909378852604659707678114B2A01232E32E0B04290466C442
19C4C0A810A2A110A21D122029800C528C910C224106CA1C3220214480044008
B099490B1C320021242A03019008C24102CE350184E06B1E92F0A71C3A25147D
D91DF5FF1EC633A7944BBBE43248D472050002D1D758EE3A9F19B250D7739084
FB3CEB3994E8045D47BC17A5149CE41933EA5422C614C841269A74F4A49D3FFB
5644E2432E3649A80A08DE5377E4353A63571FDF972285CC4A798DCAC522B4E6
7ED6EB500CF1C8FCD3FBBFC8659F115972C98819528D09BC060BBC3690BD6F33
6E6F6A65D80294872DBEE928EBA58114F2480AC8272CDC84E3BE29FB5D02D8AD
C300809FA141036C2D94C4262401B7590460BC3FAF248392EA852AF627C04904
F4F22403120141CEFB0DF8F9984D000C050658DB804900BAFEFF4B15FFF77EF2
77F2DA737F9237DBFC4946A20A5010FBA6A40774B00960D5BF8C004CD9AF4BFE
B28CB90DDBEAEE8C2FCFBA29BA24E31F51C5E9374615A5DF105994764364619A
21846BE78310C2F34908C95787E5265D4503214021242A4208CED2844032805D
1A4833849016F3D7B9693120816864F5490AD12003635120019A268359C99120
0012816B007204088084B000044022700D04309F84F0DB1909DA3EF0322F82F8
D3ACA4C8F67179888175C69C52D8982A65216627003B8010DA2595E176B95F42
F89F1004CB885E069011E0342FF250FD08081B00B84E29202618BD32C1C8F76D
938BBFDBDE8AC49B20988BA0D9A4A2421D63CC8B34634A253899FD4E20848E20
CCCE788F24205BE198DBEF631BD2DC65EBA43B9EF31062FF2B27064BC788342F
CFED1FFC3EA067FC6E9B0F29D4E1EB52900267FC9396AD4113D05A154614227C
A870488104B012CF5B871CC06610C076E400763A0AC0009FE0A7C567E729A0D3
980330C77EAB5D7F4E3EC0EE0120499845A10C05FAB4B94A350179E2FF5F38F5
7F96FF7E2FAF3FFF6779ABDD5F6574AFEB2477C1AB9808EC0702700F09DDFEAF
2480B81E398B23C72FDBB8A46BE18AF2DBE32BB26F8D2DCBBA25B62CF3E69852
652E21443A841001425850907A2D6D7E7EEADFC3F3521C42D0A4109A93043248
BC12E6924250663C08211E641087504119C205450828EF2923292842989D124D
320009280309E09A4442888422A091085C031190105C52D064009BE19A871840
0EF784652EEE9858A8E4AE3674B9B966EED3757F4D083A71464278195E8C57AD
12D82E6B5B53D5E04F49F0BEDEEAFBBEC5F3A13A584EA3517D286F0C42EA9054
0AF095298FCCFBF87A469DD8790D73FB15E4386C6B4A1A24056FD5E21BF6B8E1
8F0F59F133EA0ED2244191A8480C7C5FCC4FC4E09CBF495884C2659FCF44E5C8
5F874F930A1CBBFDAD3DBE2FF07DBEAEC3D734829B56AB6AFEBB91F8DB0DE9BF
4B2518D356AC9384A5AB2503D7622C1B598C9FBF06CF2101EC40B67F57632340
EF6D61CE29C05401347A7E9200C16F9A8098F033757F331864BA017B3EFD1787
007EA6178020FEEFF420EBFFBF95579EFE03E4FF5FE5ED0E978200AE91ECF0BE
528152A0450047FF250400EFFF47D8E1AEC5F5F901AB77ACBA3B6961DE9D8995
79772454E4D2400639B7C595E7DC1A57967D4B6C69D6CD3125540799FF882EA6
42C8B831B228030A21FDFA888274840A6934E40E524106B41490010921998470
556876922284E0ACC4CB83331340060908174808F1208378840A710815624108
B17F9D971A0B75408B0121C490104004344506CA66264581041421F0AAEC83C4
081081B619090B682001632E21BC149B7FB24B4A8992B2E73490430FC73C64A1
63E42E90C48A1050D3A675C41FBE5614DA084802E35CC6E79CCFCE4F120C1BE8
89CBA43D48A133DE075583EED003C938E615BA900CCE15CE8098545EC432A352
FC5D7D954B1F543CA85E466270690A067F3A23F3FF480436FDE298AFE7421255
B2CEB62612FF3CA0A71230C0F710C01E94FE603601A0B187EDC14B60CB400875
78AC6AC33629433EA1000D40395009E5AB36CA523401AD05596CDBB357F62031
B87BDF3E05747A7826F5CC1830C16E7603988CBFB98FCF6152908FC7646549E7
477417A089FFDD06A0C77F2B7D9FF9A30C6AF33779071E7F54CFAB247BFE6B52
953152867770D7827DF1AF22808968FA491CB164C392418BD6D4DC97525D706F
F2A2827B6077272DCABF0B644073C820F77690812284584508D9162164BA8410
519861130215020941A984B0DC94AB43735248082083244CFE25294208CA4CC4
6621904246C2A50119098A10E6A59110E2FE36175792C11C5A4A2CC82006C9C3
184D0849D120005822C940DB0709CA400291BFFB2041DB8C041242C46F67C4C3
12225E8ECD3BDB35BD5C794E9A4D02E63EF70A92E87E2EA260D20CAFD105AF47
12680732688B36578291F71188AEB98A43871EE7B3739303498649434781E0F5
FA38D60DB98D4E48B8B5C37B680FF0513190B4F83ECC73FC5D097ADBFCE6417C
9EE3F53D763803351181A11F7A7FD6FD9F8CCC92BF0C9F2E51352BB18E6BBDA4
2C8344875CA77477CD0FB07D81DEF4EB3D2003C6F71AFCCB0174827D09158043
004B4100CB9108ACC7E3ABF1F3D62304D88A5DFFDB510ADC0915B01BA0AF5A8B
6D40584652C826A0F51BDC6C3E077C4CCF3FC16E7A0058022439F03E5325A04A
50E701E4664A87077EED45001DEE47FCFF30EAFF88FFFBB546FCFFF22532B4D3
6532A6F7DF253B62A054A40C95773D04C07CC07FFEAF9300BCFF96AE85B589F3
D6EC5CFD425E6DC583E98B8BEE4FAB2EBA3FB5BAF0BE94AAC27B692484A48520
84852484FC3B131421E4DD1E5F0E85509E7B5B5C190921E79618104274493614
4216C820F3465A6451267207190817A810D24106693490411AC820F5EAB09C54
4D08D9C95821960C3200216426294208CA48843A201924800C4808F124049001
2D9EA400328845A840032124C5FC7166520CC8201A4A80E62183192084198A08
226F0C4C2D7C392E1F80402D3CC3635DF1354DDD6F0CC026B8694D88C1CF7D6C
02A275C7EBEA649E06210981A103BFF622049B1C709B5D73B6D2F00E4D0C6178
5486521A3E66AB905E783D1A1379CC63B4874A68EB8430CCC8F3F734B90F9B10
EC9C887DDB43083EA18F453EE639A3B1FC84B1FFABF8D98F61D5F7D538E6EBF1
79318EE787540760ABD06DC7B89D093CF6E83399978BDBDF16F404BEB1150077
2D404E02D0E0F7108056009A00D68000369200E0EDB72309B88B1E1FB6074460
6C715DAD2BFB4900E6E82F430004BE391780F7B107C074019A0341B80CD4AEFF
2B0278E437D2BBD5EFA5FF7388FFDB5F861E80CB65C2AB3748D6FC015292F096
8CEEECB515E877FFAB0400F05F02DBDFBB624D65E0DA5DEB1EC95A5AFA48E6D2
D2873396943C9451530232287E30ADA6F8813490426A7511D481260545085408
0B0B1C42C8BF235E1142DEED7165B9B7C596E5DE1A534A42C88142C8B929BA38
FBA6A8E22C43083780104006B0FCF4EBE6E7A75F1B9E9F6E08E11A4D08A92083
142884642804450A208424871012152104A425A0ED3701EA200144408B873A88
0721C491144006349041520C888006424850F66444CE9E369841A787240110F4
94D08A00CCD52103430ABE577F24713E82E06B74466C4C8FDC16F1701B78C5F6
500B3DF01EA8308C91049A9AB74AE999456FAE3DFAF9CC9080EFB50BF308782F
24A6762E2968A5C09E05D75CA5E24336780E89C5367E0F098364125EBF49263A
3DFFAD30F4C3D83F0D1ED606ADEFED65F0D80B31A453BC66B3E4401DA42099C7
2C7FB3DF034053D6D36C0250F13F40CF0E431502E06BAA0312C0DA5D7B40007B
5101A002000158C03704905552AA0880606609D0DEF8CB84A029F5995C002B00
E6E050B51138856DC03FF74A00767CE0576800FAADF479EA0FF2DAF37F91C1ED
480057C84410404A604F298E1F22E3BAB949402A80ABFEB709E0857629E50B07
D76C5A3AB97EFBEAC7739657C0CA1FCB5E56462319184220293C980E52485B5C
F2405A75B14308458E42282419D0A00E0AA00E4808F90817F2A00EF2903F2021
E42A4288D6840085900D7590857223144241E6F50B1C52989F9F716D785EFADF
C372A11072945D1D9A4D42480519A4800C52AE08CA4A56841098C1E5A4248444
A803900008615E5A2209016440032124C7411DC4FD6956721CD4412C0821B64D
6CFE37041E3DE18BE803A0D143130CF4DA2403638A10FCD9FF8020B48A60C24E
1B49845E9884F0327E3EDF07AF1D712CB6FD3CF73649C251184669F450BD0330
73751EEF89ABC740121CD0F1353FE441854242203929C5A2928C3A8C698E486C
0232CF198EBD00F3E0FDFB21447902DB7EFE3E7581DC3B63BE07C816700D809B
BB2E41B9B0022A8107776622664FC2D6A03A24F06C23F80D0118F9BF18C0AF06
01F05AA3086037CA8EBB4100380918DE7F2B167E6E47254085003E169B99EDC6
FE5400E6A41F7A7912837D2028EF6313109F63DA85DF9F375625FEBCE3FF5F4B
8FC77F8704E09F64E04B7F93B73B620558B7AB940288FDA023E60186C9C45E57
D9A5C0DBFFB709A01F3AFF0A47D46E5D31BE6EDBAAA7F3EB16B6CA5B51F9642E
ADB6E2090F21943F9AB5B4FCD1CCA5658F642C2903195025946A3280A5569780
108AA10E8AA00E688508191429DC0542B833A1A2E08EF87212423EF207790817
72913FC8BD25BA245711425471CE3F228B4808D9374614662164002114644221
644221684208CF55A400759086F5E3699A10B2534908208364904132568F2581
0C92A00E4008A9CA1C32D0EA604E72C20D41E9056DE30A109B03E896750410F9
07FF627CB1BC8019F5360900A34AEC91143C84E0EFF6B723092A0CCB7C49C521
1412822A3D8208DA8010F83EE89D6DC5C1DE05FF0682E03010C9A0396B269461
B34F534393127B2318C2801068CC6BB024A9DA9B5DB2B1C8C52195109CF4331E
210027FE9EA4F77F77BAC42C5DE97AEBF381DEF3B837D009FA1548D655238B5F
B616937C0D1B1036AC916464F8B39057A0FC5F8AC797F03958EAB9188A82C6AF
49002B7742012004D804054002D80105E04B00BB90000C4948522037150093E9
3733FFA60C68FA02260604AB9080EA808430721C97817A0880F2BF0BE2FF9E4F
FC1EF1FF9FE58DB697CA30B40033FE7FEFB57F48ECB4B6E8069C20EFBF7ABD4D
008FFFAF12001A60FAE33FB3F1EDA59B564D59B573EDB3850D55CF14342C7ABA
A07ED1D3F9F58B9ED284B0106450F9448EB28AC7B39757401D543C9AB5AC1CEA
804642287B28BDA60CE142A90F2114931090502CBA3B1184905859A809012A21
BEBC80848090211F84900742C8BB25BA948490AB0821AA2887848070211B0A21
CB43087924840C12027208E92084748710D2A010524106B4148710924908D862
9C44658029C2C427A2F2767400B0BB3069A71277344D06AC657B8C7FF825F212
FE809F47B8F0627CA1038012050002958D31B47313043D2801A3954473CFF522
1148F3AE8E316460B98FCAE02590C10B782F6D70BB1BDE6B1353790B4A782437
7D48C22B6451CF435EA339B3F2222AAC7148C55C3BA02F82EAE92510E5CB0865
549211EFD310C210B4FD06C0FBBF9EBB48ADFABE1E077DDCF67EC83F097E1FE0
33837F0E5BBA052A01E3BD9CF3CF64C96FC96A49042954E3FE1AD85290008963
E58EDDB20E21C0E6DD7B90F12701EC0301EC53597F029FB663CF1E057E829CC9
3DDE36077DF03E7A79B604930C0876DEA6026052D0940BDF7CE305AFF85F3700
FD060940C6FF7F410210B17EB7AB65DC2BD7C97BFDAF97C8F75F9065C5B365EA
801B6D0268F3BF4A001F2C5B3FE0E5A4D2B35DF3976F88DC7260EB2B551B6B9F
2B5EB5F8B9A255D5CF15ADAC568450585FA508A1A00E84B0C22184150B9F0029
205CA87C1C64A0096129CD2504840B65301242A952082955255008252E21242D
54A470574245A1560815248402E40F4808F9B7C494E4810C6824845C45081185
398A101614D0B2904C8442C8CB548410969B714D680E2D1DEA00644073092115
8490825564296D120ABF24C8D1F5285D619A001C437FBE0E0128CD016E656C02
D24645A00821B640196F13980C1D480AC65886534692B0CDDCEFE771C6E3E733
430A1D9DB89D84A0C9896AA5D83B54B148C4261E2F15E2278C694A143E49519F
24294941253A1936403DF13399B178958CC04E81D6786F8F62E497DE3F7451ED
B724807F0EF82B400AB45AD87226FAE0F597C098FDAFDCB80D33043A9790CED0
01D5875C90C37AA8802D24002402779200F6EEC5E9BF1E5BB57E9D5702D074FC
990E4023F3CD21A12405860924001206C9A25FF77B9B89FFFF88F8FFAFF25687
CBD101788D4CEC77BD4C7EED7A5930E959A92D0D94497DBDB602F5FA5F2580D0
955B7E8D65985F3F1F95F3F1F0FA1DF5811BF66D0ADBD4B86562C3CEB5036B36
D777285FBB5413C2CAC5AD8B1A4808D5CF14D443258014F2EBA012EA16698500
42C8F9FFB57716E0555ED9DEFF6AB7D3CE7486A9CBB454A6AEB450ACA5B81627
6870D722C5DD83064202C1091A2021EEEEEE4E026DA79DEF9B7BE7CACC9D2AB6
BFFF7FBFEF3A7973720261A6776E2987E759CF7B2C7638EBB7FF4BF6DA99F150
070042469C06823F2D2DB6BD5F5A0C14428CA910A23F38AD81108584A20984C4
08241423102E000871E1482A12086148280208D12610A2088410241483018360
E40F82103204BD71203CF0F5FDA1810402AE010817CE0106B0207F0081E60775
40209C050CCEBCB73F286EE089703582DD75D8264B230886A381C5B8B2DDD554
03A622603720B3E7DA747B2E2DDA56EEE3549B8FF141EF85B1D65C9DE994540E
0C1DE8A8431D9905160EC16105850520F6801040F16719713BF2193E61AA0F8C
8E48A7340024306B0464EA84264C8AD6B73ACAC30E0833D1F6AB637FE42B38EA
FBB54D07D52B2B77A830ACCC7158A1D31093D797FFF565FEF5567B3E278E5F0B
808B00C0450D80344AFF0A8400C81DD0A800F81C154006AA0EC9C5E80C2C2853
215928436614A898BCD23A00884B4DD68E4C87A763F32ACECE159E1500D6FB25
014820C881207C9E0018DDE7251D02703B30AB016C001AD9D188FFA7F57D46CD
19F282DE03B066F21B6AC3F437D5A18D7D5546E846B569EAEB560530E37F1400
FCE61B1373E7B5DB7EF81A26CC5C9A169B173B33E37CD6F2DC8B05DB8AFF50BA
BFE28FE7F7947F59B926FF62F1CCB48A9C2131C5E91A08111A08C91A08613949
500889081768044282064250660272081A0A1DCFA5C7010671EDFD530184D458
130831C821000849D1C81F44B5399D082868851089FC01811041200006E10817
C268482886D2A8109A194008795B03213CD80042589009844054190084E00002
01E18206428F63117F18820FB82B9A544660B49606017BEFE9FC628480068101
03DA501A41A0AFB530E0CAA70D31BB34E13079D607EAA017A4EFC7B03E96D081
40B0378780B05314F6CAC2B84FD5611A158A09152A0FFE0C42882B32A1F4B109
27FE6EF554890D3006246EA442F87C83390FBCB75B71C8C7724CFA25143FDA77
4EFD6ED116B539321949BCF32A04537C99D13F8DCC3E57E548ACCE0958A5B318
D7EBD8FEEF31C4F6746C1A9C9CCE9F0A874F3201900C00F07E269ECBADBEA88A
50362CBBF899A90090078012283A5FA3324AB1DB30BF5445E79528BFF0480D00
59D999DC9330808FD324E1476767DC6F4C01F6D3CA817981E15D7F6749003651
C33E7A48270027F67C120D408CFF29FF5F576B11FF6F9CFE3600D05F25FAAF52
3B3E696605C0D2FF7100F0078C3E1A183DE080DF6540E00A56C1CB98177F717A
5456D2C4F8E2981919D5594B732F146C29FAA2745FC557557B611B0A2E96CC49
AFCC1B1E5B0420E4A550210006DAA00E92903F8042001482B313BB0665698342
48E81C909180B021DE0A04C0C00A040D050021BAAD2FA0702A31CA0442248010
89FC41042CBCC531030A1A083E51DAA01042112E84BC7D382204300010C282DE
80BD7E2034080A2110EA20B0DF89C82B034FC7A9C167511387E31B2000043849
4783A01606C3D8D66A8181767E2B0CE0084368EC85D766C2C0BC322CA0692050
211C0EC1B9772166E81066860E6C2966A6BDD65C709BC6C7C51C81432B0C072A
C32164F03BB1EAC1DFA5AF000190EA8B18BE5ED8E22874A9A72290D7C063F636
191D879ED8F1370BB17F0FA89066DB8FA81771D28FCDC1C5D1CD2B4B7D01E8C6
F345AC7E16F5FF10D4FF63B0992715AB74FD15DE90F9B56638BE387F3A6EB384
4867E78A4F00249A0A2015AA234B00802A8000A01A95801AABFCC7FD8B3099F8
CB955DA6FCCA3C403A3F6BFED2034067E76B440DC87568FB477515404F00D209
C087D4E82E8FA9498CFF073D87F8FF6564FFB1FA4F7B4BB9CD7C471D58DF5FC5
F82E519EF3EB4C05DAFC4F01007FC888C3FEFE5DDC0F5E5A189E7205E7DD5DC2
A690EF869C89BD46206093C717D323339326C415844DCBA8CA5A9C73217F53D1
E7A5DE8001A070DEADE062E9BC8CAA7CD7B8E2CCDE11F904424AAFB0DC141308
C9C81F000A5008C1D9495D0105241513BB1008810042407A3C428678E40FA010
0C95F0D1D99458840CB0640221C6004262341402811005851089508116018510
81CD4B044238428630C020AC198170381216118A92A306C2874723335DB87A61
F22F069E289733096A0060401B74265E0D0114861302786E18AEC300036D1A04
D8182430E0F65DA803810121A0B7F35A80C05E780281576D260CE884B4DE700E
C2A0074EC2251818C78B64A76CE7EA4D131838BCE27926336D66FE0CF959F657
7B30E8C4A20984DE50085AADE0F72224AC6149DD1085C93E76159AB90DBB9C86
5B52BE5EFD7B43F5B4DDEBAF57FF1541B1166736647843160B691E82ACBE1FE2
754221001D79E1E8DB8F479BAE38BBA32B577F3ABFACFEC904008C0048AEAC31
15C005954705000054E0ACBF2A5401E8FC3AFE371D5FAEACFD73F5970A80B4FC
D2D9B9DAB3E62F0A808F11087A04186ECB390183DB3EA80140F9CFFAFF88F60F
A30188F1FFD36ACEE017F418B0D593DF561B6734539B3F790F3980DE2AF6CC32
B5777927AB02D8FB4F03007FD0C0BDA7A6B6DBE4FDE756EB3D7F70D9EFFBF5BC
E0F8CBEB93F2AF2C8DCFFD019B3ABE831CBE8A0FFE15EC22FBE38C888CD48931
79C193532A921765D7E46F28F8BC6477D95755072BBFAADE54F859D9828CF305
63134AB27A870B10F26C40804A4806100883A4AE41D94908190804A8040D040D
0500215E870D7EA9710204C200398418A803130809D12610A2102E502144421D
441006CD8F5A8070242AACEFE9D87F1DCE397E18DAE14AC3011DAE9890234018
2440C0BEFC415A25C0E90502E67528C284A1260C08048260889886000C2A01A5
55D36A21C04CB936B6E6D2C1C5D1712510984320107A1E324207AED42C05D69A
F93566D30EBF5E80D2D0F5660061340419493CFDFB004C0C1DFAC199051EB690
C3415E631C62FE5D88FD674105F4E4411F3B8EA9A60080B1925FDFF1ED9F1727
4F40CF3E37EE04A0BCC7321FCB7D41500C5198D997791EB25E9B21FFAD003056
FF1A6D490000C1C0D7E64179140300E53A044017201500EC82C5CACF57D7D902
2C87824AD65F4200C901D0E9590110E737CE0DF4D78E2F0060FCEF8AF87F9C19
FFCF1DF27B6C007A0D6702BEA336CE7A576D020076AFE8A21203D7A993DBFA59
01E0FB4F0580FC306CD5FCB0B7D7B17D1DB6EEAB7C6FF58E1F088401DE27BF9E
1D187B696D62EE9515097997A687A67E077570051FFAABD81CF2274C9ACD9A14
931B383EA92C6641564DFEFAFCCF8A77957D5979A8EA8FD59B8B0084CCF385E3
12CAB2914348ED1591976A28849C14E41018361008C9C82100085949260C1211
2E24228790809021013080A5C6B7F74B89FB086628849458E410008524402131
A6F5A9C4682414A3112E44B53C1917850A43241402C010130587BE3A0AE3BD47
05A7A991B88EC489B562060C6A814028304C180087EE0F205025B8D0D101009B
321018E03A0450B08180EDBF340D0100804609CE8D3ADA109FEB18DD88D36D06
8766224F370499494502A1C74140812A8155073CCEE7ADD630240C78B8A03A70
3DAB0B09861D46E8C2F06310D4007B11744E03BF83562BB8CDC7040A12A6ACC6
A9C75CFDFBE0B936DE58FD976C5373CE84DD94F3D75FDDC5C96BAF31C515C825
20AB0F18B021C81F89BC30C4EE31500FA970F61418137F092600A8000400F92C
01C22A5006AC443390230064E6E7DA868050DA530948CD9FABBB74010A100400
5221E07DF7BD9E38FDF7D7FA587097364D90007C508DECF428360059E37F26FF
DE556EB39AAB4D8080C7A2762A237297F2751F680540C4FF0A00EC7F2881D067
F7F15D9DB61D286DB166E777EFAFF5B8D4C7EBF8D733FCA27E581B9F73655562
FE15CC7BFF16E3A0AF60F5BB8673E7FE8CF1D43953A2B203C6C41585CC0710D6
167C56E251FA878A43957FACD952F479F9A2ACF38513124B73FA440208E179A9
08173410780510520884EEC1D9C904020D3984241308899D00848EFEE9090817
E29143880708E2D083004B2610621132C4205C8869732A2106E14274F7338925
C339B43334438DA685A4C3D24C1810083000C15543C18001CE4250AE00C1087C
1D6D18D4034385FEA70C283097E0C21218412010E07DD3066B088801066C0126
085832A30908B8F29A30905D85FA6AC240AE5C8D7BC001BB61471DC1A055029C
D11E08AC72588D4E6CB33A8AA2565D5C17122C735A420D561A182A3084E9CE10
06D721789EB1FF4CACFE6CFC6985833ED8F69B0EE76BCCEA7F43C7E70ADE8025
203C08C36EBE7328EF9D48CD83E5238428C616E05215857C420A40C0DF231B89
BE829A8BAAF4C2450000210020508D7AFF058BB1FE1F1A678C01A72353EAF32A
7301F9B8CC0614C9CFE7D804240785100C6BD6CFD7D97F6BFC3F0A0D40137BB1
FEFFAC1E01B67AD29B88FD9BAB2DB3DF575B6737571E8B3F50D9B17BD4F1AD75
14403A7CF10ED37E122CD0BFC4908367DEEBB7E7C4A62EDB0FE6B55CBBEB1BA8
84CBBD761DFD7A926FD8F7E8FDBEBA1A61034ECAF9161B592EF1C38ECD21FF8E
F1D4B95323B30246C614F8CDC9A8CA5C0B85B0A3E48B8A23557FACD956FC79C5
D2ECF3459392CA72FB45E5A71308BDC23414527B86E602060610BA056769430E
410301214312C285C48EE7D2123B1A0AC180C2D994F876679209843802C12520
F93F4705A7AB316199DA46D30406A1E96A1480406560530750083A4C808D200C
3408921521321C93760903DA40A882BE1886D10FCE4DB5A05502D580698371DF
308605B5A1818B868101044E20AA35030686195B8C05066C55B61A57622A836E
D8644347EC8976DBDE3E21589DD1B0C4BE00763236D26E0409172A090D0F9616
AD6109154218A6FCA6AB4FC3521446ACA9967BCEAAA7B0FA8F3CE477DDB8DD71
4C6FB7E25FC7F10508E95558E1B9CA73F5AFA846F90F0A00477A737418C386A3
4979EA2CAA0E9CFB9F5252A94A01810A8401E7090054002EC06A901310630B30
4B7A5CED19DB53EA33C32FF1BF8C08635990CECED7491B30E1C0C7162F186D4B
004AFC3FA6CBE36A32E2FF4F5C5E40FD1FF1FF2426FF0C006C9BDB42792EF948
A587BBABD33B8758154099050004C14FF3DFB083675FEDEF7D7275B71D879311
2EFC77B395EE577AEC3CF2F5849321DFAD88C9B8BA26A9E02ACEC2FB1663A97F
18880FFC9880C4FFC2A8E882E9915981AE91B92766A55524ADCABB58EC0E20A0
21A90660A85C9E535D3C25B92C7740744106928A5409690402D4416A0F030829
80010D2A213399304095C104427A22428644C0004A2135054E7C6D6C44B6D216
9EA56D4CB8050616208CA23280E9304183A0D6340CA00C866B18D405820B9C7E
806F9CEA4720C006B085D6060401412D0C5C3410000D1B0C8C7164561B68AA03
0101BBEF6854053618C0C907C8AA0C207447C8202A8192BD0FDA9E0798502018
ACD65840585FC79F655518C34F73F52F5233B0FAF746D991A3BE1F9FB71E717B
918ED999CC0B44322F0275776BDC5E170037EFF819707C9A0020B5125384E9FC
1A0035282F566B10A4E07606E0108D9F1F868D48ACFB07E1F78A41B92FBDA442
155555D70200CA8009403A3C8D0A80D97EEB5C40E90B90D382A80A2429C8E708
801913BAD54D00EA0D404FA8A97D58FFFF3D4E027A0D09C0773400367DF2BEDA
32070058DA49C5FBAD56017B465B01F0053CFE4ED34409FC744120781A7ED8AF
2972068BBBEF3C1CDB76E3EE7F7F7BC5B6ABDD771CFE7ADC89E06F9745A55F5D
975C780DA7E17E0765A08100A5F0DF182F5D3C03D3888747641F9E9A581AB532
EF62D1B6E22F2A0E00086850AA5A995353322DA53C7F605421810018C042A910
7252A110525161000CB253102EA42087904C43FE20C92538E3CB1158FD5D4333
D5C8B02C359A00B0C1201B20000C22F8785D65A055016C244DE70D6AC38411B6
30C10A04531DF84321C0AC40A04AE80F1B88D0C150072608A80CCCA4212B14B6
F0C0A60C8C7C8106818681A1080620AEAFA308CC3E7D3A278D313A1D9DF29CEA
00BB1FB552E889DB924BE0CA6DA805B1BA70B03D7F9C2DD0AC0E38B685384168
5974BAFEB9ADBCFDD4934BB7AB6118F76595EC71587929D319AF4BDC1E0A891E
8BC733909CB31956FC8CEB9AE1F456AB05001580E1FC8970FC4401001ECB0400
72F17D8B500528BB70C1500058F5938B30433007CD4069F92A12C00ACB2CD4F2
9FABBB35D927F3FFE8E05CED29F7D91720B30265B310BF868F8D7779AF160066
02707CF727D100D454CD1DFAA25A32E60DB5662AE3FFF7D5E6390801E6BEAF76
2DEDA8224F2C542107A6AA454351261CA2ED2FF0A9BB61773980C04F1F043620
1CF27B1440980F5510FD81DB9E3FBDB57CEB55840FDF8C3E16F8CDD2C8D46B6B
930BAE7D1A9DF51D9289DF3364C0115CDF60306539128BC123C3330F8E8F2B0C
5A9A5D9D8BDC41C5FE8AAF6ABCCAFE707E756E4DC9740061707461268180A422
A09003284021682864030A592923C332BE1F1F9DAB26C4E4A93191396A6478B6
7205080C2064AA51B84D208CA1696560A8031D2684193903E60E4685D008835A
20D4570729B5EA00A1822D5C60D9910A017903AA83BEE8A5EFCB7DF9C8270CA2
12304304AA026D540FDA245FC036E4BAE1014FD631148109031B0420CB090113
04B6AB0904E60FBA602E5F5740A107A020B904C3E199E0AB6BAC0288D9BFC605
21811756FFE981F17ADC57BBDDA7D5A373D6A2E3AFD20600470E9D80A61B2A02
96F97CE17CBEE95009589D23F1585259954327A7A3DB5B1AE53F8CC9BF64CA7F
3A3FA604275814007B0AA800F2009AA2EA0BAA9C39001D0240F6DB597641BE6D
B0079D5ABAFAB8DA8BB3AFDAE9699BFAC3C7F83A860C3227808F8DE8F182D101
A847801B09C0F13D9E52D3FB3F0B00BCA40F035D3BBDB972E3EA3FB7A5DAFE69
6BE5B9AC1300B0003B0217AAC5C3B04BD00080820FDD0BBBE73A10B875402040
703DE2DF0425C7993D3D8E84A2ECF8D59BCBB65E4382F11BD723E7BE5E109A74
755542DED579500800C2777006F622FC80597555385D266C6478C6DE71B10567
17655565A039A97C6FF957D5E856AC5E977FB16C666A45FED0D8A22C0D84F0DC
B481E1396574EE89B1050040BEB6F1000161303E9A40C8358000188C20106002
84B150055406758060E60D46E9BC4186A90E0C20B8D274B8405590AA7307B630
412711CDDC0160C02624961907C2D9A90E7A9F00100005AD1234109060941041
2B0313061C3F26264038C16123A6323081C05A7E3DE3CE429BD1D9C375CCDE1D
47735321742214A8120E9B5040E8D0570C50E86B5A3F5CC5E621EE87A2D3B901
CC58548F2F7557BDBD8E6BE7AFEFF8F5576F3AA6580C9A8242724B74BCCE9EFD
73E8050843B69F09BC868C713F1D9C460050F273E54FC0F15EEC304CC2350D8F
6741E6E70300C5350000720095A804380240684C947666716C3A3E4302DE970A
802800AA043ECED70B2844150CEDF8944E00B202C00EC0D19D1F4302F0776AC6
80E7D001F80A8E037F4BAD03003602009BE7B452DB0800E400A2E0FC29C1ABD5
92E12FD800D0ADF9C34F58204035E02824F8E9250A6F265B31F678D03D83F6F9
4EECE9E1730E40F8FCED15DBAF7EB8C9FBBBC107CE7E3D2B20EECAD2B8EC2BC8
21FC8090410301BD0897D0B578012A216C5468DA9E9191B93E7353CBE337157E
AE8180FD0CD51BF22F962F492BFFEF5909E84B8F2B82156A230CAC40D030D040
C8B52904C2805070A542801AD00AC15407A3194698EA402B036D6622D10C1734
0C903FD0A18206822589684B2426E98624F61A1008BC8A42E87D3C4AF5011424
97605306800195810041603080DB75C53404D081C8BD01DC526CEE22E41E05C3
B0790826ABBA38B65C7B00001CDED109502018BA638867CF23C1C825B037A1D6
0600041EA9856A1AF6FB73DC573BEFB3EAE14FD6602C77B99DF3DB39BEC5E9AD
00B0DEA6C3C7A1AC470070FFFF0900E13454027B00AC30D000D010A0F3D3E1EB
022019F70D00A00200009450010000550D28809341C17A4567669F09406B6D9F
39014A7CC6FBB237800058E7B947C3419A87F8352E1F3E6CA9003C8C1D804800
7EFC343A00B1D77FE46B6AD5A4B7D586192D00809600406BB5651E2030AFA58A
39BD4A2585AC554B6A4300D5BFED636FC0977E09FB85A904AC21016160CD0DDC
DA20B042A3BFF7A9A1DD3D8EF802043500C2E596EB3CBFEFEB7DEA6F93CE445D
9E1F957105C7745FC23C3D02E12A4A8F975DFDE3BF1C1F941C89F29E37F208FB
E72495446DCDADBA76B0FC4B75A4E24BB5B3E8A25A935DA5E6A694DA8030D104
C2042A0453251830108560840C2342B3D4F010030ACC23D40F15CCAA02420681
81CE1DE864A2A90C4C5520550549241ACAC080C130010260304403215643A037
1C9A66A8049412F13843878166A86053053AAC30C2058608747EB9F6C32AADCD
0401216033C87C7B10F03E1388BC521974DE1FA03AEF0B505DA1147A42354C47
D26F05867E0C463EA22D7AFE9F58B64375D971D8E2FC7F9FE337B4DA27A2DC17
813C4220CA7DBED8EA7B32053D008043281E636F009D9DB17F3C1400770126E0
3681900E0064A32B900AC000009A804C00542304B01A13787472690196138044
FE73A59784A08C06A722A0F38B22E0D70C6CDDC404003B001F516391009C8204
E0ECC18CFFDFC406A077D1006438FFD64FDBC0F971452810EBB74EC59C5DAE96
0FAB9D0AE4D2EEF18FE0174D60BF3221C039818440634070EB85070D29873E7B
4E76EDBAF3B04FDB4DDE956FAED87EE9BD351E3FF4F03CFEF5A8936197B103ED
0A8EAABA84DC81060262E7ABD89BFEB7F990A86ED89ABA3EA5486DC82853EE05
356A7FF91F944FE5576A57D1676A6DF679352FB54C0361622CD40180500B8302
2803840C80C1B87A40C80410326C79049D44B42903237F20EAC000416DEEC035
884048833A30C284DA50211920A0D502411402613018BD0646C810AD61F031AC
0F1C9DF70741190CD40600A055571BF721A099A73F41A00D6A00C6DD8B8661E7
20770F0A080801F3363730F521004CD94F10500118D750D50D00D888433E4661
AA32EBFE6D10FB3F3C7B0D8EF02AAA17BF37B4CADBAFF8D793FAE9ACE53BB068
840D3CDAFB747ABEF249CA41D92F1F43418A0185521D02244315A4579E57395A
01D4A004586328808B98FE0BABB633AEF2747E3A39950067FC4B628FF7050EB2
3D98AFA502E0AA2F9382F79F388506A0DFE853818D1160EC007C524DEDFBAC9A
33F4651DFFAF9B86ECFFEC5670FAD688FFDB2AF7051FA81D0BDBAAA8134B1106
2C52AB46D64E051AFCD1E303E1138FC17E6B42E03EBB904012840DA9819F8F2A
B0C2A197D7F10E1DDD0FED6BB5714F3980F0FDDBAB765C6ABFFDD0D72E47027F
98702EEE0A0EC5B8C651556CC0D1A547DC9E878CF546D48537E2982A371C52B9
3DEFBCDA5BFA85F2A93080B02EBB5ACD4F29579335108A6A61A0D5810041A020
214396CE1F502148E8C084A20602C287513AD10865A0D581993700108C30C180
017307B6BC81A5CC48200CA53A800D813AA00DD630A04230804085F03140D013
49385EFBB25AC0D90548200ED0263030AF5618588060C0C00205AD0A0002AD02
0804E3366D2A468AAF8CCDC4A86F24FEA00C9E5AE1A15A6CDCA31B71CEA0CC16
8C589ED37A92E084D775ECEBC4F7FAEB1A707C3E9EA6637F96F94CF9CF551FC6
64224B8FC79273752E21200B253F24170B0181325401CA61554804565BEC3C2A
03F9C5453A9EE76A4E67A7490F80C4FA7C4C567A3E46454005205D807A7EE0D6
F5B62DC043D801D8D14C00F67B56CD1B06008C7B5BAD9FF1BEDAC4D5DF04C08E
851FA211A81D4E07FA54456343D0DA71AFDA7200C33A3C31019FFBDFC11E3521
F000AEF75BD4001384B7971A70A412BA791E6F05006C6DB17E77D19B2BDDBF87
A98FB61D547DF7FB29D7D351FAD00FCEE42310B83A72D2CD6C9C6E8B4E46B531
1940C0C9B5EEB955CABBE47375ACEA2BE559FC995A9F735E2D4C0510904730D4
41AD42186F03021542AE1A17052044E4206700200006C3A01046C0E119368C86
426072D1301308840172070C135C69B6BC017307A90AC7B3ABE1B06118B33D8C
1B98D0782436047FCB102612090280CD05306057A21132180AA1E73100812A01
A661A0D501430482008AC0A20EFA893AE0E6207346A2ED8A1D836C4DA6715723
01C02DBF5310FBF7C26B19FB3F327B2D4EE2C9B3397B38643933FC5C914FA133
2F808771E0B1F892AAC601E13A8E6F387FB5E1FC0200383E67FD73EF00370ED1
92703B158FC7602F41387E9700E410FC01A848DC4E419EA2A0BC4AD1F1C5E252
12B4D30B00641E00137BF2189D5D9A7F64ABB07401F2F57CDDE2F9932C33001E
42058009C0A73102EC79357FC4AB6AC5C4661A001B67B5529BE7B655DBE67F88
D5BF1DFA003AA873FB67AA38BF556AD3B4776C0018D1F18905F8BCBF6042804A
E041D8AF2D7901A91248582049C29F6F7EE04609C698F4CCA4C0CC5CB53E043B
FDBC4FA866AB77AA57976E556D37EF57DDF69C5283206D8799033F587BC76464
3D1178064EB1598929B61B1063BAA515AB6D5915CAABF8A23A5AF9A5F2021836
E456AB8569E56A6A0214821508844174BE2D54181795A7C69A401809200C0704
0804091B4647883260E5812030618023B409831138DD77049388DA504D402291
46280C4512D166800241506B503C260C3410003B238710AD15422F586F585F96
10B5323080A043049D34C4C4239D34AC358280FDFD9C93C8EB24C4FE6BD0F7EF
0AA074406EA0E91A2F3DEEEB7AAB359F0B82E39DC6CA7C1C2BB31F1A7142A112
62A012E8CC3695D008C7E7EB6D0040BCCF137EA8346A016040800048C3E3D9F8
9EF958FD8B1102942107905D56A9920A318B20BB10F5FF3CD4FEA15810421C09
08B00180094049ECD1A9799B0E4E6797D55E12852C0B7267A0CC0F983EB69759
02E41E00CC00E8FC3800F08C9A8904E082916FA85593DFD3CEBF6936637F4AFF
0FD5CEC5ED95D7B2CEEA8CD704951ABA556D474E40CA80233A3DB11E9FF75761
CF5920F090050212123037D05835702317BA759F8F4A4E7D3C3A35FD1A777B55
62975705AEE568F74C2C29571BC3E0207B4FA977D7EC522F2DD902D9EAAD3A7A
1E571F1F0AD01B75B871879D78040287634CC331E1CB63B3A010501F4E2D0210
CA9557610D42862FB55270031016A757A8290002D5C178840A861930302C57C3
80361AA1017B10182E0C0B26108CC4A20E1560E859308CCA81618286014C6000
6560800040801108C3586234A1308440803A184C75A015820904A81D43210810
A81022B47D0CA5D08795031B0CA20001A38A80F909080BA00A4C2300362717A8
A9385188E3BE3EDAE7AF1E9DBB4E1D48CC6A1000E2B0F657028020D0197E2805
760BB20FA0A1D7D7791CB23F5577F91100C8FE53FE9B0A200E2A83B7F9783A72
00D908250880121CF54D0054A01458252B3F6E9F8715234FE079F4B86DFE9FEC
0190D55FCE075CB9639706806C10E2EB0800E901E0E3E306B5D200D025C0769C
01F0B89AD4BB295A805F548B46BFA9564D69AE36100073B8FAB7533B167DA49B
80BCB00DF88CD7389515E3A5B6A041480030B2F3935EF0C666B0571C40E03766
5E4042829B5103B7AE935FEF378FCFC8DA9D555882818F38F915431F693C0082
C63970DC09560E4B8304DC140E270110DE5BEBA95EC069B5EFADDFA3DAED3C8A
4CB79F5E19F52E3E53217012D0549C74B33C3A4B6D4A2A308080C9B79EF9D5A8
32FC01B984CFD5A6BC6AB524A35C4D4B34F20736202099380ED5050D048080A6
15021A935CA9100082A1A64260D84008E850C15407AE08150C20A4DB60305CC3
C0000261C070612843058B42D04030430523778050011B9AB867815B9E69FD50
5960C8D00B30E87134425FA912586D2008FB693360C0A3D3D72387321A434731
5C551FF4F1C66A0F87CE7F43476689CECE58FB3F85EC3E63777F34181112B150
09A970647B4BC16374F244340EB142C0553F8E8626246E104AC6E3E9150440B5
2A401F8000A092CE6F3ABEF52ABBFC64BFBF6CEE11A94F08D0D909002A023E4E
00486BB01C173EA2C7ABB500F80825C0AEAC00200138E465B578CC5B6AF5D416
6AC327AD21FF3F3400B0B883F258D21121407B1C0F3659E526EC53EEB35AD800
30A6EB53C7F1796F097B0BF6921D04180E1002D6BC002160AD1434D437F0F303
40706CFC3D31A9E997D8E6C949AF344E7DADE1FC770C80E410489A5607304E86
250C4A615C2D3647C061F6FAAAF737EC56CF2F7253CDD6ED561F0108DDF7637F
3762E6A13C7F0F2060CD9D7BFEA700084BB10596950637840DDB334BD42EE411
0E0106FBCBBE505BF26BD4D28C0A35DD04829148349289B50AC10817C646217F
00852021C350AD10904760C31160A04D8060C2C0155D8923903BA042B00181CA
002030F206860D416BF2602610CD24A2913388D7BB1B8D6B1C3636193B1C750E
0150E80565D0DD27DC500904021E73C3EA3F13611257FF7658FD1F9BB741ED8A
49AD0380BFC7F1AD20B03A3AC306760A1E4386FF0C647A30127CD185D8D443E7
B700800E6FC4FE18EB05231052D8510800E4C2F90BB1C7BF142140391440A503
E7CF2D2CB0D5FFA5DD57F60008005821905E7F3E4675C090408E0F17280CE9F8
8C0980DFA2098843405801780E1D80AF2001F88E5A3BAD25E4FF0768FE61ECDF
1EF2BF2314402724013F54FEDED3547AA487F2426390288071DD9E0A81A77E08
E31901AFC35E843D0B7B122689C1EB29815BBB8DF8663015939A363533BF408F
76FE0C8E7FD13463F2AB01836AC200D72A1E0DA5CD0A038C8B428DB814F5E11C
7C60DCA3D1C083BEF6366EDEEAF78B3723D6F5521D00845E07FCF5C41F4E0FE6
3420432D184058A68190A736A1D2B00D5B643D732AD54124140F0008DBF22FA8
E519956A665249AD4210205021D04C754020D0246420101836E8C4A2840AD670
41C3C000C2705416088461E83D60B8A04DAB03C04057148CAAC2603FA3AA6005
02A1A081C03E03492A027823F1BAB509797A5C79576C4D7ED56DBF7A09E3BE6E
E8F066CC6EBFDADBDF77B4CA338967B51000C00FC9BC63494686DFC82560DB2F
CA814C3072F5E7FE8204583240900148E442DE73C30F0140F9EF0800D1095175
0020893D3AB700401482C87F02814941717C991930F083C78C39006D7F8B3160
E801E8FA949ADAEF39356FF8AB6AD90426005B62F34F5BB51DABFFCE4558FD97
7686FCEF0215F091F2DB375D25046D527BA1080400137AFC2E113EC0F3015A99
2AE0655C99147CDA84C0C3B8B244288941E604A469A8A116E29B71AB5BE3B528
CBDC199F9EF16D15FE93E9FC6202015E05025A15D8808023A2784884690C132A
39371E1028E7FC3858098C832476C7614BF1617FD56ECB7EF532928ACD103A74
F438AAFA1C3AA70765EA0342B992B2590780E0C9BA4BA232D5469C8EBB09D276
1B0EC3F4C82E57078A2FA88300C2F6820B6A5556A59A95546CCB1DE8DE03DD7F
60AA0402012DCB63112EB0CAA08180BCC11038FB3098915834C2065E5D799F66
0F042B0C245CA03A308150AB0E8C5061107206DAB43A88531B00B4D9911918F6
19AEDA62D3CFE3F3DDD45CDF70BD42337E6F10040EA47E432BBE86809DD33BBA
9FC21A3F637FACF4670184A300824F22FB0050F6C3A69EC88252840C18234605
0000149F3F6F028010A8515576E673C6D8FA6B95F5ACEDCBD9007C4E2A0422F5
4529481310BF9665C3016D1EB46B0222005801781D158077018056CA0D00D8FA
A90100AEFEBB0180DDCB3B2A7F9C0F9810E4A67CD6F5B5016072AFA773E1813D
601FC0DEB55301521E6452B0898350C011006E0D87BEC9DFF28ED3C1A103D272
F3EA8C77B6CE7A6FE836E7C26933C74355F3CC384C8BE1C4181A730646DEC054
0726108A00049FD46C35E96880EAB4FD907A6DF976F5EE3A4FD579D771D5FF70
000EEDC0411928D18DA013999B7A785E1EF7CEF3B8EC4D90D3DBD28AD4CEAC32
B50F8945860DEE8517D46A0061361402F3073A64882E40B860F61EE8EA825961
00106A938A192610103650259861830683995034D40180A1D5014C94812D7760
E40F080409175CA80E3019691C2A11DBD137C123C0F5B0CF6D47D4F34BB66AA7
A7DC66F28EA53E96FC4EA2D4760EBBFE6E7AC56F84E31306747E0D009DF443C2
0FABBDACFC5CFDA90A4EA6E4AAA389D9CA1F708A826A482B461F006050814460
9503DB71C0D8F8237BFBE9F8ACF7D3789BCE2E894102808FF33E958215149EA8
184813D0602800D70E8FA209889B808C0AC08A89EFA935D35B2307F081DAF2E9
476ABB1902782EEF8A91609DD569AFB12A2978B3F2DB39C20680697D9EA9802F
7C0C6B076B6E5101CFE33601C0D22055800040DA86250F609F03B849D7BA055E
7EC71D77DC159796F61DE7B9D90F78B4DDB73BFCC10604CB4048CE86E3982831
AD0C00015A5D2070AE1CB7961A13664AD05DC6ADA6A7500B9F7A1C9B6AD012FB
2666E13743B5A1E34E1F0D849100028F02E7693C320884A7F8CEC3293A1BD055
E70685B035AD507920B1B82FFFBC3A5CF299DA5178114040FB72329C8F494500
813030CC80811132401D980A6184AE321008194AE71134108C8D4EA20E46E864
2220600917341002528C44A2D98024EA605D6AB19A1F93831D7FD8EF8FB6DFA7
166E564BCF45394CCE25427A47010812BF1B65BF02BDD1A73132FF460A80CECF
1D835CFDB9AB30DE0400F70E70A868022C198FA5B3040845119387E3BE51EAF3
03148290478865B722B6011757540106D5AA12EA800D407474CA7CA9F5CBEA2F
8341250148E94F005015C86302854D1EEEAABF9E04C42EC00731071000E8814D
40035F540B47BDA9564E6C8E4D40ADB10BD000C0B6051D5005E88C30A09BDABD
B28B3ABA75984A0EDDA1820F4CB6016056BF673813A02FAC03AC8509005604AC
0070A400A42468ED07B805BCF9E67FC53B16AF5DF7586C6ACAE5989434959A93
A7F271B63B4381BA30F81CF71B36EB6828DEE678288E8CB2DA7984079C235FC9
A1923C5D8613663964521B600010080C0A0104FFAC0235E77498EAE1E1A3DE59
E3A1DE86B5773FA2FA1EF4D775741E03CEB0814060D8C0A3B5E6A239691D9A93
3861770B36DB1008DEB995EA48C945B51321C31A00E1D39432BDA1C93EA138D6
AC326818688590A30804F6200CB5840C54083A5C68401D3077309C2103803001
15088FEC0A3519BD096CFC69E9714C3D83937EEA38F30D56EF6834E3100867B0
221F65420FD720487526EA1A6BC6EA6F64F709002A0F02808E2FCECFABC4FF99
787D2E56FD42840025C8019463E51705109383E1A208174233F2D5E9B864BD9A
D3A9ADFBFD65F4978CFC5EE1EEA12B000200B60013003C174014C3A245D3ED00
F0981ADFF3690D8045A3DE420F400BB57E666B94005901680FE747F26F6917E5
B9BC9BDABBBABB3A88F301B362F7A32168920D00B30734FD930980F6B8BE6F02
40AA014FE13E1381520DE07E016BABB07D02F0E6BDEB16F80AF63A93764D1F7D
EC89D10B972DCCF00D38FD7D6462928A4D4D570C0B0ACBCA75EDD7DEC96FE6BE
0D080000474971A4148D20A830AD1C57C91B501D1006C55A1D5C5085B090DC22
B5F02CCA6C9EC7D4BBC81FBC0595D06EDB21D56BEF193514DD783C1E9C0D4904
02138B540BB390755F1593A52B0D9B1187EF4062D13BB742F900081E081DD6A1
5B71412A3638995D8A3A771055AB10A4074180C01D8EC3E1F804820105236410
2018EAA03654589B56AA962416E892603BACFE4F63DCD7CC93C106006EE0F80D
393733F94CE8317E6786FF14C28640B4EC3606061A0070FE44D6FBB9FADB0050
A16F27E2B154BC2693094000A0980940F40194330988159FABBE5879155A87C3
4E6B0050FE4B5D9FB1BC34F6F031AEF0BCB2FD97A0905041DA8005003326F637
0F033114C0C88EEC026413D04BE801781B3D00EFA307A02D4A80ED00800E6AE7
12C4FE2BB8FAF700007A289FCD03546EE21115B86F8A0D00730636FD777CB67B
C358096008C0DD814C023E03E35661ABFCB7B6084B7BF05D77DCF17FEE84DDF1
F2EB0FFC7C3607390013A50EE320BE411D61139E7CFA99ED6BDC5655FB85065C
2110E2D33254665E812A2AABD0FDE0357A1E5C43563B27CE3A338EB7AB612C35
DA5B95A90C6A8180DE73FC1CC2809368B81B8D564C2060775A647E895AE28F8E
BC3D27D47BC81FBCB662BB6A830463776F5FCCF343B7A23E99C89814A49B9370
7B9A5969D8888CFC16B4E4EEC028EE3D39E5EA48718DF2424FC27A6C705A0085
30199D8AE3CC90612CA020B9030D0424153510228DC6242A842141B54090C4E2
783CBF07DF734624A6FD42FEB7DFEDAB877D2669276B18000E1D99A5B9062C0E
63BE43B1A9C71FA1C209DDC39FAB6FD7FB3EACEFB3CBCF747ECA7D1DFF6BF98F
4A00AE495005690040160090AF018004202040E7AF349DBF12A1A2D881631EB6
1980B2AA4B630F1D5D3601C9CACFC71816F0B584025B83050AE35CDAD603C084
9ECFA8592E2F0300EFA895535A02001F00008CFFB9FA33F6EFAEBC57F584F540
08305465447B030053AD00F8577C967B9A0078075769086219F011182B00EC03
B08FFDB9FADF8DCDC277FEEA97F7D1376E9B7FA41CDF0CBE412C99909ADD61D3
9E7FF1252FB7ED9BBF088C0CBD1A9998AC123232555641A12A2EAFD4DB420D18
D839BE83C9317526C998AF7704852A3CA7C3040EA28471279A581927D49A40D0
0A014088458FFAF200ACFEBB4F6A20BCB26CAB6AB969AFEAE479C2E856340F1A
61529140602972122A0D4C2CAED795060308BBB3CBD491A26AB51BB904D9CF30
051B9C8CFE835A75C08128D290345A03A16EC8B031B35C2D440F037F5E17EC00
7C61C50E35DEE79C2D11270939818123876DC8E9AFF7781CDE8770CCEC23044E
020854096711BFD3B99963E02A1F87797E71707A3ABE583C1E4B2A457B310090
8D183FBFB2CA500070F8721DEFD7B7EDDE5BB5434B594F76FFD1D14515D0D199
EDA71210281000323C444A81237ABC6600401F0662288009BDD80588033F0180
5500C07A02601EE3FF4E6802EAA2762D3300B0675577E5B3DD55C5056C507E3B
06A905839FBDC652E08CBE3A09D819C6662059FDAFB739C8B2F2DFF1B38FFF6F
44358606AC8F3E0E7B16F61A8C7114B3AA339BB56879D073BFD7BF0545855F8D
4C4A564999592ABBB048955454D61B1765BF77DC7E9C540D928262DC66CAEDA6
56A3E2A0559A301020942157A16180D214BBD58A61851C610D4B80232C3B0720
EC39A9DE47BFFD0BE845780F57762B76DE7B56B7E80E448312E70512089C1F38
0E9587F911CC2360BEBD064291DA03201C2A3CAFBC010437CC44588CFD0CD3E2
D1BA6C0281B98331B6EA42AE1A0F95B001D5882D686A9A880A00E70AF43C704E
3D337FA3CEB24760BB2D57627178CA7231FDD87556FB869E63DDBE9EB19ECFBA
3EBA012390440CC0CC3E02E14842363A06F37497208D7B0AE260F19C0B0000F0
9CBF5C40BD1010280604CAA002CA91EC63C2CF6A25E5E56ABDA797ADD79F4E2D
AB399D5A86805813800205CA7F9915683B0EACCBEF6B2701B5E3201076013E87
6DC0AF620E4033B5665A2B9B02D8BAA0A3DA8110C073797784003D95D7CAEE2A
E0C01C9512E6AE7CB7F5519FBA34BD4A008CEDF654283EABAC0070F5FF3D8CF5
7FD91E6CED00ACB30FE04EFCC3EB7E9E5B816FE4F50E0E3CE7B20000193C4944
41549EE79BC11649C2801953C64ECCA2BE096B0D1B70D7DD77CF1BE23A3CECE0
B1037F0D8D8DBE169D94A252B272544E61B1FE00D903A0F67EFD7DE5F6FBCC05
08DC876EB54ACEA7B3A803824003018A80EA801B58787025B7B2B29F3D0D1FEC
155008030904742B3E0739FE162A0DAD914768E7754AF5E059019C05C88D3DE6
84A031482CCED3BB1EB37583D276941E776795AA8305556A2F80B0198D4A6EB9
000372093477742F1EC216E9D599950AA73FA1AF010D4EE7E2D45BC859CCC341
1F4188DDCF30764FCE31477761E43680C0C41CA160B5C680E07A8E4FE7B71A43
8F44C8FC78387B18F7120008DC4B70283E0B9B8C72500128077CD000840D3F1A
005400480296E2FFAF0CCE5F613182202E29AA4EFC2F27FC4849906A80B79900
6458C0C4A08C0B670950567E01C0902E2F5D6319701006820C339B80A6F47D5E
CD1DFEBA5A3EB105927FED70004867D4FCBBA93D88FDF7C0E9699E2B7AA83D6B
FAA870DFF52A2BC44D1DDAD29BE7077CB760F0733FBCF3C20363CD458B6A96CE
CFA45F131855AEFD6C805B6F82F0DFE1CCFFC89748C2906F1CDF40B6503289C2
6C2A132BECB766C3C5E0C79E7868CDA429233F3B74F2D077E1F1F1D7A2935355
4A768ECA2B2EC16A525D6F9884757F79636E3329696FEC52A3B1659546101830
402FBB8681D1D64A18E4C17210E3AE0AC49830532134C50AFDEA0A77D51CBB1E
DBE0708ECE18EDD58B433DB9BB4F432152F727CC094DC68EBE6C3D1B613B4A8F
B42D303794FB56A596A8B96C4C42CD7FB4AE4A24ABDE7B4FABCEDB0FEA189B71
770256DA04C86D5A30CA6A4CE61D47330EE3777F2884708CF262A2CE1E085A35
9876338E4F08D0F96D00C0CFE78A6FACFEE53A7462C810841D7E67516138891E
80B3004204128BC5788F44015801C0DB27CF7AEB729E38B56CECA1E3CB63D63D
00020649164A57205FCBBD03DDDABFF5A7B6AFFEFA8FAD5E6DF2559BD77FFB9F
2D5FFECD5F3A357FEC9BE1BD5EF961E6F0F72EAF98F2C1B5CD733B28F7455D94
D7AA8FD5E1CD0395AFC730E5BF6BA80A3F384E15446F50C96717A89143DFBF88
2DC417BABCFBD0227C16D901C8DD804CFA89F3DB27FB6456E0AD333AFC1FF1E2
1FE96B992461B3049501DF509650985061628531167BAEB90B8BF26BE8238F3D
BE76CE82793927CFF90208092A1625C7B49C5C5550520659595367C044DD6113
0805B0D2D75AED1E74BD17DDEC4D67D95200C06B85B973AD1CB9815A1060AA0D
42041D2A9840E046977C6C78C9336D7D30CA8AD8F2CC90E1D9051BD54BCBB6A9
661BF7AAF7DD8FEADD7BDDB54A0010F478F1285D7A1C8F72E4C4800435199B7D
38448525C959A1290825D2D4B02301AAE3D6FDE8C187A331DE86D3F32A31B815
061A0828F71940C8D14060EB6E189C93F13B9D9E57ABD9AFF20DDD17E7278018
EBC761B5A7E38B316F9088DF2B15A0C88202C8C0F389F8B911500901A9B9B01C
1585B26C05D480D8AE7D2BEB34005977F689D497E940321894402034B8339000
90C7D910F4FA1B2F9F85F2767BE0BEBB76FCFABE3BBD7F79EF9D07EEBBF7EEA3
BF6DF22BDFA79F7C30F2E5E71ECD7CF585472ADAB779E98B61835AFE79EED4AE
7F5B32ABFBD7EBE675F97EEDBC2EDF6EFCB4E75F87F46D5EFEE06F1FD8FEC0FD
77F7C7E78E713F937E5CF9F9B96C627E56ADBBFE9CABFE3F080451058CA10804
F6515B81C0788BFF01FC8FE0860C5618463DF3FCF39BD6B8ADA9F40F0DBC1491
505B61282C45C9914E5DC7E90900C78EEF68679A3D0C6C4080E3B39C55661A93
5BB412AC664C7615E1C35D00C99B0FCB83C5A025D62D046DBDDE27550BEC6368
3A7F0336396D56EF6CD8A35AEF3C869021509F55380AA5C77180C0644CFAA1E3
2F8EC95473C3531486B4AAAE58F9A3E15C9CBB27664BBC110616203006D786C7
C4B88147CA7D6C0AE2ED1064FC29E569B2B2CBD511006CAB3F5507BFBFFE7D0C
E767FC1F0B38F1B1643C9F0E00E40000050801B8FA97E27DA00260A237A30867
11A00720064A213A2B5F6DDCB55EC7F194F68CFF79B526FBB8D28B4290A4A0CC
05242C643A9084028F3CF25BF7BBEEBA731E4A6E53F11999049B089B0CE3FD4F
601CEEB1FCAE7BEE717BE037BFF47CFC89878E3CF5C483679A3ED924F0C9471F
087AF4A1FBF7DD7DF75DA3CD45876DBFACF77331A24A65F84AE56ABFE7DFB9EA
FF8300902FE71B298D139454F64060C2850D1704425318651981D00536EECD66
CD3CB7EC72BFE81F1672994048CCC852DC985464F620D800E060379A1502747E
7BAB4482903DEC5663630B8D9B5C680C114A0083626DC60698427CF005061A08
88D5B747607EC0BED3AA0D66217083D3CB4BB7A80F507AECE47E5875DD7944F5
DCE5A33A6CD9A75E59B259CD3E15529B69B724DCE87494DEDAF9CC249C4EC899
90D00A416000478DC72C86785E61ACFFB31188997D9DDDC76D3E96C80CFE758C
CF7385E7F7E06ACF9F4F55120363193191F13FCF2360021000D0094053FE5B57
FD8AAA2A2800842219293AFE97565F4900F23E8D09403A3FF3025CE5799F8FF3
3182C20A00FDFA7D072FDD7DF7DD6BA100E6E1F3300336C504C0385CE9D42360
43618360FD60ECEEE32ACFC7C4380094DD7EDCF5C701204C5E3367C5CF9E752A
B0FDB49F1FC9059CDF86EF0041C037586060D4530D20507AF13F82F903010213
8AFCCFE27F1A138ADCB831B97DE72E87BC0EECFE5360242A0CE841480210B2F3
0B55497985C3FDE8F51DBFFEA615E96367479BBD19CAC05004AC7BB3FB8DC63A
38AD08002840522C1F8E91675A3424B257748A9AEC13A0261E39A7A61D0B54B3
4E0629B7B03838190EE9301D52AFBAA631F696F8DBE6F4A6430A10B462A03CE7
2A0D93D59A8EABCD5CBD799B2183060236F3B07F9FB783D125C89F49A7A6B11A
A24D83C5F8DE747C1B002CF29F00C8C36A5F04E72F31577F717AEBF57480D1DC
43E7E5D59A0094B66071744900CA6B653A1043009918346FF5BAFF77F73DF7AC
01003EC5FFFF4C18577D2A0026F146994ECE019F747C7E4658DA6B0F63CE8971
3E577C96F998E99755BF096E538D36D4D7FFB36EECC1DFFDBFFE4F6020570183
15089250940A03138AAC3030A1D816F6F17DF7DF3F7BC4D8D141078F1FFC8F90
98986B51A830246766A3C25004898A9EF43AABBE9DE337B081853060EE815736
B9B0CE6D350D833A203060C030A1082B2033E434428140C88545A16F3E007DF3
279140F3E3CA0CE78CC12CBF5489DF59926302D00E06D6841CC3040E04D52BB4
E9A874569A21D94D3898F17B5D20E070100D843C00215B03E134BA048390CCA3
C48F059468313076136AC8E01A8FFB86FCAFC0C8AF0A5580322E7BFD4BF17796
992BBE387F39FE5E9AE781CD75260049A94FF60570A5E7AACF0A800C071100B0
39888A41CE026008E03A655AE13DFFF22FAB4D0530CB028031B8CDD5DFC5747E
F6A4B0AFBF0D8C0A929F136B6FBFECF19731E08E7AFA9D8EFF4F4683C45956E9
25C91719C6280A41F207A43713370402138A6FC39850ECFFE0438F2C183B7952
E411DF637F0D8D8B43858125C76C5418587224101CEF5AB3DFC9C6CE367BAB03
0336C09826EAA0AE3220148CDC017BE64521E4622B2D2D2AB7589D43CC7E0252
9D3BEB3410905760A9CD88CB0506C6AA4E6796A49C38BD55AACB8A6D7D4EA0C0
2B558736ECDE33A47E19D440A156053E80814F4216DA86516900A48CEF85D7C2
0CF95F01F95F01F95F01F96F00C0EAFCE2F872DDE8B553C7FF32D957DA7A65F4
3755011580CC01E4EB040084837401D2F9B7ED3F74B5C587ED42A00056DE71E7
9D73F17F4C05C01080F2DF1536D874FE6EB8B68771C57FC7747CEBC04FE9EA93
F29EA37301FFC91F7DE78F73F40E58132F5638100A0DE50FF89F4BBA53DEB1A6
CB0A033F0C2EBF6BDA74D5FCA5DCC3E0F76D585CBC8A41C9312D3B17A3AA4B74
C6BA318E5F0704968EB70ADCA6090878654D9CC604196572097E06AFAC99B371
A688EA000EC495341FC69A3A2D0225BF73E8C86386DF500845387597253FC875
C2004ECC95DA26F5B9EA6B8322305500C3040141ED15AB391CB9CEEACEFBA6F1
391A57FD406C35E6DE0136031D46FDFF14DA86F53E02288F4C24607391732964
02B0124781C3CA1D586A669A76603903409C9D925EE6FFC9B82FE9F61358C8EA
4F05C08D407C7CE9E6AD5F63F5F7BAEBAEBB966267EA6CFC9F4E83719C37A5BF
D5F9B9005837F43097C410D23AE4D319EBDF82CC6908088EF2075408923F6092
87F55D4A40C680AC300C7DF19557D76F74DF547E3624E007961CE352D3543A36
35E5970008EC6673B0F2EBC71CB4BA5A1FE3D7B2234E0060BDB2598620302060
18F306341D2AE8BC8101821C58362C0C00F0835C3F8ED55980C044A351B2BB1E
108C9040C2010101B71173E7208FF2D612DF747ADEE67334CE1E305E87E76121
707E42C93719DD81184E1A8C2DD9F1D874C56ECE8600E07BCED8CF2F9B7C6437
A038BF1CF94D27970120725A90280639228C8FBB4E9EF60724003742FE33CBCF
0420637F71FE3EB8DD1566DDCCD350475F430781DE822E717BFFCAF6409070A1
A184A2E40FA4659915066683291947366FD566072A0CE7FD42832F87C727AA84
F40C959197AF0A4A4B0D1834C2F1EB34C1586AE1DC114763A9CC6A5A1D988934
66D369458000E5352D1F00C8434293923B0796050BA35CC7EA7C02093D9DDD07
20984360A84020E82C3E643D4D54820E016CCE6E24F6A2340478A5B31BF723B5
95EA366481412CC67B5375A42004C840A521070A20291F730339F21B75FFB349
D92A3C234F25010839C5A5DAA80876EE77B79DF2432797C11E22FFB9EAF336F3
0292E413584863900C036529B059ABD619E8245D05F9CF521FCB7F747EC6FC6C
39E7382FE6820878FEBF323FC4B050EAFA8E0678384B7B3F337E3416085407FC
4058138AD60A434FAC34E33AF5E8E1ED7570CF570111E15775C9313D53EF722C
86FCB55FF11B72FCBAA5B1DAE6183E6E05021369B412DD566B1A41801C810081
35F77C0B0C0408A168BC390D897E422B04ECBF0710E21832C05925BB1FCF38DE
040225BFC0C058FD0D35A0577E80449BBE5F8AD7952A7E6D329C3F0D9685EF99
C704204A80C500141540192C0313A2E300844000213025078D5BA5C8F87BD591
FAB2AF9F8E6F757426005902B48605BCCD2620E60718026046C0B5871F7DEC2C
E4FF22C87F3A3F637E66FBB9838FC93EC6FBCCFFB0A66F2FF9F9FFED5CF57F66
CE7EA33FA7B1F9036B87225B9625A1C8A411F7307055E9FDEB264DA68E9E30DE
EFE089437F0E8E89BE16855D8E89D8E5985D50809263B9D1FF6E59F11B7BBB1C
4E2F261060C582560200D09868A3150106040241C01377F2D98B0FCB416E80AB
72368CF17970A621D54F40AA9F855208857C8F25106CA53E23A94710C4C1C199
70648E8146A717339CBFEEEA9F0D00E4030045F81DB4FC37015056510110D45A
645C84CEE04BFC2FB57E76F28902E0F3B20740CEFDE3EB650310C1C0E7F9DC52
B72DFFF6E0238F9CB9F3AEBB660000747ED6F6A9DCA48557E4BE75EFBEFD419F
CEBAFE8DBCE667FC7C6381201D8ACC1F58138A5C59DE8131C1D4EFF1279FFA64
E2F4A9C13EBEC7FF2B3436CE2C396619254738C78D0060757CDB6DB37456C69D
752604EAC080CAA01E100803ACC830431D40A2D32C4008C2441E0308A2100C20
D45507A51A0694FB747C5EA922F4EA0FF9CFD59F80B1ADFE2600EC1D5FEEFB9C
3EA89B7964A5A794974D3EB2D213007C9CCA408E08A7C3F3EB040C78EDB5099F
CCFEF281264D4E42FECF81FCA7F333DEE7AACFD29E487DE9DF97693DCE9AFECF
D8997F8C3FADB1E1823D10D8A1C884222B0C8C37DBC3063CF7FBDF2F5CB86269
2A2A0CDF1008312839A6725353519196C802847A8E6F3ABD7DF9CC7ADF111098
782B81B1F596529C2B72215B73B50106303A2B7307745C1AE53B63F80024F0B8
91E70432FCFE28F75121C4DB8080DC016BFE2CFB9971BF487FC285DFBF085682
D59ED6100036EFD9A11D9E357E3ABA8CF6A6F3CBF65F1902CAE7E52830C90BE8
DC80BBC7E5D7DE7A8B71BF1BA4FF34ACFCC3FECF1D7750F2336FC3922FFF1FAC
E7F839A5FE8FE119B7E9F7B8192048FE802DCBD684221B4ED87936181FDC955B
766E2B3D1312F03D4B8EB1A8307053535E117A1074C9CC6894B939AB2DB71100
1A02661CCEAB80800E4A2310C40408A20CB2B1B92A13960E0B48C37420840B0C
19CE0108E1E8E34F444CCF29BF7C3E0BC6AFCB070038E5A9184AE37ACE9F83D6
6C3A351D5D00C0559E537DE8D872F88774FAF14A0520AFE57DD7C993FE74EF2F
7E71941D7FB071707EC6FB6CE195F65D0EA291315D92E0B336F338F7E9DFA68E
FC63FDD98D0582B5439140E00793094566A2598B669C3AAC5DC7CE5BB77AEEAC
3C171E7299408867C91140C8475392A31AFA8D1EA3AA10631C4EB3C2400381AD
BA16B3AA030221B7AC4CE5969629C2201B5702812640F04D42B90FD9FDF8BC22
BCA6143061EC6F38BF230094E2399AEF391F1B0064971F137A12FF8BA3F3CAC7
79251C7447E096CD979E7AE69938383DDB7DB9EA0FC7FBC7AE3EF673386AE691
55DFD9CCF3637DF29DDFA7DE3BD0D8FC81A3842281C03895FDE7DCC3D0F3DE7B
EF1DDDAD779F3DBB0F7A636C1A2B0C2839A6A5AB0CF42014A1E4783DE7B73AFE
F56ED70782B172D381B5E94CBE98B1BAE7C128F30D2BD3F7F978084286338081
3FF20851D8DD975650AC07C08AFC17C797ABFB5E371DDBD3A159C7A7AC97CD3E
D6B16012E7CB68F0BE2EFD2F42EA7BC1F1E7C2F1B9EA0F30DF3347997DAEFAF6
DB759D653DA7F3FE53DE81C602C19A3F6882DFCC3A038115066E50F9F8C1871E
9A3276CAA4D3878E1FFED7E0E8E8AB91BAE498814D4DF9283996692034D6F1EB
BE0E2B32566B9AACDA848015045CD50B5145D0570201B70B20F70BA008B8E55A
9B96FEE5F83AC3C2D2317F0040084CC9563100427A41115EC7D797A902289AB5
98DB2F73FEE9F884800CFF90C7050C54006BB6ACFBF6E1871F0E84E32F854D36
577D366B59E5BED4F31D65F69D72FF9FF2B177FE9086DE81C6860BD61D8E5261
E00C04AE7094B8BAC28029CB333F5DBC20E684DFA9BF86C4C4EA92A3EC72640F
C28D61503F3927AB337749D20404758100478783D3D9B5F1B6E9F4747C963B69
A576160E2084A5E7680B08F5D5ABBD150032D68B8A808F531D50156CF0F4B8F6
61FB0FF2B1EABBC1F167C1F147C37AE13D607255CEE5B39FCBD7503DDFB971C7
E99F3F9977A0B140B0CF1FD8B72CB3D435F085975F59B474F58AB453E7CE7E13
121BA7A2315835250B25474C5AA643369489E7E3F6F2DCFEBE0180DAD5DDFE76
434E6F0F01B9BF6BDF5A5B194F1C9D0940F6FF0B000888997327FFDB2F7F79FF
4133C937018ECF8E3EEEDC230C99DD973DFA6CD6B266F79D63B97E321F73E72F
D2D877E04640B01F99C60FBD24149FC56D4E59E6D8755D6178A779F30D9B766C
AD3A131CF043686CBC8A4B4955A9DCE5C81E8446387D2D04EAAFE6F68E5D0225
D03843B5202F17F2DF4397FFA4979FB7D9D0C3565F3DFC63C786CB6FBCF15214
56FD6570FEA9707C6EE1E5DFC5BF917FABA3ECFEED73FE5E633F51CED7DDB2EF
4063F307F6094596BCA4C2C0D89873EC981D1FD9A16BD7DDBBF67A7EE5171A74
25CC04425A3680801E84FA2B3555C18FEBF825C853D04EFAFBD493FFD2E8E379
E490721DDDFFBC29F767C2F939BD87729FEDBB4C92DACFE0BFDED15B4EB97FCB
7EFC9DBFB8FD3BD0582034945064AC6CAB30DC7FFF2FA774EDDDFBE83E9F7DFF
E11F167A8DBB1CA5E458806DCF3772FEC6ADF6540586D35B6DDB3E2F9DF09379
7EBCAD4F015A3FF76F8F3FF608E5FE2CD85833BB4F8059CB7A543C327FDF19E7
3BFDE4B67D076E142E381A99D604EF165B61995094A128DCC3D0074351168D9D
3431EAE0F1C37F0B8A8ABA2625C7AC3C9CE5886DCF02847FC4F1098198A478BD
FACB8C7F9DE5F7DC74AD67CFB6F118E039FBCE3BEF1803C7E79E7D36F330CEE7
EF6A8DF39DCD3CB7ED47DEF9875FEF1D682C10AC09455618AC2DCB526118F254
D3A66BE72EFC34FFF859DF1F82A36354247A1092507224108A0004472B7B631E
DB75C88B3DFDD7E6AD73FBCB1A0F8FEF274F1F5673DF7DF72EC28A3F023610CE
CF84264317EB619BDC7CE5E8AC3DE7A61DA74F38DF0107EFC0F5C205FB190832
324D128A5C6DB94D96C936B62CB7878D79FEA597DCD76D597FC137D0EF4A704C
ACAE30247397237B10D094D418E7CFCCC5E12728ED2DDBEAFEED3B2D5BA7DF7B
DF2F36D0E961DCA7CF5E070E62E18A6FBF53EF7A23B99C71BED3059CEFC00DDE
81BF277F20A734C91E06024186A24C7BF7FD960736BA6FFEBFA78302AE84C4C4
A958CE51C4598E39DCF66C17F317A3F187E6E6E1FE97251BD77FDDA1E3876170
7A17189B7858B5B0C6F8F6C76B3BBBF89C1F6FE73BF023BF037F0F109AE077B0
1EDBC6842213747DB00BEFD30F3B75F2DBE9EDF157BF90A06BBAC2C05D8E0002
D5012D3B3FE7DA8BAFBF1E82012AD3E1F8AD21F5091489EF9997E01C3EFE0CFB
049FD4F39D72FF47FE1038BF9DF31D9077A0B1F9036B87229D956DB7925064FE
8075FA69BF7AE0811D83470CCDF33EBCF7BB8088886BEC4170779F590AC7EF06
C767298F7907C2844ECF3C04D586D3F19D9F47E73BF01379071A0B04476730BC
0C276F016B8FBF855B73A7FFFA37BF41494FC7F77476828346A767DE81C93DFB
0E3E3904C6B969E727F28170FE1AB7EF3BD09884A29CE1283BEFAC9396A5479F
9B73B8CAF32A4E6F7F9CB6D3F16FDFCF99F32FBF45DE81868040E765EF815419
E4D83619AC4A67176328614DEE391DFF16F9CF77FE9ACE77C0FE1DB002C1D1B8
75D9BFC02B8D90709EA8EBFC1C39DF819FE93B2040B087811CD926ABBD7D56DF
59CFFF997E209C7FD6EDF50E3494401420381DFFF6FA3C38FFDADBF01D709427
70F4D86DF8D638FF64E73B707BBC03D783C0EDF10E38FF4AE73BE07C079CEF80
F31D70BE03CE77C0F90E38DF01E73BE07C079CEF80E377E0FF034221557E3848
67AA0000000049454E44AE426082280000003000000060000000010020000000
0000802500000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000081414
133B0000000B0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000101002640403E78828380BCBBBAB8F7E7E7
E6FF8A8A82E01114115F00000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000503
01203737345F6B6B699FA6A6A3DDD7D8D6FFEFF0EDFFF2F3F0FFECEAE9FFE3DF
D8FFD1D1C5FF999888FF515149BE020203420000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000005221E1B3D59565588A4A3A1D9E0DF
DDFFEEEFEEFFF6F5F4FFF0EFEDFFE7E3DBFFDFDACBFFD9D3BEFFD4CBB2FFD8D1
BFFFD0D0C7FF9F9D8CFFB1AE9CFF8C8A7CFF1E1E1C8100000015000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00022C241F346964618CA3A1A1CFD8D9D9FFF0F1F5FFF8F8FBFFF2F1EEFFE8E5
DFFFDFDBCBFFDBD4BFFFD8D0B7FFDAD3BDFFDDD7C2FFDFD9C8FFDED9C7FFE1DF
D7FFE1E2E2FFADACA2FF989584FFACA997FFA9A696FF100E0D7E0000002C0000
0006000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000001204000F4C443F5D999390C9DDDB
DCFFF5F4F8FFFBFBFBFFF5F4F0FFE4E0D0FFD7D1B4FFCCC29AFFC7BA8BFFC7BB
91FFDED7C3FFE6E1D2FFE6E2D4FFE3E0D0FFE3E0D3FFE2E0D3FFDFDAC7FFDCD6
C5FFDCD6C9FFBEC0BAFF959382FFA19C8DFFB3AE9DFF36342FA9000000640C13
1576121F23760000000D00000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000008101704534843339D9491ABD1D0D1F4F2F2F5FFFAFAFCFFF9F8F7FFE7E2
D4FFD8D1B3FFCFC49BFFC7B987FFC5B77CFFC6B56FFFCBB86AFFD0BE68FFC3AF
59FFDCD7BFFFEEEBE2FFE6E2D4FFE0DAC9FFDCD6C2FFD9D2BBFFD6CDB3FFD6CE
B6FFDDD9CBFFCBCDC8FF9A9686FF9F9A8AFFADA793FF435A66FF144562FF518B
A3FF265168FF051C2A3E00000009000000010000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000004B44
4526F0ECF1FFFDFCFDFFF9F7F2FFE7E2D0FFDAD3B5FFD0C6A0FFCABD8DFFC7B8
7BFFC7B66EFFCBBA6DFFD0BD6BFFCFBB65FFCBB75DFFC7B258FFC2AD5AFFC1AF
63FFBCAD72FFDAD1B9FFDDD6C1FFDFD9C6FFE0DCCBFFE4E0D2FFE3E0D1FFE0DC
CAFFE5E3DDFFDDDDDCFF9C9A8AFF9E9989FFB0A893FF50666FFF0F4566FF4681
9AFF23536CFF0830457E0000001A0000000A0206050100000000000000000000
000000000000000000000000000000000000000000000000000000000000C0B5
8846DAD3B7FFD1C79EFFC6B882FFC5B474FFC8B871FFCFBF73FFD0BE68FFCEBB
62FFCBB860FFC6B35CFFC2B05EFFC0AF63FFBEAE68FFBCAC6AFFBBA963FFBAA9
5FFFB5A351FFDCD6BDFFEEEBE3FFEAE7DCFFE7E4D7FFE4E0D3FFE0DBCAFFD9D1
BAFFD8D0B9FFD3CDB7FFA8A699FF9C9888FFB0A792FF5D6D71FF083D5CFF417B
95FF21566FFF0A38506B00000008000000050000000200000000000000000000
00000000000000000000B7AA5D1BBCB06A4EC8BA727EDCCE84ABDBC97CD1D1BE
66D3CAB762EACFBD70FFD1BE6BFFCEBB64FFCCB860FFC6B25EFFC3B162FFC1AF
66FFC0AD69FFBDAC67FFBBAA62FFB9A75BFFB7A554FFB4A34FFFB3A14EFFB1A1
4AFFB7A554FFBDAD6DFFE3DFCEFFE0D9C6FFDBD3BCFFDAD2BBFFDDD7C2FFDCD5
BDFFDFDBCBFFE9E9E7FFB6B4ABFF999584FFAFA693FF6E7A79FF073858FF3873
8FFF1E5672FF0B415D4F0000000000000000000000000000000000000000BEB1
7746C3B87F7ECABD80C3D3C580ECD2C172E7D4C166E2D7C163D9CEB84ECBCAB1
40BEC6AD40C8C7B462FFC5B266FFC2B168FFC0AE69FFBEAE65FFBEAA60FFBBA8
5AFFB8A655FFB7A552FFB6A451FFB5A351FFB6A454FFB7A55BFFB8A861FFB9A9
65FFBBAB6DFFB9A969FFD7CFB4FFE8E4D7FFE9E6D9FFE8E5D9FFE7E4D8FFE4E0
CFFFE3E0D0FFEBECE9FFC3C2BBFF999685FFAEA694FF7B8380FF063454FF336E
8AFF1B5470FA0C44624B00000000000000000000000000000000D0C48896D5C4
76F9D4C067E7D4BD5CD7CDB54AC6C9B142C1C5AC3DBEBFA735B9BCA433B7B89E
2DB2B39A26ABBCAB5AF3C1AF64FFBCAA5CFFBAA857FFB9A756FFB8A656FFB8A5
55FFB8A65AFFBAA85EFFBBA964FFBBAB69FFBBAB6AFFBCAA66FFBBAB62FFBBAA
5EFFB9A756FFBCAB5BFFBFB071FFEEECE3FFEDEAE0FFE9E5D9FFE4E0D0FFDED8
C3FFD9D1B9FFD8D1BAFFD3D1CAFF9E9B8BFFADA694FF8C8F87FF05324FFF2A62
7FFF17506CF70C44623C00000000000000000000000000000000C7B560B7CDB4
45D2C4AC39BBC0A836B7BDA432B3B79F2FB1B49C2BAEB19827ACAE9522A7AA92
1DA5A48B1297AF9938D2BDAD62FFBBAA5CFFBBAA5EFFBBAB62FFBCAC68FFBDAC
6CFFBDAD69FFBDAD66FFBCAD63FFBDAC60FFBDAB5EFFBDAC5EFFBEAC5EFFBEAC
5FFFBDAD5FFFC0B068FFB8A75FFFD6CCB0FFDDD6C0FFDBD2BBFFDDD7C1FFDFD8
C3FFDFD8C2FFE7E3D9FFE4E5E3FFA3A193FFA9A393FF9D9C90FF06304CFF1E54
72FF174F6BF70C44623C00000000000000000000000000000000BFAC595FBEA5
37CAB59B26AEB39A28A9AF9623A6AC931FA2A9901CA0A68D189EA58B159CA389
139BA2860C91A58B1DA6BDAE6CFFC0AF6EFFBEAF69FFBFAE67FFBFAF64FFC0AF
61FFBFAF62FFC0B062FFC0B063FFC0B064FFC0B067FFC0B06BFFC0B06EFFC0B0
71FFC0B072FFC0AF70FFC2B270FFC3B67FFFECE8DDFFEEEAE0FFEBE8DDFFEAE6
D8FFE6E1CFFFE8E5DBFFE8E7E2FFADAB9FFFA5A08FFFA9A596FF0B354FFF164A
6AFF124B67F60C44623000000000000000000000000000000000B8A75401BDA9
50A4A99016A8A78E169AA78E1799A68D1697A58C1597A58C1596A58C1795A68D
1995A78E1792A58C158CBCAA5AEEC5B56DFFC3B368FFC3B368FFC3B369FFC3B3
6BFFC2B26DFFC2B270FFC2B372FFC2B273FFC2B372FFC3B36FFFC3B46DFFC4B4
6BFFC4B46AFFC4B268FFC7B76FFFBBAC5DFFE3DDC9FFE9E5D7FFE4DECDFFE0D9
C4FFD7CEB3FFD5CCB0FFDCD6C3FFB8B5ACFFA39D8EFFAEA997FF244959FF0C3F
5FFF114A67F40C44622D0000000000000000000000000000000000000000BDAC
5D48B19A30B2A58A0E95A78E1893A88F1B93A9901E93AC932094AD942295AD95
2495AE952593AC931D85BBA954D6C9B97AFFC5B677FFC5B577FFC5B577FFC5B6
76FFC5B674FFC6B772FFC7B770FFC7B76EFFC7B86EFFC7B76EFFC7B86EFFC6B7
70FFC6B772FFC4B674FFC4B576FFC2B277FFC1B382FFDFD8C4FFE4DDCBFFE6E1
D1FFE5DFCCFFEAE5D7FFF3F1EFFFC4C3BCFF9F9B8BFFB3AC9AFF355561FF0334
57FF104865F50C44622100000000000000000000000000000000000000000000
0000BDAA5585AD931EA0AD942191B0972793B1992B93B29A2C93B39B3094B49D
3293B59E3492B49B2E86BCA952C0CBBD81FFCBBC7CFFCBBC7AFFCCBD79FFCBBD
79FFCBBD78FFCBBC78FFC9BB78FFC9BA78FFC8B879FFC6B77AFFC5B67AFFC5B6
79FFC7B878FFC7B977FFC8BA74FFCDBF7CFFBEAF63FFE7E4D3FFF0EDE4FFEEEB
E0FFEAE6D6FFE5DFCDFFE8E5D8FFCFCFC8FF9D9A8BFFB9B19DFF4A6469FF002B
4FFF0F4764F40C44621E00000000000000000000000000000000000000000000
0000BDAB5D2EBEAB4DB0B29B2A93B59D3392B7A13893B8A33C93BAA53F94BBA6
4294BCA74493BBA6408BBEAB4DA7D0C386FFCFC284FFCFC082FFCDBF83FFCBBE
82FFCABC82FFCABB81FFCABC80FFCBBC7FFFCCBD7DFFCCBD7BFFCCBD78FFCCBD
76FFCCBC76FFCCBD76FFCBBD77FFCBBC76FFC6B874FFC7BA8BFFE2DBC8FFDED7
C1FFD8D0B5FFD9D0B6FFE2DCC9FFD9D9D2FFA09D90FFBBB19FFF5A6F73FF002A
4DFF0D4563F60C44621500000000000000000000000000000000000000000000
000000000000C3B16376BFA846A5BCA54193BEA94894BFAC4C94C1AD4F95C2AE
5195C2AF5395C3B05290C3B05596CDBF88FFD0C28BFFD1C28AFFD1C388FFD1C4
88FFD2C487FFD2C586FFD2C484FFD1C382FFD0C280FFCFC17EFFCDBF7DFFCCBC
7DFFCABB7DFFC8B97DFFC7B87DFFC7B87CFFCABC80FFB9A964FFE1DAC6FFEBE9
DDFFEEEBDFFFEBE6D4FFF1EFE7FFE7E8E5FFA5A194FFB9AF9CFF667878FF002C
4DFF0D4563F80C44620F00000000000000000000000000000000000000000000
000000000000B9A6550DC9B767A3C2AF519AC4B15796C5B35B97C7B45E98C8B6
6099C8B76298C9B76397C7B56091D0C283E6D9CD96FFD7CA90FFD6CA8FFFD5C9
8EFFD4C78CFFD2C58AFFD0C388FFCEC086FFCCBE85FFCBBC82FFCCBD82FFCDBE
83FFCDBF81FFCDBF7EFFCEBF7BFFCDBE79FFCFBE79FFC8BA70FFCEC494FFF0ED
E5FFECE8DCFFE5DEC9FFE4DFCDFFE9E7DEFFAAA89AFFB4AC99FF727F7EFF002C
4FFF0C4462FC0C44620900000000000000000000000000000000000000000000
00000000000000000000C4B46965CEBD6FB3C8B7619BCABA689CCBBB6B9DCCBC
6D9ECCBC6E9FCDBD709FCBBB6B92CFC183D1D7CB99FFD4C893FFD3C691FFD0C4
8FFFD1C48FFFD2C48EFFD2C68DFFD3C68BFFD3C689FFD4C789FFD4C78AFFD3C6
88FFD3C585FFD2C382FFCFC07FFFCBBD7CFFCABA78FFCCBD80FFBFAF74FFD4CA
AEFFDFD7C2FFDED7BEFFE2DCC7FFEDECE3FFB0ADA2FFAFA795FF798382FF0131
52FF0C4462FF0000000000000000000000000000000000000000000000000000
00000000000000000000B7A44F0BCFC17DADCFC074AACEBE73A2CFC077A3D0C1
79A4D1C27BA4D1C37DA4D0C2799AD0C287CAD8CD9CFFD9CD9BFFD9CF9BFFDBD0
9BFFDBCF99FFDACE97FFD8CD94FFD7CC90FFD5CA92FFD5C891FFD2C690FFD0C2
8BFFCEC089FFCBBD84FFCBBC80FFCBBC7EFFCBBC7BFFCCBD7BFFC4B46AFFD7CF
A8FFF1EEE6FFEEEBDEFFEFECDDFFF7F7F2FFBBB8ADFFACA492FF7D847FFF0A3B
5BFF0C4462FB0000000000000000000000000000000000000000000000000000
0000000000000000000000000000BFAD5F46D7C98ABED2C580A8D4C683A8D4C7
85A9D5C788AAD6C989ABD6C988A3D5C98EBCDFD5A5FFDED3A4FFDBD1A0FFDACE
9EFFD8CC9BFFD5C996FFD3C794FFD3C795FFD4C898FFD5C996FFD6C995FFD5C9
91FFD4C78BFFD1C584FFD2C482FFD1C27FFFCFC17DFFCEBF78FFD0C07DFFB9A7
5FFFE1DCC8FFE1DBC7FFDBD2B7FFD6CEB2FFC4C2B7FFA9A291FF868A82FF1446
64FF0C4462F50000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000D1C3859EDCD098BED8CB90AED9CD
92AFD9CD94B0DACE95B0DACE94ACD7CB96BAD9CEA0FFD8CDA1FFD9CEA1FFDACF
A1FFDBD0A0FFDCD1A1FFDFD5A7FFE0D6AAFFDFD6A6FFDFD4A3FFDBD09DFFD9CC
93FFD6C98CFFD2C589FFD0C287FFCEC083FFCBBD82FFCABC82FFCCBE84FFC3B4
76FFD0C39DFFE7E2D2FFE8E3CEFFF8F6EDFFCDCCC4FFA7A18EFF8B8D87FF1447
66FF0C4562F20000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000BBA8552EDDD19FC8DED29FB8DDD2
9EB6DDD29EB6DED3A0B7DED3A0B4DED29FB5E1D7AEFEE3DAB1FFE3DAAFFFE2D7
ABFFE2D9ACFFE4DBB4FFE2DBB2FFE0D6ACFFDED3A7FFD8CD9DFFD4C894FFD1C3
90FFD1C38EFFD1C38BFFD1C388FFD2C489FFD3C689FFD3C587FFD2C481FFD4C5
85FFC0B16AFFEEEBDEFFEFEBDCFFFAF7F0FFD8D8D1FFAAA391FF8A8C85FF1044
64FF0D4562E80000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000CDBE7E83E6DDB3D2E1D7
A7BCE1D7A8BCE2D8AABCE2D8AABAE1D6A9B8E3D9B1F6E3D9B4FFE0D7ADFFDFD5
ADFFDED5B0FFDCD3ADFFDDD4ADFFDED4ACFFDCD1A4FFDACE9DFFD9CE9BFFDACF
99FFDACC95FFD9CB93FFDACD95FFD9CD95FFD7CB91FFD4C88BFFD2C486FFD2C4
88FFC1B270FFCEC39FFFD9D0B6FFD7CEB1FFDDD9CFFFACA494FF8B8B84FF0F44
64FF0C4562E60000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000B7A54E18E1D8ACD2E7E0
BAC9E4DBB3C2E5DCB3C2E5DCB4C1E5DCB3BCDED4AEF2E1D7B2FFE3DBB7FFE6E0
BFFFE9E1C2FFEAE3C3FFE8E2C0FFE4DBB1FFE1D6AAFFE0D6A7FFDFD4A2FFDBD0
9DFFDAD09EFFDACE9FFFD6CB9AFFD3C694FFD0C38FFFCFC28CFFCFC189FFCEC1
84FFD0C185FFBFB06CFFE9E5D5FFF8F6EEFFEFEFEAFFAFA997FF8A8C83FF0F46
65FF0D4562D70000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000C5B56E66EDE6
C7DFE8E1BDCAE8E0BEC7E8E0BDC7E7E0BBC1E7E0BFEAEDE6CAFFEEE9CEFFEFE9
CEFFEEE8CCFFE8E0C1FFE2D9B2FFDFD4ABFFDBD2A7FFD8CEA2FFD6CC9FFFDACE
A5FFDCD2A7FFDBD0A4FFDACFA0FFDBD09DFFDACD99FFD9CD94FFD7CA8FFFD5C7
89FFD6C989FFC9B973FFDFD8B6FFEFECDFFFF4F3EDFFB3AD9DFF8C8D84FF0C44
62FF0C4462D50000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000DFD6
ACC0F0ECD2DDECE5C6CEEBE4C6CDEBE5C6C7EAE5CBEAEBE5CBFFE8E2C7FFE6DE
C4FFE2D9B8FFE0D7B2FFE1D8B2FFE0D7B0FFE1D8AFFFE5DCB8FFE8E2BFFFE9E0
BCFFE5DCB5FFE3DAB0FFE1D7AAFFDFD5A4FFDBCF9DFFD7CC96FFD4C891FFD2C4
8CFFCFC086FFCCBD83FFBFB07DFFD6CCAEFFEFEBE2FFB9B5A7FF929087FF0A40
5DFF0C4462C50000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000C4B4
6C57F4EFDDF1EEE9D1D6EEE9D0D5F2EED8D8EDE7D3EEEFE9D3FFF0EAD3FFEEE7
CCFFECE4C6FFE9E2C3FFE8E1C0FFEAE3C2FFECE7CAFFEDE5C9FFE8E1C2FFE3DB
B8FFE0D7B2FFDED3ABFFDACFA4FFD6CA9DFFD6CA9BFFD6CA97FFD4C893FFD4C6
8EFFD2C586FFD4C685FFC5B569FFDFD5B0FFFFFFFFFFBFBBAEFF97948AFF093E
59FA0C4462C30000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000DBD1A4BCF8F6E8EEF4F1E1E2F5F1E1E0F4F1E1EAF3EFDDFFF0EBD1FFEBE5
CAFFEAE3C5FFE7DFC1FFE6E0C4FFE7E0C8FFE4DDC0FFE3DABCFFE3DBBBFFE3DC
BAFFE4DCB8FFE3DBB5FFE3DAB2FFE3D9AEFFE1D6A8FFDFD4A3FFDBD099FFD8CB
8EFFD5C78AFFD1C283FFCFC182FFC9BB86FFE9E4D5FFC7C2BAFF9A968DFF0D41
5AEE0C4462B70000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000BBA9562FF7F5E8FBFAF9EFEFF7F4E7E5EFEAD7EAE8E0C7FFE6E0C4FFE6E0
C5FFEAE4C9FFEDE9D4FFF0EBD7FFF0EBD8FFF1EDD6FFF0EBD4FFEEE9CFFFEDE6
CAFFEBE4C5FFE9E1BEFFE5DBB5FFE0D7AFFFDDD2A7FFD9CD9DFFD4C794FFD1C3
8FFFCFC18AFFCEC186FFCFC082FFC8B87AFFE8E2CEFFD0CEC9FF9A978EFF0E42
5AE50C4462B40000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000D9CF9EAAFFFFFDFFF6F4E6E4F1EEDBE5F2EDDBFFF3EEDDFFF5F1
E1FFF8F4E6FFF6F4E5FFF5F2E3FFF2EEDBFFEFEBD6FFEDE7CFFFE8E2C8FFE4DD
BFFFE2D9B8FFDED5B1FFDFD6B0FFDED5ACFFDCD2A7FFDBCF9EFFDACF9AFFD9CC
95FFD8CB8FFFD6C88AFFD3C481FFD0C27CFFDFD5A9FFD8D7D4FF9B9790FF1043
59DA0C4462AB0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000B5A0450FEDE9D2E8FCFBF3F2F5F2E3E8F4F1E2FFF3F1E3FFF3EE
DFFFEFEADBFFECE7D5FFE9E3CFFFEAE4CFFFEAE5D0FFEBE6CFFFEDE7D0FFEDE6
CDFFECE6CCFFECE5C9FFE9E2C2FFE6DEB7FFE2D9AEFFE1D6A7FFDED39FFFDCCE
98FFDACE93FFD9CB8EFFDACB85FFD9CB84FFDDCE89FFCCC5AEFF9E9C98FF1043
58CE0C4462A50000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000CCBF7F78FFFFFFFFFAF7F0F4F1EDE0FFF3EFE3FFF3F1
E4FFF5F2E5FFF6F3E7FFF7F5E8FFF8F4E7FFF5F2E2FFF5F2E0FFF4F0DCFFF2ED
D6FFF2EBD3FFEFE9CDFFEDE5C4FFECE3BCFFEAE0B6FFEBE0B0FFE9DEACFFE7DA
A2FFE0D49DFFDDD093FFC6B982FFC9BC7EFFB3A978FFC9BC89FFA4A09DFF1143
58C90C44629C0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000B39E4206ECE7CFE7FFFFFFFFFCFAF5FFFCFAF3FFFBFA
F2FFFBF9F0FFFAF8F0FFF9F7EDFFFAF8EDFFFBF8EAFFFCF9E9FFFDF9E8FFFFFA
E5FFFAF5DDFFF5EFD2FFEEE6C5FFE2DAB9FFDBD3A9FFBDB690FFC2BA93FFAEA5
7DFF9C9675FFA49C75FF6A6450FFA09776FF9D9782FFD9C786FFADA899FF0F42
54C50C4462960000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000C1B0644EFFFFFFFFFFFFFFFFFFFFFDFFFFFF
FEFFFFFFFDFFFFFFFDFFFFFFF8FFFAF7ECFFF5F2E5FFE4DEC8FFD6D3C1FFBFB8
A2FFA09B8AFFA49D83FF8A846DFF979281FF8B846CFF948E7BFFADAA98FFA298
7CFFB4AF99FFC0BCA9FFB2A580FFBDB8AAFFA8A289FFB6AF98FFBAB7BCFF1040
4C9B0C44623C0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000E6DFBFCDFFFFFFFFE4E2DAFFE1DE
D1FFC7C4B8FFB8B4A4FFAEA99BFFA8A49AFFACA696FF99978BFF9B9485FF9D99
8CFFB9B7AEFFA09883FFBDB9ABFFB9B6A8FFA39C87FFC3C0B1FF9C9988FFA6A3
8FFFB3B6AFFE8D8E85FE727C72F1C1C3C1FA577678B151686DC45D9389843C80
9414000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000C2AF5B40FFFEFCFFADAAA4FFB2AF
A6FFA8A296FFACA89EFFC1BEB7FFB6AE95FFBCB9ACFFC5C3B6FF989484FFC0C0
B5FF8D9181FD70786DFDBFC3BEFD5F685FE797968EF0ADB1AFF0888C89E98F91
8EE4B9B9B6F4A5A49DE97E7E75E2BCB9B4F5ACAEA2D085907A81000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000C3BB9AB5D0CEC8F6B4B4
A8FF8E9280FFAEB0A8FB8F9183F9676D5FEDB8BBB5F7747C70E96D7770EBB6BB
B7F36F7472EF92918BF0B8B6B4F9ADABA4EFA9A69CE3C0C1BAE3C3C5BAD29EA6
97B3B7CBB891AEC9B471B9D7C060B0D4BB3ABEE5CB35BBECCD02000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000C0D9CA6EDEE4DFB6A1B2
9BAB69786CE7C7C9C4F286847FEF919087EAC4C3BDF5B4B4ACE6B9BAAED6BBBE
B4CACFD9CDBDB5C7B291BDD5C07AB6D7C04CB5DEC42DBDF0D203000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000B7E6CD16DFE0DBD9D2D0
CADFB9B3A9B3CAD3C7A7CDDFD18BBADFC63EBEE3CB26C7EFD70B000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000FAFAFA03FCFC
FC01000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000FFFFFFFFFFFF0000FFFF
FFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF8FFF0000FFFFFFFC07FF0000FFFF
FFC001FF0000FFFFFC00007F0000FFFFC000001F0000FFFE000000070000FFE0
000000010000FFC0000000000000FFC0000000000000F800000000070000C000
0000000700008000000000070000800000000007000080000000000700008000
000000070000C000000000070000E000000000070000E000000000070000F000
000000070000F000000000070000F8000000000F0000F8000000000F0000FC00
0000000F0000FE000000000F0000FE000000000F0000FF000000000F0000FF00
0000000F0000FF800000000F0000FFC00000000F0000FFC00000000F0000FFE0
0000000F0000FFE00000000F0000FFF00000000F0000FFF00000000F0000FFF8
0000000F0000FFF80000000F0000FFFC0000000F0000FFFE0000001F0000FFFE
0000007F0000FFFF0000007F0000FFFF00007FFF0000FFFF007FFFFF0000FFFF
9FFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF000028000000200000004000
0000010020000000000080100000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000005C5D5A1234353433212120421315
1207000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000002B2B291F8B8C89486364637D999B99C3D5D4D4FACECDC7FE595B
52A52425212F0000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000059585A071815152B807E
7F77A7A7A7B5B9B8B7DAD4D2D0FEF0EDE5FFEDE9DBFFE1DAC9FFDDDACFFFB2B1
A1FF828073E830302C7700000009000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000001E120D047975723A514E4F5B989596A6CACBCBE6E0DFDDF9E3DF
D7FFE8E4D6FFEBE6D5FFE4DDC9FFDED8C5FFDED9C8FFDED8C6FFE1DFD8FFB8B7
AFFFA5A18FFFA5A292FF16120F6C0000001F0B12131300000000000000000000
00000000000000000000000000000000000000000000000000001F202407938A
8756C3C0C49AA8A4A6B8DAD7D6FBF4F0E5FFEAE3CCFFDAD0ABFFCFC18AFFCBBA
72FFC5B56EFFE1DBC7FFEAE6DAFFE0DCCBFFDED9C7FFDAD2BBFFDCD6C4FFC7C8
C1FF999585FFABA594FF32434CDA254A5CCE1E3A49AE0005080E000000000000
00000000000000000000000000000000000000000000665F5D27DAD8D8E9E4DF
D3FDE1DABFFFE5DCB6FFD6C993FFCAB973FFC8B665FFC9B663FFC8B45FFFC5B0
5CFFBFAB5AFFC8BC8AFFE4DECFFFE2DDCDFFE2DFD0FFE0DCCAFFE0DCCBFFD5D3
CBFF9D9A8AFFA9A28EFF3D5D6DFF317090FF265B75EE01121C3A000000020000
00000000000000000000B7AB6217CABC7741E2D28666D6C67F98D4C78CFFCDBC
77FFC9B665FFCAB763FFC8B661FFC6B362FFC1AF60FFBDAB5EFFBAA95DFFB7A5
5AFFB3A24FFFBAA95EFFE1DBC5FFE7E2D5FFDFD9C7FFDDD7C3FFDBD4BDFFDBD8
CCFFA6A497FFA9A18CFF49616BFF225D7CFF225D79E00318232200000000CCC0
8625C4B87C73CDBF7DAECFBE6FCFD2BE65D7D2BD5CDBCAB141CAC5AE4ADDC8B5
67FFC4B164FFBFAD61FFBCA95CFFB9A659FFB8A657FFB6A457FFB6A557FFB7A5
5AFFB7A75FFFB7A65EFFCABF91FFE9E5DAFFE7E4D6FFE5E1D2FFE2DDCBFFE6E5
DEFFB2B1A5FFA9A18DFF576970FF1A5373FF1D5774D60A3F5B1500000000CFBE
71BDD1BB57EBCCB449CFC5AC3CC1BEA534BAB79F2BB3B19721A6AF982CB9BDAC
5FFCBBA95CFFB9A85AFFB9A85EFFBAA860FFBBAA61FFBBAB65FFBCAB65FFBCAB
62FFBDAB5EFFBCAB5BFFBCAB64FFE1DCC8FFE5E0D1FFE0DBC7FFDCD5BEFFE1DC
CBFFC4C3BBFFABA390FF677375FF0F4565FF18516ED00B46651000000000C0AC
4F88BBA029C0B39A25A7AE9522A5AA911DA2A68D189EA38A1299A1860E96B6A4
54E8C0B06CFFBEAE66FFBFAF66FFBFAF65FFBFB065FFBFB064FFBFAF65FFBFAF
68FFC0AF6CFFC0AF6DFFBEAD67FFCDC194FFEBE6DCFFE7E2D4FFE4DECCFFE8E5
D8FFD0CFC7FFADA693FF767F7CFF083C5BFF134C69CD0C44610C00000000BAA9
5822B29B31A9A58B0F9CA58C1695A58C1795A78E1895A88F1B95A78D1487B5A1
45CBC6B774FFC3B36EFFC3B36EFFC3B36FFFC3B470FFC4B471FFC4B570FFC5B5
6EFFC5B56DFFC4B46DFFC4B46DFFC2B476FFE1DAC8FFE6E0D0FFDFD8C2FFE0D9
C3FFD7D4CAFFAFA899FF868C83FF0C3C58FF0D4664C80C44620600000000BAA9
5802BBA85363AC921DA4AB921F91AF962793B1992A94B29B2E95B29A2A88B9A5
47B3CBBC7FFFC9BA7BFFCABB7AFFC9BB78FFC9BA76FFC8BA75FFC8B875FFC7B7
76FFC6B776FFC7B877FFC7BA76FFC4B46FFFD1C79EFFEEEAE1FFEAE5D6FFE9E4
D3FFE2E1D9FFB1AC9EFF959789FF123B55FF094160C50C446201000000000000
0000BEAD6114BDA94C9AB59D3097B9A33C92BBA64194BDA84595BDA8458EBFAC
4E9FCEC185FECFC185FFCEC084FFCDBF83FFCDBE82FFCDBF81FFCDBF7EFFCCBE
7CFFCCBD78FFCBBB78FFCABB79FFCABB77FFC4B67AFFDFD8C4FFE2DDCAFFE0D9
C2FFE7E5DAFFB9B4A9FFA09E90FF1C4058FF053E5EC300000000000000000000
000000000000C0AD5E48C4AF53A8C1AD5094C4B15896C6B35B97C6B45C95C6B4
5D95D0C288F1D6C891FFD4C78CFFD3C68BFFD2C588FFD0C385FFCEC083FFCCBE
80FFCDBE81FFCCBD7FFFCBBC7DFFCCBC7DFFC5B56DFFD5CCA7FFF0EDE6FFE9E3
D1FFEDEBE0FFC0BCB0FFA4A090FF24475DFF043C5DC400000000000000000000
000000000000B9A6560BCABA6E91CBBA68A8CABA6A9CCDBD6E9FCDBD719FCCBC
6E96D1C489DCD7CB98FFD4C992FFD3C891FFD4C790FFD4C78DFFD3C68AFFD3C5
8AFFD1C489FFD1C385FFCFC080FFCBBC7BFFCBBB79FFC5B77DFFE0D8C5FFE4DD
C9FFEEEBDDFFC8C5BBFFA39E8EFF2B4E63FF033D5DC300000000000000000000
00000000000000000000BFAD5F3ED3C580B6D1C37BA6D2C480A7D3C583A8D3C5
81A0D5C991D3DCD2A2FFDBD09EFFDACF9BFFD7CB96FFD5CA93FFD5C994FFD5C8
94FFD3C690FFD0C389FFCFC081FFCEBF7EFFCDBF7AFFC7B76EFFD7CEAAFFEAE7
DAFFE7E2CDFFCCC8BAFFA49E8EFF37596BFF053F60BE00000000000000000000
00000000000000000000B9A75401CFC18088DBCF96BED8CC91ADD9CE95B0DACE
94AAD9CE9ACDDBD1A5FFDBD0A3FFDBD0A1FFDCD1A3FFDED4A7FFDED3A5FFDCD0
9EFFD7CB94FFD4C78BFFD1C386FFCEC083FFCDBF81FFCBBC7CFFC7B87FFFE3DD
C9FFF0EBDBFFDAD7CDFFA6A08FFF3E5F71FF054060B900000000000000000000
0000000000000000000000000000BEAB5C27DED2A1C2E0D6A5BDDFD4A3B8E0D5
A4B4E0D5A7CAE3D9B2FFE1D8ADFFE0D6ACFFE0D7B1FFE0D7AFFFDDD2A6FFD8CC
9BFFD5C994FFD5C790FFD5C78EFFD5C88FFFD4C88BFFD4C786FFC8B974FFD8CF
AEFFEAE4D3FFDFDBCFFFABA292FF3B5D6FFF054060B300000000000000000000
000000000000000000000000000000000000CCBE7C78E8E1BBD8E4DBB2C1E5DC
B3BDE3D9B0CBE1D7B3FEE4DCB8FFE7E0C0FFE7DFBFFFE3DBB5FFDFD5A8FFDDD2
A1FFDBD09CFFDACE9CFFD9CC9BFFD5C995FFD2C58EFFD1C389FFCFC182FFC6B8
7DFFE9E4D3FFEDEBE2FFAEA696FF395D6EFF054060AB00000000000000000000
000000000000000000000000000000000000BAA95517E3DAB2BEECE6C7D6E9E1
BFC6E8E1BFCDEBE4C7FAECE6CCFFEBE4C8FFE5DDBBFFE0D6AFFFDDD4A9FFDDD4
AAFFDFD6ADFFE0D6ADFFDDD3A6FFDCD19FFFD9CD97FFD6C98FFFD4C689FFCBBC
7CFFDAD2B3FFF0EDE3FFB5AE9FFF385C6BFF033F60A200000000000000000000
00000000000000000000000000000000000000000000CFC18664F3EED9EDEDE8
CDD0EFEAD3D9EEE8D3FAEEE8CFFFE9E1C4FFE5DDBBFFE6DEBBFFE8E1C0FFEAE2
C3FFE6DFBCFFE2D8B2FFDED3A9FFD9CEA0FFD8CC9AFFD5C993FFD3C58AFFCEBF
7EFFCABA80FFF1EDE2FFBFB8ACFF3A5B69FF023E5E9A00000000000000000000
00000000000000000000000000000000000000000000BFAE6109E2DAB4BEFAF8
EEF0F5F1E2E2F0EBD8F8EBE6CCFFE9E3C6FFE9E3C6FFEAE4CBFFEAE3CAFFE8E0
C3FFE6E0C0FFE6DEBBFFE4DBB4FFE1D6ACFFDED2A4FFD8CC97FFD4C68CFFD1C2
84FFCBBB7CFFE2DBC2FFC8C0B8FF3E5D69FC023E5E9000000000000000000000
0000000000000000000000000000000000000000000000000000C8B9744FFBF9
F1FCF6F5E7E8EEE8D3F5EDE8D2FFF1ECD9FFF3F0DFFFF2EEDDFFF1ECD7FFEDE8
D0FFE8E2C5FFE5DCBBFFE1D8B3FFDED5ADFFDACFA1FFD7CA97FFD5C790FFD3C5
89FFCFC07AFFE0D6AAFFCFC9C4FF3E5E69F2033E5D8700000000000000000000
0000000000000000000000000000000000000000000000000000B29D3E01DCD2
A6A3FEFDF8FBF4F0E1F7F3F0E2FFF3EFE1FFF0EBDBFFEEE9D6FFEDE8D4FFEDE8
D2FFECE6CDFFEBE4C9FFE9E2C3FFE6DEB6FFE5DBADFFE4D8A4FFE2D59BFFDFD1
92FFDBCC85FFD8CA87FFC8BEA8FF426170E8033E5D7D00000000000000000000
000000000000000000000000000000000000000000000000000000000000BCA9
572BF7F6ECF7FBF8F4FEF8F6EBFFF9F8EDFFFBF8EFFFFCFAEFFFFCF9EBFFFDF9
E9FFFDF8E3FFF8F3DAFFF2EACBFFE9E0BAFFDBD2A7FFD3C99CFFC3B98AFFB7AD
7EFF9E946CFFB1A67BFFD2C091FF466470E9023D5C7900000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000D6CB9A88FFFFFFFFFFFFFBFFFBFBF7FFF4F3EEFFEEEDE4FFE9E5D7FFD8D4
C1FFC6C1AFFFB6B09CFFA9A289FFA7A18BFF9D967EFFA9A38CFFA7A088FFA9A5
91FFA49E89FFA0A08FF6B1AD9BFA4D717BB6033E5B3200000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000C3B0601DF2EEDAE2D2D0CEFFC0BBAFFFB2ADA1FFB3AEA0FFB1AC9CFFA39F
92FFA4A194FF969689FFA5A599FF949488F9ABA99EFD97978DFAA9AAA2FE9798
92FD959690FD949D9BDE5C7A718C458891190000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000CCC2957DC4C4BFF596998AFAA4A59CFF878679FEA8A79EFF888C
81FDA4A9A2FF838880F8A8ABA6F59EA199E1B1B6AED3B0B4ACC1A7B1A4A3B2C6
B484ADC6B26BBDD9C155B8E1C010000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000BDDECB2DD3DCD2C997A091DAB4B9B1E29DA69BC1B9C8BAA5B9C3
B68DBCBDB47FC6D2C36DB9CFBA4FB9DAC32EBBECCF0B00000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000F0F5F241D7D0CB3DC7CEC22CC8E7D315000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000FFFF
FFFFFFFFF87FFFFFC03FFFFC000FFFC00003FE000001FC000000E00000010000
00010000000100000001000000010000000180000003C0000003C0000003E000
0003E0000003F0000003F8000003F8000003FC000003FC000003FE000003FE00
0003FF000003FF800003FF800007FFC0000FFFC003FFFFE1FFFFFFFFFFFF2800
0000180000003000000001002000000000006009000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000004D4D4C25424242511F201D2B0000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000005B585815585857428080
7F83ADACABBEC7C6C0EFEBE9E0FFA6A69AEF44443D800808080E000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000544C490F413E3F32908D8F79A2A3A5B0BEBCBADFE5E2DBFFEAE6
D9FFE9E3D3FFE4DFCCFFE0DBCBFFC9C8BFFFA8A594FF5E5C53B90000001D070C
0D050000000000000000000000000000000000000000000000002B2B35139C96
9760B5B2B39DBDB8B5D7E3DFD0FFE0D8BAFFDDD2A1FFD3C47FFFCCBC80FFE3DE
CFFFE2DDCCFFDEDAC7FFDDD7C2FFD3D1C9FFA5A191FF8B8B7FFA1D3C4DCB1E3E
4DAB0002050F000000000000000000000000CFC17803A3976B10C4BDADC7E0D9
BAFFDCD09EFFD8CA8AFFCAB96CFFC6B361FFC4B15EFFC0AD5BFFB9A654FFD2C9
A4FFE7E3D6FFE2DDCDFFDED9C5FFDBD7C9FFAAA696FF8D8D81FF295F7BFF2862
7EEF000A1027C8BC8314C6BA7F50C7B97083D1C06FABDDC869C0CDB859DEC8B5
65FFC5B15FFFC1AE5DFFBEAB5CFFB9A75AFFB6A557FFB5A458FFB4A355FFC1B2
76FFE5E0D1FFE4DFD0FFE0DBC7FFE3E1D4FFB6B3A7FF959183FF27546EFF1E5C
7ADC05243510CEBD6DB2CDB654DEC8B146D0C0A738C3B69D29B3B19825B0BCAA
5BF8BBA95EFFB9A85DFFB9A85EFFBAA95FFFBBAA61FFBCAB62FFBCAB60FFB9A8
5BFFD7CEAEFFE8E4D8FFE1DBC8FFE3DDCCFFC5C3BAFFA09A8BFF295067FF144F
6ED40B46670ABEA94982B2981FB6AB921C9FA78E189DA48B159AA1860C8FB5A1
4CDCC1B26DFFC0B067FFC1B067FFC0B068FFC0B169FFC1B16AFFC2B16CFFC0AF
69FFC5B87EFFE8E2D5FFE5E0CEFFE4DECBFFCFCCC2FFA9A392FF305365FF0B45
64D00C446206BAA9581DAF972A9DA68C1495AA911E93AD942395AD942089B8A4
46BDC9BA7AFFC7B775FFC6B774FFC6B773FFC7B773FFC6B772FFC5B672FFC6B7
73FFC2B36EFFD8D0B1FFE9E5D7FFE6E0CDFFDAD7CDFFB0AA98FF425D68FF043C
5ECB0C45630100000000BEAB565CB69E31A2B7A03792BAA53F94BBA6408CC0AD
51A9CFC186FFCFC083FFCDBF81FFCCBE80FFCCBD7EFFCBBD7BFFCABB79FFCABB
78FFC9BA74FFCABE89FFE6E1D2FFE4DEC9FFE1DFD3FFB9B2A2FF53676EFF0037
59C80000000000000000BBA95B0CC5B15C92C4B1549BC6B45C97C7B65F96C8B6
649DD3C68CF6D5C890FFD3C68CFFD2C589FFD0C285FFCEC082FFCEC082FFCDBE
7FFFCCBD7BFFC6B672FFDCD5BAFFEAE4D5FFE8E5D8FFBFB9A9FF5D6E73FF0037
59C8000000000000000000000000C1B0624CCFC075B2CEBF73A0D0C178A2CFC1
789ED5C993E8D9CE9BFFD7CB96FFD5C992FFD4C88EFFD4C78FFFD2C58CFFCFC1
84FFCDBE7DFFCABA75FFCCBF8AFFE7E2D2FFEAE6D6FFC4BDAEFF637375FF023C
5CC5000000000000000000000000B9A65206D2C38395D9CC90B7D8CB8FADD8CB
90A8DACF9DE2DCD2A5FFDBD0A0FFDBD09FFFDBD0A2FFDACF9EFFD6C992FFD1C5
87FFCFC182FFCEC07FFFC7B877FFDCD3B8FFEDE8D9FFCCC6B7FF6B797AFF0641
61C000000000000000000000000000000000C1B06436E1D6A7C7E0D6A5BBE0D5
A5B3E0D6AADEE1D7AFFFE0D7AEFFE1D9B3FFE0D6ADFFDBCF9EFFD6CA94FFD6C8
90FFD5C88FFFD3C68AFFCFC07FFFCEC291FFEBE7D8FFD6CFC1FF6B787AFF0540
60BA0000000000000000000000000000000000000000D3C78C8CEAE3C1D5E6DE
B7BEE4DBB7DBE7E0BFFFEAE3C5FFE6DFBDFFE0D6ACFFDBD1A3FFDCD1A2FFDBD1
A2FFD9CC9BFFD4C892FFD3C58AFFCABB7BFFE5E0C7FFE4DED3FF6C7A7AFF043F
60B20000000000000000000000000000000000000000C4B56D1FEBE5C6D6EEE8
CDD1EDE7CEE0EEE8D1FFEAE2C6FFE4DBB8FFE3DBB6FFE5DEBCFFE4DCB8FFE0D6
AEFFDCD1A2FFD8CD99FFD5C88FFFCFC080FFD2C594FFE9E2D6FF727E7FFF023D
5CA8000000000000000000000000000000000000000000000000D5CA947EFAF8
EEF6F3EFDEE8EDE7D0FFEBE4C7FFEBE4CAFFECE6CEFFEAE3C8FFE6E0BFFFE4DB
B7FFE0D6ACFFDCD1A1FFD6C992FFD1C386FFCEBF81FFE5DDCBFF7B8789FF023C
5B9C000000000000000000000000000000000000000000000000BAA75214EFEB
D5D9F6F4E8F1EFEAD7FEF1EDDBFFF1EDDDFFEFEBD7FFECE7D0FFE8E2C5FFE5DD
BCFFE2D9B2FFDDD3A4FFDBCE98FFD9CB8FFFD7C880FFE3D8AFFF7F8C91FE023C
5A8E00000000000000000000000000000000000000000000000000000000C9BC
7A5DFDFCF8FFF6F3E9FFF7F4E8FFF7F4E7FFF7F4E5FFF8F5E2FFF9F4DDFFF6EF
D3FFEEE5C0FFE4DAACFFDBCF9CFFCDC18BFFBAAE77FFCDBC85FF888F87FF023C
5B8800000000000000000000000000000000000000000000000000000000B09B
3D04E9E4CAC4FFFFFFFFF9F9F3FFF1F0E9FFECEADEFFDFDAC9FFCCC6B4FFBCB5
9EFFB1AA92FFA9A289FFAAA389FFA6A18AFF9C9783FFA5A18BFB7F908ADF0741
5D46000000000000000000000000000000000000000000000000000000000000
0000D0BD7445DDD9D1FDB6B3A8FFACA99DFFABA697FF9F9D8FFF9A9A8FFF9091
86FF999890FFA4A099FF9EA097F9A6AAA2ED9EA49BE194A499AF5E94902D0000
0000000000000000000000000000000000000000000000000000000000000000
0000BEC89C03CAD2C2B09DA497F39EA198F89A9E94E4A6ACA2D3ABB0A9C6AAB5
A9B0B2C4B58DB9D2C064B1B9AC4EB0C6B334B5D4BD21C4ECCD0D000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000D7EEE238D4CFCA63C5CFC34BBFE3CD23C3DFCA0AC3C4BA030000
0000000000000000000000000000000000000000000000000000000000000000
000000000000FFFFFF00FFFF1F00FFF00700FF000100F8000000E00000000000
00000000000000000000000000008000010080000100C0000100C0000100E000
0100F0000100F0000100F8000100F8000100FC000100FC000100FE000300FE00
0700FF03FF002800000010000000200000000100200000000000400400000000
0000000000000000000000000000000000000000000000000000000000006184
91B2618491FF618491FF618491FF618491FF618491FF618491FF618491FF6184
91FF618491FF618491FF508AA48000000000000000000000000000000000E0DE
DBFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1
EEFFF1F1EEFFF1F1EEFF618491FFD5C68051D6C884FFD8CA89FFDACD8FFFDBCE
91FFDBCD90FFDACD90FFDACD8EFFD9CC8EFFDBCE92FFDBCE92FFD9CB8EFFC7B8
76FFFFFFFFFFFFFFFFFF618491FFD5C68018D8CA89DADFD39E97DED29BA5DAD2
ACFFD8CFA6FFD7CDA0FFD5CA99FFD2C692FFD1C48BFFCEC186FFCBBE7DFFB6A7
6AFFE9E6D9FFF1F1EEFF618491FF00000000D7C885DFDFD39E96DDCF96A4E6DE
B6FFE4DAAEFFE2D7A7FFE0D49FFFDCD097FFDACD8FFFD8C987FFD4C47DFFC5B6
77FFEAE4CBFFFFFFFFFF618491FF00000000D7C987C3E0D5A3A1DED29DA2DCD4
AFFFDAD1AAFFD7CEA3FFD5CC9BFFD3C895FFD1C48DFFCEC185FFCCBC7BFFBEAF
73FFD1C8A1FFF1F1EEFF618491FF00000000D9CB8B8ADED29DB7E0D5A4A1EAE4
C1FFE8E0BAFFE6DCB3FFE3DAABFFE0D6A4FFDFD29CFFDBCE93FFD8CB89FFCDBE
7FFFD3C795FFFFFFFFFF618491FF00000000D9CB8D4ADCCF94CEE3D9ABA0DFD8
B9FFDDD5B2FFDAD2ACFFD8CFA6FFD6CC9EFFD4C896FFD1C48FFFCEC285FFC5B6
7AFFBFB27BFFF1F1EEFF618491FF00000000D9CB8C0BD9CB8BE1E6DDB39FEDE7
CAFFEBE4C5FFE9E1BEFFE7DEB6FFE4DAAFFFE1D7A6FFDED39EFFDDCF95FFD4C7
86FFC4B677FFFEFEFDFF618491FF0000000000000000D8CA8ADFE9DFBB9EE2DC
C1FFE0D9BCFFDED6B6FFDBD3AEFFD9CFA8FFD7CDA0FFD4C896FFD2C58FFFCDC0
83FFB5A668FFECE9DFFF618491FF0000000000000000DACD8FBCE5DCB2AFF0EA
D2FFEEE8CDFFEDE6C7FFE9E2C0FFE7DFB7FFE4DBAFFFE1D7A6FFDFD39DFFDBCD
91FFC2B373FFEDE8D0FF618491FF0000000000000000DCD09785E1D6A6C2E3DE
C8FFE2DDC3FFE0DABEFFDED6B6FFDBD3AFFFD8CFA7FFD6CD9FFFD3C896FFCFC3
8BFFBBAE71FFD5CDA8FF618491FF0000000000000000E1D6A543DCD097D8F1ED
DAFFF1EAD5FFEEE7CEFFECE4C6FFE9E1BEFFE6DDB5FFE3DAADFFE0D6A3FFDDD0
9AFFCBBD80FFD7CC9DFF618491FF0000000000000000ECE5C60EDACC8EE7F3EE
DCFFF1ECD7FFEFE9D0FFEDE6C9FFEBE3C1FFE8DFB8FFE5DBAFFFE1D6A5FFDED2
9DFFCEC184FFCFC38BFF618491FF000000000000000000000000DED29BD45652
46FFECE5C8FF534F45FFE9E0BEFF534F45FFE5DBB1FF534F45FFE1D5A4FF534F
45FFD5C88CFFD0C48DFF508AA480000000000000000000000000000000000000
00009A937FFF000000009A937FFF000000009A937FFF000000009A937FFF0000
00009A937FFF0000000000000000F0000000F000000000000000000000008000
000080000000800000008000000080000000C0000000C0000000C0000000C000
0000C0000000E0000000FAAB0000}
OldCreateOrder = False
Position = poDesktopCenter
ScreenSnap = True
ShowHint = True
OnActivate = FormActivate
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
OnKeyDown = FormKeyDown
OnMouseDown = FormMouseDown
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object Logo: TImage
Left = 16
Top = 14
Width = 32
Height = 32
AutoSize = True
Picture.Data = {
055449636F6E000001000D00303010000100040068060000D600000020201000
01000400E80200003E0700001818100001000400E8010000260A000010101000
01000400280100000E0C00003030000001000800A80E0000360D000020200000
01000800A8080000DE1B00001818000001000800C80600008624000010100000
01000800680500004E2B0000000000000100200058190100B630000030300000
01002000A82500000E4A01002020000001002000A8100000B66F010018180000
01002000880900005E800100101000000100200068040000E689010028000000
3000000060000000010004000000000080040000000000000000000000000000
0000000000000000000080000080000000808000800000008000800080800000
80808000C0C0C0000000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000
FFFFFF0000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000888800000000000000000000
00000000000000000000888F8F88770000000000000000000000000000000000
888F8F8F88F888770000000000000000000000000000888FFF8F8888F88F7787
000000000000000000000000088FFF888788F8F88F8887887000000000000000
0000088FFF88888E7E88F888888888686173000000000000000FFF88888E7E7E
86E7888F888F87877337000000000000000888E8E7E78E77878E8FF88F888878
6171000000000000888E8687E87E77E7E676888888EFF868713300000000888E
8E8E7E8E77E7E7777E87E8F88F8F887872730000088E8E87E878E777E7787E8E
77E77EFFF88888877131000008E87E8E87E787E78C8E77C8E77E87888888FF78
72530000007E8787E87E868C8E77E87E87877E88F8F88F7E813300000088E8E8
78E88E88E78E78E78E7E7868F88888878035000000078687E87878687E878E78
C887E88E88F88F87870300000008E88E88E8E88E88E8788E8E878E788F8F8888
77030000000088E888888E88E787E8C887E8688E888EF8F78713000000000888
E88E887888E888E8E888E877E8FF8F8876120000000008E8888888E8E888E888
78E787E8888F88F787210000000000888E88E888887887E8E888E88C8E888F88
E71300000000008888888888E88E888888E878E8878FF8F87713000000000008
E888888888888E88E888E88E7E7888888730000000000008F8888EFE88E88888
88E8878788E8F8F8777300000000000088888F88888888E888878E8E888E8FF8
8703000000000000F8888888888E8888E88E8888E87888E88735000000000000
088888888EFF8F8888888E888E8E78FF772300000000000000F88F88FF8F88EF
E88E888E8888E8FF8753000000000000008F88888888EF88888F88888E878888
8727000000000000000F8F8F8F8F8F8F8F888E88887E8E8F8717000000000000
0008FFF8F8888888888EF888E888878887370000000000000000FF8F8888F8F8
88F8888888E8E8E8886300000000000000008FF88FF8FF8F888888E88E888788
877700000000000000000FFF8F8F8888F88F8F888888E8E88773000000000000
000000FF8F8F8FF88F88888888E8887E87770000000000000000008FFFFFFFFF
FFFF8888E887767788770000000000000000000FFFFFF8F888E7868687788888
78700000000000000000000FF888887E77887887887867877800000000000000
00000000F887E878878778688778878880000000000000000000000088878778
77877888888F00000000000000000000000000000F878778888F800000000000
0000000000000000000000000888FF0000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF
FFFF0000FFFFFFFF0FFF0000FFFFFFF003FF0000FFFFFF0000FF0000FFFFF000
00FF0000FFFF8000007F0000FFF80000000F0000FFE00000000F0000FFE00000
000F0000FF000000000F0000F0000000000F000080000000000F000080000000
000F0000C0000000000F0000C0000000000F0000E0000000000F0000E0000000
000F0000F0000000000F0000F8000000000F0000F8000000000F0000FC000000
000F0000FC000000000F0000FE000000000F0000FE000000000F0000FF000000
000F0000FF000000000F0000FF800000000F0000FFC00000000F0000FFC00000
000F0000FFE00000000F0000FFE00000000F0000FFF00000000F0000FFF00000
000F0000FFF80000000F0000FFFC0000000F0000FFFC0000000F0000FFFE0000
001F0000FFFE0000003F0000FFFF0000007F0000FFFF00000FFF0000FFFF8007
FFFF0000FFFF83FFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF
FFFF000028000000200000004000000001000400000000000002000000000000
0000000000000000000000000000000000008000008000000080800080000000
800080008080000080808000C0C0C0000000FF0000FF000000FFFF00FF000000
FF00FF00FFFF0000FFFFFF000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000008887000000000000000
000000000888F8F887000000000000000000088F8F8F8F8F8780000000000000
0888F888E7F888888787370000000008F8F8E8E78688F8F88867370000000088
E8687E7E7E78F8888877130000888E8E78E7E777868EF88F887737008E8E78E7
868687E7E7878F888886170087E8E78E78E7E7878E7E88F88887330008788E78
E7878E7E78C8E88F8886170000E8788887E8C888E78E88F8888727000088E8E8
E888E8E78E878E88F88817000008888888E8888878E8788F8F8637000008E888
8888E8E8E887E8E8888843000000888E88E8888888E887888F8773000000888F
888888E88887E8E78F88370000000888888E8888E8E8888E88886300000000F8
888F888888888E8888F77700000000888888888E888E887E88F737000000000F
F8F888F8F8888888E7F8670000000008FF88F88F88888E888E88370000000000
FF888F88888888E888887700000000008FFF8F8F88888888E8E8700000000000
0FFFFFF8FF8888E8777870000000000008FFF8F8888E87878787700000000000
00F8878E87787878787800000000000000087877787878888000000000000000
000F7888F0000000000000000000000000000000000000000000000000000000
000000000000000000000000FFFFFFFFFFFFFFFFFFFFF87FFFFF803FFFF8001F
FF800003FE000003FC000003C0000003000000030000000380000003C0000003
C0000003E0000003E0000003F0000003F0000003F8000003FC000003FC000003
FE000003FE000003FF000003FF000007FF800007FF800007FFC0000FFFE0007F
FFE07FFFFFFFFFFFFFFFFFFF2800000018000000300000000100040000000000
2001000000000000000000000000000000000000000000000000800000800000
0080800080000000800080008080000080808000C0C0C0000000FF0000FF0000
00FFFF00FF000000FF00FF00FFFF0000FFFFFF00000000000000000000000000
00000000000000000000000000000000000000888F7800000000000000088F8F
88887000000000088F888E8F8F877770000008888E7E7788F888733000888E8E
77E7E7EF88F877308E8E87E7E7878778F8887630887E8E787E7E7E8E8F888170
0E87888E878787E788F8E370008E8E878E8E8E88888F8530008888888887878E
788F7730000888E8E8E88E878EF88770000888888888888E878F863000008888
888E8E888E8887700000F88888888888E888F73000000F8F8888888888E88770
000000FF88F8888E888E8770000000FF8F8F88F88E8887700000000FF8F8F888
888E878000000008FFF8888E87777700000000008878E8778788800000000000
F787888800000000000000000000000000000000FFFFFF00FFFFFF00FFFC0F00
FFE00700FE000100F8000100C0000100000001000000010080000100C0000100
C0000100E0000100E0000100F0000100F0000100F8000100FC000100FC000100
FE000100FE000300FF000700FF00FF00FFFFFF00280000001000000020000000
0100040000000000800000000000000000000000000000000000000000000000
00008000008000000080800080000000800080008080000080808000C0C0C000
0000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF0000008777
7777777800008FF8FFFFFFF308888888888788F70888E88E8E8E7FF70888F888
8888E8F70888E88E8E8788F7088FF88F88E8E8F7008888E888887887008888F8
8E8E8EF700888888888887F70088F88888E8E88700F88888EF8887870008888F
8888E8870008F8F888888E8700086F68686868880000070708070700F0000000
F00000008000000080000000800000008000000080000000C0000000C0000000
C0000000C0000000C0000000E0000000E0000000E0000000FAAB000028000000
3000000060000000010008000000000000090000000000000000000000010000
0001000000000000002B4E0005314D000B354F0003335400073858000A3D5C00
0B405C00244959000E45630013456400134A67001D4D6500154A6800184E6A00
1B526D001E55710024536B003555610022567000325E71002A627F0036637900
6A645000435A66004A64690050666F00446B7A005B6E72006E766E0071786C00
667878006E7A79007B7A7600727F7E00787C7A00778479007B837B00B2A14D00
B6A45200B8A65500BAA85700B7A55B00B8A65C00BBAA5D008A846C008C8A7C00
948E7B009C967500A2997700BCAB6300BCAC6A00BFB06C00AEA57D00BDAE7300
B3A97800BFB07100BFB07D00C2AE5900C5B15C00CBB75D00C0AF6300C0AE6A00
C2B16300CBB76000CDB96200C3B36B00C7B86E00CBBA6C00D0BE6A00C0AF7000
C3B47300C6B87500CABB7300C4B67B00C7B87B00CBBC7A00D5C16500D3C16E00
CEC07D00D7C57100D8C57400D8C87700D2C37C00DCCA7A00336E8A0038738F00
436E85004570860050788E00417B9500537B900046819A005C8195007A838100
798A8E0068899800518BA3007091A200868A82008B8C85008D8D8C008D918000
939283009995840097948A0099968C009D998A0092959300999790009B9A9100
9C9C9800A29B8400A19C8C00A09D9000A6A18E00A8A28900B2A58000A4A19300
ABA49300ADA99700A4A09D00A8A59900ACA99B00B0A79200B3AB9400B3AD9A00
B9AF9C00BDB69000BAB19E008A9FA100A3A3A200ADAAA400ACA9A800B1AEA400
AFB1A900B8B4A500BFB8A200B2B2AC00B8B6AB00BCB9AC00B2B3B200BBB7B500
BBBBB500BAB7BC00BBBCB900C1B38200C6B88300CBBC8200C7BA8B00CABD8A00
C4BA9200C0BCA900C1BEB700BAC0B500BEC1BC00BFCBBB00CEC08300CEC18A00
D1C38400D9C78600D9CA8300D2C48A00D5C98C00D9CB8D00CEC49400CDC39C00
D2C69200D5C99200D9CC9400D0C59D00D6CA9B00D9CE9B00DDD09300DBD09C00
E1D29300E0D49D00CCC5AE00D0C6A000D9CEA100D5CCAC00DDD3A400DDD4AB00
C3C1B400C4C3BB00D5CDB300D7D1B400DBD2B300DFD8B600DAD2BC00E0D6A700
E7DAA200E0D6AA00E2D9AD00E9DEAC00E0D7B100E3DAB300E4DCBA00EAE0B300
E6E0BF00E9E1BD00ABC7C100C4C5C100CBCBC400CDCEC800D0CEC900D2D1C400
DDD6C200DED8C400D3D1CA00DCD6C900DED9CB00D4D3D100D8D7D400D5DBD400
D8D8D100DBDBDB00E2DBC400E2DDCA00E1DED400E1DFDA00D9E1D800E6E0C300
E9E2C300E5E0CC00EBE5CB00EEE8CD00E4E1D200EAE5D400EEE9D300E6E3DA00
E8E5DA00EDEADD00F1ECD800F5F1DC00E3E4E200E8E7E200E5EAE500EDEAE200
E7EBE800EDEDEA00F1EDE400F0EFED00EFF0ED00F4F2E300F8F4E600FFFAE500
F5F3EA00F8F6EC00FBF8EA00F0ECF100F3F3F200F9F7F000FAF9F200F5F4F800
FFFFFF0000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000008391EC6D000000000000000000000000000000000000000000000000
00000000000000000000000000000000838AD5F3FBF0DCCE6A21000000000000
00000000000000000000000000000000000000000000000000000000838DDCF0
FBFBE6D3BDB9BDCD6A7F2E650000000000000000000000000000000000000000
0000000000000000858DD8FBFEFBECDACFB9CFCFD3D0DCEB8668787A00000000
00000000000000000000000000000000000000000085D8FEFFFBDABAA69597CF
E3E3E3E3E3D3CFD29B67717F2100000000000000000000000000000000000000
008ED4FBFFFEE4B9A693934344453ACFEEE3DACFBDB9B9D3CC686A78180A6111
000000000000000000000000000000FAFFFEE1BAB29693444445413C3A3A3F36
BDCFCFD3E3E3DAE6D86A707C1A095C11000000000000000000000000000000BA
AA9347494945413C3B3B3F3333322C27BDEEE8E6E3DABDBDB97B6A7C1C065A11
000000000000000000000000C2AFA1444E45453C3C3F3F3E32322B2826262627
33E3CFBDBDCFBDD3EF8A6878210556100000000000000000ABA3535252515045
403F3F3E322C2C28272727272C2B323333B9E8E4E6E6E0E3F0B8687A25045510
0000000000C553515251504E4E4444443F3F2C28282C282C2C2B333332323227
2C36EEEEE8DAD0BDBDCD6A7C640415100000000000A34D4E4E45444444444449
2C322C2C323233333233322C322C2C32432BB9BDBDCFD0CFE3ED767A6A021010
0000000000004044494949494343474943333E333E323F323F3F323F43334736
334793E8E8E8E4E3E8EB7B737A020E10000000000000A33F49494949494C494C
4C3F47433F43433E474747473E4743433F432CD9E8DAD9B9B9CF8B717C080710
000000000000004449494C4F4F4F9D9FA3434B47474747474744434343434347
47479339CFDAE3DAE4FBB8717E12040E00000000000000B5499F9F9F9FA39FA3
A34C934C4C4C4C4C494C4B4B934793474C434C32E4F1F1E4DAE8CC6A811A010E
00000000000000009F9FA3A3A3A3A8A9A9A39F9F9F939D93934C4C4C4C494949
494C494395DABDBABADAD772811C010D000000000000000000A0A8A9ACACAEAE
AEAE96A39EA39FA39F9F9F9F4F4C4F934C934B9332D9EEF1E4F1EE767F1F010B
000000000000000000AEA9AEAEAEAEB0B0B0A8A9A4A3A3A3A3A3939F939D9D9D
4C4F4C5349A5F1E8DADAEC7B7E22010900000000000000000000AEAEBEB0B0C0
C0C2ABABA8A8A5A396A3A3A3A3A39F9F9F534C499347B4CFCFDAEE857C5E0409
00000000000000000000B5B0BEC2C0C0C0C0B3ABACACACACACA9A3A8A3A89EA3
93934C4C4C43B3F1E8E8FD8C7A2506090000000000000000000000C2C0C0C0C4
C2BCC0B5B5B3ACACA8A8AAA8AAA8A8A39F9F9F5349532BDADABAB9B77A2E0A0D
0000000000000000000000BAC4C4C4C4C5C6BCAEB3B3B3B3B3BEBEBEB0ACA9A4
A39F9F93939D93A6E4E1F8CB73640A0E000000000000000000000000C4C8C8C8
C6C5C8BEC4C2BEC2C4C4BEC0B3A8A89E9EA39FA39F9F9F3FEEE8FED37A640A13
000000000000000000000000C5C8C8C8C7DFDFC4C4BABEBAC0BABEB3B3ACACA8
A8A9A9A9A39FA343A6B9B9DA7A2E091300000000000000000000000000C8DFDF
E1DFDFC4C3C4DFDFDFDFC4BEBEB0B3ACB3ACA8A39EA3939D3EE4F8F17C640916
0000000000000000000000000000E5E1E1E2E1DFE1E2E2E2DFC4BEC0B3B3B3BE
B3B3B3ACA8A4A3A448C5F1FB7E6409160000000000000000000000000000C8E9
E5E2E5E1E1E1D9C4C3C3BAC2CFC8C8C5C3BEB0B3A9A8A3939D39B4F188690558
000000000000000000000000000000E9E9E9E9E8E5E5E2DFDFDFDFE1DFDFC5C3
BEB6ABABABA8A39FA043C0FF8C690758000000000000000000000000000000C8
F8F5F5F5E9E5E1DFDFDEDFD9C5C5C5C5C4C3C3BEB0ACA3A49D9393E4B86A0C59
00000000000000000000000000000000F5FDF5E8DFDFDFE1E5E8E5E5E5E5E1DF
DFC4C3BEB3A8A89E9D9F4CE4CB6A115B00000000000000000000000000000000
C8FFF5E9E9F5F1F5F5F5E8EAE2DFD9C4C3C3BEB6ACACA8A8A49F4FBED572145D
0000000000000000000000000000000000E5FDF8F5E8E9E8E5E1E1E1E4E2E2E1
E1DFC5BEBEB3AFA9A4A1A1A4B16F1B5D00000000000000000000000000000000
0000FFFDE8F5F5F5F5FBF5F5E9F5E5E5E2DFC8C8C6C2BFB0AF934C39936F1B62
000000000000000000000000000000000000E5FFFDFDFDFDFDF8FDF9FDF9F9F6
E2E2C4BE9797753031173168A07E1B6200000000000000000000000000000000
000000FFFFFFFFFFFFFDFDE9DFBD8970352D682D2F7A317E98758B747F906000
00000000000000000000000000000000000000E1FFE6E3B7887E7A786A686A8C
68988870B7707A8A6725CA825FC9000000000000000000000000000000000000
00000000FF85867A7BB77C8CB768B7661EB81D728D6C6D9185648F8FB8000000
0000000000000000000000000000000000000000B9CD886687671E9A63249122
6D8E8A87CACC9ADD000000000000000000000000000000000000000000000000
0000000000EF9C24CB656ACA8FB8CCDDD5000000000000000000000000000000
000000000000000000000000000000000000000000EBCDCBDCED000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF
FFFF0000FFFFFFFF0FFF0000FFFFFFF003FF0000FFFFFF0000FF0000FFFFF000
00FF0000FFFF8000007F0000FFF80000000F0000FFE00000000F0000FFE00000
000F0000FF000000000F0000F0000000000F000080000000000F000080000000
000F0000C0000000000F0000C0000000000F0000E0000000000F0000E0000000
000F0000F0000000000F0000F8000000000F0000F8000000000F0000FC000000
000F0000FC000000000F0000FE000000000F0000FE000000000F0000FF000000
000F0000FF000000000F0000FF800000000F0000FFC00000000F0000FFC00000
000F0000FFE00000000F0000FFE00000000F0000FFF00000000F0000FFF00000
000F0000FFF80000000F0000FFFC0000000F0000FFFC0000000F0000FFFE0000
001F0000FFFE0000003F0000FFFF0000007F0000FFFF00000FFF0000FFFF8007
FFFF0000FFFF83FFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF
FFFF000028000000200000004000000001000800000000000004000000000000
000000000001000000010000000000000A3C5900123B55001C40580024475D00
0F4565001A5373002B4E630037596B003A5C6C00225D7C003E5F710034657E00
4F5E6500405E6A0049616B00476670004E6C7B0057697000536F7C0055717C00
67737500767F7C00B3A24F00B6A45700B8A65700B7A55C00B9A65900BBA95C00
9E946C00878679008D8B7F009D967E00BCAC6300BFAF6800BFB06400B1A67B00
B7AD7E00C5B05C00C9B55E00C1AF6000C0AF6C00C4B26300C8B66400CCB86200
C4B46A00C2B26D00C4B46D00C7B86D00CBBA6C00C4B57300C7B87400CAB97100
CDBC7000C9BA7500CBBC7600CDBC7700C4B67B00C6B87E00CBBC7B00D4C06400
D4C16A00CFC07C00D8C67300D9C87D003E6A82003C70890031709000406D8500
446F88004171890049748B004F788F00577E9400657882005E859900668A9D00
7092A4007F99A0007998A900868B8300888C8100999585009596890093948F00
9A9A8C009596900097989200A39E8C00A19E9100A7A08900A5A08F00A9A18C00
A3A39200A4A19100A4A19400A6A49700ABA29100A9A59100ADA69300ABA59400
AEA69600A4A59A00A8A79E00ADA89B00B2AD9D00B6B09C00A3AAA300A9ABA300
ABAEA900B2ADA000B2B1A100B2B1A500B9B4A900B8B7AF00BFB8AC00A5B5B100
B1B2B100B4BBB300BBB9BA00CCBD8100C3B98A00C8BC8A00CABF9100C0BBAF00
C8BEA800C0BCB000C0BDBE00BDC1BA00CEC08200CFC18A00D1C38400D9CB8600
D2C58A00D5C88D00D8CA8B00CDC19400D3C59000D5C99300D9CD9500D1C79E00
D5CA9900D9CD9A00DFD19200DCD09D00E2D59B00C6C1AF00D5CCA700D9CEA000
D7CEAA00D8CFAE00DCD2A300DAD0AB00DED3A900DDD4A900DED5AD00C4C3BB00
C8C2B900CCC8BA00DAD2B300DAD2BB00DBD4BD00DCD5BE00E4D8A400E0D6AC00
E2D9AD00E0D7B200E2D8B200E4DBB000E6DDB200E3DBB500E4DBB400E5DCB500
E5DDBA00E1DABF00E6DFBD00E8E0BC00C1C1C000C3C6C000C6C6C100C7C8C100
C6CDC400CFC9C400CECDC700D0CFC700D8D4C100DDD7C300DCD6C400DFD8C200
DED8C500D4D2CB00DAD7CD00DED9C800DBD8CC00DEDACF00CFD0D000D4D2D000
D5D4D400DAD7D600D1DBD200D8DDD600DAD8DB00DDDBDB00E0D9C200E0DAC600
E1DAC800E1DCCA00E4DDC900E2DDCD00E4DECD00E2DFD000E4DFD300E3DFD700
E1DFD800E0DFDD00D7E1D800DCE3DB00E6E0C000E9E2C400E7E2CD00E9E3C900
EAE4C900ECE6CB00EAE3CC00EBE6CC00ECE6CC00EEE8CF00F2EACB00E6E1D300
E9E3D100E9E4D300E9E5D600EDE8D200E5E3DB00E9E5D900EBE6DC00EDE9DB00
EEEBDD00F0ECD600F1ECDA00F3F0DF00F8F3DA00EDEBE100F1EDE200F0EDE500
F3F0E200F4F0E100F5F1E500FDF8E300F5F4EB00F8F6EB00FBF8ED00FBF9F400
FEFEF90000000000FFFFFF000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0075C5B754000000000000000000000000000000000000000000000000B1B1C5
F3ECCDC26F1F0000000000000000000000000000000000000077C3D6D4E7E7CF
BDC2BDD4725B5E0000000000000000000000000000C97FC6F7DF9882342FCFEA
CDBDA0BBB452640D114A000000000000000000C9E4AEAC8A342B2B27261C7ACD
E4D2CDCDBE555C0B430C0000000000000000AC87342B2B2B2A281C1C1B171CCD
E4BDBDA0C25E5C0F0A42000000009787403F3D2C2B2F1C1C1B191919191A1A88
EAE4E4D2E9725A12064600008B3D3D3D3131312A211C1C1C2121212121211C21
CDE4CFA0CD9C6415054600009727313431313333212F212821282122222F2222
88EAE4D2EAB8641601440000003431343B3B34832F322F32323232322F2F2F2F
32CDE4CFBCBE65500144000000003481838383873B3B3B3B343B333432333333
328CECE7E7E46E530244000000008A83878A8B8B8A818281818181813B3B3B3B
343ABDCDCFE4715E03410000000000879090909097878A858585818181813B81
3B2F93F4DFF47E5E04410000000000A59090A397A58C8B8A8A89878585858181
3B3B3ACFCFEC9C5A074100000000000097A5A5A5A59797908E8A8A8A8A898581
3B3E2F93EAD29E590845000000000000AEA5A9A9ADA5979797979899908A8783
81813B33CDEFC25B0B4700000000000000A9D9ADD9ACACA4A4AC98998E8A8989
8A8785349FE7C2640B470000000000000000DEDADED9A7AEADD9AC9997908E8E
8A8585813AE7F4640B490000000000000000DAE3E2E2DAE2DAAEA59798A5A497
978E87853B9FF46E084B000000000000000000F0EEEEEEE2DAB0AED9DAD9AC98
8E8E8A853B3BF373094C000000000000000000DAFBF7EEDFDADADFE2D9B0AEAC
A4978E85833BCF920E4D00000000000000000000FCFAE8E8EFF0F0EEE3DAAEAC
A4948E89853E98B6104F00000000000000000000DAFCF7F7EFEFE8E8E7E2DADA
ACA599918F84847D13000000000000000000000000FBFCFAFBFCFCFBFBF8F1E3
D9998B7A251D248913000000000000000000000000DFFFFFFCFAF4E7A0926A5A
5A205C5A645A5E6E4E00000000000000000000000000EFBE7E6E6E6E5E5E5464
5568556C57566B74000000000000000000000000000000B155661E67516B516D
6C80B1B4D7000000000000000000000000000000000000D86B8076C7C8000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000FFFFFFFFFFFFFFFFFFFFF87FFFFF803FFFF8001F
FF800003FE000003FC000003C0000003000000030000000380000003C0000003
C0000003E0000003E0000003F0000003F0000003F8000003FC000003FC000003
FE000003FE000003FF000003FF000007FF800007FF800007FFC0000FFFE0007F
FFE07FFFFFFFFFFFFFFFFFFF2800000018000000300000000100080000000000
4002000000000000000000000001000000010000000000002950670027546E00
30536500295F7B0037627C00425D680053676E004B6371005D6E730063737500
6B787A006C7A7A00727E7F00B4A35500B6A55700B9A65400B5A45800B9A75A00
B9A85B00B9A85E00BEAB5C00BDAC5F00BBAA6100BCAB6100BFAD6400BAAE7700
C0AD5B00C1AE5D00C4B15E00C8B55F00C0AF6900C6B36100C0B06700C8B56500
CEBB6600C0B06900C1B26D00C9B76800CBBA6800CAB96C00D2BF6900C6B67200
C1B27600C6B77400C7B87700C8B97000C9BA7500C5B87E00C9BA7900CBBD7B00
CCBD7B00CDBE7D00D3C16E00CEC07E00D0C17C00D3C47F0037678000356B8600
3B6881003B6C86003C728C00436F880048738B004F789000587F9300687D8700
7B87890064879A007F8C91007292A3007897A7008A8882008D8D8100888F8700
95918300909186009C9783009A9A8F009F9D8F008F9D980099989000A09A8B00
A6A18A00A6A28C00A9A28900A5A19100A9A39200A9A59500A0A29900A4A09900
A1A19D00A1A89B00A4A89F00ACA99D00B1AA9200B0AA9800BCB59E00ABABA000
A9AEA600ACB0A800B6B3A700B9B2A200B6B3A800BFB9A900B5BAB200BDBDBD00
CCBE8000CDBC8500CABE8900CCBF8A00C4BDAE00B5C0B900BDC1BC00CEC08100
CFC18500CDC18B00D0C28500D1C58700D7C88000D2C58900D2C58C00D4C78F00
D5C88B00D5C88E00D8CA8A00D9CB8F00CEC29100D2C59400D5C89100D6CA9500
DACE9600D9CD9900DACE9D00DCD09900DBD09F00DCD19E00E5D58E00E0D49E00
D2C9A400D7CEAE00DBD0A100DCD1A100DED4A000DCD2A400DED4A800CCC6B500
C5C3BA00C9C8BF00D0CBBF00D8D0B100DCD3B800DCD5BA00E0D6A700E1D7A900
E0D6AD00E1D8AB00E3D9AF00E4DAAC00E1D9B200E4DBB300E2DBB500E4DBB600
E5DCB500E0D8BA00E4DBB800E5DDB900E5DEBC00E6E0BF00E8E0BE00BEBFC000
C1C1C000C7C3C000C6C4C200C4CBC300CAC9C300CFCCC200D6CFC100DDD7C200
DED9C600D3D1C900DBD7C900DAD7CD00DFDAC900D1CFD000D4DED600DDD9D100
DADFD400E0DBC700E0DBC900E4DDCA00E2DDCD00E4DFCC00E2DFD100E4DED100
E7E0C100E5E0C700EEE5C000E9E2C500EBE4C700E5E0CD00EAE3C800EBE4CA00
ECE6CA00ECE6CE00EEE9CF00E6E1D100E3E1D400E7E3D600E9E3D300ECE7D000
E8E2D500E9E5D600EEE8D200EEEAD600E5E2DB00E9E5D800EDE8D900ECEADE00
F6EFD300F1ECD600F1EDDB00F1EDDD00F9F4DD00EBE9E000F4F0E000F7F4E600
F8F5E200F1F0E900F6F3E900F6F4E800FAF8EE00F9F9F300FDFCF80000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000FFFFFF00000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000006AABAFE0625B0000000000000000
00000000000000AAABD7D8D1C0C094584800000000000000000000B8ABCEA48F
386BC0C0B3B2B45849084200000000000095A4887D28201D1B108BCEC0B3B558
48043A000000A18A8935221D1B15120F110F2BCFCFB3CE674B023D0088292923
28221515151117171715128CD1C0B79452013C008F1E2E282E2E1F2525212121
21212530CECFC0AF5703390000332E7236782E332B2C2B2E302B2A2197D1C0B5
600605000000377C7C837C72386B7233332E33336DCEC0CF6607050000008F83
888F8F808078783872726B332B98D1D86809050000000088999A9C8383838280
807872332E74D1D16F0A3C00000000A19AA1A19B9B8D858F85827838723398D9
920B3E0000000000A9A9A9A19C97A19B8382828078337FD8B10B3F0000000000
A9CBCBC3A9C5A49A9B858F83807833C4CF0B40000000000000CDDCDCD1C5A4A1
A4A49B8F83803780D10D4100000000000000E7E1CDCBCBD1CBA9A49C8583386B
C0434400000000000000DDE6D6DDDDDCCBC5A89B9B8383389B45460000000000
000000E9E6E6E2E2E2E1DBC59A856D1A6C4A470000000000000000D6E9E8E6D9
B792665F55555552545000000000000000000000BA6762584F4F4C4F5A5B6462
700000000000000000000000BA5C5B5D6971AEB9000000000000000000000000
0000000000000000000000000000000000000000FFFFFF00FFFFFF00FFFC0F00
FFE00700FE000100F8000100C0000100000001000000010080000100C0000100
C0000100E0000100E0000100F0000100F0000100F8000100FC000100FC000100
FE000100FE000300FF000700FF00FF00FFFFFF00280000001000000020000000
0100080000000000000100000000000000000000000100000001000000000000
534F4500565246009A937F00B5A66900BBAE7100BEAF7300BFB27B00C2B37300
C4B67700C7B87600C5B67A00CCBC7B00CBBE7D00CDBE7F00D4C47D0061849100
90A9B200CBBD8000CDC08300CEC18500CFC38B00D4C78600D6C88400D8C98700
D1C48B00D1C48E00D5C88C00D8CA8900D9CB8E00D9CC8E00D2C69200D3C79500
D3C89500D4C89600DACD9100DCCE9400D5CA9900D5CC9B00D6CC9E00DCD09700
DCD09800DED29D00E0D49F00D1C8A100D7CDA100D8CFA600D5CDA800D9CFA800
DAD1AA00DAD2AD00DCD4AF00DDD5B200DED6B600DFD8B900E0D5A300E1D6A500
E2D9AA00E3DAAC00E4DAAE00E5DBB100E6DCB300E6DEB600E7DEB800E0D9BD00
E8DFB900E8E0BA00E9E0BE00A7C4D100E2DCC200E3DEC800E0DEDB00EAE2C000
EAE4C100EBE4C400ECE4C500EAE4CB00ECE6C900EEE7CE00EEE8CE00EEE8D000
E9E6D900ECE9DF00F0EAD200F1EAD400F1ECD700F1EDDA00F3EEDC00F1F1EE00
FEFEFE0000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000FFFFFF0000000000
1110101010101010101010440000000047585858585858585858581000171C1C
24241C241C24241C0AFFFF1000294B4B312E2D251F19140D0451581000244B42
3E3B3838241C1C0F094CFF1000384B4831312E252219140D062E581000483E4B
4B483B3B3829241C0D1FFF1000003B4B3633312D2E221F140907581000002850
4D4B483E3B3829291609FF100000295445403333302E22191404521000003B4C
544D4D4B3E3B382B24094C1000004B484645403333302E1F15052F1000000038
56544D4C483E3B2E280D2710000000285756544D4B3E3B382B1419100000003B
024B0248013B0238011B194400000000000300030003000300030000F0000000
F00000008000000080000000800000008000000080000000C0000000C0000000
C0000000C0000000C0000000E0000000E0000000E0000000FAAB000089504E47
0D0A1A0A0000000D49484452000001000000010008060000005C72A866000000
017352474200AECE1CE90000000467414D410000B18F0BFC6105000000206348
524D00007A26000080840000FA00000080E8000075300000EA6000003A980000
17709CBA513C0000FF8E49444154785EECFD057894D7BA368EEFB3CF3EE7FBCE
F9B6BBD6DB5DDB7577A5420D8A3B944229B49416282E856245E381B8BBBB4042
90900477B7E0565AEA2DCFFFBED77AD73B6B2613E83EBFFFD96D215CD773BD93
99C96432E4BE9FFBD1F5A31FB5FC6BF9045A3E81964FA0E51368F9045A3E8196
4FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81
964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E
81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A
3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F904
5A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9
045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E51368
F9045A3E81964FA0E51368F9045A3E81964FA0E51368F9045A3E81964FA0E513
68F9045A3E81964FE087FF09A41795DC061B092B80ED837DED5CBBFCF07FBB96
DFA0E51368F904BC3E8115070B7F0CFBEFB28692EB73CACB42B34BCB8F2DA95F
F9C58E3D7B65FFA1C372F0C85159B56193C465E69D19FD41C0897EC346D58D9F
3D3B3EBBA2740E88616D5A61F1295CCF26E7157C383F39397A4563C9B52B0E14
FF15AFF95BD8AF9D2B6F9BAF7FCE9F07FB89F3B3F9F3BDACE5BFA8E51368F904
FE059F80017FD1B2D27BB3CBCA172D6D58F5C5A79F7D26FCF7C5975FCA86ADDB
A5A0B2FAAB8894CC139302C34F4C981B7234382EF993A4BCC2AFEBD6AE976327
4FCA975F7DA59EBF70D90AE9F6FA5B879F6DDFE5E0A86933172517E445A41516
2D4BCE2B3C0D82F826A5A0E854446A6A72EED2F44741105780287E8F9F6FC8E0
A7B86D8CE4F07F61FFD94210FF823F82961F71F17E020459E5BA922B01FE8AD5
1B376BE4E3DFD286D53262FADC13FD868FD9F772CF57B6BFDCABEFD6DE6FBC7D
68414AFAC70DEB3688218943478F497852FAD121EF4D6F1C30727CE3D0F73F38
30737ED4871129695FC466E67EBEB7F1A07CF6F9E7B263CF3E094D483DFDCADB
234EB4EED0F5709FB786AD7C3F64EE0490C08D4A3134965CEFDCE6F51A8B207E
E9A80592028D246113845211FC1F6C511117EFDF71CB6FFE3FF8041CC0FC3CBB
BC7452F58ABA3304FEE98F3E1600F970AF37DFD9342B3AE82D80F1265ACDD6B2
A71373F3B78C9EFAC1D12FA10C3EFAF88C7C101E7DB46D8F5776BFDCB3EF8EBE
6FBFBBFEB5E1A31AA706049D9EBD201A2FA35E4EF8DC6DBBF6487E45D5977322
E38F4E0D8938316CCAACC32FF77AB571F098891F421DEC295858F5615669B940
25487C56CE37EF8C9F74FA8D31EFD50E183132D9F9F9D72852D0244163880105
51FC47FC0E8620A8180C49982BEF73C38CFFC147D4F22D2D9FC085FB09101C85
4B4BEEC82A293B781C52FEECD9B3CAEB8F983623DB011A25FAAF19CFE7559647
2D6958A9407DEAC3D3D2AE77BFC667DB776E7CBE53F7DD8F3FDFA6715CC0A471
D9E565F9F995557B9837E0BF465C01F8831DFB0ED8DDA9DFC09D9DFABDBEF5C5
AEBD1A412E07C293D2CE00F8B266D366397EF2940A37986B58BE6AAD44A5659F
4628D1D867C8BB27A68745ED49C92FDA1A97957B263127FF1BE41B908BC8FEFA
DDC9530F0C1E373133243DF80510C1D50E215CEDA809280A75DF65569861420A
5E6D6B21880BF74FBCE5373BD72740F99F5556F24E556DDD29023631A7F04C97
D7066D51DE5627EF1883FF77716DC9FDD965151F9E3AFD9102F66B23C635CE8E
0A99D1AE578FF4079E7CBAF1EE871F6B1CF5FED40D79950BD753EE9B108224F1
68EB17773FFD72C7DD4FB57D79C58A7DE5AD17AE2DEF139192DE889FE9861108
3D64DCECE07DC81DEC1E3466D2E1F702C24E4C0E0C3F9C5552FE7549758DACDF
BA4DE51ACE7CFAA9ECDCBB5FAA6AEB657644DC5128951343A7CCDA1F9A905496
5A50BC292127FF9421092889AF26CE0ED83A2960DE7C456624032626F5F50AC7
2E7108822AC210047F679AFDB51B66B4FC45B57C0217CC2740059059525AC06C
3FFF751F38E4F3B951F38758E057D5819C8AB2C9D575F5EA3988E3CF0C1831A6
5C49F3FDA577DE7CD7BD7B1E6EF5CCA190D8F8CF37EDD8F9099FC378BFCB6B6F
EC9A1D1B38B2559B76EB4912773DF46863BFE16FCECA2E2B5BBC7AE326F55A9F
7FF105817FF8B98EDD76B76AD3BEB1DBEBAF970C9BFADE82B7C74F28CF2DAF94
755BB62A92F8F8CC27925552F139730C788F8D7DDF19D9386666E0E189F3428F
6616977D555455AD9484494832FC285A54F3CD9BE3A71CC6CF3DFCEED459ABA2
33D2A273CA2AEA11721C4728F3259544624EDE6721F18925D1F9914F81103419
30ACF010C55F9D308364C8DC0389816440334461EE537988967F2D9FC00FE613
600E0000DA0D09BE97B21EF1FCE7CE1FBA5D9EFB4FC4E7AB4812DF7CF38D7478
E5B5230366BCF668A7311D6E2168EE79F491C4AE7DFA9E991618F2D9574E3560
E48C79A78312C387005037B7EFD363F64D77DCDD78E36D77368E9834796DE5D2
E5C708FE0FA1267A0C7ABBB1EB6B03973384B8FF89A71AEF7DEC89CD4BB69577
2DAE5A7C7CFB9E3D8A24EAD6AC17029EEA80F6D684B149EF4C9E18DBE5D5013B
F22A167A91C4A2E5753278C2D4C6DE6F0D57F6F6A4198A24A8244A172FF15212
7B0F1C948973434E202441D5A2F381A92121099925C58909D979FB92F30B3F01
419C05417CFA7E40F08A69E1F3863921C59FF1F980244014078AFFAC4CE72158
DE6435C32BE76091454B98F18341C545F646338A4B3FFBEAEBAF85E0419C7ED0
64D4CDC7A048A2A4EC0493836535CBCE761F306867D73E97A4DEF6C88FE58EBB
7E2477DEF75FBB8222C2D7C564E47C49C0B26C88BCC02E37FE46C2EEEA1BFEB1
FBF67BEE3B151A97F0D581C34714B0E19D4F8C9C3E33072AE2E1879F7EA6EAA6
3BEF69BCE1D63B1AC39353EB56AC59AB9E535C55F34DFB3EFDB6BED8B97BEDA3
CFBED0F860AB671B5BBDD4A61224D1198F9D3624B162F53AE9FDD6B0DD7C4EBB
5E7DD74C0E9A3DEFB57747967479F5F5C6F4A2D2AFF89EA8248E1E3FA14A9A20
05860E8751D25465CD99E1911F22C7F0E5B295ABE5F0B1632A1F61940CFB1EA0
500E7778A5FF9629C1C151C9F9F9A9D1E9597BA1223E2549248024662F88CC77
C20CD3FB4032605861F7409864A5AB18F8D95A24E1F6415C647F822DBFEE77F9
0980003E671D3F21BB8004F031DF4B5656D635F9F9F9F3E2E2E2F6272626EEC0
73CE9224E62767C8D071E3F7BD33E27E69FFCCBF4BDB277F248FDCF76F929C95
766259C3EAB3040D2A03671F7EEAC94377DCF56F67EFBDF3DF4E3F72FF2F2A1F
7EF8B7AB070D1DB621383EF96B3E67F7FE467AFF3D3AD1587CF54BDD3B4EB8FC
9A6B4FDC71EFFDC710CB7FC95C03653F4A86BB4010F7CF4D9EDD09527EC72D77
DFD708A2D85DB868D112F620F0DFC66D3BD07B3078EB132FB46D7CF8E9E71A1F
7AEAD9CD2BF6953D55D650D8AFAC66E947BBF6ED57CF6372714AF082832F74EE
B1BB439F7EABFABE33B4A4D7A021BB4213533F5DB87C859B8F60F890925F7C7A
F8D4D98D485E3211D9081238302D38FC432423BF5EBE7A8D1C3A7A54F53E3079
B9A47E95201C39C1AA06D4CCC2B8FC9441A8AACC04392C4945DF03FB1FA0283E
8CCE480F74CA9B541126A4B0898204C130C35745B434497D9700B9D07F767A49
D9D1A3274E484C46EED9E73B743EB26FDFDE86DDBB774B6D6DAD141515496656
968000D41F3C32F2D2E3F5C102621010842C5DB654EAEA96496671E9371BB76E
570400CF2EAD5A3F7DFCE55BFF8FB4BEE527F2F84D3F92C76EFF77098F9CB32F
A728F7109F939C5774F6F1675BEFBFF9C19F34DEFAC8CF2AAEBFE3D7C9975C71
7943CFFE034E9A5C435EF9A22F068F1B1F0525711581F3D0D34F255D75DD0D87
EF7AE0A16388E58524C184204A903B01F856500655773CF070237212875FEADE
2118E1C19A554EAE6171DD4A413FC32E2624A9129E7EB95DC5926D656D324B4A
AAAA57D4ABAC252B10A8801C6655E399769D1A7B0C1AB2E1D57746ACE93EE0CD
C6E9412167EA4138A6F7614FE301C9282AFB6472D07C2A88134C5A8E9D157474
D2DCC08FE727267F59B9ACF6E4A6ED3BD56B32D4401315AA1A830F23197AB8FB
C041450BD2E2078324666494945682288E932460C7721795BEAD92930C333C0D
52A6F7C16E92F255112D5D94173A50FF377EBFF691994F85E5957CBE76F316CA
7B69D7FF0D79353E4F26E456C8FBE9853237AB501664E402B0054292786F5EA8
F47C6D90CC9A335782C3C2253E2945B2F158504C3C62F575CAD3A27C2743478D
95E8E868494B4B9182FC4CC9498F92ACA2C24F376DDFA19E03C0C813AD1E3BFC
EC9DBF3DF6C4ADBF3CF1E0EDFFF9D5DDB7FDC75791F1E17BE9B1E9FD5F1D3AEA
CBBB1EB86CE98D8FFEB4E2D6E7FFEFF4BB9EFECDBC6B6FBAE5F41B23467F560B
2FCC7F00F5E909013346B28168E0B82183AEBEFEC6C357FCFDBAC36DBA76AB45
62F01B92C4F6DD7BA5FFF0D1B5812981FD00FE1DB7DFFF90228984BCECE8A245
8B8F326F41C94F0F8E04E31E2A04104563FF918367902472CB2B566C401582FF
F8BED00DB90FCFDDFD52B7DEBBBB0E7863239FDFB9EF8043F3A262CF20DC807A
39AD9ECB7F248AD2C54BCF8625A61D8D4CCD3A8126A9A3E367CCFE302623FB33
1054634276FE67A8769C7875D8E8136DBAF73981D73CF1CA90E10D83468F0A71
9AA2D8FBE0D324A5CA9B26D4304D5136499826A996CAC5FF06682E94D76C9354
7A4BB7C4A24F370094C528B5B1F3AFCF5BC3657E69B54C01018C482D94371372
A4577496CC4CCA90951B364A4649853CDEA1ABF49B13264302E6CBFBA111322B
74BEA00220A939F94230C123CBF899F3E48359B325202454A2E212A4B472A104
C725CA017844FE03B865F69CB9DF2425C54B667AACA425869C0D9CF1CE37A1B1
D167986B6088D0B96FFF4F5BDD7BC5FE476EFFCF2FEFBDE53FBFBCF3819FC86D
0FFFBB4427C5EEA6573D89A4E5FD8FB7FAFCCE7B6EA9BCF3E9FF33E5C167FFDF
D02BAFBD7E3B54C2895153669C6958B75E3521C1AB1F8AC808EFD2B0A7E496C7
9F7B3611F908A522E2B2728E921C98D804000F8F9D35B7A8DFB021F3EF7EE4F1
4692C4434F3D5D99555E12B5B8BE417534ED3B78481812B062C1B22612871B19
6AE806A9BC2AFCCC1326097AECC44901E08F22A4C2EBB466BFC4E18E7D5E3D34
3722FA34AA109F1E46F7A4F9C730A2A47AC9591A14D6D1CEFD07B1747A383026
6125D4C11EE426BEB0FB1FDE9B1B7C7C5A6878E182CCC82E4E48A11492D524C5
2ECA4B1C1571BECA450B495C2880FE677F0F104059D2FA1D278EE28F95253724
D564C4B43912383F52B6A28CB7174D3C1B76EC922D0009FE3805B1B98AB75B77
E929AF05C748AFC06879795E8CB49E1B2BA32213656444A22AEB91005E9B3055
46CE0E92F7E705494070882C888E91B0C464F53A04C7838FB79229B3E7C99C80
40494A4D938292528413CB253C2159986B58B7659B209977363626E26C44F86C
991F30F1EC9C4903BF19F1CA83679372F3BE2449F039F73DF6C4978FDCF18B33
77DEF9EF676F7FF82772CB7D3F967B1FFEBF929495B29E24C1F7FBD8B32FECBB
E7F15FCC69F3CC9F3B3CFFFC65AF82004EB36A3127225AB53DAFDDBC55003AE6
1AEEA6DD7ACF7DEBFEFE8F9B1BEF7DF8D1FD94E56C90E23FF43E9C183B737676
DBEEBD6A4912B7DDFBC0E117BA7408C9A92C9B0195B0C6F43F302C4158B0EFA9
B61D76B7E9DEB36AC5FEB2276BB6953D1B97955D3F2528FC3813A97C3D7E0EE8
BB388572A96AA8621584A5D081A3261C88CEC83E63FA1F4810274F7DA8DE676A
41C947F87C4910CC4DEC8B4C4B2F07A1EC457BF6E7ECA0646913558CAF42E393
D704C5478C56950B3D6FF15BAB72C15E08542FD4FDCC45B84359FFECDF50CBF3
7FA09F00C0DFBA7D4A79D557DF7C73F6CBAFBF918D8857119753DECAEBC34749
6A66966CDCB95B36EDDC03DB2DAB376F4362AC887F80F21662FCD113DE933D07
0EC92ED81A00B100E41190942E354888BD35719AB4E93B503A05C7CBF373A2E5
C9B971D23E285E66C624C8BCC434F5878FBE00193F3B40851241A16112018288
84858200186723532FBDDF7C5B464D9C2C0BA262A4BAA646366EDE2CBB76EF51
EDC22409862C8F3EFBFCD98890E9F2C1C481327148DBB3EFF4BDF793979EFE91
A4E566AAAA05BCB0DCFFE8C3A7EEBBFFC7F2D03D3F3E7BFF1D3F96076FF9B1CC
8F0A5EC7EFE73FBCDF4F5EEED6ADAC75EB2BBBF7EDF1F84B8FB56A15F3D7CBAE
38D1B9579F33850BAB3FE573D853D06FE8C81524886133460F402872984AE299
97DAD6203FB2D9F43FB0C2F1E6B8C9DBEF7BBC954A482271B919DF730FFA28A6
152C5CE49204150E5447E323CF3CBFBB7DEF57D7E42E4FEF139A1C3565524050
616842CAA7A6FF8173166C9F665764FB3EFD554292DF479298179DF021929C6E
69733DFE1F328BCB3FC54CC661FE6C10D0E1C1E3262D89C94919857C43381291
3B93720B54E582E5CDE921E1CB425317F472720E2C632A22F881FE49B7BCED6F
FB0900FCFF09DB5EB3F770FD57DF9C3DFB0508E0CC679FCB2EC4AB2480A1EFCF
9471EF4F95BA55ABE5C8A9D3D278FC94EC3A7C4C56ACDB882A403ABD9B74EBFF
BAE416154B23FE40374321D4ADDF2CB199391C0A12FC61CA536DDACB1264DD57
6EDA220D1BB7C8ECAC62991597AC6C0B08A575A7EEF2D2B8E9D22A20415E9C1B
2D1DE6444AEFB911323B2A4EF6436AB324D96BE060993C65AA04218C484C4995
42A88485D58B917C2B55C3452489675EEE20F323A3A4B8A444D6AC5D0B82D82D
BB76ED56494B9204C9A863B7AE67668C7D5586F579F06CF7F697C8E38FFF4892
B2D34EB0FB90ADCAE87D38DBEAB1FFF3F55DB7FDF89BBBEEFAF1D95B6FFD8F4F
EEBFF7D2F5D302024F6E06313AB986334F777E3EF4B50FFADF4DB97DCD8D37AD
FFF325979EEEF5DAEB0752F20BD71AEFCFDE830519D1A31F6BDDBAF0BA9B6F55
24F1C6E8E1D3F07EB6DA4D52A86EEC84B7DF4B8F7FCFA34F1C1EFEC198410825
9ECCAF5CB86D2BDE3FFF912490506D6475A3D79B6F5562702AF0AD8913E2313F
B10E5EFF7353DAE4EFC0612CF43C34327CE09C051393FD878E3A3076DA071FB2
AA82F2E617F6D42688E29377A7CD39C1D084A3DD61E9F3BB387905860C2D24F0
6DC1F4437C1EC03FA85BC6C2CCAFBFF9E6AB2FA1004800343403C8E7B806C626
4941C52299363740C64F7A1FB1FF6659B5739FEC38764ACA96AC905133E609FE
D864C4F849B2BCBE410E9D3825FB8E9E905A4C08962E592E13E78549CF37DE91
97BB76979DFB0FC8FA1DBB65EDB65DC8332C41A8B110A1C612193F27447ABF3E
481A366D9505A50B655C5CBA0C0E4F90C99109EA792CD9F57A77BC3CF741B874
847A7835304A868444CBA8D06828954239845C02868BE4B9761D551811019590
959B2725E515B268718D5209AC5A30D7F0E688D1121D1B8BAA4581AC5CB91204
B10B24527296C9469211926F32F58DAE32A4E3839FB4B9F7E7F2F0833F92FB1F
F8912466A6A157E963D5D5F8F8F32F7D75D76D3FF9F2F65B7EF2F93FAEFB8F93
D7FCFDCFB5975E71C5AEF1D3A6A3CC57AA3284242D24F0EA99BCEB3AA8D71B7F
BBFCCA137FBDECF21343468D5E0160AF627E803989FEEF8E6D0C4B8B1CF552B7
CE714C46A2F7E1F0834F3D999EB7B03C9C3B18F85AF4FC6889DE6594041BA4A0
241E612881F98943A6FF813F13EA80390990C4909AB726BC97D7B9DFEBB59D5E
E97F302826E10C1AA0BEF9F0E38F15A1B0D10B2AEF34AA152758ED4049F4041B
A5581501091E7E77DAD4D0657B8B2F7794404B57E30F11DCE77BCF00FFAF6127
777FF8F1FEAFCF9EFDCA809FC03786B04022209D911197EEF0F43DFBF69377C7
20AB9F532C07118B26E715CB689040746AA64C9C36434222A2642D40BE6ACB4E
59069590843001DE45BABFFA9A840198BB192A1C3AA29E935B59A5BE1F7F7CD2
B14F3F098E8C963D478EC9EA6D3BA51E6450087288CBCA53B13BA4B44C080C95
F753736508F20B7D9173E81E182393A393D4721294E1E4E98E5DA5C79CF93228
18E4303F4E66C724CA82C414C1DE0194094FCB2B83DF9111085766CF9D27E111
91929C9E21E95939121015AB1A96581E240144C5C44A7C42A22C5EBC58B66CD9
2CB5CB170BA53249844AE3F98E5DBE7AE5A5EBE4A95B7F228FDDF02379F8FA1F
C93D77FCE49B24F43F542D5FA1627AF4357CFDC8530F6DB8FACEFF387ADDCDBF
ACFEFB0DD7AEBDECAA6B1AA7CE0DD88BB907E5D601C033BDDE78BBC1B451A36A
B1FFD22BAF3EF1F8B3CFD5A1DBF228AB1624090C501D8D29881EF858EBE72AD1
FB70185D94877BBCD977625E6565DED295AB14A0F9DE9FEBD87527E4FE6E261A
D920C57063F196D207B2CB4AB393720B8FB2BA410B894F61C723A7367777EE3F
706BDB1E7DB6B324C9A94FB657B3ECF9E48B2F1F7E67F2B8094B77AB04227B11
5A48E07C80FAA13D0EF087BC55BC3C0E20FF0AF6E5E790C936F8A90210154828
627502039E415EE8D44D86BC3B52A25233E4C899CFE434C285CAE5F532795E08
FBFDA553EFBED2EBD5FE52B3A21E20DF235BF7630230344A1624A7C92B03DF94
C1EF8E92D8F42C590D02A85ABD5ECA96D52A05F0E6D8C9D2A65357C92C299786
2D3BA47ECB76590E024983F70E8A4D96511F0448973E7D6515C8E0F0E933EAF1
9AB51B246F61B5A416964839D40624AFF418365A0684C64AEFA058E9189224CF
0725CA9C944CD98ED6E5DE6FBD2BED416483E786C9F8C030998D0427CB97E848
54494F26EC9E7CEE459905820844A8110B12484ECB90D48C4C41BCAC929A4C5C
3EDBAE93E4E6E6CA9A356B64DDBAD5B26471B9E4674621D428F99A6102138E00
D4D956F7FCFEF063D7FD48EEFEC7BFC95DB7FF585EBAED476C923ABE06A110FF
C15B7FF568AB07EB6EB8F36795D7DFF4EBC41B6EB96DF5F5B7DC7EFAD537DE6A
342DD22BD76F423566D8D215FB4B6EEB3FF28D216C90029120DFD0A60AFD0F1F
93243EC150D41B63276D8B2B8A198841AC9D4848B2416A3F88E50E6C699A9C53
5E514F8FCF7F6F8E7BBF91E0E714E65B93878FE1FC060928BA20A20D3A2C9732
0C51950728012417F7CC4AF8A095D3C5D8120AFCD0007EAEF70BF05FD536A974
D7C75F7CF9B1E3FDBFD0046093C0D782C790F02B91F6DD7A22A3FE98DC74C75D
F2C8134F4A60749CD4ED3F2A67BEF8528E9EF954C6CF0A1024A604757079B143
674512E900F386C32764D7C9D3327ACA7441EFBEDCFBE813D2B3DF007973E870
C9AE5C2C6B76ED95E39F7C2688556502CA8549E99908151A65E7E1A3B206A146
3D128E09390502A92A03468C935193A6E0FE3DB26AFB2EA9C3634B4002C9F0F0
F139852CF1C9034F3CA508A4168F55AE5A2FE50D6B24B9A4E26C51D562098E4F
91A751B51808826837374A9E9F172B4F06C4CB84A8440981CA61C211009077A6
CD96097302655E50B0AA5A9010A252D3558EA01E3FAF0D48300AA5CEDCC22255
B1C843FEA3189593509436A9565891400391D4D42C96E5CBAA657155A1146747
49D8CC21929A5FF015139FEC214009F1ECD357FEDF4F1FBFFAC7DF3CFC8F1FC9
7D77FE9BDC73D74FBE0E8D0CD8C95E0CFE439BF257773F74FF8AEB1EFED5EC2B
EEFCED4C94361B4102A7070E1DBE69113A16F92F3E2BFFCCE8191FCCAFDB5772
C7A3AD9F510D522089135D5F7D250CA4B4B176F5DAE37C1E9B95BA0E78732743
895BEFB9BFF181279F2C5395013DBBC079862B068C7EFB5DA8885D24827B1F7B
F230A6360B9D7CC0FFBD90FEFE2FFADF050450F0C1B275295F41FA23F3FF25E4
FF179FABB85F1300BD3F0D8941A987179A1910241DBA7453E0BFFBDEFB24A060
A12CDC79503EF9F22B39F0D127322B384C79F0DBEF7B50EE7AE061B9E39E7B65
7E5AB6646FDCAD88A2FFE0B7E5D6BBEF63838D3CD8EA1969879C40BBAEDD64F3
D153720C0472E0F4C752B1AC4E6687474897DEAF481C88A066CD06A95EBF4516
AF5C836463A84AE28D9C3C4D92B37364DB81C32002241C112E142FAD9558840A
540924A13E90FA6BF736CAF28DDB64196C05C289243428CD8D8C97763D7A4B28
92977550209578FD9C9ADAB3D3E253CFCE4B4C1566ED91559756BDFAC94B01B1
D22A3051DA04C449A78018991411A754068791209951A988568D4F2482B00511
121D172FB119595281F74239FE5297EE2A5959CE1D07EB372A5B8744630C7EAF
23C78EAB39044876494F4B90D888B9123F7FCAD990696FC89BAFDE2DA97999A7
F639BD0D9DFB0DFCE6991B7F75A2D5ED083560F7DFFC932F9FB8EBBF4E074786
EF67D8C2BE85E73A743D76EFDD9745DF7AEF9FDEBEE7FEBF0D47D5E2F4EFFEF8
A7D303DF195A9F535656C60E44861220A5C31159D1A341E29B4912484A6E579D
959EC9C69FB2243872CEB8AE5012FB38B1891E8803AAA7009D880D12FE6F173D
702E840F00E07FBA5D4AF962CA7E009CB1FF17B0CF55E2CF210143003A21F895
94D7AE94F85C740202D413D38AE4BDCA95B2F5D88772060470ECD3CF54967F2C
9284CFB7795981FF9A6BAF93E999C592BB690F88E2800C1B334E5E6CDF511E7E
EA5941A65BEE819AB8FEE6DBA468EB7E39F1E9E7B2132AE138AE689145CDFF55
452663274F9145F5AB05390A398C706362E07C95331832728CF479FD0D991B11
23A575AB64C5D69D5254B31CB904C4FF63262149D746068E1C274B36EF94F235
9BA472C316C942BE014B47542EA31B14486A712594C947B26CD376295FB9160A
224FE53AA8125AB7EF2CA90B6B246BC98AB3E3E3D3BE79073987B1C82984A7A1
1C0A0FDFA1EFEBF2D4BB93E4A5A004E900A2E885BCC3C0B9E132073907CE47B0
A2F03CC01D3A7F81CA312CC2E461252A166520035409841D9054092FE0E74422
DF500005B161D326D9B663A7EC44693306211249829B9390F53F9B183D4FE6BE
3FF89B29233BCBEBFD6E97C79EF87749CCCAF88824C116E3479F69FDF913B7FC
E8EC1337FFF89B47AFFFF7CF9FBAF5FF1D79E0CE2BD706CD0FDE18123E770913
8EDC99C036E97EDDEEEE79DF430FE7FEE1CF7F39FDFB3FFDF9F4CA3DAAD5D84C
2E32D6FF3907B71E6CD5AA98539B68A73EFCC8B3ADE6502580005AF2003F7402
00F8FF1DB63A73F39E8AAF3DE087FCD704E06B9F3AF79DFAEC0B59D97854E256
6E93D4B53B65133C37C14FFB08610043813278F0F766CE9151D33E90F7324A64
54699DAC3F7C52561E382679C8D23349F80AB2FDF73EF4885C7AE555F2F7879E
90BCCD7BE4045E7B1D42850224FDDA76EBA500FC74DB0ED2A9676FB41ABF2E2B
F0731B4102EBF19CF0D46C956BC0908FB4435882785932F1DA3B01E6528EFF8E
9D24AFBF3B46FA0E7A53A607844831DED362242457ED3B2C9169394848CE56E0
1C38628CE42E5E2685AB3648E1CAF5925CB65012D0FBC0B66455B5C06BD76EDD
25359B7748D96A743DE2B971D9795012853270F47BC889F49619A9B967874526
C96B4151D227204ADE098B95D9A89A300780F8593A4F0990FEA1F1322C2A59C6
21CC98BE204622900BC94755A57A4583B4879298036515151BA72A16554B96CA
E2E5B5129D9629BB100661FE01D5939E525A86506AE346D98D91E83D7BB199B9
B1515536A82298BBC0E77576EA98BE32F09507A54BC7CBE50E0C65DDF4142A17
286F7E103845CD514F0D59F0CD33CF3F7DE8D527FFFDD3EE8FFCDFE30FDD7BDD
EA1B6EBEF9C05DD7FE3CFDAA4B7F1373FDD53F7BF7D24B7F3DF4B22B7FD766D3
FAC25FAFDB54722D08E018428E1337DC7AFBF2BAA3B9BF0301FCA44505FCC019
00E01FD035636136BD3FCA7E48FC7DF3B9B6AFBD0880C0F7B54FBEFC1A925F9B
01BF7D3D062FBD78F72199BD649D84D46E940600FFF4E75FAA1081798245680C
0A46C6FD95378648BBB7474AFF8422A9C77348006B0F1D97ECB24532F09DE1F2
E853CFC815D7FC5D7EF7FB3FC89F2EBB5C62566E550AA072C701990F02680392
40FCEC84123DA4638F9EB2F5C469D90D12C8ADAC41963B59068F1A274FBED056
49F11EE821C859520F9239AEF2042C07764155620A3A13ABD0B350BD05654910
41FED23A193D335095359F439C3F60E458C981F2C95CB146B2EBD7495209E27C
840A980614C4C9120A4259C3F7BD629524552D9388C2324940B230323D5BDE41
FF44DB3EAFC99BF313A57F0892922171F232D4C280B078998FC799086CDDA987
BC32334486A3A43907CA230AC04F41C2312C3E494D1532E1D8AE6B0FA8041244
A5D4D4AE90C5489A524D9000B86A8DD58FB6784E1A2A1A1515152A3179E4C811
D9BA65C3598C6D7F939453A05634535975EFF2DCC1979FBC7A5F97477F76AAFB
C33FFE46D9433F925E8FFEF89B3E8FFDF8ABDE4FFCC799AE0FFFE7E93BAEF9EF
FD775FFFF36577DC71CBEA9BEFBCE7D36B6FBC7EE97DB7FCA6E7CDD7FFDBF3C7
56B7A8801F2C0500FCBF60D96FD7A98FF652FADBE027017C0AA968144013F083
1034F8B5D737F6316E7FFC85C73EC26D2A02DA69D887200063A73FFF4AF69CFC
580AB6EC95D8555B65D9DE230AFCB41D00F0495C0341106F0E7B579E7EE14581
549569E90512BE62B322809C8D7B241520EC3B68B0DCF7C8E382385629899BEF
B85B16ED3A287B3F3C236BA1122220D57BBEFEA6220994C4E4A5CEDD644A7894
AC3B724236C0A68545A32D391844F496B4EBD94786A0872118DFB374EF21A903
210D1CF39EBCF3DE3419346C84CC414EA2607983E4542F93BCFAB592803E8591
20000C1E496B28893490435ADD5A495FB11A4401831A89421314498209C5E892
459285EF0B43C83117A5D39969B98A241A901340424E3A0C1EA62B16E86F7811
150B36438D8B403E213B5F0D2E3D81D7181FB240E6A76420E15826394C7822F7
908CD7600E8004802E4555DA6438918DFE8645354B4016756ADEA200A10F773B
32F4619871F8F0613974186DD11B6B65594D8A94E7CF95B8797D64CA9087E5DD
EED70B09C1588F87410E8FFC485E79EC47D2E5D19F9EE8847E885B2FFF91DC7C
292A1B7FFF8F86B1FD6FFD47CCD4677EFB8305C4C5F6C601FEA9FDF26A12E0F9
BFF80246D03BF619AE9F7D0A3093009AF7FC7EC06F118006FF570AF8CA2CF093
044ED10072029D66C07FE2D32F544991A4C1E7E5A03A9054542E710B11D72F5A
258BF71C5604B064EF61D98712E0F8E9335195E881198227E4C65B6E95490919
92B8760708E063450401A850F443D2F1D1679E93ABAEBF517EFD9BDFA2D41828
2B00EE8DC73F9435084BDE1A334125245B77E8221D50BA7CA8D5D312087056E3
672CDD7F44F526BC0D6278A66D7B79091E76E42CF40EE495E2F143F2414CB20A
033ABFD25F2525CB37E0AC84359B2565F91A49A95B2799A59532160D502C9D62
6048929643212C5B25A9CB49126B25B5B442C2912B606503893609C4EBCEC82C
94F753B26552621609E02C1395CC133CF1523BE93233542523D946DD2E38413A
0744CB5C28863C84125C7EF234DE2387AD58D28C4B4C52FD0D2948368663DE22
12AFC31C40CF41432405F988A52086DA86554A4D2CC1ED250839AA411879208E
EC9C1C5CF325252D51E2E2C3CF46CE9F2CD1A1C324785A6F19D5EF0179E3E54B
A5F713FF2DBD1EFF2FE9FDD88F3F07F82738D6F162C3D20FEEF73565BFD39F7F
715A4B7F057E057C809EF63909C006FF27F4FACAF37FE557F637E7FD0D0118CF
AF80EF982FF88F830898FCA39DFAFC0BF5F3A82828E7593D587BE88402FF21D8
AE531FCBA18F3F912A2406A33373651E5A8927A515CAC8B23AA942E84102E0F7
241597CB8C907079B66D3BB9E5AEBBE58AABAF91E0F45C895BBB5D11C0D27D47
A40F660BEEC70C024A5D18107A5E7EF68B5F48000098B46E87E46DDD27CB1B8F
21D9374030922B18CCC1B597DC87E797ED3E288BF61C92E9F0D2D39174ECD2E7
557909F98037DF9B2AEFA3292975E152C9DFDE2841E9793260D40479A1631719
F7C15CC95FB34532576E90389040EC8AF5128F70613CFA113021A8FA2B52A024
9296AE94B4DAD592BCB401FD0F65E8C24CE6B665E904A5302919AA222E0D1D92
F1675F0F8E3E3B7A7E0CF22199B219035A4F6222F3292887E7306BD1615E94BC
121029830317C807917132373A5E7512F64375637670B8E4A32DDA581E878592
53257441A484A1812B1C8D58AC6AC482449898ACC5DEC71D3B77CAEA75EB6407
3A26B76EDB2E5B300ABD63D75A19D1EFE1B3FD5FBE62C1B4A1F74F0A99F044AB
1F1C202EB6370C02C89AB47875E297E8F675E27D037C97000874430036F8FDC5
FB36F87D65BFAFF77709C08FF737E0E7F518ECE827DA8EA0378066C04F023808
E37D5411047B15CA90B94822D602F47B4F7F023BA3C28043C8372C80A47F67DC
0479BE5D079987C1A3E4F53B2578C526D980CA059F3F233C52DAF77A45EE0701
5C72C595F2ABDFFC46E62467CB84852B6526721849E5554806BEA59291A89BCB
83483AFED77FFFB7CC4CC9912A842E95BB0E4904762310C0584D268F3DFF92BC
88A4DE28CC4F146DDF2F655BF7CA3424FEA62011D9031D942C4F0E9C3045428A
16216C5827291B76C9FB11096A610A9A86E4C59EAFC8CCF26532BD7489842F5F
07B5C0AA4B81609807AFDD46E665174A2208227A71BD4454AF90F9E54B51B928
E07090B40181F485221919930272883AFB2A08A0F7BC48191A8E6EC8843489CB
2D526AA3EDEB43644078A2BC151A2323D1463D0161D074242123906388455811
9B90841C4496E422CC285F542D75D8B3B00E53871F9F3923C7B1FF611F129339
68800A8F889067EEFC8DF47CFC9732F0A5BF7D3CB8FDA579373FF2CB9612E1F7
955400FE075E4E2EAB43BDFF73D8178EC737C0FF145F7F0AE07FA13CBDEBF59B
C6FB5E71BF23FD9B801F9EDE96FEF4EADABE6C22FD8FA38BD0009FE03FE680DF
10C0613F0470F063F40CC01A3FFA54F623B9B80FA6C1FF89EC010134E2319213
9FB7032A6223AA15D99B76CBB8CA06A512361D3F2D9BA102CA51169BB1205ADA
40DE3FF1FC8B321584105DBB5EA656AF91698B11D71757C898394118646A2737
DD79B7FCFAB7BF979FFEEAD732342643114016F2118150152F01F4AC5A3C8A0E
C2A7D021F893FFF80F4942EF43C1F60352B163BF042169D9B6475F4D12484A3E
85BCC1ACB43C490301246DD82D6FA301EA6D10C3EB487E62584742F391488452
8985C5D4AE9191D3E7A90EC7C721F3C76597C9FB45D532AD04D396D52082E285
1286DCC0789447A7417DCCC7F72E58DC204195CB657256898C4FC8441355BE8C
4365634678B4DC0B0533202406158B48E93677814A4AB64623D4B3C83D740D4B
924151E93236395702F2906B4042B412E5D163003EDB878F4045CCC59CC51C4C
6B72D0EBA53B7F2A5D1FFAB9BC8BAAC33BED2FDBF67DFDDBBFE8DF9729FB656C
DA53CE861FD4F9097C02DE005FDD260110E0CD65F995C7F713EF1B02F017F76B
CFAF09A089F47764BF4D001AF8DEDEDF28007AFF836C1822F8FD1000C14FDB0D
05C0E732BF7004CF5B73F038807F501A7065A5600B6C3B4209BE9F1DB8C61655
48645681646DDA2B53AA574BC98E46294008C0E7CF8A4B4125601C877F047B01
6410B2F593AA57690200A984E51449EFB7DF95FB9E6825975E758DFCBF9FFD4C
FEDF2F7F256392318884D74907114C8D4E96E7BAF450B906B4D7CA834FB79617
D06814B11221C1E6BD9288E7CC85D41F3276A2A0FF5E5AB5EB2C6FA3E929068A
250AE5D605ABB7B17D573A6156022724490C428C782888F94B574948FD4689C8
43B975163C797C1A720B0B656C6A814C2D5E2C33A024E64025A42F5C2CF1F9C5
286F86B3A740DEC2DCC6EC8AA5323A3157062F489481F89D0604459C1D08E5F0
4E74EAD977137364081EEB1D9529738AAB650B06BBEA31093A2B341C7D14A982
05A8AA5A4102E8F6F0CF14010CEB70D9BE8B1E68DFD70F0004D0AB535A653E1A
7A3E63B38F0376037A73FD04DEFFCB3388BD9B95FB160178BCBE95F0F349FAB9
E007D09A24FE90F433D25F797ECBFB1B02B0BDBF02FFC79F29F01B02A0F7570A
C091FE0AFCB05D2000DA4E809B00DF8EAAC33628019A2180CD50017C0EC985C9
47AA04E6059623F9578F9C43034A7B4C366E44B8301F99FB5949993201B98661
252B94745F04025882E73399380CF13D3DFFED0F3C2457A22AD1797AB00C2D59
2EC5208078543ADE47C2F0658409773EFCB8606C5830362C3FFFEDEF64F4C206
49449354F49AED32253A1125C3FE82FE7C956F78A0F50B323C3C5616ACD921E1
B058FCCC79687AEA8950E205288E9E90FB939272246ECD36495EB74DC6E0B9C3
01EC10AC6C9B199324D1CBD64858CD4A995EBE5CA62F5E25E94BEA64044802EB
D4A515429AF7732BE58352A80810C482EA3A4900A1442D592989AB36A1C7639B
8CCA2997F70A2AE5C5A81C9980557061C8358461A88A46F047620E8404F06AAB
9F2A0218DEF1F293DFD7BFFF8BFA7D01FC3F851D6838746C1DBBFD2CF07F82DB
AE41F67F02E03721806FEDF5FD82DFF1FEDF26EE77627F5FEFCFB85FC5FE00BF
2BFDCFE5FD1D02D8E9450006FC1F29EFBF990602D8085B0F80AF3E724A56B159
09E5C306809F04B002DE7F03C204124C2308A61E8D485405C5E868AC02F01782
006A0F20398910A5B2B641A646254847F41A0C8C481174584A68DD2629461E20
1F79808CC5B532E8FD0FE44180FAF2BF5F27BFFFF35FA4EBAC7079A368992600
F43810C04F75EE2EFFB8EB1EC148B05CFD8F9BA52FFA08662C5DAF082013AF33
62EA07AAAAC0B2E67DB0E75E1D2841C99912028530173F6F124A9B510849FAA0
FC4985F11A003F1B9393D396AC9569CB36484476910C463E81139103D1DF4092
08AF699069654B657C41B58CCAAE907733A014105E4C0571744E2890E7A373E5
ADDC85C87B64A2C3314D1100C16F08E0B5A73501C03EBFA881F67DFDE59DB25F
3CBDFF6730821E12FF13025E5DBFFCCAD81978FFAF3018A465BE8FDC6756DE94
F8BCCA7C06F83EF57EE3FD8DECB7E5FF71C7FBBB9EDF2BF1A7E5FFFFC4FBEF01
E829FF95F74782D0288026DE1F04C03C00098009C175F0FE8A001CF01B02587E
E0B82C6B3C2E4B510D5882A4E1625835C04FF9BF700F9280B095F83EE6200E83
A0568334D2E1A95361C588FF49000B117A9044B26A6AA53F7A0B1EC33054E7B9
91D23AA158A62F5BAF08803D11EF4125741A325C6EC10CC59F2EB94C7EFDBB3F
C83B0B12A47F6E8D22806278E641E8607C10DD85773CF8882A1D5E7BDB9D3232
364DE6D46D9639F55B240DC9D031502324897B91B4BCF7E9E7E5B1CE3DE57D80
7FCAF28D3279C97A0986429817192BFD870C9327D186FC6E46A94C444E613C14
C1E8BC85F26E5699646EDC298950169D924B65041E7B7876944C472291E02709
D04C08D0FF995F1902E0F53FBFAF38B828DF17C0FF177AFF239F7C7A84DEDF07
F004FE19DB00726F02F002BD6EEC31CD3DBE65BEA6E53E4FCCEF55EFB74A7E86
008E9ED7FB6BD9EF91FEBEC93FC4FE36F84F3595FF5B4F68F96F7BFF0DC73401
AC3F8AFD7A50015400047FDD41AD000C012CB10880DE5F1100AB00E84D284739
B00C89C512F41E14C38A50952884E58300F2500ACC0509548338188670EE2017
7983F791670840352209E04F40FCCFD0231712FDCDD9C1F21842897BE0DD9F84
1A189594277D7317830030F6BC75B70C0B8A9087DB7490EB308DF9BB3FFD45FE
FBA73F95E168431E89AAC56C9000BB157B8D182F0F8124984B20095C73EBED12
8405AEEF01FCEF2DDD2091C82984A17B9149C5475BBF24F7B66A2DAD90A01C8E
85AE63F3AB657A49B564ACDF2E01CBD74BAFAC45F24A4A91B40D4D50B13F0980
579CE3E809019EFEBD4B00AF77B8F26F1725D0BEAFBF34C09F38B2A23E0EDD7E
F4FC9F1AB043EA9FF167F0FE5F6B901B6F6F6E3B4D3DA6B9C74F879F57B28F09
3F2BE96713C0F9BC3F6372DFB29F97F40711EC47F69F5ED72BF6370460819FF1
BF8AFB55ECEFC87F787DDBFB13FCEB480050016B8E9C542100C15FEB1200BCFF
B7250007FC05685736E0CF01016462D82903E143FA967D92066F9F82C45F32C0
9FEA1040F1AE034A25D420FF30370B7B18D10834BE6A950A25A812480055209B
64B41A771D3551EE78FC29B91A435477812846A349EAF5A2E58A00B2576E9441
3383E456E41AFECAB226F20CFFE7BFFE4B464424C990B27A450059780FAFA315
BA15FA0638AECCEAC5232F7792A731C23DB36615129BA84C2007D005DE7F0272
148F623DDBE4380D7E1302D839803EADFEE812C0DB1D2EBBEEFB8A858BEE7D99
B2DFA75F7EFDF16768F47100FFB1EF1552FF636300BF45004DBDFD39BBFB9C6C
BF2DF9DD2E3FA7E3CF80DF37EB6F67FEBDC1FF6993B8BF69E94F67FE9B24FEAC
E49FF1FE8CFF0DF84DFC6F13C06A10C02A583D1400BDFF7223FF11FFD750FEC3
E8FD9900A402A8A00280F72F453F00154011AC1039029B00B2B7D904B0575201
7E43004601C423642845A84075C27C431D7E5EC2BAED327FD53699AF9280DB41
22FB94CAC9AC592113E2D365747CA68CC234661B90C4E8AAD58A000AEBD64864
C94279121EFD7A8C5DFF162AE10A241D072171D93B77894C840AC804E9BC896D
490F77E826FFC0D8F615D7DD283F4503D42DF73F28C1A80CE481B0C25059E89E
B950DEC8A994E7B1C8D524FFE8F97D9380BD9EFC9D1D02DC7ED101EDFBFA0B83
009605D56D4A03E03F06703F84BCFF88B75DC07F81DBDEF6116AF7DFB07EEFDB
BE6BF7F2DBB7BDBAFB9AF3F846F23BD7E6E3FECF95E7F794FC007EA7E4676AFE
1AFC8EF7776AFFA6ECA708C09FF477BC3F937E348FF7D709408FF73F8564A026
00C6F5540176FC6F1300C1CF1C804D005AFE1F5004A0E5FF7EA1F76F8E00087E
43007120005ACCFA5D12B50EA53FD802B43513FCF357EF90B0D5DB251489BE1C
90C9062895C39F7C2A2B404621F59B6406E27BC6FF248004F4146CC78E842890
403B4C33BEF8E630793B3A5D5AC516CB5B98CA641810C7D72DAD9217878C949B
A114FE74F995F24BF4373CFFC67019899C03F30894FEA3CA57C89381F1321E9D
87DCCC1C82E1247F49C0BEAD7E6913C063DF573C5C54EF0BE0EFD231ADA288C0
07983F82C73D4103783F84BC27F03FC2F5235EF5ED2FD5D76811D604E0A78FDF
37A967BCBBBF249F794CB7F8EA729F6FBCEFDDEDA7C1EF66FCAD7ABF77DCDF14
FC360130E9E75BFAF327FD7DBDFF1A808AE0A711FC2B0FE950806100E53FC1AF
13805A01543AF17F858AFF0FBAF1BFF1FEF928FF31F6B709C0C87FA5002CF013
B4043FCB7C860022D18AAC0800E00F07F849002150032118C30E52B65502EAB7
CA5C009FC6242009601606A6A82EF8DE37A18291823E82A1652B646839E43F73
00B0407CEFBAA327252CBF545E1EF8963CD4B6A33CFDE608E9846C7F18CA8041
5575D203DEFF6DE4035E0C4B76E37E120033FFBE5580579ED48D408EB5B9A880
F67DFC654DD9AF7AEF9125F4F8043EC0779C86DBC700CE1300F9690D7A8F01F4
1FA1567FD69FB7B73D7D738D3D2EC8D1C4C36E3EDBD37B81DF4DF8396DBE4EC6
DF805FB7FB7ABCBFA7E1C74AFCF9F1FE4DC1FFB11BFB535AD3F37BC5FEE7F0FE
0D2000930C6428E02BFF490015BB8DFC6F4A0076FC9F85F89FF2DD2600C6FFC6
FB7B11C03A280024E998A863FDFFDB1000BDBF218099208019B55005B0A9C8FA
4F59BE41DE874D4229D110C044DC8E06B92C03B1ADD97F4862EB36CA30A88399
8B1A241DDEBF5F7AB9BC53BA5C9E0AC630101A8D8CFC27013004A01AE0353C21
41F501F478F4976C02D2BD009DAEE8F37DC4C445F59E4000237A66552503D0A7
00E65300DF3163F0BAC768FC1A9EFB248900CF73EDD4679F9F25C0FD0DF0A86E
3ED6F37DA47E930CBF9BE5FFC225012DED3F7525BEFADA69F1F597F0F397F433
D27FAF0D7EA7EBCF6EFAB11B7F98FCDB82E49F97F4776AFF46FEAF41F69FC93F
E3FD097E7AD03AA71A4015B00C1384F4FE8CFD99F9A7F4270130FB5FCAEC3F92
7F2AFB8FE49F3FF9AF09A0F9F8DFC8FF68CAFFE608009E3FD85100810D1E0560
E4FF2CF4017C80CA822F014C46E2EF3D809EF1BFB675CA262D5D27EFE3FEA908
21E6D6237F808A45D49AADD225AD428615D5C8339838DC80556BCCFAD36C05A0
2A0258AB4E02E8F2D0AFE49D76972A0218DAF9CA911715D8BE6FBFAC29FB41F6
6EA5B43780C7F5A831D4D88F3A7684F701D8A740041F323C38A9A6F13C537B06
F4761B6F93315E6BA4D79EEAF317EB7B25FB4000F4F63ABE47B38DB9E2B6DBEA
EB64FCFDC6FD3EE0F796FEDAFB2BF0FB787F02DF13FB632C180460C7FE04BF22
00550AD461000960C9FE635E04A0C06FE4BF29FD2902C0161FC4EA8CD74DFC9F
EE8700D8FECB12601CE2FE5818E53F0980DE3FC24FFC4FF9AF0900E00701CC73
42803900EF2CC8FF9900BF370168EFCF1E006F02A01A700800150612400A661A
E8FD07E6D7C81B854BE599D02449C048F3622C2421D87D73008A10A2A3140174
7CE05732E4E54B340174BC7CCAF70D1317D5FB0101C4BD53BA228A9E1F433627
2CB013F44768F0B8CA003E6387A90800F2D3DCCB670FECF8C6F7BEDE9EB1BE27
CEF78EF55DD9EF4EF621CE370D3E3E033E66CACFADF533D1C7F65EA7B4676AFC
BCEE71067EDC861F9FB89FF576057ED8665FEFEF809F04B016A53FEDFDD104E4
24FF1ABCFA00007E560260AA11C8A90498ECBFAFF72FB0B3FF16F8335076A3FC
570A00B306C94E0990E08F47FC4FF0D3A22DF91F41F9CFEC7F33F1FFBC0627F6
07F855EC0FEF3FD35200D35508E0C87F55FFD7218051003601CCC6F715226711
8BC69F0EA9E532B264A93C86F31D3FC7494B5C3462127FB6026058108A85A824
8076F7FE0204F057330F30F7A202DCF7E99705F86F699B5CB6E1E8279F1DA447
B7C1EE80FE30AECA00386387106F1FC2D7BC1E3F0299FE3F013D137D5E1EDF4F
679FDBDDE76FBACF51025ECD3E98F937937E66DA8FE027F095CC07B8B7C1BBB3
B9671B6F3BBDFEDB0C0158DEDF74FC7D1BEFAFA53FFA001CF03356763B011106
B0135027FF9CE61F47FE930028FF73A1006CEF4F0260ED5F27FFF6AAD83F111E
97E0370410ED1080F6FE3AFE0F771280A14E0290DE9F09BC00809F0440CF4F73
09C092FFD3B08ACD8B001C12B04380C92005860009EC5C4473D2A0821AE99FB7
585A87A1DF1FEDC124001E016F1380290392008C0278F99E9FC93B2FFFC92401
C3BF4F98B8A8DE0B08A066CE8A0D49F4FE94F63E407701EF805D011FB1B6B183
073EFEE4C43EB4CF72E88609BD26357C93D1F793D9F7F2F65E5D7DDE6DBD76BC
AFFBFB759DBFC9908F92FECE98AFD7A82F08C04FDCCFC93E3DE8F3916C529D7D
A720F361BCC2D3B3DB4F75FC31F167797F3503C0E61F64FE3DDEFF38B6066902
70CB808EF75F0C02A0B11B90F57FD5FDE7DBFC63CBFF2DFB95F74FF52100E3FD
E31C05400260E9CF1080F6FEA6FCB71DD27FAB327F04A0E43F15804FFCAF0880
F2DFF5FCEB6542CD3A9900F9AF14006C068882790B9606DBA594C9E8B2E5F2E0
EC4839834346480009D9B95E044032A01220010445452A05D0F6AE9FCA3B6DDD
66A0948B0A74DF975F16E06FD721B5A20CDEFB28EC04416E4C01DD98057800EF
20E26E630700B8535CB06126EC084CA809CB9AC9EC53E2FBF5F896E4B74A7C46
EE9B449F1DEF9B3ABF3BE5772EF05BBDFE46F61BE96FC7FEC6FBB3D36F15B3FB
F0EE6AE007573DF5A7937E2AEB8F0940D50548F0BBD25F97015525C001BF6A03
8695820498FC53DEDF74FF39F29FD97F23FF4900C9CAFB63F4D7E9FEA3F77709
80F2DF210095FD77E53F4A7F28FF7908608B5200AAF4E7280023FFBD0980BDFF
CD11C05A4500248658FCCC34BC9FB78A964A9F6C9CAB383F553EA858A6C04F8B
4E43B6DF4A02DA0AC0100049E0ED767F39EB54012ABE2F98B868DE07C0AF4EF6
2DDCBEAF92DEFFD0274ACE1FB4BD3BC1EE037802FF00926FC61AB149E7231280
6AB17580B71F24C0E93CEF849E1E9F35DEDC34EFB8DB7BAC419E261EDFD9E843
956180EF3DDBEFF1FCEA3DB8197F6FCFCFAC3FC3007F197FDFC4DFB9BC3F6BFE
6AF00749BEA5ACF56317600DBCFB62C7540BB0E90370C0BFC89904D4D500AD02
6CF9CFC41F2D0304E05DFA73E43F00E72BFFA34000B6FC9F8FCE3FC6FF6CFE31
04C0CC7FA023FF0D019C2FFE57150047014CC07542CD5A2880B532114A800AA1
08A4950012C0A2181953B64CEEFD60819CC6694504FF6758D4C2B97FBB0CC8AF
9910E47DB383E72905A008A0FD658600D65E34C0FBBEFCA256D98F99FC538CEF
2DCFAE816E19BC2BBD3D81DF48C3ED4680AD1109B7337B4000F6661DBD604367
E555E38EE5E97D33FA4CF0710D9789E3EDAB92F9CE6346EEABACBF63241A3BD3
6FC0AF137EDA4CD2CF0BFC56AF3F81AFC18F30C05FCD5F497F9DF4F38CFF5ADE
DFE9FFF7487F5DFF5FC87A3F405E0A4F5F0A4FCFB65F96FECA9D3E00E602D805
A86BFF8D0AFC591601D0FB33F6A702B0BD7FAC8FFC57B1BF93FDD7C9BF6DCA98
F557F25F95FE10FFFB36FFF8C87FAF04A095FC3304301104F01E0820123F8BB1
FF30EC2D60E3CF73F3D3657C6195EBFD79D6A069FC51313FA47F730430D82903
6227C0CEEF0B2E2E8AF701F0AB937D779CFA683B5A7C3F32F57E928001BA7355
40B78DA0776C3FBCFF7E80FF539EBE63B6EA980E3B028F461052BE37D9D8E333
BAEBDDD0E3D9E0A317779C714C27F8B4356DEF35ABBDD47BF9D0037E35E38FF7
A83CBF037E13FB1B02D8E433EA6B127F06FC26EB4FEFEF36FC38D25FF5FF5BD2
9FA53F2DFD310108537D00CE0C00898025BF1C94F87200F24C009C723A1DC93E
4A7F37F9D78CFC37D97FDDFABB4395FEB4FCD79D7FA14AFADBA53FC87F0BFC6C
FE9985B89FD2DF4BFED71AF9EF9DFD1FCFF81F0A8004C00460019795A053507B
FF5AB9735AB81CC1E1A146FE7FF4F1194500A605B8090104CDB514C0DFCC5290
831705F0BE2FBF24C01F32A8685934B2FEA718FB5B75FF63AC0220A676410EB0
EF3780E76D82DEB17D00DA3E9C13F03909C000DEF6B8F67C3DC16937F2D88077
E37B76F2A9051E9E251EDE197ECF3E3F55E2039869DCF8ABC946938E77C2CF1A
F1B5C1EFD4FB6DEFEF95F587D727F839EE6BB7FB7AC0EF3BFDA7CB7E358EF4AF
C6849E01BF8EFD7523103DBFAA04380A80B900E60138F9978A9A7A3CE37A009A
DB7E2261ECBE8B5BAFEBFE9EE49FEEFB775B7FADD29F21002A0037F9A7627FDD
F73F1B5D7F86003E60F7DFF24D321DA6B3FFC8F0A3C66FD7FF3D04B00EE1054E
7602598D44BF7FD70C0CFC2CC890A1D80360C0CFEBB193271501F05C011306F0
6B7F21C0E88EEE40D047DF176C5CF0EFC394FDE0F50F99B29F4FDD5F35FC8004
0E00B4FBB429D0F3AA40EFD85E5CF7E258AD2F0D00CD649DE9B0334D36C6F3F2
4ACFDDD4DB3B6DBCCEEC7EF3717EF3B1BEA7B79FABBC74A94F95F8DC521F32FE
3ED25FD5FB29FDF15C82DF250035EAABC16F7B7E1DFB3BF13FA4BF3DFBAF6BFE
F4FCC754FF7F13F0830028FF75239096FF6607809A02846735ADBFBEC9BF5810
C0027A77C4F2DC07100C300721991784AF09CAF055BAF64FF033F667DF3FC14F
F94FE94F733BFF4000A6F9A7090100FC2CF1B915809AF5327EB156004C00724E
217EFD0EE5FD47A0EDF78E6961B2F7F849C4FD9FB9B6FFD021550108720880C0
B773027342025C0530B2E36FDC79800B1E78DF975F100450366DE9DA047A7FF4
DE1F736AFCAAD9C731D3F1779439015FC0C3C3EEA501E4EA8A5379BE22D07DC7
6ADD649BAFEC062829C9097293D4B3E37E3BC6E76D5BF2DB89464FCE416FF4B5
177B6802D26627FCB8D17703C0CD7D7D1B50EE53893EDCE7057E67D38F0D7E33
E967F7FA9BD97F66FD59F3B7C16FBCBF9AFEA3F427F81DEFEF825F8D002311B8
830A005D806A1008CB40111AB0F6CFCC3F2D4125FFF4D41F077F1802E8B65F2D
FF09FA792CE9A174370D209D8E04DE0C78F30FD0D34FB96F067F94F777E43F3B
FF688CFBE9FDA72CDBA8BBFF007ED3FFCFDAFF38807F3C1380B010EC28A4F71F
5B592F9DD1F6FB426496BC965228672CF09308B6EDDEED1280E904E41E00930F
F022802EBA11C8B15F7C5F3072C1BE0F80BF75FB94F22AA7EC77D26AEC719B7D
4CC79FB9B22A00A0EF23E0B57DBC8706D02BDB76FCC36FE865B7C283F2BAFD14
4DC7DAC6BC966B58D29B72DD96F86E72CF89EFED861EDFECBEBBC9D707FCF64A
2F4FCCEF59F0E19BF4D3ABBDB0DF0F9E7D1532FBB6AD56FBFEB4F903BF1DF71B
CFAF66FF9DB8DF95FE8EF727F829FD39FF4FD3E0D7DE3F1796B38DC9C0463400
EDD38D3F4EE9CF77EA2FCA01BF29FDE9B15F3DF9671A7FE6410170CAEF7DC4F0
EF2D0688B14D8832FF03D4F00D014C53D21F04E074FF31C6B7B3FF94FF8600B2
404C2CFFB1EE3FB464998AFD371D3CAA08E053CBD66CDEA44A8054008CFF7D3B
016705CE7115C0886E57DB0470C9050BBCEFC32F66CA7E79DBF6959BACBF29F9
210B6FEAFF76B79F57E71F49C001FD6E5C77035CCAB6C2937A797B9F397A7A5B
1A076BB858C394DB54AF3D3BF2F07C7A73EDED8D35EDE66BE2F19D4DBE76CE41
81DF49F6793CBF057EDF211FE7BD99661FB6F97A32FECE7C3F3D3C40BD0C4D3D
2CF9D1DBAB955FCA4CB79F93F473127F6EC98F71BFE5FDDDB8DFC7FB13FCBA12
8030808B40601CCFA5F7377DFFECF95763BFF0FE8600ECC61F35F66BC97F53F7
A70298EDC4FF94FC5359E26362AF7A2DB60BAF9291152B6514B6038DC779060A
FC786C1C0903F27F9C43007C2D8E224F5CB4523AA556489B986CE91E9B231FE3
68775F0258BE7AA59AFA6B8E00A6CD7CDF2580777BDC6013C03FBE0F38B960DF
030860104EF6CD40AFFF5174EC1D87E745179FAEF35BA63BFCAC2620A7318864
700820DC0F60ED3286587BDF161080F2F46A85B6678DB6F74A2D3D5C431230CB
34D7A2938EC6589BF7F1358CC4B7AF3AB36F0EEFD072DF241CDDB0C3DAE46BBC
BE793F6AAD97DBE36F2FF730A1803DE463CA7D5003C6F33B1B7FD9EAAB867C1C
F033CBCF63BE2AE1D12B79852D84CC27F81701F426E9C7C45F29627FE5FDCDF6
1F5FEFEF2C00611990E0576BC09CDE7FCA7F77E8C7210095F9774A7F614EE79F
F1FE8CFF039CD65F5DF7F710801BFB43FE4F0319680580A59F88FD29FDC7E160
93D18B56831056CB9072EC1A2CAE95C1C52BB0427C0796886C96F6F0FE6F162E
91BBA6CF97BADD07E46354723E01097C4A735440F9926A150230096814805908
CA90C0268091DDAFB509E0810B167CDFF52F66CA7EE85C5B79EAB32F4FE1C86D
B7CE0F1238E098172158E460B7FE1E624500E0DA0580EF44A2EDE06610800D7C
0338BD50C35363F79DAE530937C6E44EAB2D476B1977B3477F27C20893D5373D
05AAA66FB5F3EA0A8363A6B9C7841D2E1961C0C77E1F6E9D5F83DF4CF7B9DB7D
D4820FB3EADBD3E6ABB7FD7A867C94E7E7A49F95F433D29F4D3EACFB17C09B17
00D885E8F32F828767C28FABC1F5FA2F2DFDF50210487FB301C8801F25C03410
80CE05EC7109C0D7FB9BAD3F4DBC3F08C05DFAE1787F8603860018FB1BF94F02
60FCEFDBFCC3F89F4A802DC38CFD79A8497B0CFDB489C99517D0F75FB971972C
C5CAF155986CDC76F0981CFBF023398D390C1E3D6E08C090004302DEE74B00E3
BAFDC52680D6DF354E2ED89FAFCA7E854BA3E1F98F3AB57EBBB66F75F6B1CB4F
99D3F1E769FB358A81894148F503540100EB114D00F602CDF303DF64DBED3E7B
F6DAABCC3B8C64A10840ADEA76B6F538197D0EF39890C3BEBA390707FC66A1A7
511E669F3F0FF8747FAEBDD8D307FC66D3AF6EF5E578AFF1FE5AF6EB929FB3F1
C7C4FDAADBCFE3FDCB1CEF5F82DABF2AF7810C3200EA74008A5765007BF6B67D
621680A83E0007FC9E0D403803C027F9E725FF51097067FEE9FD717290AFF727
01D8C9BFA6F1BFD5FDA7C28075321604908CA69F68F41B70E26F00867EEE46D7
5FF996DD720A25DB8FE0F91906B00BF0D009844F7B0FAA8C3F43005B01D80430
7DD614370498D0F3CF360174B96001F85DFE6200FF556D934A772136DE8E419D
E32CE939B57D53DFF76AF471BAFC54D71F814E6347A0EA02346DC0EA0A1238F9
D1879B4000DE9EDE535AB33BEBB4C7D7218001A019B231C0E78A2DDBA82CE8E9
BDE27C6B8C97DE5DEFECFB500DF3F0B65AE4A9627D9D73F0DEE9A7BDBEBDD34F
C5FCBE9EDF99EDF705BF4AFA39713FEBFD2CF7E9211F840304BF43006AE79F25
FD59F2A3A9D55F76FFBF330148B99FC44C3F926C7188F1E3D068C38D3F343305
C8DBACFDBBF2DF1AFA399FFCB7BDFF0C27FBAF937F8EF74705C13BFBBF561100
092305BD09536BD628F9DF213E4F9E0D4D9663F0F4A7007A430067980B80B109
88197FB30A9C2100BDBE990B6025C02680713DF44620671E60C07789930BF667
83000AC62C6A8884E73F40F96ECA7A8CE769989F578400801B534D40BEDD7FBE
1D81AA1518D48F3E004F2BADB544C3DEA2EB17F896F735207481E84CDBAD5439
029D1FB04FEC71E37C3BF7A0F6F7EBF76226FBD6E17574AE81537EDE9E5F35F9
F8B4F832EE378B3D0CF8CD908F4EFC39ABBE1DCFEFEEFB73C0CF3E7F1A3D3F8D
493FE5FD9DC59FDEB3FFF6F8EF3EC974E6FF29FB696AFD17C67F99790F83570F
8771DB6F28AE21B0B055CECE3F3FDEDFB4FD9AE49F210082DF13FB6FD2D21FF1
BFCAFE5BDB7F28FD69241DCE1A7442D9EF95EC4572CFCC48C9C051E59A00B402
30E0E7958781DA63C004BF6900326703D80430B6F77532ACBDDE0A041B71C182
F0BBFAC500FEA751B6A906A077367EFCC90180721BC0B40BD25A35F178C84037
F978BAFC2C723024A1AF00BDE7BAE7D4C79F710E80713A8167EAE96E5DDD9FC7
FF16C057757767D1A61EB93DA95EBB696F81937474C0EF2EF2B4B7F998433C9C
9EFE554CEA71A20F806E80ACE7A93E9CF633E027F04DCC6F36FBE8833E3CE0A7
F467CC6FA6FCE8FD99F4336BBFB4F4B70FFDD09E9F0D3F6C03CE457EC0CCFE2B
E9EF80DF33FFBF4713004B811B5009503B009C05A0E814E4E20F3601CD42498F
FBFF3F80079F89DB33E1D159EB3727FE98E61FD5F2EB98210055FBC7F711FCF4
FE66F5174B7F04FF34BC1643910FF0FA6CFCE99458288FE334E0C31F9D694A00
D8367C0676FCE471B70DD880DF2800430093DE1FE38600E3FADE86B56097A881
20D8E4EF0A2717E4CF05F8FF1DB63AA4614B32937C5B4F9EDE81F8772B48602B
80B203B27A8F69EA0121E8EE3E7375BAFE3429A84E405EA918BC3A03779FFAE8
0B26EC7894369B81B851D664F59B487D7FC077066CF47CBD9EB137C057B57776
DE996D3B0026EF23D1788EECF2787D7B879FAB3E007E23F93D33FD9E4CBF5AE9
E578FD5A67B26F095A787978A72AF9E13E65CE9E7F02DF6BD3AF91FEEE693FA6
D30F0B3F911CF374FB39E077927E24003DFCA33DBF3BFEEB6CFE75C10F05E005
7EB30108AA80BDFF3CDBCF96FF6AE107867C3CB57FF4EFA33988E7FB4D2759A8
E41F967E00FC53087EC7FB37258075AAE988DEBF4B7A857443DBEFBDB3A22462
F95A39E410C049A8808F00FA8F1DF093001A0FED77E37FD30D68C2014304E327
BEEBE903E8F10F2C05F9AB2180C00B1288DFD52F05F00FE8925E9905F0EE22D0
01802D00A56B888DB7B19E6F1A7B3C8D3EBAC38F46A5A0AE500BEC033057DE56
CD41273FFACA93ADD7253AB6E1AA83339D33F3DCC61A7CAD566959B2DB0BF83E
4D376AD106CC94DF8C37E6AE3DBE8E89F1DD611E27C3AFC16F2DF37088C7778F
BF01BF4B34EE424F7DBA8FDAE907AF8F2DC9AADC5701194F63D96F11CB7DF0F8
76BDDF1CF5C57D7F3417FCF0FACAF3FB033FCA7D06FC2AF1078F6F127F6AFBAF
E3FD552310FB00D4FC3F4D7701CE47F38F27F9C7F29F27F9370BD97F66F059FB
9F020F3F1E253E1E08320236123606A5BE09F0F4ACFBDB04300E5D7F2408AE22
6377615B9CF4D335A544EE0701EC05C91F80E23B8658FF24FA363E7408802440
DBB37F9757131013812624F04700C33A5D26C3DAB989C0B8EF0A2B17DCCF05F8
7FC1693FFCA156B1C64FF0C3336FC6D5CB480800EC2E1281E9ECD384A0D4013B
FE087C7EEDB6FEFAB4017F630F0199DB94EAA6C3CE8DB59D1DFA94DD9CA35706
80718D9689BB95DC67AFBDE5F55DE03B1377CBF17D340294A06E5A5EB4928CAE
EAC01E3F37D9A7BDBEA7CEEFACF276567AA9FE7E73BC177EA699ED57093F75CA
8F33DD87DA7E09405D004FCE725F01A43DE7E4B9E94725FD9C6DBF06FC66EC97
DD7EF4FCECAC73C1CFED3FD6DE7F3BF167F70168F0EB44A09902E40C80A9FD9B
CC3FA53F0980EBBE67AA75DF1B95F97A7F12C05810C1B0F206195C52276F97C1
50FF67BE8179876EE995D231B54CEE9B1D2DB3B1F77F2FC8FD2092B247410027
1C02A00A30B679C766450081B1092AF627019865202621682B80375EFAA3BCDD
D65D0B9677C101F1BBFA8500FEA9AFE42E8E8547DE4580C3636E42224CDBD153
9B4006AE61FDD5668604A6B3CF210343089642D0ADBF18FCB1DB807599CEA9C7
EBC61C96ED740F3EE3F66FE3F1F5720D64D8013023BF59665363B6D69E3D02DF
DDB5E74CDD5121906C363AB1BE5B6170BAFAEC715EDBEB7B8FF57A36F99AD15E
37E1E78CF61AF07BDA7CAD729F9AF0D37BFEB92A2B875B7DE0C139EACB0C7F26
2C1B8067A79F92FEB8EDD9F9AFCB7EF4FCC6FB73F79F96FE3ECB3FD502107B04
586F01622830CF2EFDA9859F043FF7FD6BF033049806CFEE4FFE9BF65FC6FFCC
0BF0FDCD432881BF23E902EF7FE7F405B270CB1EA9C55984EB0F1C919D474FC8
41FCFF9E02F84F5BD6B06EB5EAF93704C06E40B31B80B7490E3601F47FF60F32
F825A717A0D3154BBF2BBC5C503FD794FD00F2D5CCEEE38F7E039A6C361A0309
6C04289A18C0BA8D0D3E34A7D3CF6DF735E4C0AB2108DCDE8F390067E846CFDA
1BB30FDBA087B6A5BE19ACF1EDB13759772DF9CDA49D06BC91E194DE5590DE4C
BE99755B04266373BE9E8EF34FB9FD0466A0A7E90A6F7BA6DFD3E4E3AEF432A5
3EBFE03FEC53EBF7805F75FA59BBFE393B4FCF4F23E053096C80381EB1753C3C
7902647D12B6FC32E677A53F9FE3B3F9579FFCE3EDFDF5D97F18067236005105
98D37EF4BA6F1FEFCF859F8A00F4CA2F93FCB3C1CFD21F09261A65C89E38E6EB
65C8FFFBE6C4C8849225B213FF8FFB90EF3988308F0AE030887EFDFEC3D2B0AB
51D6A0FEBFEBC809295FB25449FE809878D505482288C9C8D6BB001D02183B7E
989B0378F5993FCA9B2FE9100087836CBAA080F85DFD322080ACE1E5750BE0FD
77C32B6E85D45D0FDB609B2F291872C0424C86043BD9E5C7AB364D0854129A20
70653BF0C98F0E6F0501D89979BB3C67DFCF55DB2401037A3BEEF6077C15835B
92DFF6FA66D5166BEF8CC7CB00B832008F46A2A0B43773FCEE161F7374971362
B8077834D3E1A79A7C14F875ADDF33DB6F811F446466FBB9E9C72CFA54BBFE9C
833ED4AE7F6BE34FB675DA8F5AFA69567D03E0111CEB85EC5E80521F2D82BB00
10EB73E73F577F33214770BADB7F007E73F69FBBFB0FE3BF6AE1873FEFFF2D92
7F939668EF1F84EFA7F7EF99562EB74E09938DF8FC7621F96A13C049F4011805
C05CC07190425669B9F2F8F3A2E35CD0FB12C0E831435C02E8DDEA4F20007731
E89EEF0A3317CCCFC57FDA0328D9D401A89B18C7A39B6D9D3187084806B67911
03BC33D4C2A98D48B06D0709EC50EDBECDD989D3C7B68000D8736F66013CF300
66F6DE331BC0121D01A932FBCE4CBD5D6B37E3B51EE07B866DCCACBD7DDE9E5D
8337B2DC9CC0C3DD7C6E9E81B906E619907B30253E1EDE4153DD7D6EBCEF0CF6
58EDBD1AFC66BACFDBF3ABD37D9D137E6CF0BBE7FC39C037EBBE0CF8DDE3BE9D
7ABF2201787DD6FC3D877E68E94F12E0ECFF3C94F0B8072000C00C06C8D90BC0
3E0077FE1FF705A9DD7F7AFE5FD5FDEDD8DF95FFFEBD3F4B809CFAE3CE811810
CE2B58F4F96262B1DC3B2756DEC9AD942D50562480FD5000AC0250019CE42A78
009FE037968475E08CF96D05C0CE40331DC8EB9037BAB904D0FDB13F2007F02B
D30770FC8201E277F18B98B25F60DDA60478FF3D00DB0678BAB596ADC36DD76C
72B06F23FBAE08823D03CC0DD84652305F03FCA7D8066C3AEF74694E0F04B9F3
00CE64A03D1FC0965F0FF06DB9AFD76A99861BD36EAB40EFC4FB6E09CEAAC1DB
A3B7AA0DD739828B64C07042C7FA1AF0CB59CBE7E24E3C46E3224FE61DEC9FC5
9FE726FC9C955E55FB1CF03BAF4DF0FB9EF0A3977B58B57E7BD79FE3F9CD515F
6EABAFD5F0E382DF89FBD5893FCEDA6FEEFD53597F6700882430974D3DC8EE4F
8771F69FBD00DCF4A31780E8BE7F37F6B7BCBF3FF9CFB5DFEFE1C8AF5CE427B8
7484DEBF07CEFABB697288AC06416EF5210036029DB009006AE04318BB00A900
0C01981C00EF3321C05B83BABA04D0F9A15FCBC46EBF3604F0C577819B0BE667
E23FAD173AB6F2003695D483D75BE3D85A5C950178AEF990834D147C8E220A56
0D502EDC8E387E3B55816D00FF479BF187C1721C3BEFD4920DEED247B65DB5E5
3AA3BFA64C67566FF17E26EA4802A6DCD61CF00DF80D206D8F4CE0FB825F9DBD
E7B4E1AA6E3C0095DF4322308776BA3FD3F1FC043F15C3423C974B3CCB01E472
24F44824CC39787AFB510AE473CE0B7E1EF1AD077C54B30FC0AF567D3BC77C19
F0DBDD7E36F8B9FE4B83DF59FBE51CFAA1C18FEE3F76003AA3BF94FEF4FC348E
ECCEA9DB2253B8BDB70AA3BD28FB710F00977C4CC108B06FEC6FB7FE9200B859
882DC8FD7317CBF3094572CFDC581990562A9BF0FFC950CF0D019C3E0045000E
F0097E1A816ECE00600EC0260093187CF3F54E2E0174BCFF9732B1A75B052011
FCD70503C87FE52F02F0FF14762063F39E7C96ED0874FCA1AF06E8698608BC08
01E5B7B5DFC2D63024A01AB00D20DEB6F1E8A94F09745F80BBF3FE4E17A03E64
43B7E4B24988D97AD3A843CFDC64B6DE6CD7B18ED7F600DF91E3D6C20D7BDF1E
FBEFD5E61DA7134F77E3696F4D32B1730B66938F7B7C976AEF3DA2E27D2EF324
F0D5211EF0EA850072BE53EE33A53E8FECC7E3AEE7D7E0B74FF931E0E7D00FC1
AF32FE8E51F63309480250FBFE017E33FA1B053046B2E48758DF2CFD545B7F1D
F09BB5DF06FCEEFCBFB3F9871D814C0412FCE3AA56CBBB98FB1F8EE3BEDF4199
EFDD8A06198DFBC6ABB97FBDEB9F64158ED77E89DE3FA35C6E9C140CB57458F0
FFAC14009ABE643F127FAA110876026100E7010CF88F7FF8A1571BB021008604
24061200EF1BD4BF9D4B00EDEFFBB98CEBE999070001FCF15F899B0BE667A9B2
5FCEE218787F36FA6C42096B154A668E1DC7F5F86ADB480C00C31ADB7C898204
620C61C13A78F82DA814A84E427614AE3F72F20B7A7D82590DDC38BBF5CC765D
3308645F558B30BBF3DC7D7B27952C67669FF2DE96FB9EBABB89C3F5C08D9EB7
D7ABB654FBADB36CD305BF139B9B3EFC6210806ACAA177073128B96F167998B3
FB2CF057B1F147BDBEF6FE1CEFA519CFAFF6F9ABADBE68E1E5341F4A7D205E74
F4ED5520E2DE3CAF365FC7F3B3B1C696FEACF513FC6EC6DF5DF7CDA49F4EF845
FA01BF89FB7DBDBFEAFF77DA80F5DE7F4F258025405BFAD3FB13FC5C04424298
8E6EC1507C7FFFDC6A792E9EDE3F4EBAC5E5AA166945005000BB11CEA91CC069
340281007CBDFFC1A34755FC6F760098CC3FAF8600D81B30A8DFCB2E01BC7CCF
CF654CCF6BEC81A0EB2F1850FEAB7E1180FF2FF4FEF8A3AE41F96DD7D2034757
E140CA95F8435F092230B68AA4601B0802A4E06B2E519034BC8C0481C69B4DA6
9B70DDE1135F1B02F09D01D040D76101BBF29439C338F624A069D3657D7E0917
6C10D000700577E8C3AB96E3EA2ED968C6EBFB4A7EB3768B9EDF4CE199197CAE
E0E22C3E7F8E7742517B7D02DF80DF1CE0C10E3F57F6E335B5E787D747A69FA6
1B7DF4D97E94FBA90075D20696F9B0CD17F29D653F96F9B8F1D73EE7CF06BFDE
F6EB487F02DF02BF3EEF8F077E60DFBF2BFDF5A93F3CF0839EBF39EFAF13813A
17C02620DFD21FBB00A90098F95F80433E5F4A2A41F34FB9DCF05E909481CC16
B1D1094AA40C23C14B717B353EB7AD878FCB8193A79B10C09E03FB9B2C03359B
815909605E8004D0BFE7335E0430AE8F672908CE07B8E75F859B0BE6E700FC89
6F162F0FA7F747C26B1D3C690308401948C036450AE73294DB56FA33F33D2410
9610D955B8063BF155038E33E66BCFF89B3900FBEADD93AFA7F3D8C9678C1502
36DFF8CA7DF7545D028F7F90001AAF2CFB119846F29B6DBB7AED96057EEB0C3E
730C17657A119A5A984330BBFB795B797D67A24F797D07FCFA500F0FF88B1C02
70C18F061F26D0CCE93E5CF1ED0EF8A82C3FE43DBD3A80CC12DF7CD4EC1700D0
5CEDC5693F823F1644E17A7E67D7BF92FE0EF8E9F93D3BFF4DD6DF1BFCA604A8
CB801EF0AB2620271168C7FE2400AE0F27190D295EA6BCFF7D0109D22E3253D6
223C5B8B042A7300DB8E9F923DC8DD343A0A601BCF43D8B15F6AB7EF93D5D80C
B4B9F1886CDA81F004DEDE00DD7402F23E4300BCDDAF7B2B9700DADEFD7399FC
AA3B0D4825F0E40503CC7FC52F62CA7EA8DFAF666F3FFE88EB686894A9079068
0DC66C623004E17BF5210C451EF0CC1E23B1E06BC4EE5B57630B8C0D6AF73640
ED05767EED025D8FE03217607600985661D3B1C738DDCCD7DB72DF57F2ABDDFA
04226BED005C0EEAEAB9B81294F4CC7A04D7CACC3B67F0A918DD398893529D1E
9D8AC080DF93487432FD7EC0CF9F61C06FBF9E39DDC733E003D9EF1CEFAD4FF8
D51B7EF4ACBF06FC0296F3E0C551BD9179006A20C0ABC77D411496E7F73AF0C3
39EE4B9DF8DBE4C41F0D7EB5F2DB787F9F2E4035FAEB787F562658617829B144
BA60E9C70DEF054B3136FD9000D641996902F850F6C0EB3762EBCF918F9A8600
A7CE9C91D59B362A02600F8069FB35A3C02C059218F878EFF6F7BB04D0E6AE9F
49F850AFAD406DFE15B8B9607E060860D9E49AB591C8FA6F03585741BEAE0001
D01411683250566F8CC400326862365958B7BD9E87241948E5483DCA673B9623
59A6B7F818F300DB1FC0D9126CCFE0ABC120CBCCE11BBC326BAF3D32E2FC3DDE
B1FEB925FF2195902328D97ACB8D3B94E4DCC0C3189D0035E0A75CD7197A9CD0
83FB4928EAB5ADA3BB8CD7F774F879643F37F96AF0EBD15EEEF333FDFDBAC7DF
037E7DC0A71EEF65CC4F02E0411FEEAE3F00906A40B5F952F273BB2F0FF3E4E9
3DE8DE9B8E24DD07002DC77FE722D36FA4BF3FF0B314782EF03317409B88B89F
DFCFF0E4DDB215DAFB0726CA7361A9CAF3AFC53C862180ED0E011C7008E0384E
66528D4000BEB145CB57A87A3F09C0AC03E7D7BCCDF2A051063DDBDEE54500D1
A3BD3603F7BA60C0F9BFFD8B00FC5D3AA65614A1DD15B1F9A94D88596BE1C560
4794910C8CD98460918221079B246CB2F07DDCF3F5DEC3FBAA502A631DBD8E73
F590849CFE23A0EDE51E4D41AE77EE791B06739CB15C33A0630EDF64138E5DDA
F39BE5374B379C165C4A7B9395F71AC4E1100E009FC6CC3BBC2F0FB74C407C4B
79CEA3B998A527A075771F26FA9CEE3E037EBE269505A7FADC0E3FAFB97EDDDF
EF19F0B1167B582BBEE9F9D5293FCE96DF1867CBAF578F3F3C3FBD3FCFF85349
3FE7A82F5DEAC32E7FB6F2F2B00E94FAB8EE7B32BC39477E0DF80D0118E9CF19
008EFFAA44A0B5FD87EF953F97DEBF434AA9CAFC67E3E00F4500960250048010
C010C031A8801316F84FA12250B0B04A25FBE646C5BA8340660FA0E90DA002E8
FEE26D1601FC54E68FBED55E0B36F87F1B3717C4EB9BB25FD2C65D99D8C5BF0D
C05F817875390D80A92519203BEE1A1F37E6430C4631B8CAC17EDC2210974C78
5FF59E434716EF3DA432EA6CD32560E9B9B9478F1D77240576E2F1286D2EDCE0
E30AE406E866EEDF69D1B5816FDA84CD84207302FA441D6DBAFB4E97F774ACAF
F7ED29803A6680AF0EDC7024BF3FCF4FC0A66D464BAE92E5F0C800430C3C703A
4822178FB197DFF39A1AF86AA1875AE5A5077BA834F83A06FCDCE9EFB5D587E0
77B3FD980370C0CFD83FDA2FF875DC6F0EF934E0D763BFDAFB3739ED07A43003
31FE2490024B7E6391DDE7A41FF7FD13FCC6EB2BF03B04C0F302A952C6E0A00F
7AFF078393E5F1C004594722C7FF2349C056007B110290000E7FF411AA001F69
026029D0B14CB401B30A6008801EDF1C09661340D7E76EF2228088F10FDA5580
96A520DF86A14000237A642E4A82875DC3861E8062293CD732C796E3AACC2104
92C272450A163168B5706E03D8D5736C32E16B2CDA7DF05435E4B25A90A19664
00ECDCAC6383DC1EB975466DB974833BF66B9D31607E0FE7FECDD69F7AD526AC
7700D83302241A95E47312712A13EF005F25E4BCC0EF01AA3FF053A69B693C57
AA3BF57995A547B69E8339198883F350D2CBE2C20E66F1410AA990EE0C27B29C
70C2BC8E3DD9A75F43AFF4628B2FC1AFEBFC1AFCEA704FD5DFAFF7FBAB8CBF39
E0B319CFCF449D01BF39E99723BF4CFA99D37E6CEFAF177FE83D7F13B0EF7F2C
4861E442F401A0FE3F7261833A03802549B6FDD2FBB74D2A961BD1F597B47A8B
1701A0D42B9B4D12F0E4872E011CA702B0C04F1288CBCCF19A0320019823C14C
2B30C3812ECFDEE012008F089F3FE12919D641F702A00A10F46DFEFE2FEAE798
B21F246A19127F5B018CA500C412928065CB70DB10827BD584A054C2F9AC964A
C231F7B900BF2295CA5D8D9FB0766F77E8F1369B7AEC811F77E2CFD9EEE301BA
6ECD55B3F754119CE843BCCFB65CCE027047809908D433022754858059795DDA
43928F2BB67D80CF0A8191E7BEC93E13EF3789D3FD80DF6CE461769C61833DD4
C3789F49BE147A757A7394FBA81A98E537937D7A9F9F06BE59EED914FC4EADDF
07FCEE197FF0F8DAFB7B83BFC9515FAADEAFE37E9ABBF5078AC0C87E1EF83989
86B89FC65C02DFFFD80AEDFD1F80F7BF776694E4E3775984DF6F051A80B40238
8124E049D98110602F09005580C3A73F92E3A611C8228128C87F53FB671290B9
001280E90BE0958F777EEAEF5E041031E17119DEE1124D001D2E8BBDA8C1FD6D
7E7910401C4EF60D47ACAD4A7EF07E3590C04B680087B1A5B8ADCC900289C231
450800D379CDA80A94DB96D1DCAF77347EA1C6729D9E7CB31B8F893B7A6B3374
A3BCBBE3CDCD7D5E03398EB75FE1F4EABBE7ED999E7DB6FB426970CACF9CCAC3
FABC97D76746DE01BE2736B7927D2A39E799C13747709BC61C4F738EF6FC36F8
8D74E77D24104F838F33CFAF9A7C28F9194670B3EF1E89A14747EC3E1F67E985
41B2CF078039D5A7CA7DAEE7F7787F96FA16A0C557D7FAB5F427F03DE0D70460
8EF876D77DAB937E3779C5FD7ADF1F467E9D921F816F8C6A80E0E7219FFC3DE9
FDDBA0EEFF3C08E0C6F7C3647EED5AE5FDEB48C618F12D87022A443F43DEDA6D
52B876BB2CD9B657361C382A479A210082DB2EFDCD8E8C510460128286083AB5
BADA8B00E227DE26C3DBBB6704667C1B0C5CB4CF01F86F699B5CB601DE700917
7BA0AEBD18F1EE62908031900109C1430A363150293806622039F89A51114D1F
C3F75169282BDDBEEF2C4B74A61F5FF5E45B46622098CDD41D25BD6B5EDE5DCF
03F89B04F4B4087BA602D9B3CFFE7C3609518AD3084AD37EEB5B92337DF8B6E4
6F4EF62BC96E16715A1D7A6CD251C77343C23357C09E7ED5D7EF037E4D1E6802
A2E777567A9B7D7E3CE29B99FD907A34EFF0C04E0095653F4EF511F4BADCA7A7
FB3C493F02DF69F681DC3704E039E65B835F0FFD18CFAF09600A8EF99EE2805F
9DFAE3787F829FCFCF02B8A761D5F7F3F1C5F25878BADC35234228F799F95F83
FFAB3568F6E1EDF5DCC14805806ACF4E5CB71C42BE0775FF153BF649F5E6DD52
B17E3B7A01F6CADEA3C7DD893F36FF10F4CC05B0FE6F5A820D417478EC526F02
98749BBC65968274BCBCECA205F7B7F9C5410035E3AB56CF47D67F3D637C24B9
AA1D5B8CAB2203635406B639A440B5E0CF6CF5E0EF760D565CF1FE1AC8EF15A5
F0069EAE395DAEB38DEDB97C9CFDF666A5970B7267DF9EEF20901E08729670AA
ABDEC9E799D463AB308C1ECA39838F597926F718A733934F599B08CF960CB072
130FC16E27E8E8F5ED965C13F39F0FFCA65CC79D7C31786DC6F8EE500F3CBFFE
7E6FF0B3B75F9DEA8B4A03BD2D8DEBBC4CDC4FAF4F6FCF11DFD93CB4131E7A1A
26F238D537A76EA302BCF1FC6EB9CF39E547F7F9EB137EBDC18FA11FBC9601BF
92FECED65F7A7F96FE484EFC7DB8ECE399D87CB911F3FEB3ABEB1501A8E41F08
8013802482F5F89A04B00B877EEC4312F020928047D10ACCF8FFA423FF8F4311
EC3D74D8AB0988D97F12803915D81C154E32E8F0E8255E04103DFE2E19D2D65D
0CBAFCDBE0E0A27C0EC0DF0E4733950248B5F0A66B9081AEA221236DAC1AB741
0807480A8A10A8108CD94AC12209A51C2CD5E097206C2229DE71606D0976DAE9
C61CC7D83DE7F4E5DB67E251AE33416866EECDD49F67FA4F83DCDDBEEB1CB9E5
3D9E6B128DCE465E2C02E1611C26EC605BAEDDD8A3E7EE317D4769CE0CBC4ABE
0180001CB3FC490000BDB5D9C167C0CF355C9E6C3D3DBEF7700EC1EF2EE660CC
0F10999081E0A719CFAF077B98F0D3C057093F07FCACF373CE9F04603CBF3BDB
EFC4FCF350EB679C3E15E065B96F224A7D9390B8E3F8EF0C1CE8619FF167627E
26FD68C6FBAB8DBF86001CF0B32CC8AAC52C2884E7138AE5C90599720B086003
567CD1DB13FC4A0120E7C22B17816C750860FFA9A60470F2E38F4104D807B177
AFF2F404BD59FFCD108055011AF301A622D0FE91BF7A114024AA006FB7FBDB37
7A35F8155B2F4A709FEF9706F8FF13B63DA07E731C06693610C000FF221FABCA
F1900149A11A92B889F912834D10B682E06D9B40CC6D9C73B7AD100A8067DFB1
0B0F84A06AE6A65E6F5F75DDFE90EAECF3805C9FAC6B406E5F9587B7BCBC67ED
17E6F715E83DADBBBA775F6FE7E5CFB7476F6DAF6F4B7E3D820BCFCC715B0031
922074B6F010A8DA6B3705BF5AC7A54A767A3A4F4FE86D5757BE962DFB3D7BFC
AC985F81DF7C2F7E267FAE13F77B167B6C55093FDDE3AFA5BFEDF929FD09FEF7
79822FEAFF2CF58D42567F0C4B7EC8F24FC2187013E96FC5FDF4FEA6F988A7FC
3C199D07EF1F2E93CA96CA0624FBBC08007D1D0C0114011C3B29BBA1003808C4
042015C07180FE042A018600D66EC1921247F693088C02300440623009C1F60F
FDD98B0082473D2243DBFFCD94020F9F0F0B17E5E32CFB7547D90FDE7F053BF9
108356E28F7C210D092E65361980081659A688C1369283B166484211871562A8
DBB8AFAA70FBFEFD25E803374D39AA175FB5E5EA2939B6E5727496F29CE53AD6
EDF9389581D9B0EBB93ADEDD2D277AF6EEDB8077FBF59D611D1D7E78DA77D569
3CF8192A436FD5E46DC96F27FBCCA93BDAEBEBD65C8283D377EAF41DD59A8B96
5C5CD9AACB7A3D577219E02BEFED26EEB8BE4B2B0237D30FCFEF26FCD4641FCC
F1FC2EF8D55CBFD9EAE31FFC240055EE335B7E94ECC7F20F98DAF38F789F313F
67FE2722A61F85E3BB39EACB721F8941F7FD6BE94F72C881729B8BEF7B01DEFF
E9C86C34FE842890930098007415804500DB380A0C02D07300A75D0250E02709
C096AC5CA53C3FBD3E09C03404910048062621C8C7DA3DF4272F02983DF46119
DDC525804F2E4A809FEB9706F87FCD15DF00781E62FF0D007F05FACB9521035D
4923213421856D2006C7FCA805A31E5418E143100E797885177C9EBABF60DBDE
E35C87EDD598E380DC0CE498661DAEC6568D336CBB8524CF034039EDC7649EF2
EED6115BE69C3D037C3BC16846746DE013F41CDC713B059DF7C0061DE3F57D47
7059E3D733F81AF8F6F65DDF797C5DA7D7A00F63130E1371CCBA2346678B2EB7
F2A8093DA75B8F60667C1F63CB7E8738F458AF451A7EC06F567A79F5F7FBC4FC
33FD807F2A804D23C019F39BC33E08FA3155ABD43900C351EE5349476C0AEA00
EFFF5854AEDC00EFFF6EFE22C7FB7B086035C1AF068150020439680238050570
DA210096013DE0270194D52C55527F5644B42200331464C880044022603F40BB
07FFE845005307DD21E37B78CD03FC7B0B09589F00C01FF26A5ECD7CC4D1752C
C3C17B952309A50C2440031118F32203AA0412C3429A510AFEAE003715843F23
51406928325944CBDFB2F7E3E29D8DBA238F9EDF98D39DC70E3DDBCC8E7C9281
3A229B876B381377DCC0C38C7E198CDB76E8D509765D55D089443D97EF99CF37
DF6B0FED9871DD32A75188D500B37CC36CDE315EDF80DFADCF1BD96F96713853
7946F29BFE7C02D8067128482100B1FA6CD6DF410A53D18E3B031E97C93B9206
BFDF33D67B7EF01B02B08FF5D6197F1DF31BF0CFB0BC3F137E06FC4CFCD927FD
D0F3D32620342031304F1284D752DE3F2A47AE9D1828E5C8E417A1D497BD7AAB
E4E2F72B41127531FE6F5721445B8B4AC0462883AD58FBB647290010C087A7E5
1843001F02C829AB54E036046032FFBE04401278F9FEDF7B11C07BAF5E2763BC
8F09FF750B01389F8029FBE18FBD1CCD316B90A42A4DDCB4A70C7FCCC60C1954
80109419758096542A04DB5CA5601483EF15400769789B51198ED25898B779F7
174CBC35057AD3315CB3225B5FBD3BF6386EABBCBC25EBE9D14908C833489193
5FE0D82FC9C1CCE79BB55C6A14D8ACE752137B7A33AFE9DD671B2F49C053D7F7
F6FA66EFBE4EF6E95377F4C93B1EF0AA03381CEFED2BFB8DE737537ABA6487D5
5CDCC757BB01C4B0512DF39C0590CEC16D2A084EF8F9CA7E8FE7C7424F0E00B9
B29F4B3DBE1DF86DCF6F0EFA54E0470291C6A4631C80CE833E1E89C891EBA7CE
9701E925AAC947C7FF3AFBBF92FD1728F39581180A3013900B62600F4035CE04
588715E007D00CE48F00E2B373DDB8DFD4FBCDF1E0261C20F81501DCF75B2F02
18D9ED4A19DBDD6B2BD0E52D04E02180B2A1E575C138346325657AFCC6DD2598
262BA529328061C2CC25035B1D382AC1250678C20A1A8941DBDECAE6CC80DEF3
5CFD3DBC3F7BE3CEB3FAF41BEF997B1BEC5CBAE131DFE11CBD40237FBBCE1178
797753497067F29DB55C3C7083CD3E0825F2D8A30F99AF49C8037A77F987211B
6751077BF39B97FC9E23B774A6DE9ACAB3C06F27ED6CD96FFAF455ABAEB39557
93804EE0F1B602BD3AC30F8B3C016866F767B046CF23B8D484DF26057A03FEB9
20100EFC3401BF73B807E37EDBF39B461F02DF05BF1AF5D5E09FE42CFB643EE3
45B4FDB68EC9956BC607A0D477D48DFF37B0FF9F035D28FF3104E0ED752084CD
2087ED6805DE01A2D88CE7F30C80252083CA0D3B64E1C69DB26CDB1E693C7E52
95FB9804E4DA2F02DF3E19C824043D04F01B2F0278ABDD6532F115CF52105403
6E6921007C02F0FEADDBA5942F82045EC4F15D1CD6584C83C72AA1910C0C2120
96554460CC5208248772632674E0156440F5E01284CF6D37CCE0F38CA1B6BE34
7BE32EF7F00BF7100C2FC02319C884A0B327CFCCCD1BD09B83324CF30E1FA71A
A874CC7BFA4F2710DDFDFB26EC507300FAA45DEE01C8E4B82FE27BF60350EAD2
FBBB9380B8CD6E3D5BF2BBA3B88ED737E0377DF9B6E7F705BF77B30E0774FC83
DF64F0096EC6F5EEF7810882618A28D4741F4EEF61F98E6DBA18E0198FA3BA58
F69BCA537F491690FC66BBAF4EFAE95ABF1BF73BC057E04785E03D807FA2037E
12000988834EBD71D0C7C3F0FED74E992FBD13F395F7670270FD11805D350069
02588552EC1A1EBBE610C00E84007B11021C400870047D005400AA02C0BD0008
098EE27EC6FCB6ECE71C80590ECAD080550043006DEFFDB51701BCD1E63279FF
B59BCC01A1AC063C70D1138029FBA1D32B0AADB3AB096C6C8A2D72AC1857870C
7615237955A2CC4B1DEC813AF0984D0EE7200A3BB4F0BA0D7250E492BE79F7BA
EC4DBB34B8FD99B5284301DE315FD073865ECFD16BE3741D416ECB7AB3769BD2
DE98F1F89EBC82F74C0041AF4EE1E12C3EE2D914FCE173DC973B0138F567CED9
33076DEADABEF7504E73E0F700D8339E7B3EF0BB5D7BCED04E0037F83A84C1DB
F4FADAF3A33B10C6789F9E9F1D7ED339CC432063C32F4B7E239DCCFE449004C1
FF3ECD809FC077CC063FC9808418BE6A8BBC40EF1F9B27578F9B27B5FB0E61D7
1F8E54A3FC370440EF6F11C07A10C0163C6727B601D904A00681DC1CC0472082
8F94F7B7F700F0B64D00664908C3015F0218F0C2A53267C8EDF64870EB160248
2A1D84937DD3513AAB66FF3EB6C316D2D04C528875D145344308F8632E368676
55280487141C85602B05133EE810C29B24CEF5B5F9BEF44DBB7766213E5467DF
21BE662B2EC1C5DBFC43A3AC576BB7AC23B1086E653EA0F78CD3EA5E7D96F038
E4F33F05BE398DC7DDCAEB35B2CBC620F6EAE3F45A0290076C0070A100210FC3
703DBF4FBCAF4B7DBA3DD72CE3F4EAD1F723FBFD76ED39B13C3BF7B8AE4B65FA
2DF053F2BBE0C76D3E8FA53EF7504FE41454930F54C17B48EA8D834218C5E93E
1CEAF94EE90A95E51F8BDE0017FC5412306E16627313977D3E1209EF3F7581B4
8BCA80F7478D5F11001400927DF4F66E08804D4F54001B5417A026807D88FD0F
3A0A40270035F069474F9E749B80A802580D304D406627A039274011C03DBFF4
5200AFB6FEAB840FBFC526802E17350198B21FCA49C9F4FE043D8E83CA87672A
8858B7539921033EE68F14480E7E49C1A8054B3538CA81B98566CD841D691B77
1DCA86D4CE5320D7DED6809D004E475B2C0981ADB86CCB2531E88D3B1E6FAF67
E83DFBF2097EB543CF31CA772F4FAFA6FFCC997BBEA3BFE6200ECF3A6EB595D7
DDC9EF19FD55FD016C05C67B62C79E89F7E703E02484B9001C5B72D9A7CF841D
1B727CC1CF997C3D9DE75FF6DB197CBD9917493C0BFCAA75D701361F33F1FEB7
01BF6AF1359E1FDE9E0D41936193D818044F3FC68CFC72F57759BD0CABA8535D
7FDC3DC8CCFF33317972D5B8B952BD6BBF2600787F82DC24003D04A073007C4C
75018200F68300580138023B6E81FF041A8376ED6F5404C00A004301B3138060
37ABC1CC4A70E60ADADCF30B2F02E8DDEA0F20809B6C021870B113802AFB61B8
66096BEF616BB6E7853B8603210B688A0C1C4200191418225064609BA316B46A
D06183954B603EA159C3F34A680C378CA5AEDFF12167E15DAF0EA01170661536
49409B063CC14DC0E9D1596EC8C5C82CC881D9791BF46642CF6CD3E16BA892A1
D9F2E3ECF9335B78DDBC021487FD5EB2F15EB2D1ECC23F7CDFB97F2A00BE17D3
10C4EE3D55E7F793ECA3B70FA42457093BC4DB88CF99B8E3F49DEAD1773C3F65
BC49F8B963BA6CDA31493C3FE09FEE7873029A329F72DF3C5F797EF7345F787D
EBB9CC094C81E4A7ECF7023F1B7DD82EECC4FDF4FCB420280CC6FE03F2AAE5D1
C85CF9FBB408793228412AA1E03601FC6BB9D311DE9FA61B8010FFE33E3D0760
13C04987003E94A3C8019000087C63EBB6202472088057829C646008C01C12CA
2BBB01DBDCED4D00DD1FFBAD848DBCC3268091172D01C0FB5FD536A97457FAE6
7D39380EAB2178F5B6BCD0D5DB7271022CAEDBF34006F9349080316F42002990
106C73C8A10857D740062404D7A818CCD726B488C27DC6CC63C9EBB67F4A02F0
00DD00DEB311D76CC6D523B87A0C579BC7CBE3F753A4C01372635166628F7EA2
D35BCF589D20251998059F3AA9872A806346E6ABCD3C04BD3FE0739187320D7C
17FC0C5B3838A466F6F7A8E61D53E2F3B4E7FA4A7EEDF94D8FFE34806E3240C6
A41DB3F9042D3DFEEC6F097E93C8A3A4A7B1AB4FCFF39B849F07FC5CF5C5B97E
35E0E3809F5E9FA64FF6F524FD0CF8B9F0830B4D58FE63CFFF53D1B9F0FEF3A4
748B06FF6A8CF5AEC089BED598EAE3CAEF02543F323072CCD2DF227C9624808D
20062A80DDC8F237AA104013C0310BFC2481250DAB94D7FF607EA422024E0032
043004602A031C08E2636DB009988B408C757DE4D71239E1219B00A65FCC0450
F056696D10BCFF32C6DD012BB7E604ADDA9613BC6A5B2E4D93C1B65CAA02C714
21F8920266CC0B8CB96AC1A886B53B0A719F32935BF8B6D7A4B5DBCE66D1C35A
2BB0F579F7B6F9C86ED39AEBECCBF3F5F6DC9AABBDB2DEA0C3C51AAA4F1F5E98
C4C0B082F905861AC6DB6B85E199CFA7D75723BFAC0838E67603D2EB5BA05703
3CD6893C8C91D9EA6B4EDDF197EC33B25FF7E8337BEFF1FC7354DD1F23B80422
62F37148D8D1D8AF4FD0EA693D787BC79BDBE077EBF76A7457C7F95ECF35E0B7
3CBF01BF92FE06FC3CE107360EC0A7F13D916087142D95C7A3F2E4BA1951F258
60BC023F8DF29FA6E37F787CC7EB3760BDF7F23D07A50AEBBEA9144AD13B908F
2D411CFD5DB5E7804B00C7110A1805508A2E4026FCE8F519F313E4BCCDEC3FCD
6C03368FF91240E7077F2509D39FB50920E4A2240078FFA7DBA594B1E7BE9889
BFB90D5BB2E6356CCDA6910802612001652120019A51068E3A30A4E02A05430E
20837CD74004C829FCD306C2284B5CB3D595EE1ECFEE19B9357DF86A3F9E31C7
139BBE7CB32DD7037CBD3CD35DC74522501E9A4D3C7AC9063D36B3FAC988DD95
52C0959E9D653F1BF82684503F8BAFE90B7CC7EB9B6D3DE648AE787401B21AE0
2EE1B41671DAF1BE02BE7302AFBB98C369D7F595FD043E253BB3F86316EA2CFE
28B4E5B247FF3DA806B77E6F4FEDA1664F2FCFF0C0F5FC0EF84DBC6F08C01BFC
1AF8C6D2F01972D089DB7E9E40DB2FBD7FF6BA6DE72480D598F5E7AAF735B0B5
B8BD01C4B04D29007402622068EBA1A3B21E7B20EB77EE472FC06E29C3A2903D
A820A41795280530734194520026043065BFA604F0332F05D0F1815F4A464007
6C03BAD49402132F3A023027FB8EAB5A158CC1975AC4FCF9282165D148043490
4036484019558131A30E0C29F81203C9C1E410AC6B3E7FC6B731136EE00F6A69
22FED38D073F17D8ED5E7C5FC0DB8763DAA0679FBE19CD751773580B35491826
81A8D67A39B9051D4660E30E2C1E65BD14EEEEB380EFCEFA5B5EDFAB0DD82CE9
54DD802001F4E9FB4BF619F07B127D94FCCE4E3E9F98DF64EFFD797E029C7BFA
54161FD9FBB791C51F86E3B9B8B38F893C35BC83A41EEBFA26E627F86D02F080
7F8DDAEF67803F16B79953A0F71F51562B4F4463DEFF8318B96F76B40B7EA300
D8FCE351001AFC34DD07704C3621094802D80302600870A89910203E3BCFEB3C
00930424019851602A018F02F026800E3820B420AC23B602B90341051723010C
E89C5E9989125A29076E3EA8DB9C31D331C495993619A07C0465E0210478A81C
D7FC1003090207492AC5702E0B638EC19F21DC0089E446AFD9B63E0E1965AEBC
A24CE79C3D65BBEDD9DDE93B6727BEF1F2FF0CE8B93B1FEDCEEE6CBE3A3BCF59
AA49CFAD967CE0F5A9005429D249ECA99FE1ECE22319A8537890B5E77AAE58C4
B8EC01F000DFDACE6BE6F691A4642860C28126997E1EC96DB5E9FE4FC04FCFDE
C4F3AB787E9D0232CFEA1B8A2CFE1090C29B45CB91CDAF93D11CF7AD46BE41C5
FC9CECA3DCC73A70982FF849001C7736DEFF5194FEAE42D75F42C3063F04C010
80DE9E2180063E6D356C2D42824DF0EE36011C4619D03BFE6718705A81DCF401
30CE379D7F660E80CA80F90012804A02E230103B07D0EEDE5F487E681B79A79D
BB16ACEAA2220078FF5F70DA0FB1672CB6DDD4CDAEDB9289250FE9C8086B0311
D0503FCEA491100C29E830C19847212895601383B9ED84102694F07355B906DB
A0347269D1ABB7EE4D4492C8CEA4D3BB72EC350A60B31763D29B9B73F07CBDBC
3F4F6F0ECD300B39D4E11966932E177A70B38EB34F9FB70976FB7DA810C249EC
79967438537F4EAF7F34928D3C962B0CD9F110786EF603300148E9AFCC01BF19
E2614E4037EB68E06BF0A34D975EDF8FE737093CDDB5E727E6B7C1EF34F06839
AF87768CE7A7F7F724F3D6CA4867A28FC440B5F05649ADBA72BB2F4FF8A5F727
F069FCD9A92080B1950DD22AA6406E9A152BB7CF58E0057E8F027008800D4004
3E486025A633797B1DEE631BF00E48FFBD8E023004700CA027F08D853BC78111
FC660EC0D4FD990F2001302C3047853725809F4B4EC0B3DC0A64F2006B2E3602
98DA2BBB2A1A19EF7264A54BA7D66E4CA381048CA56B420011C04002C65C4280
42A04AC834E102FE68DDFC81C92398AB0923FC5D7D4983790763D1ABB69C4884
97346BAFCD11D79EAB96F00431554204C0462F1CC54114A518F4CA2CDBCCCA6C
CFF65C0D76630AF40EF0B95D476DD851B3F6ECF0D3246303DF8CFAAADE7FE60B
9C23B8580ED3EBB9B4B11390A067963C8C433CECC473867782709BEDB37A6517
49E0FF1BF8B99B9FA63CBFD5B6EB0FFC13167B837F1C3C3F1B7CC620B94880AB
FE7E4A7EDC370A79059EEC4B421804B5F056C90A45C6C6FB3FB8204BAE1C1F28
A14B5735210055FFE7C11F2601682900AA81F5B8DF10C03E4E022204388C1080
E03FEE809F89405A30E27E02DE1000B3FEE6360980D5017A7E2A00D507E0A300
78427076C0F3F2B68700F65E340460CA7EB11B76A7A0077ED994DA8DA953967B
9B4B085003D361331CF3430819F04C50079BBD4206430A3EE4408250062FD7AC
D9E411BD6AF3675CA7C5C49CB7796277E3C90DC8ED9DF8F4B65CB641CF4B4FCC
3F54EECB23380D40BD80EF48737BAD9659AF65BC3625BD6F46DFC87CB3909353
7034F33A9ED7F0ECE457BD008E212FE21CCBB5514DF2CD40628EA3BE1CDC51E5
BE15BAC1C70CEB9C2BDEB7817F3EF0FB7A7E02DF809F04401B0D353016574A7F
E3F5CD752A2A064C8E8E4103D053CAFBC7C9F5D8F5BF08E5C03528FB29CFCF2D
3FB06609C049021A02D80905B00FBB000E9C3CE5210007F804FF91132715B0D9
EB4FE0331C2019F03E53F69B1EB6401100BFE6F5A5BB3C254086026DEFFE99E4
877592A19E10E0D4C5440059038B9605A2E96511937538B4311927B7A4D0DE5F
AECD9710A6D56E4CA7910C6C42203198BC81735564E0CF4C4EE19FB946366C3C
ABC0E66CCEF55CE1D5B910933BF19C5DF81EEFEBD98B6FC66FB97883808F7256
7285416207A386CE2B37E74641AA9B259A36E0CD7CBE3B67EF34F05011B8A183
977AF02806F37A7E877E14F0CD8E3E10147206E6286E2A01CEFDB3A5760E926B
EF5BA53E66F6B1A0D53D968B4D3D6CD6A17926F498CCD3C6A93C9A96FB68DC71
8C5E9D927F9C6B1AF82EF8F133981C1C05F03347A00D8AC0798E2100158A21D7
C1AEBFFBC233E5CA094132A3B21672FE98D461D0AA065B9C2A119A15E13959A8
F9E7E13870F6002C41FBB549FE99042009600B0863E7B1138A000E9E02016029
E8510BFC2480ADBBF7AAF89F757F3BFE270198987F4678842A0D7A4280A60450
1CD35FDEEDF02713027C7D51108039D91740CA84FCAF1EBF645D326DC292F5CA
4806E7230410419A638A140C31B82AA18E398426C4E02618411499BE6685186E
B88156D582C8864D48CE59203F0FD86DC07355963912CBC87023C5D549394E06
9E408D041843586E03E054CF7E03E275A5182C8FAD7AF63DC65E7EB5928BC77B
59A18217813800F14CFC61A79F01BE5AD009E053A1A8997DA7FFDF013F0940EF
EA43979FE9D6C3641E414F52E0715CA310770F479C3E02476D71786722BCB40D
7C7FE037B1BE5FF03BC077C1EF10C0480E06394622E0E37C0F4C8A4EC5CF7C26
AE50EEC4219FD7BE17A44A79BE4670D3480C2B400C0B5151298642CAC1EF9F56
BF098B41B6AA1E8006F403ECC4BA6F96001BE1E90F211438C230C0B2BA751BDC
1E00B3F78F573319488F4F02304D416C15B61380BCDD068AA03CF14D19DBE577
762FC04F2F68123065BF918B5606E2B8ABC53300D231356B13C7D6AC4D1A57B3
4E9921838920025A738460A98434A8054508E82CB30D390428061889C15C3DA1
C426E416B499FB7CAF73566C5C14B972B33ED9D698B5FBDE0BECDCB0F32D006F
83DE57DAFB7A7B6ECF656B2B176BD0E6616D36BFB68FD066175F0C92946A2517
33FAF6365E783D128B3E80537B7BB7FBCF02BE6902525707FCC1F0965CCFCD9F
C7B65F9A99D6D39B7875379FBD8A5B0DEC30798732DF3064F2DF29AD43A9AF1E
893BA80627966F16FCEC1BF816E027098C708880AA89670FBC98582CF78465C8
151383645441D5790960AD93F95F79E0884A00AEC2955D82B55005355CFDBE69
A794ADDB2E856C06C214E85A3403ED4575E0084282432085F225CB140130D147
E91F8BE3C1D80464760330E6670EC0F40404C6C7FB2580D2E83E32BEFB1F6D02
F8CB854E00BD3AA655E4226996CB51DB518BD7C68F5EBC36813666F1DA441AC9
0024A0CCA8025E7D09C1A8041CFC984A7B1F39049A091D4C0EC1DFD552104649
F8BDCE5BB1A13E0CC9319E7643E9EE6ECF75926AFEBCBBAF87F7F5F4E703BD3D
A1A7B7F268435F825AC849F03361370B9E78C6D20D3213409C8BF89C9E5C1188
EBF1B9BDD7635EE077BCBDEBF1FD005F1DC5ED007F1E7E1E6D0E3CE52C0CF5F8
03BF7FC9AF653FE3772EED7C1BC771BF595C2B83612CF5BD8B1E80D10AF8FA1C
3F43004AF6FBF1FC06FC2400124A3AA4FD8CA56BA5351A7FEEC1315F574F08F0
0B7EAA01EDFDB53137B00A660860258E7C5F0D22588FE51F5BD025B80B0A601F
5B8101F603A8066C2541609868191A81F6A08498595CA6BC3B09C01C04C270C0
1C114602A00230FB00E7C444F8258094D92FCAF89E5E5B81AEBF6009C09CEC8B
5831141D7F350075D2BB556BE24654AF89A78DAA5E93004248A4692258976854
81A30C9A25059283C92198AB2685731B8E924A3D9705D4AEDF1A05F03369670E
BA502BB5092048635E59463320F707763B0E77BDB3B36ADBDEBFE73D9AEB037C
F7141D1DA7A32DDA35F43A38FDFA0029643A95820A2338F6CBC93E27B3AF167C
F803BEEAFE33DB79F529BCBEE027F0CDE8AEDED587ED3C7E627EDF78DFC4FC26
DE77637E64F9097612C0DB50096F801006142C9341B8A2255C86424130E6B765
BF0D7E1200C92B029FCBCB49A5727768BA5C3E3158DECA2A3F0F01B0D67F5413
00DA7FD902DC00E0AFC495F76D4027A04D00079107388C4A807708704A62B372
DCADBF5400A60DD8100093822400D3163C65FEDC2604C03020E2BD276542EF6B
6C0570D7854C002CFB45A56ED957381F63BEC316AD8EA30DAFD266C8602489C0
98430686109A23055B2D584A21052AC1CB705414128D1E0349A49CCB8296AF3F
C4729E89AFBDE26CE79C7B8298A3A7DCA01BCC5A3B8C9ED796E266D3AE3FC07B
966FFA7A7B7D5CB69B9CF3037CAEDBE2961D636CE22139980338F838496126C0
CACCFE6CA8867900B07A9F78CC009F32DF00DF809F1E5F8DED3601BF7340076A
FE6CF03957B2CFACE772653F80CF121FCB79540563FD78FEE1A8F3B321685091
2685D7F297CAC04294FB38FF8F7C03C1CF04209BA1662D5F87B6DF6279203455
AEC0C8EF5A05E2A6F13F81BD1EC6F89F04406F4FD037C0F39304A80048001BD9
060CA9BF1B63C35400240082FF089281C72C8B48D54D4094FD54006617000980
49403324640E0B193B7B8C5F02983FFE0999F4EAF536013C7941128039D93760
E59668CCB82F1E56B53AF69D45AB940D85F99041FC882AA80218C9C026043B54
B049C19718A818ECF0C15F286188E25C8411B27CDD973CE0D2CECEFB4A78B7A1
867BF51CA34AA0E7E59EFD00008E1E99DE58C7E28E79497B2DF1C369D66199EC
D1577DFA8ED1DB6B6B0A7CB59C53998EDDCDE93B26B9A7E53EE7F9F5E93B9CEC
E3B8EF7464E867728127DFA723F55DE05BE037E7F1A92DBD003F6D06077DD429
3C4D33FD5EE077816F83DF23F9CF95F0D39E7F256AFFF5AE52988A0AC25CFCEC
0E29F0FE619972D97BC1D227A9C00FF8D9DBAF8D04C0D85F7B7F470138044035
40F23004C004A02680930AFC471DF01F450E8066927D04BF6F17A0F1FACC01F0
3192C1B0F706FA2580E0B1AD64E6402F02687FA1124062FFFC25413858B284E5
B9B72A57460FA95C19F3F6C255CA6C32F0218478A8039710BC48C1C91DF8E610
3CB984752A8C30E62F9C30B9067F57AC954E0BAE5D7756039C9D731E334037CB
3558EBB7CFBC3772DE24DF98802320E97155F30D08814B38E889B587774EC86D
56A26B99EE91EACE720EAF051D8E7447F58040A69174087A5A084881893D95DC
E38A2ECBEBCF03D03FE0D20D94E426AA121F26FA00B2E9003727FE34F837EA15
DD0EF055D79F33DBCF555DA6CC6780EFCA7ECBEB7B3CFF3F037E9DF433C62EC0
4C787F863A1CF9BD3F2C4D2E1F334732F17B65C398C95F8D4DBE06F80AFCF0FC
CAFB5B04E051009A0C48009BA100B64301EC4119B0F1C40924FCA800600EF00D
0110D894FE8600E8E94D15C0F4FF9B122109E0CDE15DFC12C09C114F49D010AF
10A0EF054700A6EC17B16E4732D7750F2AAF8F7AB3A2219A46223064D01C210C
5BB44A850A4EB8A00801E102D581972177C01C826B8618EC2B2B0EBE86A42313
8F4D6C7CF5EADCE015EB9557B701EDE5C56D8FEEDC5EC06CBB6FC6DD391C43CD
DD1B738EC4E6161EB3469BFBF529D1094E7354B60D7A772BCF39806F127646C2
F3B53CC0D759FD2092046C1ECD91FAEE7E3E92139775709C1704C051DF3190DE
E3556FFE1AB5AF8FCD4104BF39976F2A92911CE0E1B41FC773DD965E2FF0B386
4FD9AFC14F20D39A4BF8D9A037B7DF4535818949926DF78C4A64FEE9FD43A473
4CB60BF85500FF524CEE2DC216DF62544772B017300F6BBE79BB1A197E9600A9
004800F55000BC9200D6290238263B8E1C7309E02012808701FE23200203FE7D
38109404C0062026014DDC6F1A8198F86318600880C9C2816FBDE89700660C79
5422465D6787006F5F880450F34649ED1CCCD39733F1F77A597DE4409000ED8D
8A86F3928151085A19900C8C69527857E70F1429D8E64B10F6D7A3AA41143EE6
4B1813AA579687A0EC6667E2EDCE3917E816D8ED051B66ABAE2FE8D5FC3DA5BD
5D7737F5772BA1C7AD3C1F008094EA8CE1B95ADB6B238FBB5F0F8AC259B365AF
DA52EBB6E0B16904B98AED6DE0DBE0E7520F0BF80C1168F4FE346EEF35361572
9F1B7C59EAE3A8EF6824F2D80F40F04F46469E0B391501FC0FC1EF0FF8BC8FE0
67FD9FB13F4FFB61E3CFA368FBBD7CCC6C34F5ECF7487DB6F4FA9892FD00FB12
340595A2672217CD40ACFD6743191582E0490C5E04801CC0FEE327C41080013F
AF3C0FD00CFE3007C0DB24042E00252998E61F731F2B02FD07B4F24B009306DC
29D1E3BDF6024EBCA00800DEBF4B87D40A2EE148C57AAEC2FE25750B5E2BAD8B
78ADAC2E9244401B54DE104523199C8B106C85005250B9036386144C42512715
9B37537938D775E2A295CB43F047D21CA85976536679772FB0BB67E8398077E2
79AFD29B037CEDEDBD25BEEDEDE9F508509EC4338D23B200D81494D70852037A
3B4B6F80CFAB91EE6AAD978FD79F83F2A101FE6C9285057CB6FFAA411F07FC46
EEABC51E5CD8E1787DB6FA12FC9CF71F8ED2DE5094FA38E6CB219E77B107806D
BCAAA5D7F5F8DAEB8FAC5AA90DF1FD0890886B96DCB73D3F09602E888A75FF57
B0EAFB81F900FFA4507971419A8EF1FD00DFDC67E43F65BEF2FEB8AA0A0048A1
1607822CDABA07C4B05D0AD00C94BF6AB3DAFF5FBF63AF6C43F94FE501DC10E0
A42CC52620CA7C029E713E3DBC090748006C0232CD41FC9A04F04AAFFBFC12C0
881E374AF4C4076C051070C1108029FB41120662ABCDC2C1152BA3FB16AF58D0
0F24D0AF64458422021849808430B0BC41597384E02F64202938C4104B52A0BD
038332F8FF624A594C5E54BF891B74033911A762769D41673C6D32F3F6D524EC
8C67370763B8493CCBCBDBF2DE57E2FB2EDFD4F3F8FAC00D25D7E9ED616CD19D
C9C3323868C3CD380018E53A937236F075DCCE955B48DCE1368982C0F780DF03
7C12802FF04900BADDD76306FCA602A03AFFB8DFDFB4FB3ABBFA98B57F13433B
AF239BCF521F077738C8C34CBF02BF0DFC666E93446824084EFCF1FFE47964FE
1F8FC856DEBF12527F3D007D2EA3775F0BE0AFA1DC4788D0D07818F2FF90D4C1
566255387306EB701F0F01D9893AFF1E84011BB13AAC61FB5EA9D9BC4BCAD7A2
4B108B45761F3A22F9958BDC434059EA23E04900C60C0150091842E8DDED4EBF
04F04EA7AB257EEA533601C45E480430A25BE6C2C4C8753B3202576ECBEE5354
3B9FF64AF18AF9AF96AC584023111832185056AFC84087089A0CFC1182AD1206
238F301824E06B86187C548327E9E81005C9C29849489AEBCCC5F59F84596037
B29DC93426D8E620469E095050AA33AE36C9369570734CADD4F6F5EC00B45732
4FC5E44E198EA7EAA803353CABB74C4C6F80AFC0EFACD3A6CCB7A53E01CCB87D
3201C8693A78D331000EE37636EF282F8EF7CCA41E3DBEF1FA94F906F8BE5E9F
1B7A0CF8097CB59FCFE9F3B781EF0B7EE60268ECDD77E37C787ED6F8DF4089AF
7FEE125DFBC744DF6094F8783FFB020874037AFBCAF7C869CB0158F5CD833EAE
C2411FAD8213CF0B7E1283260094FA00F255B095007E3D4E63AA03F80D01AC87
B7DF0202D80502D88B46A00348041E4622F008ECA863878F1D9794FC2277E597
19F861BC4F023080A73A201198AF7BB4BBD12F01BCF9F2159236AF2D08C06D06
CABA2008C094FDF08713866D3695F4FC3D0B9787F72EAA55E62183DA05AF14D7
2A323084D01FAA806460134273A46042079354E45591828F9964A39D70B449C2
DC769392150D89B36B1ABE6C22D79955B74C835B83176DC3CA23738B2EA53A81
ABCEBDE7D08F9375D709380BF004BE01BDDB75D7D4DBBB5EBF39E05B52DFF6F8
26534FC04EA00C07B8D8BB3F12F61EC0C9CDBF36F85DB9CF50C3023E09C017F8
5E5EDF3995C7DDD2EB80DF2CEF60F24FC97EC87D7A7D5FCF3F0CB984378A974B
BFBC25826A91BC5E08C500E530046A818F9108B8ED27146DD9ACFBD3FB5F3176
AEE4C12B9FCFFB13D8EB60860056C2DBD703F87520807A1CC4BA124605C0D7D9
82F55FBBE0FDF71E3D268D00FB2187008E201F608C929E893F829C3900E3F109
76DF1080CFA112E8D1E6EF7E0960509BCBA56041670C045D6A5440E585420071
7DF36A82B07E3B8F89BFEE05CBC27A142E574622684206C554063E64505AB780
646013C2B948C1473144831C5C330401A540C5705E7BBBAC2E73CED235678DF7
3ED75581DC1833EE0EC0595A9BC5929993C863598D5F07220E67299066CA7576
E6DE96F9C6DB37E7F14D7CEF29D169A96F1673A84CBD03660FA0F5E4DE244EE5
2DC6882D076BB8960BC6293F0ED898E7BA1B797DBCBE013F137EE6482EB59EDB
07F8EECA2E95F94712CF0FF84DECEFCFEBB36DB83F486134082B0CF13FBD3F8F
F8FEFBD40879645EDC79C07F048F6B2301AC01C8097443002B1C026850047044
36E239DCFF4702D877EC981C4022F090057C12C06158887316A0A90290004804
A634684202A3006232B2A4DBB397FA2580D75FBC5C2AA23BC8B076EE5AB0FA1F
3C0198937D67ADD81C8589BF92AE054B43BBE42F0DED96BF4C19C9C010822183
5E45CB5D55D00764403384C06B3F908131430ABEC4E04B0E4E381185ABAA38D8
F606938EE7B0B74B6B0BE72E5BE701B605725D43B7CDE3D5595E33A6806ECC01
3B55C207042501C505995CAD0D69AEE27227B6F7077A7D6C96CEE8DBA0674CEF
C6EC06F84ECCDE14F87A6C97E53A636A11A74510DCF04BA5C0CCFE0826F16004
2DCB7F6EC71FE37C1FE06BF0375DD7A5EAFE0EF849000C493818E495F4F323F9
87C3E3DB9680AECB30282D2EFB7C7401BC3FBAFE6697D7E204DF6D5281619DE5
38DADBA3043CC027F895E767A71FC0CFF8DF8B00B0EC9321001F23016C438CBF
1B21C03E2800430004BD6D043EE53EBD3B937DA607C01C0E6A804FA5A0928099
E9D2F5E9BFFA25807EAD2F91D2A897EDA520DB2E0402A81954BC7C36C05F38A4
72554CA7BCA5219D1D23119C8B0C48045E64C0BC8143088614DC70C122059283
4D0CDE245117390049C66F63260731B464F9226ECAB125BB5FF96E83DCB96DBC
BABFAB5D7337A0E791DAD3094A820AE063326F1ABBF39C061CBB1C67CA720AF4
0837682649E766E99B787CFFC027F84DDC4E3530058437053FD7D7EB4F445310
41CC611E4EF7B1779F477311CC043D1FE7608E3182DE9802BD037CEEF8A399D9
FEE63CBF2FF899E4E402D4E125CBE549B5EC335AEE9D19E902BE7E374E5AE68E
7F6E6EAEDF8875DE5BA50C59FC2558F1CDD15E7F04C0D89F568F449F2180CD20
80ED50002E01200770D007FC3C0DC8487DB30DC810809904F4258088CC14E9F2
C41FFC12409FA7FE2CC5511DE49D97DDB560477FD00400EFDFAE7D6A7929B6F0
C47111E7CBD935C1ED73960477CC5D124C22F836644075602B035F526012B16F
89B71952B0AFB66A684E41F892C600E61F60EF552EDFCB8CBFAE9DFB33DD40D3
9C99A61AFB6A006F5F3D2538A7F9860D383C468BD97D66D5092600681CBC26D5
0241CEC7F4D5D389E75FEAFB07BEDEB2ABA7F458BEA3F1E04DB5B21BF76BE36D
2CE4E431DB7C0E1F778CCF1DAF5673811050F21B0C600E46FCFE3632FCEF42AA
B3B98731BF013E89C206BE67B9875602B6F4F7053FBFE65AB570C7FB3FC6659F
98F88B5ABED621006F6FBF8E0D3DECEDE78E7F54073429A0DE8FDC4111F20554
0BACF92FDBDDA808A061DF4159852BBF8704B003E5445600F63B49405F02A85B
BBD62D0152F2D3CBB32DD834FD9004CC1620960AF9F582CC44E9FCE8EFFC1240
CF277E2FA5D13D9103F88BC9017CF683250073B2EFDB950DB3B1B3AEA47761ED
FC36598B83DA66D728231990086C32F89684A07206FE488109451282AFF91244
735FFB238E574B6AA3262DACFDFC7D78354A6266CA4D09AE49ACEED345775EC0
9B249E69BA7100AF8EC9F269BEF1CACCABE3B175769F0A610C9269DCB5CFDB4C
F0D9253A55A337A7E958BBF5B96EDB05BE037E82D9988ADF9D4E3F037C7FE0E7
F355720FCF35468FAFA6FBA012F4AE3E64F791C8E3D82F177992186CE09BDB26
1C2009F803FF647CFE3C0F613492815CF775CB6C2CFB9C3EDF8DEDDD18DF01BE
2100FB6A14C06A64FE5700F824810C2C79494393571EE6FDA916968214D6800C
764001180220F89903F0C8FFE352525DE54A7EB3FD978AC09C024C3560F600F2
366D7E56BC747CF8377E09A0DBA3BF918A848132A6F39FED63C2FFF307490220
80115D331626C063267306FFF9CCEAC017B3162B7B0944406B9355A3CC5606FE
D4014306DF70A19BCE1D84DBE64D0CB5081F7495E15CE68F304CBE81D589570B
9727CEA8AEFFDA6CC32530D9A2CBFD78EFF1D41B8090D97E03767F9EDDDC67CA
74EAEA0B7A3F80F705BDF1F646DEBBEDB78ECC57ABBAB827CF39469B31FB68A8
05D595E7ECD4F7F2F8CD01DF01BF01345FD3D7EB1BE0FB825FB5F73AE62BF9D5
BA6F3407BD0985C0CCFE8082A528012E5324318C9D842629C8AD42200F5FE30E
86F9F0FEECF97F04A5BFAB27044A7075BDAC47298FB68EF57B5FF32283C30801
0E3B0940C4FB208106C4FD5C1556CFF81FC6C4E012104031D4421E88A162FD36
598EB9FF757B1A65E781C3720809C1C3C78F2B4BCE2F505E9F1EDFECFB671EC0
9E09309E9FDE5F8507A961D21E8780F86E04E2D75D1EFE9554678C94F1DD5C05
4025F0BB1F1C0198937D4756AD0E84F72F7F31B33AE8B98CAA40DAF3195541BE
64E090008920A85DF692605A07840AC64CB8602B04430A5DF39786D14808B635
470C240912C3B7B5D70A96664DAB6E701373BE00279829BFA90E3834C3E69BC9
000C937B5E807716682AEF6E79F866637A2BAEB7016FF7DC9BC49E57538ED9CA
C38620EED007F8D5AA2E758C36B6F2509A035C04A7EDF135A0B5D7A769F0A32A
C063BED415BF9B9BD5F7F6FA7CDC06BE9DE86B2AF7A156A8581C23E8B90CE40D
D4FF0760D4F73594FD063A6A8163C08604DEC367CA03552722D4E0BAAFBB0312
E5A629A1CD03DF8B0820EB01F6B58EAD81CC5FC5781F568FF06005F2068CFF99
23588DC736E07BB9F4632714C0DE2347A51103410701FC251BB74BD1CA8DB270
DD56D975E0A06AFB25A8CDA93FDC04640880F7D1FB2BAFEFCC03F03A236EA6B4
BBCFFB605043069D1FFA952CCF1B83AD406E19900470F90F9100427AE5548762
243563D8C255094FA52E0C7C3A6D51C033B0D6E98B1411381644422041D01022
04D34804C60C21F89242C7DCA5218E85820C5432D19821055F7230A5C77FE6FA
5ADEE29219F094BEF1F9B9BEE6E00C3BF04C030E637636E2D0839BC49DEFD56D
BC692E9967866D7C6AF2BA0BCF5BE6DBDE9EB2D957EAD36B33167F175E772892
7894E6F4CC5CB16D406F804F709340086ACEEBBBD97D8724BCC06F65F87D937C
36E879DB37F3EF7ECD197F188FF61E84B97F96FD704AB4048234E7D6AE9717E1
FD1F46E6FF1AECFA9B52B204A086576FD63CA027F8D73846902BF0C35600F4B5
2401ACF96AC0D7CC01ACC7EB6D3B784476290238820AC0314500872D3B006260
09909EDD64FFCD81A07617A02100D3133025E23D6977AFF7C1A086003A3EF02B
599A3D444677F5DA0A74CB0F8A004CD90F63B761E8852F7C326561C013C99501
4FA6682319D09E4D5B18440321287B2E7D51304821E8051001EDC5AC6A86090E
2190143CD62EBB26C49F52E890BB84A410EA6BBE0441A2E85AB0EC5BD9D0E29A
8D1CC221A86D9BC9CE3FCB7CBDBAAF6767C71D253AC3064ED28D419C4B694DA2
B033F83A99C72E3D0CFE1863EF804FC94E1F97C533F43C46B01BB35B715582CF
8AEF3D71BEF6F6342A8291784F439D1DFB94E62406EEF0F32ADD392BB95DE03B
493E3E877DFECABC127DDE1EFF7CC027F89923B08DFD0829F0FEEF2D6AD0EBBE
E0FDAFC5BEBF420CF1542286AF47FFBE37097803DFF5FC2000057EC4F704BB4D
00752001DEC7106063E3214D00878FC83E2A0055063C26877C8CB1BEE9F8A377
A7C7E73C00C16EF7FF733EC010C0E8B96F09CF00F01702F07CC0B2F8BE32AEFB
15763BF0C33F340228EB9BBF6436BAE6727B152E8F7A28B13CE0B1E40A658F27
5706DA64D08ACAC00F19B88400527831B3CA351282B1B620046324074D0ADE46
423897D944E18F244014E113CA977EDC9CD75631BAE3B1CF75A5E7F7671C9B65
628D7FE0A301BE51F0C8AAF906A026E015E821E35D3B0FE88DB7F7F2F8E701BE
EDF18DD7D7DE1E6103077AB8BBAF04713B24FAEB90E86FC02B3391C7249F79DE
FFBF80EF0FFC2482F928E5CD47EF45DBA412795079FF10199DBF48819EF17A09
1676E620B39F85B25F2162F78558E2598B1160037C7365E28F1EDE10401DBCBE
5100BCBD72EF01A512361D3824DB4100ECF5DF77F8A856003EB675D72E77E887
24601300F3012604303B02CDD743A7BEA2CE00F047001DEEFF8594C4BE22EFF7
B9CA2680977E300400EFDFBA5D4AF9A231D56BA2D1F893F3607CF93CDA4309E5
0136111832508490A20D4410E458E0335006B467A10C6886105EC8A80AA6D9A4
C0DB2F655687B80692B0C9C18B24721687B4CFA909F5D8127CED6D366174CB5E
1C3F6951EDD736786DA0DBF74F57E5B87318140055806B4E1FBEEEB2D3DD786A
AF9ED5A6CB11DB77E19199D4F32ECB31DFE06D9354338E53CAB34A749E38DF91
EF6E8CAFE37B637A361FEBB54CAD5ED5EB798A2F26F8685CD8C9862025CF7112
4FF10A1DB72391C7FE7D96FDF8D8B796FACE6BF17B9A033EC1CFF0230D75FD19
4BD6A8B6DF47C2D3E5EF48FE9DCBE32FDEBA5B4A90BCCB754881E5BFF28D3BA4
06C33C2B76352A02D0DE5F1300AFF50E01902C364101EC0001EC7108C028009B
0496AFAC73BBFD0C0198DD7F0C0B0CE09920646EC08C06BFF55E9726A7021932
6068501CF79ACC1E78AD4D00DD7F100460CA7EAF152F9F89A519C5CFA72F0ABD
2FAE64DE03F1A501B407E3CBB42594053E9C581EF858129481634F265704D25A
A5560619B3088164106CECB9F4AA6018420624134106C6FC1183210A430E6DB2
AA4395652F0EF135104588B176395012B01E59559993AB1A9C4D371E704F5365
B866CC6ABCB1BBEF7C7BE96DD0BBDD7896B7F7D4E0794A2E866800044A74EEDC
E78A6D26F5D86C736EE07B62764F72CF037A4FFC7E0EE05BE0E7CF34C633F994
A9598295EA3DB1FECF72DF6B88DB5F07310C76B2FB04B297F477407F2EE09B10
201459FF0518A6E2BAAF87E8FD31F2FB56466913EFEEEBEDED989F5EBD0A99FC
629042F64A96FC36482E4A7EC5EBB74BC5965DD80BB04F250399185C0F85B019
95829D54000C01D0094802F055008595C56E0990A100653EE37D2E0531FB014C
5BB0D90940221830F4597506803F05F0F23D3F93E284211230E4469B0006FD50
086050A7F4CA742C7F48C092C6B4BB628AE6DD1353ACEC5E1001ED7E1001ED21
10C1430965012402638F269507D29E0011186B95521164ECE994CA201A1289CA
A00C828D39A4406270CD26079B247C55C44B9955500F3E9655AD5444CFEC45A5
23D0DC623C30A5383BD19A98CFA08CAEBD3767DEEDB70AFC0EF06DD09BDBFE3C
3D41AF4ED17508E11D487266CC99D41B8B5E7EE6164CB2CE005F25F32CD359FB
7F1EF8BA7FDF06BFF6E0BE433D04309502496120A6FC98CC63969FAA811D849E
189F7B029AC6FDBC8F7989749CC23407CB3EB9F0E389059972F5B879002A637E
FF71BE2FF0DDC41FE37F1302E0FBEB1C055002659081D0210DDB9EF2B12D88B3
FF2BA014364125344F004725011D7D06E826BE672F80BD138004400560E601E2
B03DB8EF8007CF49002589C3247CE4ED36018CFEDE138029FB0D285E3E3766DD
8ED287124A83EE882E9A47127088200044A0ECDE5865F3EE8F0319C0A80E1E72
48E1E10410826350075409CA6C527812A4407B0A6440B395026FDBC4701E9250
2AC236430EE6FA467ED54676DFB125964934B5E48267D8E38F539D7A83C75497
9C9588F3EAAD07B0DFA7B963B3FA604C753E9E95B0F34ADE01DC04B80D7C7EED
E5E955371E6BF32CCD794C67F68D44C7F41C64F97064D329E10DF815E87D80AF
24BE559AF37879CFB49E9ED8A327D780A7F9D6E9D5FDFEE6F82D996F8EFC663E
A15F6E8D520BCC2B0CC1FAEF77719A90B1E120B320944EE9FDBBA6956BEF3F39
4CFA26E503FC68E905406D63E3CEB96C35BBFC007C5AC3DE4625F9D908540B5B
B1673F4A808D4A016C80FCAF460EA164CD162960C90FAA6105428A0DBBF7ABD2
DFC1A3479585257A8E00370440D94FC093184C08604F08C6E7644BAF9EB7FBF5
FE6DD007F032720385D1832462DC7D3601CCF821104048AFECEA30C8DAB4FE45
B5F1B74616CEBBDD585461C0ED20833B4106B4BB1D22B0C82000A142209481B2
071D23293CCC7001F6486259D06389E55EF6445245904D0C8610ECAB2F3998AF
8D8A38E7357D61F0F0C2AACF98A47301AADA633D36CE5985350C20E31F3FCFC9
534761D9DFC3165ACBD463E817303689325E4979D36AEB0D763352ABAE0ED855
CFBD65B6B767BDDE05BBCAEC3728793E04197DCA7326F358F21BC1ED3CFF43E0
FB033FC9408FEA5A24E057EA7B404EB00F8771F73FBB0507A007E0D5DCC5500B
356A1C3819E72FCCA985F74F2C91A722B3E5CAB173642936F39C0FECDE8F23B1
B70FE7FEC174ED9FE047EB2F81EF12004881040092D8D078103D000801B0EB6F
2F4280FDAA0AA041BF70DD16A9DBBA4B0EE23ECA7E3306CC3660CA7B82DF9404
4D17A02100F59C9C0CE9DEEE7AFF0480B08021407A6037891CE7B51528E47B4D
00E6645F78FF508CC116DF1A5910707344FE3C5C5DF3220310C29DD11EBB3BBA
2850198901EAE0BED8122A83268460880164106CEC5110836D2409450C30E414
94B54282D1983F92502AC28F3D9BBA307C44F192B32AB1E6785B5E5DC0BAB701
5CA8039A2AA755AE522BB068F4C6A6B66EBF86BFDB7EC10D4F3DD1B109B84EC0
B8AEB1F11CDD35E636EC604E00CFF3787B8FCC37C93DBE9FE13839D7CEEC0F82
441F82789D203652DE23E93D5E9FBF8FBF0E3D02DF3645025EC9BDA6A027F06D
6327A06DDC7B4805A0BC3FBAFEAE991C2E6DB1EEAB1AB1FCB723000D7C63ABE9
FD11E7AF04D01B2CF0D72229B8026544DEB71A04B111EA621B7200BB0E820040
028DEC03801DA4811068BBF6EE734F0236DB7FCD11E0FC9A49401ABB040D0150
25C4E56112B0F5E5CD1200938031D35E92B8F71EB51540D2F79D000A7AE72E9E
8B925876FBCCEA881BE7E7CDF9C782FC793412814306012406DA6D9185CA6EA7
3270CC10824B0620847B628A02112AB8767F5C4990220618D4419032841AC66C
62F02588C793CA838C198270AF56CEC15614CF2597C58F2859E6D6C95D2FEBC4
D71E0FCC98DBC700487604D2944AC0B41CB3E41C9661128F253F66B76DD07BBC
38400E108FF7631ADC8E71284865ED57BA661EB365BE01BEAECDFB97FA54038C
D7396FCF755D8CD775120F6AC121B26F03FCA644707EE093047CC14F0261E63F
70C506C4FE25F26C4CAE5C89755FCCEC339B5F0079CE49BF6CB4EA9621914779
EF31EDED5D03F015F8612B55B65F037E3980BF9C0A00579E01D880C748001B48
002803EE3C78085580C3500047A4D101BE2180DA55F5EE08B05102A607C08C06
B322C03660120213846A3F407284747EE24F7E0980A5C1F6F7FD5CC226B696A4
69CFDA0450FABD250078FFA7DBA5942D1E54561B3179C9DAECEBC273E7D26E98
AF0D641060ECA60579013781106E8928083066C8405DA30A038DDD115D184823
31DC0532A02164F022049283268592A007E24A82690FC639C4E0872048142486
4713CB7D0D2AA2DCB5C7122B106A5404B54F2B2B1801AF48207226DE18EBF47E
CD2AA999D21ABFC7B7CECEAF993567E2EE4DC6BE001DE3F411F0A2CC2BA8693F
1A81EE94E54C798E8FD34C798ED7B18EB9F739CB3CB8D083653B1DCF5389E8C4
9D2AD339F7FB7A7B4F9C0F503A0D41ECD9E7561E4A7395C483342759F882DDFB
6B0FA88DCCF7F5F8FE80CF3560342E4A89C4D2D457B317C9A391B972EDD4F9F2
D2FC541FA0A39407002FC6024F430A19F51B24AB61A314A35597A0B78D357ECA
7C430004BE22012A0045008D4A2D50016C0701EC22014005EC07F80FF858112A
00A6D9C7487E7AFBA9A1F3DD8DC0E624603ECFB40CCF4B09C720D06FFD9E0B68
082070F4D39213DCC92280CB967F2F09C09CECDB23A77A269656143C1C5F1AF6
F7B09CB93490C03C6320827937E0EB2664404280DD12911F48BB2DA2C0319041
84520981CA400C240012822282E8E2202FF32106430A36311882302441A2700D
64813C43131B5CB0E8D0C8725D01704169C0695D094E7AF36F632E907D804DCF
CCEDB983119FBF01C0BDC5385DF5C1EB051CCC2D983ABC7DF5AAB93701B593A9
37197BB764E791E746A6EB981E73FD30561268FCD9B6D14BEB411EAA0424F010
A7F765120FE4C0CCBEAF1757CF778CB79B93FCE639EACA1227AE291B7741FE6F
5499FF6763F2E40A78FF226CE9F5F6F4C6EB7B7BFC7AAC04AF41D2AE9C5B7D51
EACB40C92F13C440D55086FB166FDBA31400096099B2FD2A174082584B02809A
D88E442009602F4A81FB007E2A00DB92B233DC166093F423E04900A607C01080
3929480F02854AFBFB7FE5970018FF77B8EF671230EA193403F50101B8F300EB
BFAF0430A0535A65E6E0B2BAB82165F569570465CEBD32386BDED521D9CA5C32
08031938767D586E000D8410084250F68F0579814A1D58646048E15690024D91
43644110ED8EA8421AC8C09856087EC9016401A5A0ECBE386D3641580A822AC2
7D0CE4103838BFEA2B36E1503AAB659AE7301BD8B677F6BEEDFD1A4DE4B86FC3
0D80C0C11D26EED428AD6AB6E1D41CAA10FECA7050155416BA2EEF80DC276BEF
5B6ED3893B7A732EF5F098C961E875DE4DCD063BBB02CD200F7BF6FB42291852
20A03DDFAF0985ADC5E6F5EDC7F473EBD5CAB428B4F80ECCAB96C7A3F2E48669
11F234967D3605BF7FA96FBCBEC9F8F35A870C3E95020920176BBE53115AA4A2
EC97B36A931421AC2029303CE0B1DF9BA1007680001802EC558D404D09203431
59C97B829F31BE91FB2400DE260990008C3A30938053E23FC01C40D341207AFF
760E01CC1DF98C2C4CEC2FC3DA5F6254C0DEEF1D01C0FBFF0276B26B5655000E
BF2CBD3E3C27E8B2A08C79208179200112C15C4304D78466CF33766D584E80B1
EBC372026D422029D0FE31DF311003C9E1E605F9413492822104FB8A3C822105
F7EA21074D12F74417413534B57B638A8395392461AE2083D03773AA944C6782
4C497580915E7A0462567FDEF8BCF739001F897E76DA289A23CDB998D32CE734
00B6AFC6530F055099C5A7147FBD6009DE974EDE0D8352E1FBA2B9A534C793DB
DE5C25F1908FA0D9203740E78A6EDADB7ECC3C76CE2B1482AEFDD7AA893E860E
7D7316C38C5258E69C11D00CB1E0E72621F31F04AFCD915F7AFF2B71CC57F6EA
4D4D24BDAFC4F7077C43025AFE6B995F87921F3DFE7278FE4568022A421B3149
814A211B4AA174ED1659BA79A7ACDDB5AF190238AC2A0094F5E63050E3EDCD56
60B31BC0F40498306042CC2469EB3307C0A62025FF9100ECF8C0CF65E6D0C7A5
14EDC043DBFDCDEC04F8F0FB480053BB652E8A1E56599FD233AF26E9D2C08C79
B4CB0233028C5D013560ECAA90EC006320830012C2752000DB34216803110459
E62105871C6E5E900752A06972B87541813228042A052F2341F89204720BC120
86206F2BC2D7DA9E8C2F4A199C5FED7AD39100D648E5BD20D3D9D8E2F4C40FC1
3A6B450A94EA788E6DFE80EC0D6A0D587F6640EC4A740097390202D8635AAAB3
844632E8A762F41AA885A568D3D5A53E23E1B5D735DE184486DF83EF9BC6C4E4
DBAE01FCF83E2F6B86105C92B09ECFD76ACED40E00860E58FFFD4AF66227A7C0
1E8065AE4A9886938462E0FD07172E915631F9F28F1951F2E8DCD8A6E067C2CE
B255B8DDAC31F9A76AFF4C00EE57E53F15FF635680C6DBCC25F0FBD721046840
5720096011360615A36BB008560D9550BF75A76CDAB34FB6EDDEAD804F909B61
20B3F68B04C072201381248569F89AB901D32A3C66C12869E33307400260FD9F
09C0CE0FFE52A60D7E400A237ACAC84E97B84B41BE570460CA7E5DB2AB42B008
A3F89279E9017F9B97A6EC9280F4804B03D2E7290BC46DD8E520052803D7AE0A
CE0A34764D485600EDEF215981D785E604B96691811F4250E400A560CC250843
0CB74680145C03394468F34710F67DB7833CEE882A08EA9E51BEEAAD821A2F70
1A1220D88D71E1C610F5878D2E3764CE093E12044140C2A0A97E7E155BFB33EF
78BB79EFADE3F3E115CC0B681BE698BADF96EFF89A937CACA5D3FB528EBF8EF7
F50632FA431C8012F8BCFD3FB12604A108C02611EFDB43CAD09064D9DBB84DE3
67A4D50C138C35D23B6BB18461A3D28C9AD5CAFB3F43EF8FBA7F62FD3AB78187
20FDD6C0774901F1BD53FAAB47285047D0E348B0E53BF7C972809D24500735B0
0A24B01E24B1458500E8024422702F9380870E4923AC0104B07CD376A95FD3A0
08C0240119E39B55E0F4F8A6EFDF1080E906A462183ABD6F932E40450094FFF7
FF5C2D049934E02E298CEC2363BA7AED04F8C5F786044000593DB3AB0391F4CA
793AA92CE6CF735303FE32374DD95F4102C64806C640048120026520039A2204
9B0C781B641064ECDAD0EC605890B1EB70DB2689E688C1871C14498018104A34
672AB4704902A5CAC08179559F0D295EEA0116BD298C39016FD39B726904211F
1B0A8F4C00BE066F4C5352BD7819C209D6D93590DDB8DBF9BAB9F85BCB741EAD
E598037ADB832B4F8EC77D3DAF0D34863224825772AAA5378C1D786A1B0FC8EA
2D3CF6165EC3D79A2507A7ED981D7DECDEF36724045FE0DB5FBF0502A0F167E8
E7AE50BD16F4FE6FC3FB73DDD7CD3363E40EACFBCA81072EC1B6DF45E8CE3BA7
A7F75201F4E81E5B097037D0D333E1A708609F2C7308805383BC9F04B00104B0
1504B0133980DDE8FADBE7809F04D0889C00AD786199BBF4C3F400989E7F9E0C
64FAFE990B604EC02C092101F41DDEDA0F0120FE57F2FF17D2F5915FC9C4FEB7
2104785DC6F7F01A09FECBF78200CCC9BE5DB3AB22D17156F0A739A9817F999B
1A081230166008014410680C441068CC26038B101431207710640C84E092810F
2990185CD3C460CC521150143EA184DFAFFF313F0F24817C8365FDB32A546CCD
04178D003A9F19496D0396C02440DE80071E008FACBBDC162B52A05260A69F52
DD35957023A0115A28F301B6F53ECC7B6B72753CAC22000BA01CCCB18D6A85B1
79AFAC6AE94352C0FB33BDFA8A14F0BDE7335FF0BF55AA5B7A79F56783713FCD
10804D044CFC0561DF2233FF4F45E7C955E8F98F58B24A817E319A7F480239A8
FBA7A233509102247A0D127B4CDE794C7B7BD798DD27F861F5AADC07F053FA93
00E8FD619A005002C4F79100B6ED3F80D55F5A01280270806FAEC93939EE2120
4C02321968127E540066072009E0FDE030B743905FF77CED7EAF0A801DFF7702
01747BF45732BEEFAD580B365CDEF31E09BEFE3B270053F603F8E76218A6E48E
C8FC883FCE490DFAD35CC7701BE0A76932003918FB2BEE772CF01210833290C2
65DA826C334A81D72B83321521800C828D810C821DF322089B147C6E5B04D154
455879079584BC3B322FB65F6685CAB87B9943060670DA036A532461E2697E8D
84A16AFCB1018BAF9948A4B1C186F1707F00B04FB6011FE261280582D6359FF7
4052F2051D7FB6D77D780E77ECD158B26342CECB7C88C02605A512F07E7A6656
A9AB520ACE008F794DF76A118401B6EF9524D0DC63EEFDF82CC6A1992906001F
05D2E2BAAF3BE7C5CBEDD3C25D8FEF0D720D78CEFC17E18CBE6CD4FDD3B02928
17A45086585D81DF01BE0B7E870028F51501C0FB2B02C06D924203428335C80F
6C04016C7708600F54C03E1FF09304087873DCB7C9F213DC04BF69FAE1E3B602
E08460646ABA74EBFC8F260440F9AFE2FF877E29DD1FFDA58CE9739334944C94
F77A5F6D3703DDFB7D20805E38D937EF95FC254938E031E70F73528201FE10A8
80601A40CF6B9031450673521CE36D4D081619285240BEC0367F8410043270ED
8AC08CE0AB82323DE69F1CFC920495443344E1861ACFC4172E1C800694267FF0
04150FB4B48C4D3C5E6681DC80DD73E5708E3F6385018450A4636102AF4F7695
BCEAC4EFEC91F7F75ED4FA6DC798603BB7693268CE3441E875DECAACD7A66AE9
9D55253D321629B2E27B1CE0843583D129E931EFEF7B13AFF12608E09CE6FC1C
2EFA0C505D7FC5F2244EFAB97AFC3C995359EBE3DD6D4F6F6E7BBCFD1294F22A
30C95788DA7F1632FAE90E2950292CC2D6A03A2BF1B7D451000C036A91ED676E
60ED5E4D00DB90086408B047E5000EC97E1F23C829E70978B30BD01000F302AC
F7F36B3E872180C90144A4A54A9767BCDB80DBDCF53327FEFF858AFF7B8000C6
BE728BD4E68FF1258067BE53023027FB76C85818842EAD4A48EE05F0FE21DA52
4802CA78DBF95A9102ED8FB353824104B8ADCD430A2407A50C821D0B4222D197
10A80E827D2C8824D09C811C421CF34B12B69AE06D3BEFC0DBBD32CA3FE9915E
A132D5FDF1C73E506DAEB5C0A140E2ED553DA40079CBB8DA8F1158DE40F67E1E
1F3720666CCEDBFD91436022AF1700D81B52BD2FA43AEFA352E0739A181B898C
F97BDCB9CF9B2C50E63C2F81787E7FE6335E4189B457E622288545F89CAA7405
02A4A0DF97363EAFA939BF23DE231380FCB93CE62B0E47A78F45F8D33AAE48EE
C3BAAF7F4C0E3E0FF8FD4B7DE3F929F9696C0862AB701ECA7C1CF765F8908530
A210A53E760F9200568000564205AC8502D804F05301EC4212900440054002E0
95C62D404C001A02308057CB3E11FFB332402301303968E60054AF00C6873B3F
FE672F05A0EAFF56FCDFF3F15FC9E8DE374955FA5099D4E7EFB602E8F85D1380
2AFB0D2E5B91DD35677106BC7B38C01D660CA00F051984E26B5C795B99173910
FC0E1984FC697632080384303B19E64D0A7FC1FDB4BF811894CD4B0BBED498A5
16480A9707A487F8B3731184FB18C20BE41D9A589FF4B2B30301B28188915F57
756C2D897B39B298E3AB83F8C75E4462B0CCFAE3B781A0C0002FEE6B4C14D206
E171DB6C50FB3EC6321FDF0FDF4BF78C85EAAA33FD28FFF1B59A181674006834
9718D46D0F50F9FE7C7F0EBFF6FD1DF8BEBC9E67FD2C561CA85A7AE03DF5CC5C
A808A21F721DBEA4607E6773E567128A819F79F0D62F25E2904F1CF4C155DF93
8BABBD64BC47D2EFC7FDCD1BA5BCAFA9CC3F937F00BA91FE85081DD8329C8C3D
0369208502340455A149A861FB1E9700E8FD6906FCBC720B101500253E41CD06
1F13129870C074FEF16ABA0449143C10A4E3439E03414CFC4F02E884F25FF747
7F2DBD9FFC8D8CEC79A35424BE293307DE609F0DD0EF3B230073B26FDBB4CA08
2CAC5C747950460432FEF34102B470870C48088A14007C0F31CC4EE1D7A100BE
B23F68E08300400EB84D5364E0DCD65F9318BC0D4410E21282430CC82304D35C
72D0B7438C5A688E1C9CFB491E4DECC6D0AC98DEA9A5AA6C462309B806B00F84
BDCA4C7AD622E98E3F745E29D95F030098546BCECC6BD80065A38C6DECF6F3FA
79FCD9501FEA3EE7677BAE782EC0C3EF572534820FEFA75B46A5430AD5AABCC6
C7BD4981EBBB3CA65EC3325F0219884A0841CFAB6BD67BB15F4BDFF6FC3C8630
BDF0F9742329F0735289469D003504C0AA491C927F132AEBD4397F0F86A4C875
38E9C78EE19B001E60A6C7B6AD8171BC1F63769F56474FBF732F927E380568C7
1E590AA02FC3D28FE5309605F95A9CFB2F5DBD59F2EAD74B11C8A17AC35694FE
76C9A6DDFB4002A808C08A1696BBB13E4300E3ED09701BEC54048CFB49022408
5E43336210EB7BDA804DF9AF3D5684731D788FC77E23AF3CF53B19D1E33A2989
1F24016F7B2D0519F65D124022BC7F28163D143D975299F6D779E90BFE322F4D
DBDCB4057F56A6C8603E08804652980F790F4248718881A40032202168231984
02E82486903FCE0219C0FE000319E03E4D0E1E92D0A441833A80A54225A8D081
C4609B473980281C8208213118F31352B821C69331F98BFB6494AB049D364EC5
9DDB9828638C4C8FDC1D713249815E5903D08744482C04F5395FDBFCECF33DCF
FB7D999FC59FAB5402DE47D7F44AAD149CF7E4EFFD3425174D38CC4968D36478
2E526CEE357C09B10F9401898AEF8BA4F00196A2CCC4AE042EFB7C04477CD3FB
BF9B5DEE10808FA7FF96A0B789A09EF13D8C04500B02A805E009FCA5C8171802
A8C763AB01F2F50801B66057C00E9CF7B70BA5C03DA8042CDFB44D16AED92405
75EBA47EF30E49CECB5740372DC066E537D5009B82D8F46372046C0AE2E35409
248090CC48C4FB9E36601DFFFF1CFDFF88FF41003D1FFF8DF47BF6F720806BA5
3CF96D091DE9B51464F2774200A6ECD73967710A76C257FC2D2023EAAF011991
CAE6A5D12240043490412A89C0DB40082002659A0C52C201F870A8025C93C341
022083E430005F99510A2083509201ED8FB39242BDCC87183421F8DAF909E212
10879781247AA4967EF24AD6421567FBB3D74006CD19E5AE3126CB2887BBA655
E25AA948E1551C656D3F47DD06587D8D99785A93E75AAF6F3F763E82E2E33A91
C7F7B448BAE03D695240A211E44542E2EB19800F401DFE756386FCECFB9ADCF6
43100EC9B90AC62242FE9C01EC56444294B1FF082402D9F8F340708A5C85B6DF
62C4E78BD1A2EB4A791FCF6EBC7A735EBF01803766C05FC7721FBC3F3DBEF2FE
0E01F03E12C02A10C006540FB6BA047000047040F6196B3C20BBF7354A38004D
6F4FEF4FD01B02301500D3104405302524DCDD0CA4144172005A7E3DEBC05D02
C026E0AE8FFC5A7A3DF15B10C0EF6478D7ABA4267BAC444F6A65E700E67E5704
50D3095B77B1667AE1C309A569970565C55C1A94197349606634C98076094961
5EBA22049000C303586A04401F4142B06FE3BE0520011A09613E004FD36430CB
5812C82029ECF78E39E400424852F6FB994921B426C4E0100515C49F4112DAFC
91838F8A40F2F2AF8E754B2E3EDB0F40ED0702F0B5E648A1C9F3D041D8DF9843
240C1B7A3A84D035AD427AA4337C40FCEE6CBF61CFBC31D34074BEEB3F43105E
24E310C92B50294CE2D11B7749AD906EB85229FC33AFEB453E248666D59247D5
B00189360B433F73B119B94372290EFAC0219FD8F3FF466A91027E1E627266F1
3391CD2F842CAF4022AF06BD0006FCFEAFDADBBB06602BE90FF0AF70C04FAFBF
04044005B094218043006B40001B01FEADFBF62B05B01B80570480AB6DCCFA33
FE67C28FB71902D83301B6022001B03FC0CC0D4C0A1BE7AE03F78AFF71164037
C4FF7D5AFD4EFAB7060174B94A96E64E90E8C94FDB0410FD2F270078FF2E1D52
CB8B5E2DAECD7DA77265C555A1B9F15786E4C45F11921D777970761CC82096A6
0821202306B300D1B88218D24108695120021242A4228239298A103C5FA74680
008C2D80B45F00120019C06625CF07E86920852465007C18ED77AE25F26B9281
3F5304412268CE3C040192807AA0DD149C91D925B918A02430B5D16BBF8AA934
8FA1871D716CBF7C1FE37DB601D80C0DFC9AD310C42C3AC1D709E0A352204130
91C68C3A9B85BCCC8790FCAA13A7F3D09B38B49A30D6ACB2617211BF2B958A56
2E784F785F540A7C4FAF81D08C7913044B82EC15708CCD44B699FB7DDEDB9B08
2BE8FD2761204A95FEB0ECF3F25133559CEEEBD9097696F258EF4FC129C05918
D829C2686F25B2F89A089A029F5E9D6608C0E3FDF76235F81EA901012CB10860
F5EEBD6802DA8F2E401200AA003092C05EC748025BB6EF702B0094F724029A5D
1234D97FDE372930449500CD96E077C67673D781BB0D4056FCDFF7993FC880E7
100274FFBB54678D9198295E0490FB2F250053F6EB94531333BB7EF3B2BB624B
D2FE3E3F3FE99AF0BCA4ABC3F3124106095786E624800C4808F10E21C4810C14
21800CA0126001E9D17F9BE71202488184904262880221A8DB344506B3936129
11208108900009610189401342D27C809A463250F6BB9989DA3E480CA3FDD663
5EA4C070C28FB97907937F782EB6607B5B24A2E80D59DAEA8B78D5BFE9721C8D
9EDD1801644C11C7B73082DD1881462F4C42E8980200E236C1A848C19760FC7D
6D4802006456DED8B9BEB7394230F7F373E8899088EFAB33DE5717AA178BA85E
03112AC3FB3146026052D498FD5ECCEDE9D889381719F8CEA965F230D67D5D85
63BE7AC765BBD29D12BE09B07DEEA332C8AC43690FA490037228C1EEFF452405
07FCBE04A0BDBF56009A00F64001EC910690CE5AA88E8D2400D80E94029502B0
088044C02D40043EBD3E877C28FF4DC69FE180E90930F7B10B906DC1A66C38E8
8DA7DD36605BFEB3FEDF93F2BFF51F65E08B7F94513DAF93D2E4E19238FD795B
0154FFAB096044978C85C9832B56960D286BA8B821A228F5FA88C2D4EB1614A4
D0FE3EBF20599141182C341784909378852604659707678114B2A01232E32E0B
04290466C44219C4C0A810A2A110A21D122029800C528C910C224106CA1C3220
214480044008B099490B1C320021242A03019008C24102CE350184E06B1E92F0
A71C3A25147DD91DF5FF1EC633A7944BBBE43248D472050002D1D758EE3A9F19
B250D7739084FB3CEB3994E8045D47BC17A5149CE41933EA5422C614C841269A
74F4A49D3FFB5644E2432E3649A80A08DE5377E4353A63571FDF972285CC4A79
8DCAC522B4E67ED6EB500CF1C8FCD3FBBFC8659F115972C98819528D09BC060B
BC3690BD6F336E6F6A65D80294872DBEE928EBA58114F2480AC8272CDC84E3BE
29FB5D02D8ADC300809FA141036C2D94C4262401B7590460BC3FAF248392EA85
2AF627C04904F4F22403120141CEFB0DF8F9984D000C050658DB804900BAFEFF
4B15FFF77EF277F2DA737F9237DBFC4946A20A5010FBA6A40774B00960D5BF8C
004CD9AF4BFEB28CB90DDBEAEE8C2FCFBA29BA24E31F51C5E9374615A5DF1059
94764364619A21846BE78310C2F34908C95787E5265D4503214021242A4208CE
D2844032805D1A4833849016F3D7B9693120816864F5490AD12003635120019A
268359C991200012816B007204088084B000044022700D04309F84F0DB1909DA
3EF0322F82F8D3ACA4C8F67179888175C69C52D8982A65216627003B8010DA25
95E176B95F42F89F1004CB885E069011E0342FF250FD08081B00B84E29202618
BD32C1C8F76D938BBFDBDE8AC49B20988BA0D9A4A2421D63CC8B34634A253899
FD4E20848E20CCCE788F24205BE198DBEF631BD2DC65EBA43B9EF31062FF2B27
064BC788342FCFED1FFC3EA067FC6E9B0F29D4E1EB52900267FC9396AD4113D0
5A154614227CA870488104B012CF5B871CC06610C076E400763A0AC0009FE0A7
C567E729A0D3980330C77EAB5D7F4E3EC0EE0120499845A10C05FAB4B94A3501
79E2FF5F38F57F96FF7E2FAF3FFF6779ABDD5F6574AFEB2477C1AB9808EC0702
700F09DDFEAF2480B81E398B23C72FDBB8A46BE18AF2DBE32BB26F8D2DCBBA25
B62CF3E69852652E21443A841001425850907A2D6D7E7EEADFC3F3521C42D0A4
109A93043248BC12E6924250663C08211E641087504119C205450828EF292329
2842989D124D320009280309E09A4442888422A091085C031190105C52D06400
9BE19A8718400EF784652EEE9858A8E4AE3674B9B966EED3757F4D083A714642
78195E8C57AD12D82E6B5B53D5E04F49F0BEDEEAFBBEC5F3A13A584EA3517D28
6F0C42EA90540AF095298FCCFBF87A469DD8790D73FB15E4386C6B4A1A24056F
D5E21BF6B8E18F0F59F133EA0ED2244191A8480C7C5FCC4FC4E09CBF495884C2
659FCF44E5C85F874F930A1CBBFDAD3DBE2FF07DBEAEC3D734829B56AB6AFEBB
91F8DB0DE9BF4B2518D356AC9384A5AB2503D7622C1B598C9FBF06CF2101EC40
B67F57632340EF6D61CE29C05401347A7E9200C16F9A8098F033757F331864BA
017B3EFD1787007EA6178020FEEFF420EBFFBF95579EFE03E4FF5FE5ED0E9782
00AE91ECF0BE528152A0450047FF250400EFFF47D8E1AEC5F5F901AB77ACBA3B
6961DE9D899579772454E4D2400639B7C595E7DC1A57967D4B6C69D6CD312554
0799FF882EA642C8B831B228030A21FDFA888274840A6934E40E524106B41490
010921998470556876922284E0ACC4CB83331340060908174808F1208378840A
710815624108B17F9D971A0B75408B0121C490104004344506CA662645810414
21F0AAEC83C4081081B619090B682001632E21BC149B7FB24B4A8992B2E73490
430FC73C64A163E42E90C48A1050D3A675C41FBE5614DA084802E35CC6E79CCF
CE4F120C1BE889CBA43D48A133DE075583EED003C938E615BA900CCE15CE8098
545EC432A352FC5D7D954B1F543CA85E466270690A067F3A23F3FF480436FDE2
98AFE7421255B2CEB62612FF3CA0A71230C0F710C01E94FE603601A0B187EDC1
4B60CB40087578AC6AC33629433EA1000D40395009E5AB36CA523401AD05596C
DBB357F62031B87BDF3E05747A7826F5CC1830C16E7603988CBFB98FCF615290
8FC7646549E7477417A089FFDD06A0C77F2B7D9FF9A30C6AF33779071E7F54CF
AB247BFE6B52953152867770D7827DF1AF22808968FA491CB164C392418BD6D4
DC97525D706FF2A2827B6077272DCABF0B644073C820F77690812284584508D9
162164BA8410519861130215020941A984B0DC94AB43735248082083244CFE25
294208CA4CC46621904246C2A50119098A10E6A59110E2FE36175792C11C5A4A
2CC82006C9C3184D0849D120005822C940DB0709CA400291BFFB2041DB8C0412
42C46F67C4C312225E8ECD3BDB35BD5C794E9A4D02E63EF70A92E87E2EA260D2
0CAFD105AF4712680732688B36578291F71188AEB98A43871EE7B37393034986
49434781E0F5FA38D60DB98D4E48B8B5C37B680FF0513190B4F83ECC73FC5D09
7ADBFCE6417C9EE3F53D763803351181A11F7A7FD6FD9F8CCC92BF0C9F2E5135
2BB18E6BBDA42C8344875CA77477CD0FB07D81DEF4EB3D2003C6F71AFCCB0174
827D09158043004B4100CB9108ACC7E3ABF1F3D62304D88A5DFFDB510ADC0915
B01BA0AF5A8B6D40584652C826A0F51BDC6C3E077C4CCF3FC16E7A0058022439
F03E5325A04A50E701E4664A87077EED45001DEE47FCFF30EAFF88FFFBB546FC
FFF22532B4D36532A6F7DF253B62A054A40C95773D04C07CC07FFEAF9300BCFF
96AE85B589F3D6EC5CFD425E6DC583E98B8BEE4FAB2EBA3FB5BAF0BE94AAC27B
692484A4852084852484FC3B131421E4DD1E5F0E85509E7B5B5C190921E79618
1042744936144216C820F3465A6451267207190817A810D24106693490411AC8
20F5EAB09C544D08D9C95821960C3200216426294208CA48843A201924800C48
08F1240490012D9EA400328845A840032124C5FC7166520CC8201A4A80E62183
192084198A08226F0C4C2D7C392E1F80402D3CC3635DF1354DDD6F0CC026B869
4D88C1CF7D6C02A275C7EBEA649E06210981A103BFF622049B1C709B5D73B6D2
F00E4D0C61785486521A3E66AB905E783D1A1379CC63B4874A68EB8430CCC8F3
F734B90F9B10EC9C887DDB43083EA18F453EE639A3B1FC84B1FFABF8D98F61D5
F7D538E6EBF179318EE787540760ABD06DC7B89D093CF6E83399978BDBDF16F4
04BEB11500772D404E02D0E0F7108056009A00D68000369200E0EDB72309B88B
1E1FB60744606C715DAD2BFB4900E6E82F430004BE391780F7B107C074019A03
41B80CD4AEFF2B0278E437D2BBD5EFA5FF7388FFDB5F861E80CB65C2AB3748D6
FC015292F0968CEEECB515E877FFAB0400F05F02DBDFBB624D65E0DA5DEB1EC9
5A5AFA48E6D2D2873396943C9451530232287E30ADA6F8813490426A7511D481
2605450854080B0B1C42C8BF235E1142DEED7165B9B7C596E5DE1A534A42C881
42C8B929BA38FBA6A8E22C43083780104006B0FCF4EBE6E7A75F1B9E9F6E08E1
1A4D08A92083142884642804450A208424871012152104A425A0ED3701EA2001
44408B873A880721C491144006349041520C888006424850F66444CE9E369841
A787240110F494D08A00CCD52103430ABE577F24713E82E06B74466C4C8FDC16
F1701B78C5F6500B3DF01EA8308C91049A9AB74AE999456FAE3DFAF9CC9080EF
B50BF308782F24A6762E2968A5C09E05D75CA5E24336780E89C5367E0F098364
125EBF49263A3DFFAD30F4C3D83F0D1ED606ADEFED65F0D80B31A453BC66B3E4
401DA42099C72C7FB3DF034053D6D36C0250F13F40CF0E431502E06BAA0312C0
DA5D7B40007B5101A002000158C03704905552AA0880606609D0DEF8CB84A029
F5995C002B00E6E050B51138856DC03FF74A00767CE0576800FAADF479EA0FF2
DAF37F91C1ED480057C84410404A604F298E1F22E3BAB949402A80ABFEB709E0
857629E50B07D76C5A3AB97EFBEAC7739657C0CA1FCB5E56462319184220293C
980E52485B5CF2405A75B14308458E42282419D0A00E0AA00E4808F90817F2A0
0EF2903F2021E42A4288D6840085900D7590857223144241E6F50B1C52989F9F
716D785EFADFC372A11072945D1D9A4D42480519A4800C52AE08CA4A56841098
C1E5A4248444A803900008615E5A2209016440032124C7411DC4FD6956721CD4
412C0821B64D6CFE37041E3DE18BE803A0D143130CF4DA2403638A10FCD9FF80
20B48A60C24E1B49845E9884F0327E3EDF07AF1D712CB6FD3CF73649C2511846
69F450BD033073751EEF89ABC740121CD0F1353FE441854242203929C5A2928C
3A8C698E486C0232CF198EBD00F3E0FDFB21447902DB7EFE3E7581DC3B63BE07
C816700D809BBB2E41B9B0022A8107776622664FC2D6A03A24F06C23F80D0118
F9BF18C0AF0601F05AA3086037CA8EBB4100380918DE7F2B167E6E4725408500
3E169B99EDC6FE5400E6A41F7A7912837D2028EF6313109F63DA85DF9F375625
FEBCE3FF5F4B8FC77F8704E09F64E04B7F93B73B620558B7AB940288FDA023E6
0186C9C45E57D9A5C0DBFFB709A01F3AFF0A47D46E5D31BE6EDBAAA7F3EB16B6
CA5B51F9642EADB6E2090F21943F9AB5B4FCD1CCA5658F642C2903195025946A
3280A5569780108AA10E8AA00E688508191429DC0542B833A1A2E08EF8721242
3EF20779081772913FC8BD25BA245711425471CE3F228B4808D9374614662164
002114644221644221684208CF55A400759086F5E3699A10B253490820836490
4132568F25810C92A00E4008A9CA1C32D0EA604E72C20D41E9056DE30A109B03
E896750410F907FF627CB1BC8019F5360900A34AEC91143C84E0EFF6B723092A
0CCB7C49C5211412822A3D8208DA8010F83EE89D6DC5C1DE05FF0682E03010C9
A0396B269461B34F534393127B2318C2801068CC6BB024A9DA9B5DB2B1C8C521
95109CF4331E210027FE9EA4F77F77BAC42C5DE97AEBF381DEF3B837D009FA15
48D655238B5FB616937C0D1B1036AC916464F8B39057A0FC5F8AC797F03958EA
B9188A82C6AF49002B7742012004D804054002D80105E04B00BB90000C494852
2037150093E93733FFA60C68FA02260604AB9080EA808430721C97817A0880F2
BF0BE2FF9E4FFC1EF1FF9FE58DB697CA30B40033FE7FEFB57F48ECB4B6E8069C
20EFBF7ABD4D008FFFAF12001A60FAE33FB3F1EDA59B564D59B573EDB3850D55
CF14342C7ABAA07ED1D3F9F58B9ED284B0106450F9448EB28AC7B39757401D54
3C9AB5AC1CEA804642287B28BDA60CE142A90F2114931090502CBA3B11849058
59A809012A21BEBC80848090211F84900742C8BB25BA948490AB0821AA288784
8070211B0A21CB43087924840C12027208E92084748710D2A010524106B41487
10924908D8629C44658029C2C427A2F2767400B0BB3069A71277344D06AC657B
8C7FF825F212FE809F47B8F0627CA1038012050002958D31B47313043D2801A3
954473CFF5221148F3AE8E316460B98FCAE02590C10B782F6D70BB1BDE6B1353
790B4A7824377D48C22B6451CF435EA339B3F2222AAC7148C55C3BA02F82EAE9
2510E5CB0865549211EFD310C210B4FD06C0FBBF9EBB48ADFABE1E077DDCF67E
C83F097E1FE033837F0E5BBA052A01E3BD9CF3CF64C96FC96A49042954E3FE1A
D85290008963E58EDDB20E21C0E6DD7B90F12701EC0301EC53597F029FB663CF
1E057E829CC93DDE36077DF03E7A79B604930C0876DEA6026052D0940BDF7CE3
05AFF85F3700FD060940C6FF7F410210B17EB7AB65DC2BD7C97BFDAF97C8F75F
9065C5B365EA801B6D0268F3BF4A001F2C5B3FE0E5A4D2B35DF3976F88DC7260
EB2B551B6B9F2B5EB5F8B9A255D5CF15ADAC568450585FA508A1A00E84B0C221
84150B9F0029205CA87C1C64A0096129CD2504840B65301242A9520829552550
08252E21242D54A470574245A1560815248402E40F4808F9B7C494E4810C6824
845C45081185398A101614D0B2904C8442C8CB548410969B714D680E2D1DEA00
6440730921158490825564296D120ABF24C8D1F5285D619A001C437FBE0E0128
CD016E656C02D24645A00821B640196F13980C1D480AC65886534692B0CDDCEF
E771C6E3E733430A1D9DB89D84A0C9896AA5D83B54B148C4261E2F15E2278C69
4A143E49519F24294941253A1936403DF13399B178958CC04E81D6786F8F62E4
97DE3F7451EDB724807F0EF82B400AB45AD87226FAE0F597C098FDAFDCB80D33
043A9790CED001D5875C90C37AA8802D24002402779200F6EEC5E9BF1E5BB57E
9D5702D074FC990E4023F3CD21A12405860924001206C9A25FF77B9B89FFFF88
F8FFAFF25687CBD101788D4CEC77BD4C7EED7A5930E959A92D0D94497DBDB602
F5FA5F2580D0955B7E8D65985F3F1F95F3F1F0FA1DF5811BF66D0ADBD4B86562
C3CEB5036B36D777285FBB5413C2CAC5AD8B1A4808D5CF14D443258014F2EBA0
12EA1669850042C8F9FFB57716E0555ED9DEFF6AB7D3CE7486A9CBB454A6AEB4
50ACA5B816276870D722C5DD83064202C1091A2021EEEEEE4E026DA79DEF9B7B
E7CACC9D2AB6BFFF7FBFEF3A7973720261A6776E2987E759CF7B2C7638EBB7FF
4BF6DA99F150070042469C06823F2D2DB6BD5F5A0C14428CA910A23F38AD8110
8584A20984C408241423102E000871E1482A12086148280208D12610A2088410
241483018360E40F82103204BD71203CF0F5FDA1810402AE010817CE0106B020
7F0081E6077540209C050CCEBCB73F286EE089703582DD75D8264B230886A381
C5B8B2DDD55403A622603720B3E7DA747B2E2DDA56EEE3549B8FF141EF85B1D6
5C9DE994540E0C1DE8A8431D9905160EC16105850520F6801040F16719713BF2
193E61AA0F8C8E48A7340024306B0464EA84264C8AD6B73ACAC30E0833D1F6AB
637FE42B38EAFBB54D07D52B2B77A830ACCC7158A1D31093D797FFF565FEF556
7B3E278E5F0B808B00C0450D80344AFF0A8400C81DD0A800F81C154006AA0EC9
C5E80C2C2853215928436614A898BCD23A00884B4DD68E4C87A763F32ACECE15
9E1500D6FB25014820C881207C9E0018DDE7251D02703B30AB016C001AD9D188
FFA7F57D46CD19F282DE03B066F21B6AC3F437D5A18D7D5546E846B569EAEB56
0530E37F1400FCE61B1373E7B5DB7EF81A26CC5C9A169B173B33E37CD6F2DC8B
05DB8AFF50BABFE28FE7F7947F59B926FF62F1CCB48A9C2131C5E91A08111A08
C91A08613949500889081768044282064250660272081A0A1DCFA5C7010671ED
FD530184D458130831C821000849D1C81F44B5399D082868851089FC01811041
200006E10817C268482886D2A8109A194008795B03213CD80042589009844054
190084E0000201E18206428F63117F18820FB82B9A544660B49606017BEFE9FC
62848006810103DA501A41A0AFB530E0CAA70D31BB34E13079D607EAA017A4EF
C7B03E96D08140B0378780B05314F6CAC2B84FD5611A158A09152A0FFE0C4288
2B32A1F4B10927FE6EF554890D3006246EA442F87C83390FBCB75B71C8C7724C
FA25143FDA774EFD6ED116B539321949BCF32A04537C99D13F8DCC3E57E548AC
CE0958A5B318D7EBD8FEEF31C4F6746C1A9C9CCE9F0A874F3201900C00F07E26
9ECBADBEA88A50362CBBF899A90090078012283A5FA3324AB1DB30BF5445E795
28BFF0480D0059D999DC9330808FD324E1476767DC6F4C01F6D3CA817981E15D
7F6749003651C33E7A48270027F67C120D408CFF29FF5F576B11FF6F9CFE3600
D05F25FAAF523B3E696605C0D2FF7100F0078C3E1A183DE080DF6540E00A56C1
CB98177F717A5456D2C4F8E2981919D5594B732F146C29FAA2745FC557557B61
1B0A2E96CC49AFCC1B1E5B0420E4A550210006DAA00E92903F8042001482B313
BB066569834248E81C909180B021DE0A04C0C00A040D050021BAAD2FA0702A31
CA044224801089FC41042CBCC531030A1A083E51DAA01042112E84BC7D382204
300010C282DE80BD7E2034080A2110EA20B0DF89C82B034FC7A9C167511387E3
1B20000438494783A01606C3D8D66A8181767E2B0CE0084368EC85D766C2C0BC
322CA0692050211C0EC1B9772166E81066860E6C2966A6BDD65C709BC6C7C51C
81432B0C072AC32164F03BB1EAC1DFA5AF000190EA8B18BE5ED8E22874A9A722
90D7C063F636191D879ED8F1370BB17F0FA89066DB8FA81771D28FCDC1C5D1CD
2B4B7D01E8C6F345AC7E16F5FF10D4FF63B0992715AB74FD15DE90F9B56638BE
387F3A6EB3844867E78A4F00249A0A2015AA234B00802A8000A01A95801AABFC
C7FD8B3099F8CB955DA6FCCA3C403A3F6BFED2034067E76B440DC87568FB4775
15404F00D209C087D4E82E8FA9498CFF073D87F8FF6564FFB1FA4F7B4BB9CD7C
471D58DF5FC5F82E519EF3EB4C05DAFC4F01007FC888C3FEFE5DDC0F5E5A189E
7205E7DD5DC2A690EF869C89BD46206093C717D323339326C415844DCBA8CA5A
9C73217F53D1E7A5DE8001A070DEADE062E9BC8CAA7CD7B8E2CCDE11F904424A
AFB0DC141308C9C81F000A5008C1D9495D0105241513BB1008810042407A3C42
8678E40FA0100C95F0D1D99458840CB0640221C6004262341402811005851089
50811601851081CD4B044238428630C020AC198170381216118A92A306C28747
23335DB87A61F22F069E289733096A0060401B74265E0D0114861302786E18AE
C300036D1A04D8182430E0F65DA803810121A0B7F35A80C05E780281576D260C
E884B4DE700EC2A0074EC2251818C78B64A76CE7EA4D131838BCE27926336D66
FE0CF959F6577B30E8C4A20984DE50085AADE0F72224AC6149DD1085C93E7615
9AB90DBB9C865B52BE5EFD7B43F5B4DDEBAF57FF1541B1166736647843160B69
1E82ACBE1FE2754221001D79E1E8DB8F479BAE38BBA32B577F3ABFACFEC90400
8C0048AEAC3115C005954705000054E0ACBF2A5401E8FC3AFE371D5FAEACFD73
F5970A80B4FCD2D9B9DAB3E62F0A808F11087A04186ECB390183DB3EA80140F9
CFFAFF88F60FA30188F1FFD36ACEE017F418B0D593DF561B6734539B3F790F39
80DE2AF6CC32B5777927AB02D8FB4F03007FD0C0BDA7A6B6DBE4FDE756EB3D7F
70D9EFFBF5BCE0F8CBEB93F2AF2C8DCFFD019B3ABE831CBE8A0FFE15EC22FBE3
8C888CD4893179C193532A921765D7E46F28F8BC6477D95755072BBFAADE54F8
59D9828CF30563134AB27A870B10F26C40804A4806100883A4AE41D949081908
04A8040D040D0500215E870D7EA9710204C200398418A803130809D12610A210
2E502144421D441006CD8F5A8070242AACEFE9D87F1DCE397E18DAE14AC3011D
AE98902340182440C0BEFC415A25C0E90502E67528C284A1260C080482608898
86000C2A01A555D36A21C04CB936B6E6D2C1C5D1712510984320107A1E324207
AED42C05D69AF93566D30EBF5E80D2D0F5660061340419493CFDFB004C0C1DFA
C199051EB690C3415E631C62FE5D88FD674105F4E4411F3B8EA9A60080B1925F
DFF1ED9F17274F40CF3E37EE04A0BCC7321FCB7D41500C5198D997791EB25E9B
21FFAD003056FF1A6D490000C1C0D7E64179140300E53A044017201500EC82C5
CACF57D7D9022C87824AD65F4200C901D0E9590110E737CE0DF4D78E2F0060FC
EF8AF87F9C19FFCF1DF27B6C007A0D6702BEA336CE7A576D020076AFE8A21203
D7A993DBFA5901E0FB4F0580FC306CD5FCB0B7D7B17D1DB6EEAB7C6FF58E1F08
8401DE27BF9E1D187B696D62EE9515097997A687A67E077570051FFAABD81CF2
274C9ACD9A14931B383EA92C6641564DFEFAFCCF8A77957D5979A8EA8FD59B8B
0084CCF385E312CAB2914348ED1591976A28849C14E41018361008C9C8210008
5949260C12112E24228790809021013080A5C6B7F74B89FB086628849458E410
008524402131A6F5A9C4682414A3112E44B53C1917850A43241402C010130587
BE3A0AE3BD4705A7A991B88EC489B562060C6A814028304C180087EE0F205025
B8D0D101009B321018E03A0450B08180EDBF340D0100804609CE8D3ADA109FEB
18DD88D36D068766224F370499494502A1C74140812A8155073CCEE7ADD63024
0C78B8A03A703DAB0B09861D46E8C2F06310D4007B11744E03BF83562BB8CDC7
040A12A6ACC6A9C75CFDFBE0B936DE58FD976C5373CE84DD94F3D75FDDC5C96B
AF31C515C82520AB0F18B021C81F89BC30C4EE31500FA970F61418137F092600
A8000400F92C01C22A5006AC443390230064E6E7DA868050DA530948CD9FABBB
74010A1004005221E07DF7BD9E38FDF7D7FA587097364D90007C508DECF42836
0059E37F26FFDE556EB39AAB4D8080C7A2762A237297F2751F680540C4FF0A00
EC7F2881D067F7F15D9DB61D286DB166E777EFAFF5B8D4C7EBF8D733FCA27E58
1B9F73655562FE15CC7BFF16E3A0AF60F5BB8673E7FE8CF1D43953A2B203C6C4
1585CC0710D6167C56E251FA878A43957FACD952F479F9A2ACF38513124B73FA
440208E179A908173410780510520884EEC1D9C904020D3984241308899D0084
8EFEE9090817E29143880708E2D083004B2610621132C4205C8869732A2106E1
4274F7338925C339B43334438DA685A4C3D24C1810083000C15543C18001CE42
50AE00C1087C1D6D18D4034385FEA70C283097E0C21218412010E07DD3066B08
8801066C0126085832A30908B8F29A30905D85FA6AC240AE5C8D7BC001BB6147
1DC1A055029CD11E08AC72588D4E6CB33A8AA2565D5C17122C735A420D561A18
2A3084E9CE1006D721789EB1FF4CACFE6CFC6985833ED8F69B0EE76BCCEA7F43
C7E70ADE8025203C08C36EBE7328EF9D48CD83E5238428C616E05215857C420A
40C0DF231B89BE829A8BAAF4C2450000210020508D7AFF058BB1FE1F1A678C01
A72353EAF32A7301F9B8CC0614C9CFE7D804240785100C6BD6CFD7D97F6BFC3F
0A0D40137BB1FEFFAC1E01B67AD29B88FD9BAB2DB3DF575B6737571E8B3F50D9
B17BD4F1AD7514403A7CF10ED37E122CD0BFC4908367DEEBB7E7C4A62EDB0FE6
B55CBBEB1BA884CBBD761DFD7A926FD8F7E8FDBEBA1A61034ECAF9161B592EF1
C38ECD21FF8EF1D4B95323B30246C614F8CDC9A8CA5C0B85B0A3E48B8A23557F
ACD956FC79C5D2ECF3459392CA72FB45E5A71308BDC23414527B86E602060610
BA056769430E410301214312C285C48EE7D2123B1A0AC180C2D994F876679209
843802C12520F93F4705A7AB316199DA46D30406A1E96A148040656053075008
3A4C808D200C3408921521321C93760903DA40A882BE1886D10FCE4DB5A05502
D580698371DF308605B5A1818B868101044E20AA35030686195B8C05066C55B6
1A57622A836ED8644347EC8976DBDE3E21589DD1B0C4BE00763236D26E040917
2A090D0F9616AD6109154218A6FCA6AB4FC3521446ACA9967BCEAAA7B0FA8F3C
E477DDB8DD714C6FB7E25FC7F10508E95558E1B9CA73F5AFA846F90F0A00477A
737418C386A34979EA2CAA0E9CFB9F5252A94A01810A8401E7090054002EC06A
901310630B304B7A5CED19DB53EA33C32FF1BF8C08635990CECED7491B30E1C0
C7162F186D4B004AFC3FA6CBE36A32E2FF4F5C5E40FD1FF1FF2426FF0C006C9B
DB42792EF948A587BBABD33B8758154099050004C14FF3DFB083675FEDEF7D72
75B71D8793112EFC77B395EE577AEC3CF2F5849321DFAD88C9B8BA26A9E02ACE
C2FB1663A97F18880FFC9880C4FFC2A8E882E9915981AE91B92766A55524ADCA
BB58EC0E20A021A90660A85C9E535D3C25B92C7740744106928A5409690402D4
416A0F03082980010D2A213399304095C104427A22428644C0004A2135054E7C
6D6C44B6D2169EA56D4CB8050616208CA23280E9304183A0D6340CA00C866B18
D405820B9C7E806F9CEA4720C006B085D6060401412D0C5C3410000D1B0C8C71
64561B68AA030101BBEF6854053618C0C907C8AA0C207447C8202A8192BD0FDA
9E0798502018ACD65840585FC79F655518C34F73F52F5233B0FAF746D991A3BE
1F9FB71E717B918ED999CC0B44322F0275776BDC5E170037EFF819707C9A0020
B5125384E9FC1A0035282F566B10A4E07606E0108D9F1F868D48ACFB07E1F78A
41B92FBDA442155555D70200CA8009403A3C8D0A80D97EEB5C40E90B90D382A8
0A2429C8E708801913BAD54D00EA0D404FA8A97D58FFFF3D4E027A0D09C07734
00367DF2BEDA32070058DA49C5FBAD56017B465B01F0053CFE4ED34409FC7441
20781A7ED8AF2972068BBBEF3C1CDB76E3EE7F7F7BC5B6ABDD771CFE7ADC89E0
6F9745A55F5D975C780DA7E17E0765A08100A5F0DF182F5D3C03D3888747641F
9E9A581AB532EF62D1B6E22F2A0E00086850AA5A995353322DA53C7F60542181
0018C042A9107252A110525161000CB253102EA42087904C43FE20C92538E3CB
1158FD5D4333D5C8B02C359A00B0C1201B20000C22F8785D65A055016C244DE7
0D6AC38411B630C10A04531DF84321C0AC40A04AE80F1B88D0C150072608A80C
CCA4212B14B6F0C0A60C8C7C8106818681A1080620AEAFA308CC3E7D3A278D31
3A1D9DF29CEA00BB1FB552E889DB924BE0CA6DA805B1BA70B03D7F9C2DD0AC0E
38B6853841685974BAFEB9ADBCFDD4934BB7AB6118F76595EC71587929D319AF
4BDC1E0A891E8BC733909CB31956FC8CEB9AE1F456AB05001580E1FC8970FC44
01001ECB040072F17D8B500528BB70C1500058F5938B30433007CD4069F92A12
C00ACB2CD4F29FABBB35D927F3FFE8E05CED29F7D91720B30265B310BF868F8D
7779AF16006602707CF727D100D454CD1DFAA25A32E60DB5662AE3FFF7D5E639
0801E6BEAF762DEDA8224F2C542107A6AA454351261CA2ED2FF0A9BB61773980
C04F1F0436201CF27B1440980F5510FD81DB9E3FBDB57CEB55840FDF8C3E16F8
CDD2C8D46B6B930BAE7D1A9DF51D9289DF3364C0115CDF60306539128BC123C3
330F8E8F2B0C5A9A5D9D8BDC41C5FE8AAF6ABCCAFE707E756E4DC97400617074
61268180A422A09003284021682864030A592923C332BE1F1F9DAB26C4E4A931
91396A6478B67205080C2064AA51B84D208CA1696560A8031D2684193903E60E
4685D008835A20D4570729B5EA00A1822D5C60D9910A017903AA83BEE8A5EFCB
7DF9C8270CA212304304AA026D540FDA245FC036E4BAE1014FD631148109031B
0420CB09011304B6AB0904E60FBA602E5F5740A107A020B904C3E199E0AB6BAC
0288D9BFC60521811756FFE981F17ADC57BBDDA7D5A373D6A2E3AFD20600470E
9D80A61B2A0296F97CE17CBEE95009589D23F1585259954327A7A3DB5B1AE53F
8CC9BF64CA7F3A3FA604275814007B0AA800F2009AA2EA0BAA9C39001D0240F6
DB597641BE6DB0079D5ABAFAB8DA8BB3AFDAE9699BFAC3C7F83A860C3227808F
8DE8F182D101A847801B09C0F13D9E52D3FB3F0B00BCA40F035D3BBDB972E3EA
3FB7A5DAFE696BE5B9AC1300B0003B0217AAC5C3B04BD00080820FDD0BBBE73A
10B875402040703DE2DF0425C7993D3D8E84A2ECF8D59BCBB65E4382F11BD723
E7BE5E109A74755542DED579500800C2777006F622FC80597555385D266C6478
C6DE71B1056717655565A039A97C6FF957D5E856AC5E977FB16C666A45FED0D8
A22C0D84F0DCB481E1396574EE89B1050040BEB6F1000161303E9A40C8358000
188C2010600284B150055406758060E60D46E9BC4186A90E0C20B8D274B84055
90AA7307B630412711CDDC0160C02624961907C2D9A90E7A9F00100005AD1234
1090609410412B0313061C3F26264038C16123A6323081C05A7E3DE3CE429BD1
D9C375CCDE1D47735321742214A8120E9B5040E8D0570C50E86B5A3F5CC5E621
EE87A2D3B901CC58548F2F7557BDBD8E6BE7AFEFF8F5576F3AA6580C9A824272
4B74BCCE9EFD73E8050843B69F09BC868C713F1D9C460050F273E54FC0F15EEC
304CC2350D8F6741E6E70300C5350000720095A804380240684C947666716C3A
3E4302DE970A802800AA043ECED70B2844150CEDF8944E00B202C00EC0D19D1F
4302F0776AC680E7D001F80A8E037F4BAD03003602009BE7B452DB0800E400A2
E0FC29C1ABD592E12FD800D0ADF9C34F58204035E02824F8E9250A6F265B31F6
78D03D83F6F94EECE9E1730E40F8FCED15DBAF7EB8C9FBBBC107CE7E3D2B20EE
CAD2B8EC2BC821FC8090410301BD0897D0B578012A216C5468DA9E9191B93E73
53CBE337157EAE8180FD0CD51BF22F962F492BFFEF5909E84B8F2B82156A230C
AC40D030D040C8B52904C2805070A542801AD00AC15407A3194698EA402B036D
6622D10C17340C903FD0A18206822589684B2426E98624F61A1008BC8A42E87D
3C4AF501142497605306800195810041603080DB75C53404D081C8BD01DC526C
EE22E41E05C3B0790826ABBA38B65C7B00001CDED109502018BA638867CF23C1
C825B037A1D60600041EA9856A1AF6FB73DC573BEFB3EAE14FD6602C77B99DF3
DB39BEC5E9AD00B0DEA6C3C7A1AC470070FFFF0900E13454027B00AC30D000D0
10A0F3D3E1EB022019F70D00A00200009450010000550D28809341C17A456766
9F09406B6D9F39014A7CC6FBB237800058E7B947C3419A87F8352E1F3E6CA900
3C8C1D8048007EFC343A00B1D77FE46B6AD5A4B7D586192D00809600406BB565
1E2030AFA58A39BD4A2585AC554B6A4300D5BFED636FC0977E09FB85A904AC21
016160CD0DDCDA20B042A3BFF7A9A1DD3D8EF802043500C2E596EB3CBFEFEB7D
EA6F93CE445D9E1F957105C7745FC23C3D02E12A4A8F975DFDE3BF1C1F941C89
F29E37F208FBE72495446DCDADBA76B0FC4B75A4E24BB5B3E8A25A935DA5E6A6
94DA8030D104C2042A0453251830108560840C2342B3D4F010030ACC23D40F15
CCAA0242068181CE1DE864A2A90C4C5520550549241ACAC080C1300102603044
03215643A0371C9A66A8049412F13843878166A86053053AAC30C2058608747E
B9F6C32AADCD0401216033C87C7B10F03E1388BC521974DE1FA03AEF0B505DA1
147A42354C47D26F05867E0C463EA22D7AFE9F58B64375D971D8E2FC7F9FE337
B4DA27A2DC17813C4220CA7DBED8EA7B32053D008043281E636F009D9DB17F3C
1400770126E03681900E0064A32B900AC000009A804C00542304B01A13787472
690196138044FE73A59784A08C06A722A0F38B22E0D70C6CDDC404003B001F51
6391009C8204E0ECC18CFFDFC406A077D1006438FFD64FDBC0F971452810EBB7
4EC59C5DAE960FAB9D0AE4D2EEF18FE0174D60BF3221C039818440634070EB85
070D29873E7B4E76EDBAF3B04FDB4DDE956FAED87EE9BD351E3FF4F03CFEF5A8
936197B103ED0A8EAABA84DC81060262E7ABD89BFEB7F990A86ED89ABA3EA548
6DC82853EE05356A7FF91F944FE5576A57D1676A6DF679352FB54C0361622CD4
0180500B83022803840C80C1B87A40C80410326C79049D44B42903237F20EAC0
00416DEEC035884048833A30C284DA50211920A0D502411402613018BD0646C8
10AD61F031AC0F1C9DF70741190CD40600A055571BF721A099A73F41A00D6A00
C6DD8B8661E720770F0A080801F3363730F521004CD94F10500118D750D50D00
D888433E4661AA32EBFE6D10FB3F3C7B0D8EF02AAA17BF37B4CADBAFF8D793FA
E9ACE53BB068840D3CDAFB747ABEF249CA41D92F1F43418A0185521D02244315
A4579E57395A01D4A004586328808B98FE0BABB633AEF2747E3A39950067FC4B
628FF7050EB23D98AFA502E0AA2F9382F79F388506A0DFE853818D1160EC007C
524DEDFBAC9A33F4651DFFAF9B86ECFFEC5670FAD688FFDB2AF7051FA81D0BDB
AAA8134B11062C52AB46D64E051AFCD1E303E1138FC17E6B42E03EBB90401284
0DA9819F8F2AB0C2A197D7F10E1DDD0FED6BB5714F3980F0FDDBAB765C6ABFFD
D0D72E47027F98702EEE0A0EC5B8C651556CC0D1A547DC9E878CF546D48537E2
982A371C52B93DEFBCDA5BFA85F2A93080B02EBB5ACD4F29579335108A6A61A0
D5810041A020214396CE1F502148E8C084A20602C287513AD10865A0D5819937
00108C30C180017307B6BC81A5CC48200CA53A800D813AA00DD630A042308040
85F03140D01349385EFBB25AC0D90548200ED0263030AF5618588060C0C00205
AD0A0002AD020804E3366D2A468AAF8CCDC4A86F24FEA00C9E5AE1A15A6CDCA3
1B71CEA0CC168C589ED37A92E084D775ECEBC4F7FAEB1A707C3E9EA6637F96F9
4CF9CF551FC664224B8FC79273752E21200B253F24170B0181325401CA615548
04565BEC3C2A03F9C5453A9EE76A4E67A7490F80C4FA7C4C567A3E4645400520
5D807A7EE0D6F5B62DC043D801D8D14C00F67B56CD1B06008C7B5BAD9FF1BEDA
C4D5DF04C08E851FA211A81D4E07FA54456343D0DA71AFDA7200C33A3C31019F
FBDFC11E3521F000AEF75BD4001384B7971A70A412BA791E6F05006C6DB17E77
D19B2BDDBF87A98FB61D547DF7FB29D7D351FAD00FCEE42310B83A72D2CD6C9C
6E8B4E46B5311940C0C9B5EEB955CABBE47375ACEA2BE559FC995A9F735E2D4C
0510904730D441AD42186F03021542AE1A17052044E4206700200006C3A01046
C0E119368C86426072D1301308840172070C135C69B6BC017307A90AC7B3ABE1
B06118B33D8C1B98D0782436047FCB102612090280CD05306057A21132180AA1
E73100812A01A661A0D501430482008AC0A20EFA893AE0E6207346A2ED8A1D83
6C4DA671572301C02DBF5310FBF7C26B19FB3F327B2D4EE2C9B3397B38643933
FC5C914FA1332F808771E0B1F892AAC601E13A8E6F387FB5E1FC0200383E67FD
73EF00370ED192703B158FC7602F41387E9700E410FC01A848DC4E419EA2A0BC
4AD1F1C5E25212B4D30B00641E00137BF2189D5D9A7F64ABB07401F2F57CDDE2
F9932C33001E42058009C0A73102EC79357FC4AB6AC5C4661A001B67B5529BE7
B655DBE67F88D5BF1DFA003AA873FB67AA38BF556AD3B4776C0018D1F18905F8
BCBF6042804AE041D8AF2D7901A91248582049C29F6F7EE04609C698F4CCA4C0
CC5CB53E043BFDBC4FA866AB77AA57976E556D37EF57DDF69C5283206D879903
3F587BC764643D1178064EB1598929B61B1063BAA515AB6D5915CAABF8A23A5A
F9A5F2021836E456AB8569E56A6A0214821508844174BE2D54181795A7C69A40
1809200C07040804091B4647883260E5812030618023B409831138DD77049388
DA504D40229146280C4512D166800241506B503C260C3410003B238710AD1542
2F586F585F9610B5323080A043049D34C4C4239D34AC358280FDFD9C93C8EB24
C4FE6BD0F7EF0AA074406EA0E91A2F3DEEEB7AAB359F0B82E39DC6CA7C1C2BB3
1F1A7142A11262A012E8CC3695D008C7E7EB6D0040BCCF137EA8346A01604080
0048C3E3D9F89EF958FD8B1102942107905D56A9920A318B20BB10F5FF3CD4FE
A15810421C0908B00180094049ECD1A9799B0E4E6797D55E12852C0B7267A0CC
0F983EB6975902E41E00CC00E8FC3800F08C9A8904E082916FA85593DFD3CEBF
6936637F4AFF0FD5CEC5ED95D7B2CEEA8CD704951ABA556D474E40CA80233A3D
B11E9FF75761CF5920F090050212123037D05835702317BA759F8F4A4E7D3C3A
35FD1A777B5562975705AEE568F74C2C29571BC3E0207B4FA977D7EC522F2DD9
02D9EAAD3A7A1E571F1F0AD01B75B871879D78040287634CC331E1CB63B3A010
501F4E2D0210CA9557610D42862FB55270031016A757A8290002D5C178840A86
1930302C57C380361AA1017B10182E0C0B26108CC4A20E1560E859308CCA8161
8286014C60006560800040801108C3586234A1308440803A184C75A015820904
A81D43210810A81022B47D0CA5D08795031B0CA20001A38A80F909080BA00A4C
2300362717A8A9385188E3BE3EDAE7AF1E9DBB4E1D48CC6A1000E2B0F6570280
20D0197E2805760BB20FA0A1D7D7791CB23F5577F91100C8FE53FE9B0A200E2A
83B7F9783A7200D908250880121CF54D0054A01458252B3F6E9F8715234FE079
F4B86DFE9FEC0190D55FCE075CB9639706806C10E2EB0800E901E0E3E306B5D2
00D025C0769C01F0B89AD4BB295A805F548B46BFA9564D69AE36100073B8FAB7
533B167DA49B80BCB00DF88CD7389515E3A5B6A041480030B2F3935EF0C666B0
571C40E037665E4042829B5103B7AE935FEF378FCFC8DA9D555882818F38F915
431F693C0082C63970DC09560E4B8304DC140E270110DE5BEBA95EC069B5EFAD
DFA3DAED3C8A4CB79F5E19F52E3E53217012D0549C74B33C3A4B6D4A2A308080
C9B79EF9D5A832FC01B984CFD5A6BC6AB524A35C4D4B34F20736202099380ED5
050D048080A615021A935CA9100082A1A64260D84008E850C15407AE08150C20
A4DB60305CC3C0000261C070612843058B42D04030430523778050011B9AB867
815B9E69FD505960C8D00B30E87134425FA912586D2008FB693360C0A3D3D723
87321A4347315C551FF4F1C66A0F87CE7F43476689CECE58FB3F85EC3E63777F
34181112B15009A970647B4BC16374F244340EB142C0553F8E8626246E104AC6
E3E9150440B52A401F8000A092CE6F3ABEF52ABBFC64BFBF6CEE11A94F08D0D9
09002A023E4E00486BB01C173EA2C7ABB500F80825C0AEAC00200138E465B578
CC5B6AF5D4166AC327AD21FF3F3400B0B883F258D21121407B1C0F3659E526EC
53EEB35AD80030A6EB53C7F1796F097B0BF6921D04180E1002D6BC002160AD14
34D437F0F30340706CFC3D31A9E997D8E6C949AF344E7DADE1FC770C80E41048
9A5607304E86250C4A615C2D3647C061F6FAAAF737EC56CF2F7253CDD6ED561F
0108DDF7637F3762E6A13C7F0F2060CD9D7BFEA700084BB10596950637840DDB
334BD42EE4110E0106FBCBBE505BF26BD4D28C0A35DD04829148349289B50AC1
0817C646217F00852021C350AD10904760C31160A04D8060C2C0155D8923903B
A042B00181CA002030F206860D416BF2602610CD24A2913388D7BB1B8D6B1C36
36193B1C750E0150E80565D0DD27DC500904021E73C3EA3F13611257FF7658FD
1F9BB741ED8A49AD0380BFC7F1AD20B03A3AC306760A1E4386FF0C647A30127C
D185D8D443E7B700800E6FC4FE18EB05231052D8510800E4C2F90BB1C7BF1421
40391440A503E7CF2D2CB0D5FFA5DD57F60008005821905E7F3E4675C090408E
0F17280CE9F88C0980DFA2098843405801780E1D80AF2001F88E5A3BAD25E4FF
0768FE61ECDF1EF2BF2314402724013F54FEDED3547AA487F2426390288071DD
9E0A81A77E08E31901AFC35E843D0B7B122689C1EB29815BBB8DF8663015939A
363533BF408F76FE0C8E7FD13463F2AB01836AC200D72A1E0DA5CD0A038C8B42
8DB814F5E11C7C60DCA3D1C083BEF6366EDEEAF78B3723D6F5521D00845E07FC
F5C41F4E0FE63420432D184058A68190A736A1D2B00D5B643D732AD54124140F
0008DBF22FA8E519956A665249AD4210205021D04C754020D0246420101836E8
C4A2840AD67041C3C000C2705416088461E83D60B8A04DAB03C04057148CAAC2
603FA3AA600502A1A081C03E03492A027823F1BAB509797A5C79576C4D7ED56D
BF7A09E3BE6EE8F066CC6EBFDADBDF77B4CA338967B51000C00FC9BC63494686
DFC82560DB2FCA814C3072F5E7FE8204583240900148E442DE73C30F0140F9EF
0800D10951750020893D3AB700401482C87F02814941717C991930F083C78C39
006D7F8B3160E801E8FA949ADAEF39356FF8AB6AD90426005B62F34F5BB51DAB
FFCE4558FD977686FCEF0215F091F2DB375D25046D527BA1080400137AFC2E11
3EC0F3015A992AE0655C99147CDA84C0C3B8B244288941E604A469A8A116E29B
71AB5BE3B528CBDC199F9EF16D15FE93E9FC6202015E05025A15D8808023A278
4884690C132A39371E1028E7FC3858098C832476C7614BF1617FD56ECB7EF532
928ACD103A74F438AAFA1C3AA70765EA0342B992B2590780E0C9BA4BA232D546
9C8EBB09D2761B0EC3F4C82E57078A2FA88300C2F6820B6A5556A59A95546CCB
1DE8DE03DD7F60AA0402012DCB63112EB0CAA08180BCC11038FB3098915834C2
065E5D799F660F042B0C245CA03A308150AB0E8C5061107206DAB43A88531B00
B4D9911918F619AEDA62D3CFE3F3DDD45CDF70BD42337E6F10040EA47E432BBE
86809DD33BBA9FC21A3F637FACF4670184A300824F22FB0050F6C3A69EC88252
840C182346050000149F3F6F028010A8515576E673C6D8FA6B95F5ACEDCBD900
7C4E2A0422F54529481310BF9665C3016D1EB46B0222005801781D1580770180
56CA0D00D8FAA90100AEFEBB0180DDCB3B2A7F9C0F9810E4A67CD6F5B5016072
AFA773E1813D601FC0DEB55301521E6452B0898350C011006E0D87BEC9DFF28E
D3C1A103D272F3EA8C77B6CE7A6FE836E7C26933C74355F3CC384C8BE1C4181A
730646DEC0540726108A00049FD46C35E96880EAB4FD907A6DF976F5EE3A4FD5
79D771D5FF70000EEDC0411928D18DA013999B7A785E1EF7CEF3B8EC4D90D3DB
D28AD4CEAC32B50F8945860DEE8517D46A0061361402F3073A64882E40B860F6
1EE8EA82596100106A938A192610103650259861830683995034D40180A1D501
4C94812D7760E40F080409175CA80E3019691C2A11DBD137C123C0F5B0CF6D47
D4F34BB66AA7A7DC66F28EA53E96FC4EA2D4760EBBFE6E7AC56F84E31306747E
0D009DF443C20FABBDACFC5CFDA90A4EA6E4AAA389D9CA1F708A826A482B461F
0060508144609503DB71C0D8F8237BFBE9F8ACF7D3789BCE2E894102808FF33E
958215149EA8184813D0602800D70E8FA209889B808C0AC08A89EFA935D35B23
07F081DAF2E9476ABB1902782EEF8A91609DD569AFB12A2978B3F2DB39C20680
697D9EA9802F7C0C6B076B6E5101CFE33601C0D22055800040DA86250F609F03
B849D7BA055E7EC71D77DC159796F61DE7B9D90F78B4DDB73BFCC10604CB4048
CE86E3982831AD0C00015A5D2070AE1CB7961A13664AD05DC6ADA6A7500B9F7A
1C9B6AD012FB2666E13743B5A1E34E1F0D849100028F02E7693C320884A7F8CE
C3293A1BD055E70685B035AD507920B1B82FFFBC3A5CF299DA5178114040FB72
329C8F494500813030CC80811132401D980A6184AE321008194AE71134108C8D
4EA20E46E8642220600917341002528C44A2D98024EA605D6AB19A1F93831D7F
D8EF8FB6DFA7166E564BCF45394CCE25427A47010812BF1B65BF02BDD1A73132
FF460A80CECF1D835CFDB9AB30DE0400F70E70A868022C198FA5B30408451193
87E3BE51EAF303148290478865B722B6011757540106D5AA12EA800D407474CA
7CA9F5CBEA2F8341250148E94F005015C86302854D1EEEAABF9E04C42EC00731
071000E8814D40035F540B47BDA9564E6C8E4D40ADB10BD000C0B6051D5005E8
8C30A09BDABDB28B3ABA75984A0EDDA1820F4CB6016056BF673813A02FAC03AC
8509005604AC0070A400A42468ED07B805BCF9E67FC53B16AF5DF7586C6ACAE5
989434959A93A7F271B63B4381BA30F81CF71B36EB6828DEE678288E8CB2DA79
84079C235FC9A1923C5D8613663964521B600010080C0A0104FFAC0235E77498
EAE1E1A3DE59E3A1DE86B5773FA2FA1EF4D775741E03CEB0814060D8C0A3B5E6
A239691D9A933861770B36DB1008DEB995EA48C945B51321C31A00E1D39432BD
A1C93EA138D6AC326818688590A30804F6200CB5840C54083A5C68401D307730
9C210380300115088FEC0A3519BD096CFC69E9714C3D83937EEA38F30D56EF68
34E3100867B0221F65420FD720487526EA1A6BC6EA6F64F709002A0F02808E2F
CECFABC4FF99787D2E56FD42840025C8019463E51705109383E1A208174233F2
D5E9B864BD9AD3A9ADFBFD65F4978CFC5EE1EEA12B000200B60013003C174014
C3A245D3ED00F0981ADFF3690D8045A3DE420F400BB57E666B94005901680FE7
47F26F6917E5B9BC9BDABBBABB3A88F301B362F7A32168920D00B30734FD9309
80F6B8BE6F0240AA014FE13E1381520DE07E016BABB07D02F0E6BDEB16F80AF6
3A93764D1F7DEC89D10B972DCCF00D38FD7D6462928A4D4D570C0B0ACBCA75ED
D7DEC96FE6BE0D080000474971A4148D20A830AD1C57C91B501D1006C55A1D5C
5085B090DC22B5F02CCA6C9EC7D4BBC81FBC0595D06EDB21D56BEF193514DD78
3C1E9C0D490402138B540BB390755F1593A52B0D9B1187EF4062D13BB742F900
081E081DD6A15B71412A3638995D8A3A771055AB10A4074180C01D8EC3E1F804
8201052364102018EAA03654589B56AA962416E892603BACFE4F63DCD7CC93C1
06006EE0F80D393733F94CE8317E6786FF14C28640B4EC3606061A0070FE44D6
FBB9FADB0050A16F27E2B154BC2693094000A0980940F40194330988159FABBE
5879155A87C34E6B0050FE4B5D9FB1BC34F6F031AEF0BCB2FD97A0905041DA80
05003326F6370F033114C0C88EEC026413D04BE801781B3D00EFA307A02D4A80
ED00800E6AE712C4FE2BB8FAF700007A289FCD03546EE21115B86F8A0D007306
36FD777CB67BC358096008C0DD814C023E03E35661ABFCB7B6084B7BF05D77DC
F17FEE84DDF1F2EB0FFC7C3607390013A50EE320BE411D61139E7CFA99ED6BDC
5655FB85065C2110E2D33254665E812A2AABD0FDE0357A1E5C43563B27CE3A33
8EB7AB612C35DA5B95A90C6A8180DE73FC1CC2809368B81B8D564C2060775A64
7E895AE28F8EBC3D27D47BC81FBCB662BB6A830463776F5FCCF343B7A23E99C8
9814A49B93707B9A5969D8888CFC16B4E4EEC028EE3D39E5EA48718DF2424FC2
7A6C705A008530199D8AE3CC90612CA020B9030D0424153510228DC6242A8421
41B54090C4E2783CBF07DF734624A6FD42FEB7DFEDAB877D2669276B18000E1D
99A5B9062C0E63BE43B1A9C71FA1C209DDC39FAB6FD7FB3EACEFB3CBCF747ECA
7D1DFF6BF98F4A00AE495005690040160090AF018004202040E7AF349DBF12A1
A2D881631EB61980B2AA4B630F1D5D3601C9CACFC71816F0B584025B83050AE3
5CDAD603C0849ECFA8592E2F0300EFA895535A02001F00008CFFB9FA33F6EFAE
BC57F584F54008305465447B030053AD00F8577C967B9A0078075769086219F0
11182B00EC03B08FFDB9FADF8DCDC277FEEA97F7D1376E9B7FA41CDF0CBE412C
99909ADD61D39E7FF1252FB7ED9BBF088C0CBD1A9998AC123232555641A12A2E
AFD4DB420D18D839BE83C9317526C998AF7704852A3CA7C3040EA28471279A58
1927D49A40D00A014088458FFAF200ACFEBB4F6A20BCB26CAB6AB969AFEAE479
C2E856340F1A61529140602972122A0D4C2CAED795060308BBB3CBD491A26AB5
1BB904D9CF30051B9C8CFE835A75C08128D290345A03A16EC8B031B35C2D440F
037F5E17EC007C61C50E35DEE79C2D11270939818123876DC8E9AFF7781CDE87
70CCEC23044E020854096711BFD3B99963E02A1F87797E71707A3ABE583C1E4B
2A457B3100908D183FBFB2CA500070F8721DEFD7B7EDDE5BB5434B594F76FFD1
D14515D0D199EDA71210281000323C444A81237ABC6600401F0662288009BDD8
0588033F01805500C07A02601EE3FF4E6802EAA2762D3300B0675577E5B3DD55
C5056C507E3B06A905839FBDC652E08CBE3A09D819C6662059FDAFB739C8B2F2
DFF1B38FFF6F44358606AC8F3E0E7B16F61A8C7114B3AA339BB56879D073BFD7
BF0545855F8D4C4A564999592ABBB048955454D61B1765BF77DC7E9C540D9282
62DC66CAEDA656A3E2A0559A301020942157A16180D214BBD58A61851C610D4B
80232C3B0720EC39A9DE47BFFD0BE845780F57762B76DE7B56B7E80E448312E7
0512089C1F380E9587F911CC2360BEBD064291DA03201C2A3CAFBC010437CC44
588CFD0CD3E2D1BA6C0281B98331B6EA42AE1A0F95B001D5882D686A9A880A00
E70AF43C704E3D337FA3CEB24760BB2D57627178CA7231FDD87556FB869E63DD
BE9EB19ECFBA3EBA012390440CC0CC3E02E14842363A06F37497208D7B0AE260
F19C0B0000F09CBF5C40BD1010280604CAA002CA91EC63C2CF6A25E5E56ABDA7
97ADD79F4E2DAB399D5A86805813800205CA7F9915683B0EACCBEF6B2701B5E3
201076013E876DC0AF620E4033B5665A2B9B02D8BAA0A3DA8110C07379778400
3D95D7CAEE2AE0C01C9512E6AE7CB7F5519FBA34BD4A008CEDF654283EABAC00
70F5FF3D8CF57FD91E6CED00ACB30FE04EFCC3EB7E9E5B816FE4F50E0E3CE7B2
0000193C494441549EE79BC11649C2801953C64ECCA2BE096B0D1B70D7DD77CF
1BE23A3CECE0B1037F0D8D8DBE169D94A252B272544E61B1FE00D903A0F67EFD
7DE5F6FBCC0508DC876EB54ACEA7B3A803824003018A80EA801B58787025B7B2
B29F3D0D1FEC155008030904742B3E0739FE162A0DAD914768E7754AF5E05901
9C05C88D3DE684A031482CCED3BB1EB37583D276941E776795AA8305556A2F80
B0198D4A6EB9000372093477742F1EC216E9D599950AA73FA1AF010D4EE7E2D4
5BC859CCC3411F4188DDCF30764FCE31477761E43680C0C41CA160B5C680E07A
8E4FE7B71A438F44C8FC78387B18F7120008DC4B70283E0B9B8C72500128077C
D000840D3F1A005400480296E2FFAF0CCE5F613182202E29AA4EFC2F27FC4849
906A80B799006458C0C4A08C0B670950567E01C0902E2F5D6319701006820C33
9B80A6F47D5ECD1DFEBA5A3EB105927FED70004867D4FCBBA93D88FDF7C0E969
9E2B7AA83D6BFAA870DFF52A2BC44D1DDAD29BE7077CB760F0733FBCF3C20363
CD458B6A96CECFA45F131855AEFD6C805B6F82F0DFE1CCFFC89748C2906F1CDF
40B6503289C26C2A132BECB766C3C5E0C79E7868CDA429233F3B74F2D077E1F1
F1D7A29353554A768ECA2B2EC16A525D6F9884757F79636E3329696FEC52A3B1
659546101830402FBB8681D1D64A18E4C17210E3AE0AC49830532134C50AFDEA
0A77D51CBB1EDBE0708ECE18EDD58B433DB9BB4F432152F727CC094DC68EBE6C
3D1B613B4A8FB42D303794FB56A596A8B96C4C42CD7FB4AE4A24ABDE7B4FABCE
DB0FEA189B71770256DA04C86D5A30CA6A4CE61D47330EE3777F2884708CF262
A2CE1E085A359876338E4F08D0F96D00C0CFE78A6FACFEE53A7462C810841D7E
67516138891E80B3004204128BC5788F44015801C0DB27CF7AEB729E38B56CEC
A1E3CB63D63D00020649164A57205FCBBD03DDDABFF5A7B6AFFEFA8FAD5E6DF2
559BD77FFB9F2D5FFECD5F3A357FEC9BE1BD5EF961E6F0F72EAF98F2C1B5CD73
3B28F7455D94D7AA8FD5E1CD0395AFC730E5BF6BA80A3F384E15446F50C96717
A89143DFBF882DC417BABCFBD0227C16D901C8DD804CFA89F3DB27FB6456E0AD
333AFC1FF1E21FE96B992461B3049501DF509650985061628531167BAEB90B8B
F26BE8238F3DBE76CE82793927CFF90208092A1625C7B49C5C55505206595953
67C044DD61130805B0D2D75AED1E74BD17DDEC4D67D95200C06B85B973AD1CB9
815A1060AA0D42041D2A9840E046977C6C78C9336D7D30CA8AD8F2CC90E1D905
1BD54BCBB6A9661BF7AAF7DD8FEADD7BDDB54A0010F478F1285D7A1C8F72E4C4
800435199B7D38448525C959A1290825D2D4B02301AAE3D6FDE8C187A331DE86
D3F32A31B815061A0828F71940C8D14060EB6E189C93F13B9D9E57ABD9AFF20D
DD17E7278018EBC761B5A7E38B316F9088DF2B15A0C88202C8C0F389F8B91150
0901A9B9B01C1585B26C05D480D8AE7D2BEB34005977F689D497E94032189440
2034B833900090C7D910F4FA1B2F9F85F2767BE0BEBB76FCFABE3BBD7F79EF9D
07EEBBF7EEA3BF6DF22BDFA79F7C30F2E5E71ECD7CF585472ADAB779E98B6183
5AFE79EED4AE7F5B32ABFBD7EBE675F97EEDBC2EDF6EFCB4E75F87F46D5EFEE0
6F1FD8FEC0FD77F7C7E78E713F937E5CF9F9B96C627E56ADBBFE9CABFE3F0804
51058CA10804F6515B81C0788BFF01FC8FE0860C5618463DF3FCF39BD6B8ADA9
F40F0DBC1491505B61282C45C9914E5DC7E90900C78EEF68679A3D0C6C4080E3
B39C55661A935BB412AC664C7615E1C35D00C99B0FCB83C5A025D62D046DBDDE
27550BEC63683A7F0336396D56EF6CD8A35AEF3C869021509F55380AA5C77180
C0644CFAA1E32F8EC95473C3531486B4AAAE58F9A3E15C9CBB27664BBC110616
203006D786C7C4B88147CA7D6C0AE2ED1064FC29E569B2B2CBD511006CAB3F55
07BFBFFE7D0CE767FC1F0B38F1B1643C9F0E00E40000050801B8FA97E27DA002
60A237A3086711A00720064A213A2B5F6DDCB55EC7F194F68CFF79B526FBB8D2
8B4290A4A0CC05242C643A9084028F3CF25BF7BBEEBA731E4A6E53F11999049B
089B0CE3FD4F601CEEB1FCAE7BEE717BE037BFF47CFC89878E3CF5C483679A3E
D924F0C9471F087AF4A1FBF7DD7DF75DA3CD45876DBFACF77331A24A65F84AE5
6ABFE7DFB9EAFF8300902FE71B298D139454F64060C2850D1704425318651981
D00536EECD66CD3CB7EC72BFE81F1672994048CCC852DC985464F620D800E060
379A1502747E7BAB4482903DEC5663630B8D9B5C680C114A0083626DC6069842
7CF005061A0888D5B747607EC0BED3AA0D66217083D3CB4BB7A80F507AECE47E
5875DD7944F5DCE5A33A6CD9A75E59B259CD3E15529B69B724DCE87494DEDAF9
CC249C4EC89990D00A416000478DC72C86785E61ACFFB31188997D9DDDC76D3E
96C80CFE758CCF7385E7F7E06ACF9F4F55120363193191F13FCF2360021000D0
094053FE5B57FD8AAA2A2800842219293AFE97565F4900F23E8D09403A3FF302
5CE5799F8FF33182C20A00FDFA7D072FDD7DF7DD6BA100E6E1F3300336C504C0
385CE9D4236043618360FD60ECEEE32ACFC7C4380094DD7EDCF5C701204C5E33
67C5CF9E752AB0FDB49F1FC9059CDF86EF0041C037586060D4530D20507AF13F
82F9030102138AFCCFE27F1A138ADCB831B97DE72E87BC0EECFE5360242A0CE8
41480210B2F30B55497985C3FDE8F51DBFFEA615E96367479BBD19CAC05004AC
7BB3FB8DC63A38AD08002840522C1F8E91675A3424B257748A9AEC13A0261E39
A7A61D0B54B34E0629B7B03838190EE9301D52AFBAA631F696F8DBE6F4A6430A
10B462A03CE72A0D93D59A8EABCD5CBD799B2183060236F3B07F9FB783D125C8
9F49A7A6B11AA24D83C5F8DE747C1B002CF29F00C8C36A5F04E72F31577F717A
EBF57480D1DC43E7E5D59A0094B66071744900CA6B653A1043009918346FF5BA
FF77F73DF7AC01003EC5FFFF4C18577D2A0026F146994ECE019F747C7E4658DA
6B0F63CE89713E577C96F998E99755BF096E538D36D4D7FFB36EECC1DFFDBFFE
4F602057018315089250940A03138AAC3030A1D816F6F17DF7DF3F7BC4D8D141
078F1FFC8F9098986B51A830246766A3C25004898A9EF43AABBE9DE337B08185
3060EE815736B9B0CE6D350D833A203060C030A1082B2033E434428140C88545
A16F3E007DF3279140F3E3CA0CE78CC12CBF5489DF59926302D00E06D6841CC3
040E04D52BB4E9A874569A21D94D3898F17B5D20E070100D843C00215B03E134
BA048390CCA3C48F059468313076136AC8E01A8FFB86FCAFC0C8AF0A5580322E
7BFD4BF17796992BBE387F39FE5E9AE781CD75260049A94FF60570A5E7AACF0A
800C071100B039888A41CE026008E03A655AE13DFFF22FAB4D0530CB028031B8
CDD5DFC5747EF6A4B0AFBF0D8C0A929F136B6FBFECF19731E08E7AFA9D8EFF4F
4683C45956E925C91719C6280A41F207A43713370402138A6FC39850ECFFE043
8F2C183B7952E411DF637F0D8D8B43858125C76C5418587224101CEF5AB3DFC9
C6CE367BAB030336C09826EAA0AE3220148CDC017BE64521E4622B2D2D2AB758
9D43CC7E02529D3BEB3410905760A9CD88CB0506C6AA4E6796A49C38BD55AACB
8A6D7D4EA0C02B558736ECDE33A47E19D440A156053E80814F4216DA86516900
A48CEF85D7C20CF95F01F95F01F95F01F96F00C0EAFCE2F872DDE8B553C7FF32
D957DA7A65F43755011580CC01E4EB040084837401D2F9B7ED3F74B5C587ED42
A00056DE71E79D73F17F4C05C01080F2DF1536D874FE6EB8B68771C57FC7747C
EBC04FE9EA93F29EA37301FFC91F7DE78F73F40E58132F5638100A0DE50FF89F
4BBA53DEB1A6CB0A033F0C2EBF6BDA74D5FCA5DCC3E0F76D585CBC8A41C9312D
3B17A3AA4B74C6BA318E5F0704968EB70ADCA6090878654D9CC604196572097E
06AFAC99B371A688EA000EC495341FC69A3A2D0225BF73E8C86386DF50084538
7597253FC875C2004ECC95DA26F5B9EA6B8322305500C3040141ED15AB391CB9
CEEACEFBA6F1391A57FD406C35E6DE0136031D46FDFF14DA86F53E02288F4C24
60739173296402B0124781C3CA1D586A669A76603903409C9D925EE6FFC9B82F
E9F61358C8EA4F05C08D407C7CE9E6AD5F63F5F7BAEBAEBB966267EA6CFC9F4E
83719C37A5BFD5F9B9005837F43097C410D23AE4D319EBDF82CC6908088EF207
5408923F609287F55D4A40C680AC300C7DF19557D76F74DF547E3624E007961C
E352D3543A3635E5970008EC6673B0F2EBC71CB4BA5A1FE3D7B2234E0060BDB2
59862030206018F306341D2AE8BC8101821C58362C0C00F0835C3F8ED55980C0
44A351B2BB1E108C9040C2010101B71173E7208FF2D612DF747ADEE67334CE1E
305E87E76121707E42C93719DD81184E1A8C2DD9F1D874C56ECE8600E07BCED8
CF2F9B7C6437A038BF1CF94D27970120725A90280639228C8FBB4E9EF6072400
3742FE33CBCF0420637F71FE3EB8DD1566DDCCD350475F430781DE822E717BFF
CAF6409070A1A184A2E40FA4659915066683291947366FD566072A0CE7FD4283
2F87C727AA84F40C959197AF0A4A4B0D1834C2F1EB34C1586AE1DC114763A9CC
6A5A1D98893466D369458000E5352D1F00C8434293923B0796050BA35CC7EA7C
02093D9DDD0720984360A84020E82C3E643D4D54820E016CCE6E24F6A2340478
A5B31BF723B595EA366481412CC67B5375A42004C840A521070A20291F730339
F21B75FFB349D92A3C234F25010839C5A5DAA80876EE77B79DF2432797C11E22
FFB9EAF336F30292E413584863900C036529B059ABD619E8245D05F9CF521FCB
7F747EC6FC6C39E7382FE6820878FEBF323FC4B050EAFA8E0678384B7B3F337E
3416085407FC4058138AD60A434FAC34E33AF5E8E1ED7570CF570111E15775C9
313D53EF722C86FCB55FF11B72FCBAA5B1DAE6183E6E05021369B412DD566B1A
41801C81008135F77C0B0C0408A168BC390D897E422B04ECBF0710E21832C059
25BB1FCF38DE040225BFC0C058FD0D35A0577E80449BBE5F8AD7952A7E6D329C
3F0D9685EF99C704204A80C500141540192C0313A2E300844000213025078D5B
A5C8F87BD591FAB2AF9F8E6F757426005902B48605BCCD2620E60718026046C0
B5871F7DEC2CE4FF22C87F3A3F637E66FBB9838FC93EC6FBCCFFB0A66F2FF9F9
FFED5CF57F66CE7EA33FA7B1F9036B87225B9625A1C8A411F7307055E9FDEB26
4DA68E9E30DEEFE089437F0E8E89BE16855D8E89D8E5985D50809263B9D1FF6E
59F11B7BBB1C4E2F261060C582560200D09868A3150106040241C01377F2D98B
0FCB416E80AB72368CF17970A621D54F40AA9F855208857C8F25106CA53E23A9
4710C4C1C19970648E8146A717339CBFEEEA9F0D00E4030045F81DB4FC370150
56510110D45A645C84CEE04BFC2FB57E76F28902E0F3B20740CEFDE3EB650310
C1C0E7F9DC52B72DFFF6E0238F9CB9F3AEBB660000747ED6F6A9DCA48557E4BE
75EFBEFD419FCEBAFE8DBCE667FC7C6381201D8ACC1F58138A5C59DE8131C1D4
EFF1279FFA64E2F4A9C13EBEC7FF2B3436CE2C396619254738C78D0060757CDB
6DB37456C69D752604EAC080CAA01E100803ACC830431D40A2D32C4008C2441E
0308A2100C20D45507A51A0694FB747C5EA922F4EA0FF9CFD59F80B1ADFE2600
EC1D5FEEFB9C3EA89B7964A5A794974D3EB2D213007C9CCA408E08A7C3F3EB04
0C78EDB5099FCCFEF281264D4E42FECF81FCA7F333DEE7AACFD29E487DE9DF97
693DCE9AFECFD8997F8C3FADB1E1823D10D8A1C884222B0C8C37DBC3063CF7FB
DF2F5CB862692A2A0CDF1008312839A6725353519196C802847A8E6F3ABD7DF9
CC7ADF111098782B81B1F596529C2B72215B73B50106303A2B7307745C1AE53B
63F80024F0B891E70432FCFE28F75121C4DB8080DC016BFE2CFB9971BF487FC2
85DFBF085682D59ED6100036EFD9A11D9E357E3ABA8CF6A6F3CBF65F1902CAE7
E52830C90BE8DC80BBC7E5D7DE7A8B71BF1BA4FF34ACFCC3FECF1D7750F2336F
C3922FFF1FACE7F839A5FE8FE119B7E9F7B8192048FE802DCBD684221B4ED879
36181FDC955B766E2B3D1312F03D4B8EB1A8307053535E117A1074C9CC6894B9
39AB2DB711001A02661CCEAB80800E4A2310C40408A20CB2B1B92A13960E0B48
C37420840B0C19CE0108E1E8E34F444CCF29BF7C3E0BC6AFCB070038E5A9184A
E37ACE9F83D66C3A351D5D00C0559E537DE8D872F88774FAF14A0520AFE57DD7
C993FE74EF2F7E71941D7FB071707EC6FB6CE195F65D0EA291315D92E0B336F3
38F7E9DFA68EFC63FDD98D0582B5439140E00793094566A2598B669C3AAC5DC7
CE5BB77AEEAC3C171E7299408867C91140C8475392A31AFA8D1EA3AA10631C4E
B3C2400381ADBA16B3AA030221B7AC4CE5969629C2201B5702812640F04D42B9
0FD9FDF8BC22BCA6143061EC6F38BF230094E2399AEF391F1B0064971F137A12
FF8BA3F3CAC779251C7447E096CD979E7AE69938383DDB7DB9EA0FC7FBC7AE3E
F673386AE69155DFD9CCF3637DF29DDFA7DE3BD0D8FC81A3842281C03895FDE7
DCC3D0F3DE7BEF1DDDAD779F3DBB0F7A636C1A2B0C2839A6A5AB0CF42014A1E4
783DE7B73AFEF56ED70782B172D381B5E94CBE98B1BAE7C128F30D2BD3F7F978
0842863380813FF20851D8DD975650AC07C08AFC17C797ABFB5E371DDBD3A159
C7A7AC97CD3ED6B16012E7CB68F0BE2EFD2F42EA7BC1F1E7C2F1B9EA0F30DF33
47997DAEFAF6DB759D653DA7F3FE53DE81C602C19A3F6882DFCC3A038115066E
50F9F8C1871E9A3276CAA4D3878E1FFED7E0E8E8AB91BAE498814D4DF9283996
692034D6F1EBBE0E2B32566B9AACDA848015045CD50B5145D0570201B70B20F7
0BA008B8E55A9B96FEE5F83AC3C2D2317F0040084CC9563100427A41115EC7D7
97A902289AB598DB2F73FEE9F884800CFF90C7050C54006BB6ACFBF6E1871F0E
84E32F854D36577D366B59E5BED4F31D65F69D72FF9FF2B177FE9086DE81C686
0BD61D8E5261E00C04AE7094B8BAC28029CB333F5DBC20E684DFA9BF86C4C4EA
92A3EC72640FC28D61503F3927AB337749D20404758100478783D3D9B5F1B6E9
F4747C963B69A576160E2084A5E7680B08F5D5ABBD150032D68B8A808F531D50
156CF0F4B8F661FB0FF2B1EABBC1F167C1F147C37AE13D607255CEE5B39FCBD7
503DDFB971C7E99F3F9977A0B140B0CF1FD8B72CB3D435F085975F59B474F58A
B453E7CE7E13121BA7A2315835250B25474C5AA643369489E7E3F6F2DCFEBE01
80DAD5DDFE76434E6F0F01B9BF6BDF5A5B194F1C9D0940F6FF0B000888997327
FFDB2F7F79FF4133C937018ECF8E3EEEDC230C99DD973DFA6CD6B266F79D63B9
7E321F73E72FD2D877E04640B01F99C60FBD24149FC56D4E59E6D8755D6178A7
79F30D9B766CAD3A131CF043686CBC8A4B4955A9DCE5C81E8446387D2D04EAAF
E6F68E5D0225D03843B5202F17F2DF4397FFA4979FB7D9D0C3565F3DFC63C786
CB6FBCF1521456FD6570FEA9707C6EE1E5DFC5BF917FABA3ECFEED73FE5E633F
51CED7DDB2EF4063F307F6094596BCA4C2C0D89873EC981D1FD9A16BD7DDBBF6
7A7EE5171A7425CC04425A3680801E84FA2B3555C18FEBF825C853D04EFAFBD4
93FFD2E8E379E490721DDDFFBC29F767C2F939BD87729FEDBB4C92DACFE0BFDE
D15B4EB97FCB7EFC9DBFB8FD3BD0582034945064AC6CAB30DC7FFF2FA774EDDD
FBE83E9F7DFFE11F167A8DBB1CA5E458806DCF3772FEC6ADF6540586D35B6DDB
3E2F9DF093797EBCAD4F015A3FF76F8F3FF608E5FE2CD85833BB4F8059CB7A54
3C327FDF19E73BFDE4B67D076E142E381A99D604EF165B61995094A128DCC3D0
074351168D9D3431EAE0F1C37F0B8A8ABA2625C7AC3C9CE5886DCF02847FC4F1
098198A478BDFACB8C7F9DE5F7DC74AD67CFB6F118E039FBCE3BEF1803C7E79E
7D36F330CEE7EF6A8DF39DCD3CB7ED47DEF9875FEF1D682C10AC09455618AC2D
CB526118F254D3A66BE72EFC34FFF859DF1F82A36354247A1092507224108A00
04472B7B631EDB75C88B3DFDD7E6AD73FBCB1A0F8FEF274F1F5673DF7DF72EC2
8A3F023610CECF84264317EB619BDC7CE5E8AC3DE7A61DA74F38DF0107EFC0F5
C205FB190832324D128A5C6DB94D96C936B62CB7878D79FEA597DCD76D597FC1
37D0EF4A704CACAE30247397237B10D094D418E7CFCCC5E12728ED2DDBEAFEED
3B2D5BA7DF7BDF2F36D0E961DCA7CF5E070E62E18A6FBF53EF7A23B99C71BED3
059CEFC00DDE81BF277F20A734C91E06024186A24C7BF7FD960736BA6FFEBFA7
8302AE84C4C4A958CE51C4598E39DCF66C17F317A3F187E6E6E1FE97251BD77F
DDA1E38761707A17189B7858B5B0C6F8F6C76B3BBBF89C1F6FE73BF023BF037F
0F109AE077B01EDBC6842213747DB00BEFD30F3B75F2DBE9EDF157BF90A06BBA
C2C05D8E0002D5012D3B3FE7DA8BAFBF1E82012AD3E1F8AD21F5091489EF9997
E01C3EFE0CFB049FD4F39D72FF47FE1038BF9DF31D9077A0B1F9036B87229D95
6DB7925064FE8075FA69BF7AE0811D83470CCDF33EBCF7BB8088886BEC417077
9F590AC7EF06C767298F7907C2844ECF3C04D586D3F19D9F47E73BF01379071A
0B04476730BC0C276F016B8FBF855B73A7FFFA37BF41494FC7F77476828346A7
67DE81C93DFB0E3E3904C6B969E727F28170FE1AB7EF3BD09884A29CE1283BEF
AC9396A5479F9B73B8CAF32A4E6F7F9CB6D3F16FDFCF99F32FBF45DE81868040
E765EF815419E4D83619AC4A67176328614DEE391DFF16F9CF77FE9ACE77C0FE
1DB002C1D1B875D9BFC02B8D90709EA8EBFC1C39DF819FE93B2040B087811CD9
26ABBD7D56DF59CFFF997E209C7FD6EDF50E3494401420381DFFF6FA3C38FFDA
DBF01D70942770F4D86DF8D638FF64E73B707BBC03D783C0EDF10E38FF4AE73B
E07C079CEF80F31D70BE03CE77C0F90E38DF01E73BE07C079CEF80E377E0FF03
4221557E384867AA0000000049454E44AE426082280000003000000060000000
0100200000000000802500000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000081414133B0000000B0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000101002640403E78828380BC
BBBAB8F7E7E7E6FF8A8A82E01114115F00000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000050301203737345F6B6B699FA6A6A3DDD7D8D6FFEFF0EDFFF2F3F0FF
ECEAE9FFE3DFD8FFD1D1C5FF999888FF515149BE020203420000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000005221E1B3D59565588
A4A3A1D9E0DFDDFFEEEFEEFFF6F5F4FFF0EFEDFFE7E3DBFFDFDACBFFD9D3BEFF
D4CBB2FFD8D1BFFFD0D0C7FF9F9D8CFFB1AE9CFF8C8A7CFF1E1E1C8100000015
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000022C241F346964618CA3A1A1CFD8D9D9FFF0F1F5FFF8F8FBFF
F2F1EEFFE8E5DFFFDFDBCBFFDBD4BFFFD8D0B7FFDAD3BDFFDDD7C2FFDFD9C8FF
DED9C7FFE1DFD7FFE1E2E2FFADACA2FF989584FFACA997FFA9A696FF100E0D7E
0000002C00000006000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000001204000F4C443F5D
999390C9DDDBDCFFF5F4F8FFFBFBFBFFF5F4F0FFE4E0D0FFD7D1B4FFCCC29AFF
C7BA8BFFC7BB91FFDED7C3FFE6E1D2FFE6E2D4FFE3E0D0FFE3E0D3FFE2E0D3FF
DFDAC7FFDCD6C5FFDCD6C9FFBEC0BAFF959382FFA19C8DFFB3AE9DFF36342FA9
000000640C131576121F23760000000D00000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000008101704534843339D9491ABD1D0D1F4F2F2F5FFFAFAFCFF
F9F8F7FFE7E2D4FFD8D1B3FFCFC49BFFC7B987FFC5B77CFFC6B56FFFCBB86AFF
D0BE68FFC3AF59FFDCD7BFFFEEEBE2FFE6E2D4FFE0DAC9FFDCD6C2FFD9D2BBFF
D6CDB3FFD6CEB6FFDDD9CBFFCBCDC8FF9A9686FF9F9A8AFFADA793FF435A66FF
144562FF518BA3FF265168FF051C2A3E00000009000000010000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000004B444526F0ECF1FFFDFCFDFFF9F7F2FFE7E2D0FFDAD3B5FFD0C6A0FF
CABD8DFFC7B87BFFC7B66EFFCBBA6DFFD0BD6BFFCFBB65FFCBB75DFFC7B258FF
C2AD5AFFC1AF63FFBCAD72FFDAD1B9FFDDD6C1FFDFD9C6FFE0DCCBFFE4E0D2FF
E3E0D1FFE0DCCAFFE5E3DDFFDDDDDCFF9C9A8AFF9E9989FFB0A893FF50666FFF
0F4566FF46819AFF23536CFF0830457E0000001A0000000A0206050100000000
0000000000000000000000000000000000000000000000000000000000000000
00000000C0B58846DAD3B7FFD1C79EFFC6B882FFC5B474FFC8B871FFCFBF73FF
D0BE68FFCEBB62FFCBB860FFC6B35CFFC2B05EFFC0AF63FFBEAE68FFBCAC6AFF
BBA963FFBAA95FFFB5A351FFDCD6BDFFEEEBE3FFEAE7DCFFE7E4D7FFE4E0D3FF
E0DBCAFFD9D1BAFFD8D0B9FFD3CDB7FFA8A699FF9C9888FFB0A792FF5D6D71FF
083D5CFF417B95FF21566FFF0A38506B00000008000000050000000200000000
00000000000000000000000000000000B7AA5D1BBCB06A4EC8BA727EDCCE84AB
DBC97CD1D1BE66D3CAB762EACFBD70FFD1BE6BFFCEBB64FFCCB860FFC6B25EFF
C3B162FFC1AF66FFC0AD69FFBDAC67FFBBAA62FFB9A75BFFB7A554FFB4A34FFF
B3A14EFFB1A14AFFB7A554FFBDAD6DFFE3DFCEFFE0D9C6FFDBD3BCFFDAD2BBFF
DDD7C2FFDCD5BDFFDFDBCBFFE9E9E7FFB6B4ABFF999584FFAFA693FF6E7A79FF
073858FF38738FFF1E5672FF0B415D4F00000000000000000000000000000000
00000000BEB17746C3B87F7ECABD80C3D3C580ECD2C172E7D4C166E2D7C163D9
CEB84ECBCAB140BEC6AD40C8C7B462FFC5B266FFC2B168FFC0AE69FFBEAE65FF
BEAA60FFBBA85AFFB8A655FFB7A552FFB6A451FFB5A351FFB6A454FFB7A55BFF
B8A861FFB9A965FFBBAB6DFFB9A969FFD7CFB4FFE8E4D7FFE9E6D9FFE8E5D9FF
E7E4D8FFE4E0CFFFE3E0D0FFEBECE9FFC3C2BBFF999685FFAEA694FF7B8380FF
063454FF336E8AFF1B5470FA0C44624B00000000000000000000000000000000
D0C48896D5C476F9D4C067E7D4BD5CD7CDB54AC6C9B142C1C5AC3DBEBFA735B9
BCA433B7B89E2DB2B39A26ABBCAB5AF3C1AF64FFBCAA5CFFBAA857FFB9A756FF
B8A656FFB8A555FFB8A65AFFBAA85EFFBBA964FFBBAB69FFBBAB6AFFBCAA66FF
BBAB62FFBBAA5EFFB9A756FFBCAB5BFFBFB071FFEEECE3FFEDEAE0FFE9E5D9FF
E4E0D0FFDED8C3FFD9D1B9FFD8D1BAFFD3D1CAFF9E9B8BFFADA694FF8C8F87FF
05324FFF2A627FFF17506CF70C44623C00000000000000000000000000000000
C7B560B7CDB445D2C4AC39BBC0A836B7BDA432B3B79F2FB1B49C2BAEB19827AC
AE9522A7AA921DA5A48B1297AF9938D2BDAD62FFBBAA5CFFBBAA5EFFBBAB62FF
BCAC68FFBDAC6CFFBDAD69FFBDAD66FFBCAD63FFBDAC60FFBDAB5EFFBDAC5EFF
BEAC5EFFBEAC5FFFBDAD5FFFC0B068FFB8A75FFFD6CCB0FFDDD6C0FFDBD2BBFF
DDD7C1FFDFD8C3FFDFD8C2FFE7E3D9FFE4E5E3FFA3A193FFA9A393FF9D9C90FF
06304CFF1E5472FF174F6BF70C44623C00000000000000000000000000000000
BFAC595FBEA537CAB59B26AEB39A28A9AF9623A6AC931FA2A9901CA0A68D189E
A58B159CA389139BA2860C91A58B1DA6BDAE6CFFC0AF6EFFBEAF69FFBFAE67FF
BFAF64FFC0AF61FFBFAF62FFC0B062FFC0B063FFC0B064FFC0B067FFC0B06BFF
C0B06EFFC0B071FFC0B072FFC0AF70FFC2B270FFC3B67FFFECE8DDFFEEEAE0FF
EBE8DDFFEAE6D8FFE6E1CFFFE8E5DBFFE8E7E2FFADAB9FFFA5A08FFFA9A596FF
0B354FFF164A6AFF124B67F60C44623000000000000000000000000000000000
B8A75401BDA950A4A99016A8A78E169AA78E1799A68D1697A58C1597A58C1596
A58C1795A68D1995A78E1792A58C158CBCAA5AEEC5B56DFFC3B368FFC3B368FF
C3B369FFC3B36BFFC2B26DFFC2B270FFC2B372FFC2B273FFC2B372FFC3B36FFF
C3B46DFFC4B46BFFC4B46AFFC4B268FFC7B76FFFBBAC5DFFE3DDC9FFE9E5D7FF
E4DECDFFE0D9C4FFD7CEB3FFD5CCB0FFDCD6C3FFB8B5ACFFA39D8EFFAEA997FF
244959FF0C3F5FFF114A67F40C44622D00000000000000000000000000000000
00000000BDAC5D48B19A30B2A58A0E95A78E1893A88F1B93A9901E93AC932094
AD942295AD952495AE952593AC931D85BBA954D6C9B97AFFC5B677FFC5B577FF
C5B577FFC5B676FFC5B674FFC6B772FFC7B770FFC7B76EFFC7B86EFFC7B76EFF
C7B86EFFC6B770FFC6B772FFC4B674FFC4B576FFC2B277FFC1B382FFDFD8C4FF
E4DDCBFFE6E1D1FFE5DFCCFFEAE5D7FFF3F1EFFFC4C3BCFF9F9B8BFFB3AC9AFF
355561FF033457FF104865F50C44622100000000000000000000000000000000
0000000000000000BDAA5585AD931EA0AD942191B0972793B1992B93B29A2C93
B39B3094B49D3293B59E3492B49B2E86BCA952C0CBBD81FFCBBC7CFFCBBC7AFF
CCBD79FFCBBD79FFCBBD78FFCBBC78FFC9BB78FFC9BA78FFC8B879FFC6B77AFF
C5B67AFFC5B679FFC7B878FFC7B977FFC8BA74FFCDBF7CFFBEAF63FFE7E4D3FF
F0EDE4FFEEEBE0FFEAE6D6FFE5DFCDFFE8E5D8FFCFCFC8FF9D9A8BFFB9B19DFF
4A6469FF002B4FFF0F4764F40C44621E00000000000000000000000000000000
0000000000000000BDAB5D2EBEAB4DB0B29B2A93B59D3392B7A13893B8A33C93
BAA53F94BBA64294BCA74493BBA6408BBEAB4DA7D0C386FFCFC284FFCFC082FF
CDBF83FFCBBE82FFCABC82FFCABB81FFCABC80FFCBBC7FFFCCBD7DFFCCBD7BFF
CCBD78FFCCBD76FFCCBC76FFCCBD76FFCBBD77FFCBBC76FFC6B874FFC7BA8BFF
E2DBC8FFDED7C1FFD8D0B5FFD9D0B6FFE2DCC9FFD9D9D2FFA09D90FFBBB19FFF
5A6F73FF002A4DFF0D4563F60C44621500000000000000000000000000000000
000000000000000000000000C3B16376BFA846A5BCA54193BEA94894BFAC4C94
C1AD4F95C2AE5195C2AF5395C3B05290C3B05596CDBF88FFD0C28BFFD1C28AFF
D1C388FFD1C488FFD2C487FFD2C586FFD2C484FFD1C382FFD0C280FFCFC17EFF
CDBF7DFFCCBC7DFFCABB7DFFC8B97DFFC7B87DFFC7B87CFFCABC80FFB9A964FF
E1DAC6FFEBE9DDFFEEEBDFFFEBE6D4FFF1EFE7FFE7E8E5FFA5A194FFB9AF9CFF
667878FF002C4DFF0D4563F80C44620F00000000000000000000000000000000
000000000000000000000000B9A6550DC9B767A3C2AF519AC4B15796C5B35B97
C7B45E98C8B66099C8B76298C9B76397C7B56091D0C283E6D9CD96FFD7CA90FF
D6CA8FFFD5C98EFFD4C78CFFD2C58AFFD0C388FFCEC086FFCCBE85FFCBBC82FF
CCBD82FFCDBE83FFCDBF81FFCDBF7EFFCEBF7BFFCDBE79FFCFBE79FFC8BA70FF
CEC494FFF0EDE5FFECE8DCFFE5DEC9FFE4DFCDFFE9E7DEFFAAA89AFFB4AC99FF
727F7EFF002C4FFF0C4462FC0C44620900000000000000000000000000000000
00000000000000000000000000000000C4B46965CEBD6FB3C8B7619BCABA689C
CBBB6B9DCCBC6D9ECCBC6E9FCDBD709FCBBB6B92CFC183D1D7CB99FFD4C893FF
D3C691FFD0C48FFFD1C48FFFD2C48EFFD2C68DFFD3C68BFFD3C689FFD4C789FF
D4C78AFFD3C688FFD3C585FFD2C382FFCFC07FFFCBBD7CFFCABA78FFCCBD80FF
BFAF74FFD4CAAEFFDFD7C2FFDED7BEFFE2DCC7FFEDECE3FFB0ADA2FFAFA795FF
798382FF013152FF0C4462FF0000000000000000000000000000000000000000
00000000000000000000000000000000B7A44F0BCFC17DADCFC074AACEBE73A2
CFC077A3D0C179A4D1C27BA4D1C37DA4D0C2799AD0C287CAD8CD9CFFD9CD9BFF
D9CF9BFFDBD09BFFDBCF99FFDACE97FFD8CD94FFD7CC90FFD5CA92FFD5C891FF
D2C690FFD0C28BFFCEC089FFCBBD84FFCBBC80FFCBBC7EFFCBBC7BFFCCBD7BFF
C4B46AFFD7CFA8FFF1EEE6FFEEEBDEFFEFECDDFFF7F7F2FFBBB8ADFFACA492FF
7D847FFF0A3B5BFF0C4462FB0000000000000000000000000000000000000000
0000000000000000000000000000000000000000BFAD5F46D7C98ABED2C580A8
D4C683A8D4C785A9D5C788AAD6C989ABD6C988A3D5C98EBCDFD5A5FFDED3A4FF
DBD1A0FFDACE9EFFD8CC9BFFD5C996FFD3C794FFD3C795FFD4C898FFD5C996FF
D6C995FFD5C991FFD4C78BFFD1C584FFD2C482FFD1C27FFFCFC17DFFCEBF78FF
D0C07DFFB9A75FFFE1DCC8FFE1DBC7FFDBD2B7FFD6CEB2FFC4C2B7FFA9A291FF
868A82FF144664FF0C4462F50000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000D1C3859EDCD098BE
D8CB90AED9CD92AFD9CD94B0DACE95B0DACE94ACD7CB96BAD9CEA0FFD8CDA1FF
D9CEA1FFDACFA1FFDBD0A0FFDCD1A1FFDFD5A7FFE0D6AAFFDFD6A6FFDFD4A3FF
DBD09DFFD9CC93FFD6C98CFFD2C589FFD0C287FFCEC083FFCBBD82FFCABC82FF
CCBE84FFC3B476FFD0C39DFFE7E2D2FFE8E3CEFFF8F6EDFFCDCCC4FFA7A18EFF
8B8D87FF144766FF0C4562F20000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000BBA8552EDDD19FC8
DED29FB8DDD29EB6DDD29EB6DED3A0B7DED3A0B4DED29FB5E1D7AEFEE3DAB1FF
E3DAAFFFE2D7ABFFE2D9ACFFE4DBB4FFE2DBB2FFE0D6ACFFDED3A7FFD8CD9DFF
D4C894FFD1C390FFD1C38EFFD1C38BFFD1C388FFD2C489FFD3C689FFD3C587FF
D2C481FFD4C585FFC0B16AFFEEEBDEFFEFEBDCFFFAF7F0FFD8D8D1FFAAA391FF
8A8C85FF104464FF0D4562E80000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000CDBE7E83
E6DDB3D2E1D7A7BCE1D7A8BCE2D8AABCE2D8AABAE1D6A9B8E3D9B1F6E3D9B4FF
E0D7ADFFDFD5ADFFDED5B0FFDCD3ADFFDDD4ADFFDED4ACFFDCD1A4FFDACE9DFF
D9CE9BFFDACF99FFDACC95FFD9CB93FFDACD95FFD9CD95FFD7CB91FFD4C88BFF
D2C486FFD2C488FFC1B270FFCEC39FFFD9D0B6FFD7CEB1FFDDD9CFFFACA494FF
8B8B84FF0F4464FF0C4562E60000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000B7A54E18
E1D8ACD2E7E0BAC9E4DBB3C2E5DCB3C2E5DCB4C1E5DCB3BCDED4AEF2E1D7B2FF
E3DBB7FFE6E0BFFFE9E1C2FFEAE3C3FFE8E2C0FFE4DBB1FFE1D6AAFFE0D6A7FF
DFD4A2FFDBD09DFFDAD09EFFDACE9FFFD6CB9AFFD3C694FFD0C38FFFCFC28CFF
CFC189FFCEC184FFD0C185FFBFB06CFFE9E5D5FFF8F6EEFFEFEFEAFFAFA997FF
8A8C83FF0F4665FF0D4562D70000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
C5B56E66EDE6C7DFE8E1BDCAE8E0BEC7E8E0BDC7E7E0BBC1E7E0BFEAEDE6CAFF
EEE9CEFFEFE9CEFFEEE8CCFFE8E0C1FFE2D9B2FFDFD4ABFFDBD2A7FFD8CEA2FF
D6CC9FFFDACEA5FFDCD2A7FFDBD0A4FFDACFA0FFDBD09DFFDACD99FFD9CD94FF
D7CA8FFFD5C789FFD6C989FFC9B973FFDFD8B6FFEFECDFFFF4F3EDFFB3AD9DFF
8C8D84FF0C4462FF0C4462D50000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000DFD6ACC0F0ECD2DDECE5C6CEEBE4C6CDEBE5C6C7EAE5CBEAEBE5CBFF
E8E2C7FFE6DEC4FFE2D9B8FFE0D7B2FFE1D8B2FFE0D7B0FFE1D8AFFFE5DCB8FF
E8E2BFFFE9E0BCFFE5DCB5FFE3DAB0FFE1D7AAFFDFD5A4FFDBCF9DFFD7CC96FF
D4C891FFD2C48CFFCFC086FFCCBD83FFBFB07DFFD6CCAEFFEFEBE2FFB9B5A7FF
929087FF0A405DFF0C4462C50000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000C4B46C57F4EFDDF1EEE9D1D6EEE9D0D5F2EED8D8EDE7D3EEEFE9D3FF
F0EAD3FFEEE7CCFFECE4C6FFE9E2C3FFE8E1C0FFEAE3C2FFECE7CAFFEDE5C9FF
E8E1C2FFE3DBB8FFE0D7B2FFDED3ABFFDACFA4FFD6CA9DFFD6CA9BFFD6CA97FF
D4C893FFD4C68EFFD2C586FFD4C685FFC5B569FFDFD5B0FFFFFFFFFFBFBBAEFF
97948AFF093E59FA0C4462C30000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000DBD1A4BCF8F6E8EEF4F1E1E2F5F1E1E0F4F1E1EAF3EFDDFF
F0EBD1FFEBE5CAFFEAE3C5FFE7DFC1FFE6E0C4FFE7E0C8FFE4DDC0FFE3DABCFF
E3DBBBFFE3DCBAFFE4DCB8FFE3DBB5FFE3DAB2FFE3D9AEFFE1D6A8FFDFD4A3FF
DBD099FFD8CB8EFFD5C78AFFD1C283FFCFC182FFC9BB86FFE9E4D5FFC7C2BAFF
9A968DFF0D415AEE0C4462B70000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000BBA9562FF7F5E8FBFAF9EFEFF7F4E7E5EFEAD7EAE8E0C7FF
E6E0C4FFE6E0C5FFEAE4C9FFEDE9D4FFF0EBD7FFF0EBD8FFF1EDD6FFF0EBD4FF
EEE9CFFFEDE6CAFFEBE4C5FFE9E1BEFFE5DBB5FFE0D7AFFFDDD2A7FFD9CD9DFF
D4C794FFD1C38FFFCFC18AFFCEC186FFCFC082FFC8B87AFFE8E2CEFFD0CEC9FF
9A978EFF0E425AE50C4462B40000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000D9CF9EAAFFFFFDFFF6F4E6E4F1EEDBE5F2EDDBFF
F3EEDDFFF5F1E1FFF8F4E6FFF6F4E5FFF5F2E3FFF2EEDBFFEFEBD6FFEDE7CFFF
E8E2C8FFE4DDBFFFE2D9B8FFDED5B1FFDFD6B0FFDED5ACFFDCD2A7FFDBCF9EFF
DACF9AFFD9CC95FFD8CB8FFFD6C88AFFD3C481FFD0C27CFFDFD5A9FFD8D7D4FF
9B9790FF104359DA0C4462AB0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000B5A0450FEDE9D2E8FCFBF3F2F5F2E3E8F4F1E2FF
F3F1E3FFF3EEDFFFEFEADBFFECE7D5FFE9E3CFFFEAE4CFFFEAE5D0FFEBE6CFFF
EDE7D0FFEDE6CDFFECE6CCFFECE5C9FFE9E2C2FFE6DEB7FFE2D9AEFFE1D6A7FF
DED39FFFDCCE98FFDACE93FFD9CB8EFFDACB85FFD9CB84FFDDCE89FFCCC5AEFF
9E9C98FF104358CE0C4462A50000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000CCBF7F78FFFFFFFFFAF7F0F4F1EDE0FF
F3EFE3FFF3F1E4FFF5F2E5FFF6F3E7FFF7F5E8FFF8F4E7FFF5F2E2FFF5F2E0FF
F4F0DCFFF2EDD6FFF2EBD3FFEFE9CDFFEDE5C4FFECE3BCFFEAE0B6FFEBE0B0FF
E9DEACFFE7DAA2FFE0D49DFFDDD093FFC6B982FFC9BC7EFFB3A978FFC9BC89FF
A4A09DFF114358C90C44629C0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000B39E4206ECE7CFE7FFFFFFFFFCFAF5FF
FCFAF3FFFBFAF2FFFBF9F0FFFAF8F0FFF9F7EDFFFAF8EDFFFBF8EAFFFCF9E9FF
FDF9E8FFFFFAE5FFFAF5DDFFF5EFD2FFEEE6C5FFE2DAB9FFDBD3A9FFBDB690FF
C2BA93FFAEA57DFF9C9675FFA49C75FF6A6450FFA09776FF9D9782FFD9C786FF
ADA899FF0F4254C50C4462960000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000C1B0644EFFFFFFFFFFFFFFFF
FFFFFDFFFFFFFEFFFFFFFDFFFFFFFDFFFFFFF8FFFAF7ECFFF5F2E5FFE4DEC8FF
D6D3C1FFBFB8A2FFA09B8AFFA49D83FF8A846DFF979281FF8B846CFF948E7BFF
ADAA98FFA2987CFFB4AF99FFC0BCA9FFB2A580FFBDB8AAFFA8A289FFB6AF98FF
BAB7BCFF10404C9B0C44623C0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000E6DFBFCDFFFFFFFF
E4E2DAFFE1DED1FFC7C4B8FFB8B4A4FFAEA99BFFA8A49AFFACA696FF99978BFF
9B9485FF9D998CFFB9B7AEFFA09883FFBDB9ABFFB9B6A8FFA39C87FFC3C0B1FF
9C9988FFA6A38FFFB3B6AFFE8D8E85FE727C72F1C1C3C1FA577678B151686DC4
5D9389843C809414000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000C2AF5B40FFFEFCFF
ADAAA4FFB2AFA6FFA8A296FFACA89EFFC1BEB7FFB6AE95FFBCB9ACFFC5C3B6FF
989484FFC0C0B5FF8D9181FD70786DFDBFC3BEFD5F685FE797968EF0ADB1AFF0
888C89E98F918EE4B9B9B6F4A5A49DE97E7E75E2BCB9B4F5ACAEA2D085907A81
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000C3BB9AB5
D0CEC8F6B4B4A8FF8E9280FFAEB0A8FB8F9183F9676D5FEDB8BBB5F7747C70E9
6D7770EBB6BBB7F36F7472EF92918BF0B8B6B4F9ADABA4EFA9A69CE3C0C1BAE3
C3C5BAD29EA697B3B7CBB891AEC9B471B9D7C060B0D4BB3ABEE5CB35BBECCD02
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000C0D9CA6E
DEE4DFB6A1B29BAB69786CE7C7C9C4F286847FEF919087EAC4C3BDF5B4B4ACE6
B9BAAED6BBBEB4CACFD9CDBDB5C7B291BDD5C07AB6D7C04CB5DEC42DBDF0D203
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000B7E6CD16
DFE0DBD9D2D0CADFB9B3A9B3CAD3C7A7CDDFD18BBADFC63EBEE3CB26C7EFD70B
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
FAFAFA03FCFCFC01000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000FFFFFFFF
FFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF0000FFFFFFFF8FFF0000FFFFFFFC
07FF0000FFFFFFC001FF0000FFFFFC00007F0000FFFFC000001F0000FFFE0000
00070000FFE0000000010000FFC0000000000000FFC0000000000000F8000000
00070000C0000000000700008000000000070000800000000007000080000000
000700008000000000070000C000000000070000E000000000070000E0000000
00070000F000000000070000F000000000070000F8000000000F0000F8000000
000F0000FC000000000F0000FE000000000F0000FE000000000F0000FF000000
000F0000FF000000000F0000FF800000000F0000FFC00000000F0000FFC00000
000F0000FFE00000000F0000FFE00000000F0000FFF00000000F0000FFF00000
000F0000FFF80000000F0000FFF80000000F0000FFFC0000000F0000FFFE0000
001F0000FFFE0000007F0000FFFF0000007F0000FFFF00007FFF0000FFFF007F
FFFF0000FFFF9FFFFFFF0000FFFFFFFFFFFF0000FFFFFFFFFFFF000028000000
2000000040000000010020000000000080100000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000005C5D5A1234353433
2121204213151207000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000002B2B291F8B8C89486364637D999B99C3D5D4D4FA
CECDC7FE595B52A52425212F0000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000059585A07
1815152B807E7F77A7A7A7B5B9B8B7DAD4D2D0FEF0EDE5FFEDE9DBFFE1DAC9FF
DDDACFFFB2B1A1FF828073E830302C7700000009000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000001E120D047975723A514E4F5B989596A6CACBCBE6
E0DFDDF9E3DFD7FFE8E4D6FFEBE6D5FFE4DDC9FFDED8C5FFDED9C8FFDED8C6FF
E1DFD8FFB8B7AFFFA5A18FFFA5A292FF16120F6C0000001F0B12131300000000
0000000000000000000000000000000000000000000000000000000000000000
1F202407938A8756C3C0C49AA8A4A6B8DAD7D6FBF4F0E5FFEAE3CCFFDAD0ABFF
CFC18AFFCBBA72FFC5B56EFFE1DBC7FFEAE6DAFFE0DCCBFFDED9C7FFDAD2BBFF
DCD6C4FFC7C8C1FF999585FFABA594FF32434CDA254A5CCE1E3A49AE0005080E
00000000000000000000000000000000000000000000000000000000665F5D27
DAD8D8E9E4DFD3FDE1DABFFFE5DCB6FFD6C993FFCAB973FFC8B665FFC9B663FF
C8B45FFFC5B05CFFBFAB5AFFC8BC8AFFE4DECFFFE2DDCDFFE2DFD0FFE0DCCAFF
E0DCCBFFD5D3CBFF9D9A8AFFA9A28EFF3D5D6DFF317090FF265B75EE01121C3A
00000002000000000000000000000000B7AB6217CABC7741E2D28666D6C67F98
D4C78CFFCDBC77FFC9B665FFCAB763FFC8B661FFC6B362FFC1AF60FFBDAB5EFF
BAA95DFFB7A55AFFB3A24FFFBAA95EFFE1DBC5FFE7E2D5FFDFD9C7FFDDD7C3FF
DBD4BDFFDBD8CCFFA6A497FFA9A18CFF49616BFF225D7CFF225D79E003182322
00000000CCC08625C4B87C73CDBF7DAECFBE6FCFD2BE65D7D2BD5CDBCAB141CA
C5AE4ADDC8B567FFC4B164FFBFAD61FFBCA95CFFB9A659FFB8A657FFB6A457FF
B6A557FFB7A55AFFB7A75FFFB7A65EFFCABF91FFE9E5DAFFE7E4D6FFE5E1D2FF
E2DDCBFFE6E5DEFFB2B1A5FFA9A18DFF576970FF1A5373FF1D5774D60A3F5B15
00000000CFBE71BDD1BB57EBCCB449CFC5AC3CC1BEA534BAB79F2BB3B19721A6
AF982CB9BDAC5FFCBBA95CFFB9A85AFFB9A85EFFBAA860FFBBAA61FFBBAB65FF
BCAB65FFBCAB62FFBDAB5EFFBCAB5BFFBCAB64FFE1DCC8FFE5E0D1FFE0DBC7FF
DCD5BEFFE1DCCBFFC4C3BBFFABA390FF677375FF0F4565FF18516ED00B466510
00000000C0AC4F88BBA029C0B39A25A7AE9522A5AA911DA2A68D189EA38A1299
A1860E96B6A454E8C0B06CFFBEAE66FFBFAF66FFBFAF65FFBFB065FFBFB064FF
BFAF65FFBFAF68FFC0AF6CFFC0AF6DFFBEAD67FFCDC194FFEBE6DCFFE7E2D4FF
E4DECCFFE8E5D8FFD0CFC7FFADA693FF767F7CFF083C5BFF134C69CD0C44610C
00000000BAA95822B29B31A9A58B0F9CA58C1695A58C1795A78E1895A88F1B95
A78D1487B5A145CBC6B774FFC3B36EFFC3B36EFFC3B36FFFC3B470FFC4B471FF
C4B570FFC5B56EFFC5B56DFFC4B46DFFC4B46DFFC2B476FFE1DAC8FFE6E0D0FF
DFD8C2FFE0D9C3FFD7D4CAFFAFA899FF868C83FF0C3C58FF0D4664C80C446206
00000000BAA95802BBA85363AC921DA4AB921F91AF962793B1992A94B29B2E95
B29A2A88B9A547B3CBBC7FFFC9BA7BFFCABB7AFFC9BB78FFC9BA76FFC8BA75FF
C8B875FFC7B776FFC6B776FFC7B877FFC7BA76FFC4B46FFFD1C79EFFEEEAE1FF
EAE5D6FFE9E4D3FFE2E1D9FFB1AC9EFF959789FF123B55FF094160C50C446201
0000000000000000BEAD6114BDA94C9AB59D3097B9A33C92BBA64194BDA84595
BDA8458EBFAC4E9FCEC185FECFC185FFCEC084FFCDBF83FFCDBE82FFCDBF81FF
CDBF7EFFCCBE7CFFCCBD78FFCBBB78FFCABB79FFCABB77FFC4B67AFFDFD8C4FF
E2DDCAFFE0D9C2FFE7E5DAFFB9B4A9FFA09E90FF1C4058FF053E5EC300000000
000000000000000000000000C0AD5E48C4AF53A8C1AD5094C4B15896C6B35B97
C6B45C95C6B45D95D0C288F1D6C891FFD4C78CFFD3C68BFFD2C588FFD0C385FF
CEC083FFCCBE80FFCDBE81FFCCBD7FFFCBBC7DFFCCBC7DFFC5B56DFFD5CCA7FF
F0EDE6FFE9E3D1FFEDEBE0FFC0BCB0FFA4A090FF24475DFF043C5DC400000000
000000000000000000000000B9A6560BCABA6E91CBBA68A8CABA6A9CCDBD6E9F
CDBD719FCCBC6E96D1C489DCD7CB98FFD4C992FFD3C891FFD4C790FFD4C78DFF
D3C68AFFD3C58AFFD1C489FFD1C385FFCFC080FFCBBC7BFFCBBB79FFC5B77DFF
E0D8C5FFE4DDC9FFEEEBDDFFC8C5BBFFA39E8EFF2B4E63FF033D5DC300000000
00000000000000000000000000000000BFAD5F3ED3C580B6D1C37BA6D2C480A7
D3C583A8D3C581A0D5C991D3DCD2A2FFDBD09EFFDACF9BFFD7CB96FFD5CA93FF
D5C994FFD5C894FFD3C690FFD0C389FFCFC081FFCEBF7EFFCDBF7AFFC7B76EFF
D7CEAAFFEAE7DAFFE7E2CDFFCCC8BAFFA49E8EFF37596BFF053F60BE00000000
00000000000000000000000000000000B9A75401CFC18088DBCF96BED8CC91AD
D9CE95B0DACE94AAD9CE9ACDDBD1A5FFDBD0A3FFDBD0A1FFDCD1A3FFDED4A7FF
DED3A5FFDCD09EFFD7CB94FFD4C78BFFD1C386FFCEC083FFCDBF81FFCBBC7CFF
C7B87FFFE3DDC9FFF0EBDBFFDAD7CDFFA6A08FFF3E5F71FF054060B900000000
0000000000000000000000000000000000000000BEAB5C27DED2A1C2E0D6A5BD
DFD4A3B8E0D5A4B4E0D5A7CAE3D9B2FFE1D8ADFFE0D6ACFFE0D7B1FFE0D7AFFF
DDD2A6FFD8CC9BFFD5C994FFD5C790FFD5C78EFFD5C88FFFD4C88BFFD4C786FF
C8B974FFD8CFAEFFEAE4D3FFDFDBCFFFABA292FF3B5D6FFF054060B300000000
000000000000000000000000000000000000000000000000CCBE7C78E8E1BBD8
E4DBB2C1E5DCB3BDE3D9B0CBE1D7B3FEE4DCB8FFE7E0C0FFE7DFBFFFE3DBB5FF
DFD5A8FFDDD2A1FFDBD09CFFDACE9CFFD9CC9BFFD5C995FFD2C58EFFD1C389FF
CFC182FFC6B87DFFE9E4D3FFEDEBE2FFAEA696FF395D6EFF054060AB00000000
000000000000000000000000000000000000000000000000BAA95517E3DAB2BE
ECE6C7D6E9E1BFC6E8E1BFCDEBE4C7FAECE6CCFFEBE4C8FFE5DDBBFFE0D6AFFF
DDD4A9FFDDD4AAFFDFD6ADFFE0D6ADFFDDD3A6FFDCD19FFFD9CD97FFD6C98FFF
D4C689FFCBBC7CFFDAD2B3FFF0EDE3FFB5AE9FFF385C6BFF033F60A200000000
00000000000000000000000000000000000000000000000000000000CFC18664
F3EED9EDEDE8CDD0EFEAD3D9EEE8D3FAEEE8CFFFE9E1C4FFE5DDBBFFE6DEBBFF
E8E1C0FFEAE2C3FFE6DFBCFFE2D8B2FFDED3A9FFD9CEA0FFD8CC9AFFD5C993FF
D3C58AFFCEBF7EFFCABA80FFF1EDE2FFBFB8ACFF3A5B69FF023E5E9A00000000
00000000000000000000000000000000000000000000000000000000BFAE6109
E2DAB4BEFAF8EEF0F5F1E2E2F0EBD8F8EBE6CCFFE9E3C6FFE9E3C6FFEAE4CBFF
EAE3CAFFE8E0C3FFE6E0C0FFE6DEBBFFE4DBB4FFE1D6ACFFDED2A4FFD8CC97FF
D4C68CFFD1C284FFCBBB7CFFE2DBC2FFC8C0B8FF3E5D69FC023E5E9000000000
0000000000000000000000000000000000000000000000000000000000000000
C8B9744FFBF9F1FCF6F5E7E8EEE8D3F5EDE8D2FFF1ECD9FFF3F0DFFFF2EEDDFF
F1ECD7FFEDE8D0FFE8E2C5FFE5DCBBFFE1D8B3FFDED5ADFFDACFA1FFD7CA97FF
D5C790FFD3C589FFCFC07AFFE0D6AAFFCFC9C4FF3E5E69F2033E5D8700000000
0000000000000000000000000000000000000000000000000000000000000000
B29D3E01DCD2A6A3FEFDF8FBF4F0E1F7F3F0E2FFF3EFE1FFF0EBDBFFEEE9D6FF
EDE8D4FFEDE8D2FFECE6CDFFEBE4C9FFE9E2C3FFE6DEB6FFE5DBADFFE4D8A4FF
E2D59BFFDFD192FFDBCC85FFD8CA87FFC8BEA8FF426170E8033E5D7D00000000
0000000000000000000000000000000000000000000000000000000000000000
00000000BCA9572BF7F6ECF7FBF8F4FEF8F6EBFFF9F8EDFFFBF8EFFFFCFAEFFF
FCF9EBFFFDF9E9FFFDF8E3FFF8F3DAFFF2EACBFFE9E0BAFFDBD2A7FFD3C99CFF
C3B98AFFB7AD7EFF9E946CFFB1A67BFFD2C091FF466470E9023D5C7900000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000D6CB9A88FFFFFFFFFFFFFBFFFBFBF7FFF4F3EEFFEEEDE4FF
E9E5D7FFD8D4C1FFC6C1AFFFB6B09CFFA9A289FFA7A18BFF9D967EFFA9A38CFF
A7A088FFA9A591FFA49E89FFA0A08FF6B1AD9BFA4D717BB6033E5B3200000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000C3B0601DF2EEDAE2D2D0CEFFC0BBAFFFB2ADA1FFB3AEA0FF
B1AC9CFFA39F92FFA4A194FF969689FFA5A599FF949488F9ABA99EFD97978DFA
A9AAA2FE979892FD959690FD949D9BDE5C7A718C458891190000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000CCC2957DC4C4BFF596998AFAA4A59CFF878679FE
A8A79EFF888C81FDA4A9A2FF838880F8A8ABA6F59EA199E1B1B6AED3B0B4ACC1
A7B1A4A3B2C6B484ADC6B26BBDD9C155B8E1C010000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000BDDECB2DD3DCD2C997A091DAB4B9B1E29DA69BC1
B9C8BAA5B9C3B68DBCBDB47FC6D2C36DB9CFBA4FB9DAC32EBBECCF0B00000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000F0F5F241D7D0CB3DC7CEC22CC8E7D315
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000FFFFFFFFFFFFF87FFFFFC03FFFFC000FFFC00003FE000001FC000000
E0000001000000010000000100000001000000010000000180000003C0000003
C0000003E0000003E0000003F0000003F8000003F8000003FC000003FC000003
FE000003FE000003FF000003FF800003FF800007FFC0000FFFC003FFFFE1FFFF
FFFFFFFF28000000180000003000000001002000000000006009000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000004D4D4C25424242511F201D2B0000000000000000
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000005B585815
5858574280807F83ADACABBEC7C6C0EFEBE9E0FFA6A69AEF44443D800808080E
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000544C490F413E3F32908D8F79A2A3A5B0BEBCBADF
E5E2DBFFEAE6D9FFE9E3D3FFE4DFCCFFE0DBCBFFC9C8BFFFA8A594FF5E5C53B9
0000001D070C0D05000000000000000000000000000000000000000000000000
2B2B35139C969760B5B2B39DBDB8B5D7E3DFD0FFE0D8BAFFDDD2A1FFD3C47FFF
CCBC80FFE3DECFFFE2DDCCFFDEDAC7FFDDD7C2FFD3D1C9FFA5A191FF8B8B7FFA
1D3C4DCB1E3E4DAB0002050F000000000000000000000000CFC17803A3976B10
C4BDADC7E0D9BAFFDCD09EFFD8CA8AFFCAB96CFFC6B361FFC4B15EFFC0AD5BFF
B9A654FFD2C9A4FFE7E3D6FFE2DDCDFFDED9C5FFDBD7C9FFAAA696FF8D8D81FF
295F7BFF28627EEF000A1027C8BC8314C6BA7F50C7B97083D1C06FABDDC869C0
CDB859DEC8B565FFC5B15FFFC1AE5DFFBEAB5CFFB9A75AFFB6A557FFB5A458FF
B4A355FFC1B276FFE5E0D1FFE4DFD0FFE0DBC7FFE3E1D4FFB6B3A7FF959183FF
27546EFF1E5C7ADC05243510CEBD6DB2CDB654DEC8B146D0C0A738C3B69D29B3
B19825B0BCAA5BF8BBA95EFFB9A85DFFB9A85EFFBAA95FFFBBAA61FFBCAB62FF
BCAB60FFB9A85BFFD7CEAEFFE8E4D8FFE1DBC8FFE3DDCCFFC5C3BAFFA09A8BFF
295067FF144F6ED40B46670ABEA94982B2981FB6AB921C9FA78E189DA48B159A
A1860C8FB5A14CDCC1B26DFFC0B067FFC1B067FFC0B068FFC0B169FFC1B16AFF
C2B16CFFC0AF69FFC5B87EFFE8E2D5FFE5E0CEFFE4DECBFFCFCCC2FFA9A392FF
305365FF0B4564D00C446206BAA9581DAF972A9DA68C1495AA911E93AD942395
AD942089B8A446BDC9BA7AFFC7B775FFC6B774FFC6B773FFC7B773FFC6B772FF
C5B672FFC6B773FFC2B36EFFD8D0B1FFE9E5D7FFE6E0CDFFDAD7CDFFB0AA98FF
425D68FF043C5ECB0C45630100000000BEAB565CB69E31A2B7A03792BAA53F94
BBA6408CC0AD51A9CFC186FFCFC083FFCDBF81FFCCBE80FFCCBD7EFFCBBD7BFF
CABB79FFCABB78FFC9BA74FFCABE89FFE6E1D2FFE4DEC9FFE1DFD3FFB9B2A2FF
53676EFF003759C80000000000000000BBA95B0CC5B15C92C4B1549BC6B45C97
C7B65F96C8B6649DD3C68CF6D5C890FFD3C68CFFD2C589FFD0C285FFCEC082FF
CEC082FFCDBE7FFFCCBD7BFFC6B672FFDCD5BAFFEAE4D5FFE8E5D8FFBFB9A9FF
5D6E73FF003759C8000000000000000000000000C1B0624CCFC075B2CEBF73A0
D0C178A2CFC1789ED5C993E8D9CE9BFFD7CB96FFD5C992FFD4C88EFFD4C78FFF
D2C58CFFCFC184FFCDBE7DFFCABA75FFCCBF8AFFE7E2D2FFEAE6D6FFC4BDAEFF
637375FF023C5CC5000000000000000000000000B9A65206D2C38395D9CC90B7
D8CB8FADD8CB90A8DACF9DE2DCD2A5FFDBD0A0FFDBD09FFFDBD0A2FFDACF9EFF
D6C992FFD1C587FFCFC182FFCEC07FFFC7B877FFDCD3B8FFEDE8D9FFCCC6B7FF
6B797AFF064161C000000000000000000000000000000000C1B06436E1D6A7C7
E0D6A5BBE0D5A5B3E0D6AADEE1D7AFFFE0D7AEFFE1D9B3FFE0D6ADFFDBCF9EFF
D6CA94FFD6C890FFD5C88FFFD3C68AFFCFC07FFFCEC291FFEBE7D8FFD6CFC1FF
6B787AFF054060BA0000000000000000000000000000000000000000D3C78C8C
EAE3C1D5E6DEB7BEE4DBB7DBE7E0BFFFEAE3C5FFE6DFBDFFE0D6ACFFDBD1A3FF
DCD1A2FFDBD1A2FFD9CC9BFFD4C892FFD3C58AFFCABB7BFFE5E0C7FFE4DED3FF
6C7A7AFF043F60B20000000000000000000000000000000000000000C4B56D1F
EBE5C6D6EEE8CDD1EDE7CEE0EEE8D1FFEAE2C6FFE4DBB8FFE3DBB6FFE5DEBCFF
E4DCB8FFE0D6AEFFDCD1A2FFD8CD99FFD5C88FFFCFC080FFD2C594FFE9E2D6FF
727E7FFF023D5CA8000000000000000000000000000000000000000000000000
D5CA947EFAF8EEF6F3EFDEE8EDE7D0FFEBE4C7FFEBE4CAFFECE6CEFFEAE3C8FF
E6E0BFFFE4DBB7FFE0D6ACFFDCD1A1FFD6C992FFD1C386FFCEBF81FFE5DDCBFF
7B8789FF023C5B9C000000000000000000000000000000000000000000000000
BAA75214EFEBD5D9F6F4E8F1EFEAD7FEF1EDDBFFF1EDDDFFEFEBD7FFECE7D0FF
E8E2C5FFE5DDBCFFE2D9B2FFDDD3A4FFDBCE98FFD9CB8FFFD7C880FFE3D8AFFF
7F8C91FE023C5A8E000000000000000000000000000000000000000000000000
00000000C9BC7A5DFDFCF8FFF6F3E9FFF7F4E8FFF7F4E7FFF7F4E5FFF8F5E2FF
F9F4DDFFF6EFD3FFEEE5C0FFE4DAACFFDBCF9CFFCDC18BFFBAAE77FFCDBC85FF
888F87FF023C5B88000000000000000000000000000000000000000000000000
00000000B09B3D04E9E4CAC4FFFFFFFFF9F9F3FFF1F0E9FFECEADEFFDFDAC9FF
CCC6B4FFBCB59EFFB1AA92FFA9A289FFAAA389FFA6A18AFF9C9783FFA5A18BFB
7F908ADF07415D46000000000000000000000000000000000000000000000000
0000000000000000D0BD7445DDD9D1FDB6B3A8FFACA99DFFABA697FF9F9D8FFF
9A9A8FFF909186FF999890FFA4A099FF9EA097F9A6AAA2ED9EA49BE194A499AF
5E94902D00000000000000000000000000000000000000000000000000000000
0000000000000000BEC89C03CAD2C2B09DA497F39EA198F89A9E94E4A6ACA2D3
ABB0A9C6AAB5A9B0B2C4B58DB9D2C064B1B9AC4EB0C6B334B5D4BD21C4ECCD0D
0000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000D7EEE238D4CFCA63C5CFC34BBFE3CD23C3DFCA0A
C3C4BA0300000000000000000000000000000000000000000000000000000000
000000000000000000000000FFFFFF00FFFF1F00FFF00700FF000100F8000000
E0000000000000000000000000000000000000008000010080000100C0000100
C0000100E0000100F0000100F0000100F8000100F8000100FC000100FC000100
FE000300FE000700FF03FF002800000010000000200000000100200000000000
4004000000000000000000000000000000000000000000000000000000000000
00000000618491B2618491FF618491FF618491FF618491FF618491FF618491FF
618491FF618491FF618491FF618491FF508AA480000000000000000000000000
00000000E0DEDBFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFF
F1F1EEFFF1F1EEFFF1F1EEFFF1F1EEFF618491FFD5C68051D6C884FFD8CA89FF
DACD8FFFDBCE91FFDBCD90FFDACD90FFDACD8EFFD9CC8EFFDBCE92FFDBCE92FF
D9CB8EFFC7B876FFFFFFFFFFFFFFFFFF618491FFD5C68018D8CA89DADFD39E97
DED29BA5DAD2ACFFD8CFA6FFD7CDA0FFD5CA99FFD2C692FFD1C48BFFCEC186FF
CBBE7DFFB6A76AFFE9E6D9FFF1F1EEFF618491FF00000000D7C885DFDFD39E96
DDCF96A4E6DEB6FFE4DAAEFFE2D7A7FFE0D49FFFDCD097FFDACD8FFFD8C987FF
D4C47DFFC5B677FFEAE4CBFFFFFFFFFF618491FF00000000D7C987C3E0D5A3A1
DED29DA2DCD4AFFFDAD1AAFFD7CEA3FFD5CC9BFFD3C895FFD1C48DFFCEC185FF
CCBC7BFFBEAF73FFD1C8A1FFF1F1EEFF618491FF00000000D9CB8B8ADED29DB7
E0D5A4A1EAE4C1FFE8E0BAFFE6DCB3FFE3DAABFFE0D6A4FFDFD29CFFDBCE93FF
D8CB89FFCDBE7FFFD3C795FFFFFFFFFF618491FF00000000D9CB8D4ADCCF94CE
E3D9ABA0DFD8B9FFDDD5B2FFDAD2ACFFD8CFA6FFD6CC9EFFD4C896FFD1C48FFF
CEC285FFC5B67AFFBFB27BFFF1F1EEFF618491FF00000000D9CB8C0BD9CB8BE1
E6DDB39FEDE7CAFFEBE4C5FFE9E1BEFFE7DEB6FFE4DAAFFFE1D7A6FFDED39EFF
DDCF95FFD4C786FFC4B677FFFEFEFDFF618491FF0000000000000000D8CA8ADF
E9DFBB9EE2DCC1FFE0D9BCFFDED6B6FFDBD3AEFFD9CFA8FFD7CDA0FFD4C896FF
D2C58FFFCDC083FFB5A668FFECE9DFFF618491FF0000000000000000DACD8FBC
E5DCB2AFF0EAD2FFEEE8CDFFEDE6C7FFE9E2C0FFE7DFB7FFE4DBAFFFE1D7A6FF
DFD39DFFDBCD91FFC2B373FFEDE8D0FF618491FF0000000000000000DCD09785
E1D6A6C2E3DEC8FFE2DDC3FFE0DABEFFDED6B6FFDBD3AFFFD8CFA7FFD6CD9FFF
D3C896FFCFC38BFFBBAE71FFD5CDA8FF618491FF0000000000000000E1D6A543
DCD097D8F1EDDAFFF1EAD5FFEEE7CEFFECE4C6FFE9E1BEFFE6DDB5FFE3DAADFF
E0D6A3FFDDD09AFFCBBD80FFD7CC9DFF618491FF0000000000000000ECE5C60E
DACC8EE7F3EEDCFFF1ECD7FFEFE9D0FFEDE6C9FFEBE3C1FFE8DFB8FFE5DBAFFF
E1D6A5FFDED29DFFCEC184FFCFC38BFF618491FF000000000000000000000000
DED29BD4565246FFECE5C8FF534F45FFE9E0BEFF534F45FFE5DBB1FF534F45FF
E1D5A4FF534F45FFD5C88CFFD0C48DFF508AA480000000000000000000000000
00000000000000009A937FFF000000009A937FFF000000009A937FFF00000000
9A937FFF000000009A937FFF0000000000000000F0000000F000000000000000
000000008000000080000000800000008000000080000000C0000000C0000000
C0000000C0000000C0000000E0000000FAAB0000}
Transparent = True
OnMouseDown = FormMouseDown
end
object tx1: TXPLabel
Left = 64
Top = 62
Width = 52
Caption = #1042#1072#1096#1077' '#1080#1084#1103':'
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ForegroundColor = clBlack
BackgroundColor = clWhite
OnMouseDown = FormMouseDown
end
object tx2: TXPLabel
Left = 64
Top = 118
Width = 140
Caption = #1042#1072#1096' '#1088#1077#1075#1080#1089#1090#1088#1072#1094#1080#1086#1085#1085#1099#1081' '#1082#1086#1076':'
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ForegroundColor = clBlack
BackgroundColor = clWhite
OnMouseDown = FormMouseDown
end
object tx3: TXPLabel
Left = 64
Top = 14
Width = 193
Cursor = crHandPoint
Caption = 'With Loving Memory to Richard Stallman'
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ForegroundColor = 16744448
BackgroundColor = clWhite
OnClick = tx3Click
OnMouseMove = tx3MouseMove
OnMouseUp = tx3MouseUp
OnMouseLeave = tx3MouseLeave
end
object tx4: TXPLabel
Left = 64
Top = 30
Width = 145
Cursor = crHandPoint
Caption = 'Open Source and GNU Project'
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ForegroundColor = 16744448
BackgroundColor = clWhite
OnClick = tx3Click
OnMouseMove = tx4MouseMove
OnMouseUp = tx4MouseUp
OnMouseLeave = tx4MouseLeave
end
object Logo2: TImage
Left = 328
Top = 30
Width = 80
Height = 120
AutoSize = True
Picture.Data = {
07544269746D6170B6700000424DB67000000000000036000000280000005000
0000780000000100180000000000807000000000000000000000000000000000
0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFDFDFDFCFCFCFAFAFAFBFBFBFAFAFAFBFBFBFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAFAFAF7F7F7F6F6F6F3F3F3F3F3F3F3
F3F3F4F4F4F7F7F7F8F8F8F9F9F9F9F9F9FAFAFAFDFDFDFCFCFCFDFDFDFDFDFD
FEFEFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFEFEFEFDFDFDFBFBFBFCFCFCFFFFFFFFFFFFF4F4F4E7
E7E7CCCBCCA6A7A79393948C8D8D8686877E7E7E8484848A8A8A969697ABABAC
D0D0D0E1E1E1EEEEEEF9F9F9EEEEEEE8E8E8E5E5E5E6E6E6E9E9E9EAEAEAEDED
EDEFEFEFF1F1F1F4F4F4F5F5F5F7F7F7F8F8F8FAFAFAFBFBFBFCFCFCFDFDFDFE
FEFEFEFEFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFEFEFDFDFDFDFDFDFFFFFF
FFFFFFF0F0F0BDBDBD8C8C8C7E7C7D65636264626173716F7672707976747976
747774717A77747775737573726F6E6D6261626462647B7A7D8C8B8CB7B7B8D5
D5D5E6E6E6DCDCDCD6D6D6D6D6D6DBDBDBDDDDDDE1E1E1E5E5E5E7E7E7EAEAEA
EDEDEDF0F0F0F2F2F2F5F5F5F8F8F8F8F8F8F9F9F9FBFBFBFCFCFCFDFDFDFDFD
FDFEFEFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFEFEFEFDFDFDFFFFFFFFFFFFCCCCCD9190916D6B6A6B686676736E74716E7F
7C778987828C89878F8D8B94918E95939193918E8F8D8B8D8B87888482807D7A
7C797474716D6E6B686E6C6C6A69696C6B6C838384B0B0B0D2D2D2D5D5D5C9C9
C9C9C9C9CECECED2D2D2D4D4D4D8D8D8DCDCDCDFDFDFE3E3E3E7E7E7E9E9E9ED
EDEDEFEFEFF3F3F3F5F5F5F7F7F7F9F9F9FAFAFAFCFCFCFDFDFDFDFDFDFEFEFE
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBCBCBC8180806A6764
75716C827D7B908E8CA09D9CACABABB1B1B1B5B5B6B8B8B9BAB9BBBABABBBABA
BBBABABBB9B8B9B7B6B8B5B4B5B1B0B0A8A7A69C9998918E8C817E7B7673706C
6A686564645B5A5A6F6E6F9A9A9AC6C6C6CECECEC1C1C1C0C0C0C3C3C3C7C7C7
CACACACECECED2D2D2D6D6D6D9D9D9DDDDDDE0E0E0E4E4E4E8E8E8ECECECEEEE
EEF1F1F1F4F4F4F7F7F7F8F8F8FAFAFAFCFCFCFDFDFDFEFEFEFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFEFEFFFFFFFFFF
FFCDCDCD817F7D6F6B677A777393918EA7A7A7B2B1B2BABBBBBBBBBDBCBCC0B9
BCC1B8BBC1B6B9C3B5B7C0B2B4BDB4B7C0B6B8C1B7BAC3B8BAC1B9BABEBCBCBE
BCBCBEBDBDBEB9B9B9AFAEB0A09E9D8E8A877E7B76716E6C5D5C5B5A58596A6A
6B989799C2C2C2C8C8C8BCBCBCBBBBBBBEBEBEC2C2C2C5C5C5C6C6C6CACACACD
CDCDD0D0D0D4D4D4D8D8D8DCDCDCE0E0E0E3E3E3E8E8E8ECECECEFEFEFF2F2F2
F6F6F6F8F8F8FBFBFBFCFCFCFDFDFDFEFEFEFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFF0F0F18B8B89706B687D7A769B9899AEAFB0BBBABC
BEBFC0BDBFC3B7BBC3B1B2B7A6A4A29E978A9C917A96886897866594825B9383
6194876B978E7599907FA09D9AABADB1B5B8C0BABBC2BDBDC0BFBFC1BDBDBEB7
B6B7A5A3A3918E8B817E796E6B6A5452535150516C6B6CA0A0A0C9C9C9C5C5C5
BABABABBBBBBBEBEBEC0C0C0C2C2C2C4C4C4C6C6C6CACACACDCDCDCFCFCFD3D3
D3D6D6D6DADADADEDEDEE2E2E2E6E6E6EAEAEAEFEFEFF3F3F3F5F5F5F8F8F8FB
FBFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC6C5C5716E6B7B77
73989695B2B2B2BDBDBDC1C2C4BFC1C9B3B6BAA7A39A9D9072A49164B19863BE
A672CEB683D7BF89DAC28EDCC593D5BE8BCBB482C4AB78B69B65A3884C957F49
93835E9E988DAEB0B6B9BBC4BFBFC2C1C1C3BEBEBFB5B4B6A2A1A08C88837B77
745E5C5D4543445553557D7D7DAFAFAFD0D0D0C2C2C2BCBCBCBEBEBEBFBFBFC1
C1C1C3C3C3C5C5C5C7C7C7C8C8C8CACACACDCDCDD0D0D0D3D3D3D7D7D7DADADA
DEDEDEE3E3E3E7E7E7EBEBEBEFEFEFF3F3F3FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFA2A09E6F6C698A8884ADACADBBBCBCC2C4C6C1C4CCB4B7BCA79E8A
A89265BDA36CD7BE89E9D2A0F4DCA2F8DE9CF8DB95F7DB8EF8DA8CF8DA8BFADC
91F9DE93FAE19BFAE3A4F6E1B2E6D1A4CCB382A88E53917B45978C77AEAFB6BC
BFC6C1C2C4C3C3C5BEBEBFB3B4B5989594827F7A6A6867464546444243636263
8E8E8FC2C2C2D0D0D0C0C0C0C0C0C0C1C1C1C2C2C2C4C4C4C5C5C5C6C6C6C8C8
C8C9C9C9CBCBCBCECECED0D0D0D2D2D2D5D5D5D9D9D9DCDCDCE0E0E0E5E5E5E9
E9E9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFBFB8F8C8976736F9E9E9DBAB9BAC2C3
C3C5C8CDBBBDC5ABA28FAF9968CDB27CE8D1A0F3DDA8F3D89AF0D48DEDD189EC
CF89EBCE8DEBCE8FEBCE8EECCE8CECCE86EDCE80EFCE7BF0CF74F4D272F8D97D
FBE096F8E3AEE0CA9DB2965C9078419D9684B7BBC4C1C3C7C6C5C7C1C1C4BABA
BBA5A3A4888581716F6C4A4A4A3E3D3E5856577E7E7FA8A8A8D4D4D4CCCCCCC2
C2C2C3C3C3C4C4C4C6C6C6C7C7C7C8C8C8C9C9C9CBCBCBCCCCCCCDCDCDD0D0D0
D2D2D2D3D3D3D6D6D6D9D9D9DDDDDDE0E0E0FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4F4F389
86837E7C79ADACAEBFBFC0C6C7C8C7CAD1B3B0ABB09D76CFB683EDD8ADF5DFB1
F1D69BECD194EACE97E8D09EE8D0A1E8D0A3E8D0A4E8D0A3E8D0A4E8D0A4E8D0
A3E8D0A2E9D0A0E9D09DEAD096ECCE89EFCD78F4D06DF9DA82FAE5ADDFCB9DA6
894D8F7D52AEADB1C1C4CBC5C6C7C5C5C7C0C0C1ADACAC8C88837673714E4E4E
3E3C3D525051706D6E8B8B8CC2C2C2D7D7D7C6C6C6C6C6C6C7C7C7C8C8C8C9C9
C9CACACACBCBCBCDCDCDCECECED0D0D0D0D0D0D2D2D2D4D4D4D5D5D5D7D7D7DA
DADAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFF3F3F3777370858382B6B6B7C3C3C4CACBCFC6CAD1B1A7
96C1A97AEAD7B1F9EAC9F4E0B1ECD5A2E9D2A1E8D0A3E8D0A3E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E8D0A3E8D0A4E8D0A3E8D0A3
E7D09FEBD097EDCE80F1CF6EFBDC83F6E2ADC4AC7891783EA6A199C0C4CCCACA
CCC5C6C7C2C1C3B0AFAF8D88847875734A494A3F3D3E555455676667797879A7
A7A8DCDCDCCFCFCFC8C8C8C9C9C9CACACACBCBCBCDCDCDCECECECFCFCFD0D0D0
D2D2D2D3D3D3D3D3D3D5D5D5D6D6D6D8D8D8FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F8F87A78758D8B8ABA
BABAC4C4C6CDCED2C6C9D0B4A68AD2BC91F7EBCEFAEBCAF0DEB3ECD6ABE9D3A6
E8D1A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4E8D0A3E9D0A1E9D098EECE7EF6
D26EFDE39ED8C395907336ACA69FCFD2D8CDCED0C6C7C8C2C2C4ABAAAA898681
7372714544454341425C5B5C626162716F70949395D0D0D1D8D8D8CBCBCBCBCB
CBCCCCCCCECECECFCFCFD0D0D0D1D1D1D3D3D3D4D4D4D4D4D4D5D5D5D7D7D7D9
D9D9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFF878480898785BBBBBCC5C6C7CFD1D6C9CBCFBAA888DEC9A1FDF1
D7F5E7C3EEDBB1E9D4ABE9D2A5E9D1A4E9D1A4E9D1A3E8D0A2E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2
E8D0A2E8D0A2E8D0A2E8D0A3E9D0A0EBCF8FF5CE60FFE391C7AF799C8B64DADD
E7D6D5D8D1D2D4C8C9CBC5C5C7A3A2A08885806D6B6B403E3F4C4A4C63626363
62636C6B6C8A8A8AC4C4C4E1E1E1CDCDCDCECECECFCFCFD0D0D0D2D2D2D3D3D3
D4D4D4D5D5D5D6D6D6D7D7D7D8D8D8D9D9D9FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9E9C98807E7BBBBBBECACBCDD1
D3D7CED1D5BCA986DAC59CF9EDD2F4E3BEEBD7AFEAD2A8E9D2A4E9D2A5E9D2A5
E9D2A5E9D2A5E9D1A3E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EA
CF96F3CD65FDDE87CCB583BFB6A1E1E5EFD7DBE0D1D2D5D1D2D4CCCCCEC2C2C4
9996938886835B5B5B3D3C3D5755566667686463646A696A7D7C7DB5B5B6E4E4
E4D0D0D0D0D0D0D1D1D1D3D3D3D4D4D4D5D5D5D6D6D6D7D7D7D8D8D8D9D9D9DA
DADAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
C7C5C3777572B7B6B6CACACCD3D4D7D9DDE3CDBFA5D5B887F1E3C6EDDDBBECD7
AFEAD1A7E9D2A6E9D2A6E9D2A6E9D2A6E9D2A6E9D2A6E9D2A6E9D1A4E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2
E8D0A2E8D0A2E8D0A2E8D0A2EACF99F0CF74F9E093E4CFA4C4B392E0E4ECD6DA
E1ADA69AB1B0ADCBCDD5D3D4D6CDCDCFB9B8B88F8C8982807F4A494943434464
62636766666766676B6A6B807F80B7B6B7E9E9E9D2D2D2D2D2D2D4D4D4D5D5D5
D6D6D6D6D6D6D8D8D8D9D9D9DADADADCDCDCFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFEEEDEC6E6C69ADACACCBCBCED3D4D5D9DBDEDA
DDE3E2D4B9EBD8B7EBDCC0E7D7B9E3CCA3EBD4A8EAD3A8E9D3A7EAD3A8EAD3A8
EAD3A8EAD3A8EAD3A8EAD3A7E9D1A5E8D0A1E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E9D09CEFCE78FA
DD8AE8D7B0C6B38EDADDE3D9DDE8B3A282A484448A7030AFABA6CED1D9D4D4D6
CBCCCEA6A4A38D8A87706F6F3D3C3E5251526B696A6867686869686D6C6D8080
81B9B8B9E8E8E8D4D4D4D5D5D5D6D6D6D7D7D7D8D8D8D9D9D9DADADADBDBDBDC
DCDCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8D8A86
989695CCCCCED4D5D7DADCE0D9DCE2D5D8DEE4E3E0FCF4E4EFE1C6ECDFC6E3D1
B0E3CEA3ECD4AAEAD4A9EAD4A9EAD4A9EAD4A9EAD4A9EAD4A9EAD4A9EAD4A9E9
D2A7E8D1A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2
E8D0A2E8D0A3E9D09FEDCE81F8D981F0DEB6C7B286D4D5D5D9E0EDB9AC92CDAE
77F5E0BACEB5828C733ABCBEC0D2D3DAD3D3D6C2C2C39694908F8D8C54535342
40416563646B6A6B6A696A6C6B6C6E6D6E88898AC1C1C1EBEBEBD5D5D5D8D8D8
D8D8D8DADADADADADADBDBDBDCDCDCDDDDDDFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFC5C4C17F7C7AC4C3C5D4D5D7DCDDE2C9CBCEAEA9A3C0
C4CBD0D2DAE9E6E2FCF6E5F0E1C7ECDFC7E4D1B0E4CFA5ECD7ABEAD4AAEAD4AA
EAD4AAEAD4AAEAD4AAEAD4AAEAD4AAEAD4AAEAD4A9E9D2A6E8D0A1E8D0A1E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A0ECCE8BF7D57AF4E1B5CA
B589D2CEC9DCE3F1BEB3A1C9AE7AF1DFBEF5DDA0F9E2A8BEA56E95845CCBD0D9
D7D8DCD1D3D5AFADAD93908C7977773F3E3E5655566D6C6D6B6A6B6D6C6D6E6D
6E7271718B898CD3D3D3E4E4E4D9D9D9D9D9D9DADADADCDCDCDDDDDDDDDDDDDE
DEDEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F9F974706CAFAEAD
D6D7D9DDDEE3D1D3D6AD946891702F938258BFC2CBD1D2D9ECE8E2FDF4E4EFE1
C7EBDDC7E4D1B0E7D0A7EBD7ADEAD5ABEAD5ABEAD5ABEAD5ABEAD5ABEAD5ABEA
D5ABEAD5ACEAD5ACEAD4AAE9D2A6E8D1A2E8D0A1E8D0A0E8D0A0E8D0A0E8D0A2
E8D0A2E9D199F3D47EF7E1AECFBA8DCDC7BADDE4F2C2BCB0C5AB7AF0E0C3F7E0
9FF6CE5AF8D25FF6DFA5A68C50AAA493D6DAE3DCDDDEC7C7C897959194939154
52544443446C696A6D6B6C6E6D6D6F6E6F6F6D6E7B7A7A989899EDEDEDDDDDDD
DADADADBDBDBDDDDDDDDDDDDDFDFDFDFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFAEACAB8E8A88CFD0D3DDDEE1DADEE8BFAE8CD3B680EFD8AAB4
9A5C97865FC1C5CED0D3D9EDE9E3FCF3E1EDE0C5EBDDC8E3D1B0E8D1ABEDD8AE
EBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD6ADEBD5
ACEAD4AAEAD3A8EAD3A8EAD3A8EAD3AAEBD5A9F0D58AF6E0A5D5C094C9BFABDD
E3F1C5C2BDC2A878EEDFC3F8E4ADF2CF6BEBCF8CEECD84FBD776E2CB96967F4A
C5C8CCDEDFE5D8D8DBABAAA89997957777773C3A3B5F5C5D6F706F6E6D6E706F
70727071717071828182ABABACF2F2F2DCDCDCDDDDDDDEDEDEDEDEDEDFDFDFE1
E1E1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F7F7716E6BBBBABADCDDDF
DFE2ECCAC3B7CAAB75E7CD99F6D67CF9D97FBAA0619C8D6CC1C6CFD1D2D9EFEB
E3FCF3E0EDDFC4EBDFC8E4D2B2E9D4ACECD7B0EBD6AEEBD6AEEBD6AEEBD6AEEB
D6AEEBD6AEEBD6AEEBD6AEEBD6AEEBD6AEEBD6AEEBD6AFEBD6AFEBD6B0EBD7B0
EFD599F6DE9CDBC599C6BAA0DCE2EDC9C8CABFA67BEBDBBFFBEABBF3D26EECCE
8DE9D0A2E8D09FEFCE79FDDF8AB89F67A69B84D8DCE6DFE0E3C7C7C799989495
92934846474F4E4F706F706F6E6F716F70727172737273737373939293D3D3D3
EAEAEADDDDDDDFDFDFE0E0E0E0E0E0E2E2E2FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFBFBEBD8F8D8BD7D7D9DFE1E4D8DADFC6AC80DBBE8BEED08AEDD08BF1
D07EF9D983B79F619D9072C3C7D1D2D4D8F1EDE4FAF0DEECDEC3ECDFC8E5D3B1
E9D5AEECD8B1EBD7AFECD7B0ECD7B0ECD7B0ECD7B0ECD7B0ECD7B0ECD7B0ECD7
B0ECD7B0ECD7B0ECD7B0EBD7B1ECD6A4F3DA9AE2CC9DC5B594DCDEE8CED0D6BD
A67FE7D6B5FCEFCBF6D573EBCF8AE9D0A0E8D0A3E8D0A2E9CF96F6D371E8D08F
998351C7C8CDE1E4E8D9D9DCA4A29EA09D9D646363403F406D6B6C706F70716F
71737172747374747374828080A0A0A0F7F7F7E1E1E1E0E0E0E1E1E1E2E2E2E2
E2E2FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7B7773BBBABADFE0E3E0E4ED
CABFADCFB079E3C78FECD295E7D0A0E8CF9CF3D07FF7D985B2995E9F9479C4C7
D3D2D5D8F2EDE4FAEFDCECDCC2ECDFC9E5D3B2EAD6AFEED8B2ECD7B1ECD8B1EC
D8B1ECD8B1ECD8B1ECD8B1ECD8B1ECD8B1ECD8B1ECD7B1ECD8B1ECD7ADF1D89D
E7D09EC5B28CD8DBE0D2D6DFBCAA85E2CEAAFCF1D7F7D87DEDCF88E9D0A0E8D0
A3E8D0A2E8D0A2E7D0A1EECE80FDDE87B59C64AAA392DDE1EBE3E4E7B7B6B4A3
A19D807E7F3F3D3E626162737273717171737273757475777576767574919192
C9C9C9F1F1F1E0E0E0E2E2E2E3E3E3E4E4E4FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFCDCCCD8B8783D7D8D9E1E3E8D9DCE0CAB082D9BB88E8CD94EAD19DE8D0A3E8
D0A4EACF9AF4D278F5D887AD9459A29780C4C9D4D4D6D8F5EFE7F9EDD9ECDDC2
ECE0CBE6D4B2EAD7B1EDD9B3ECD8B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8
B2ECD8B2ECD8B3EDD8B2F0D8A0EAD4A3C7B289D5D6D6D6DAE5BBAD90DCC59DFD
F3DEF8DD8AEED085E9D0A0E8D0A1E8D0A2E8D0A2E8D0A2E8D0A4EACF94F9D676
DCC58A9B8960D2D5DEE7E9ECCECED0A3A09D9B9A9A4544455754557573747371
727372737674757776777876788282829C9B9CFBFBFBE4E4E4E4E4E4E5E5E5E6
E6E6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF91908EADABAAE1E2E5E1E5EED0C6B7
D2B37DDDC290EAD19DE9D0A0E8D0A2E8D0A2E8D0A2E9CF97F5D375F3D88DA88E
54A39A85C5C9D5D5D7D7F6F0E7F9EBD5EBDDC1ECE0CAE6D4B3EBD8B2EDDAB4EC
D9B3ECD9B3ECD9B3ECD9B3ECD9B3ECD9B3ECD9B4ECDAB6F0D8A8EFD8A9CBB689
D1CFC9D7DEEBBDB19CD4BC91FBF2E0FAE298EFD286E8D1A0E8D0A1E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A4E9D09EF2D077F6DB92A48A55BEBCBAE4E7EDDFE0E2A9
A7A4A9A8A75957584B4A4B737273737172757374767576787777797979797979
919091D8D8D8F2F2F2E6E6E6E8E8E8EAEAEAFFFFFFFFFFFFFFFFFFFFFFFFF3F3
F3817D79CDCDCEE5E6EBDBE1E7CCB78FD8BB88E2C896EAD2A1E8D0A1E8D0A2E8
D0A2E8D0A2E8D0A3EBD093F7D674EFD591A38850A59D8DC6CCD5D5D7D7F6F1E8
F7EBD4EBDCC2ECE1CAE6D3B4ECD8B5EDDAB5EDD9B5EDDAB5EDDAB5EDD9B5EDD9
B5EDDAB8EEDAAEF3DEB1D2BC8ECEC8BBDAE2EFBFB7A9CCB386FAEFDBFBE6A7F0
D48AEAD1A0E8D0A3E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EDCE84
FCDE88BEA66FA8A08AE0E4EEE6E7EAB7B5B3B0AFAF6E6C6D4342437271727372
737574747675777977787A79797A797A8E8D8EB1B1B1FFFFFFEDEDEDEFEFEFEF
EFEFFFFFFFFFFFFFFFFFFFFFFFFFC7C6C696928FDEDFE1E3E6EDD5D2CBD3B684
DBC192E7CE9CE9D1A1E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2EBD08FF9D6
75EDD3929E844CA6A293C7CBD6D7D8D8F9F3E8F5EAD2EDDDC2ECE0CAE6D5B4EC
DAB6EDDBB7EDDAB6EDDAB6EDDAB6EEDCB9EFDCB5F6E3B7DAC69CCBC3B1DBE2ED
C4BEB7C6AD80F5EAD2FBE9B9F0D691E9D3A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A3EBCF92F8D779DAC28B9D8C64D7DBE4EAECEFC5
C4C2B6B4B3818181413E3F6D6C6C7674757674757675777977787B797A7B7B7C
7F7E7F979699FFFFFFF9F9F9F5F5F5F6F6F6FFFFFFFFFFFFFFFFFFFFFFFF9F9E
9EB0AFAEE5E7EAE1E5EED3C5ADDABD89DEC497E9D2A2E8D0A2E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2ECD08CFAD877E8CF949A7F46A9A498C6CCD7
D8D9D8FAF4E8F5E8CFEBDDC2ECE0CBE7D4B5EDDBB7EDDBB7EDDAB7EEDCBAF0DE
B9F6E5BCE2D0A9CBC0A8DAE1ECC6C6C3C0A97DEFE2C5FAEEC5F1D89BEBD2A5E9
D1A4E8D0A3E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4E8D09B
F5D177EED6969E8756CCCDD2EAECF1D0D0D0BEBDBA9493934241426665667775
767674757776777978797B7A7B7D7B7C7D7C7D909091E0E0E0FFFFFFFBFBFBFC
FCFCFFFFFFFFFFFFFFFFFFFFFFFF848280C9C8C7E7EAEEDEE0E5D4BE98DDC497
E1C99DEAD3A4E8D0A1E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E9D1
A1EDCF87FBDA7BE3CC95967D43ACA89FC7CCD7DBDAD9FBF5E8F4E7CEEBDDC3EC
E1CBE7D7B6EDDBB9EEDDBBEFDEBCF7E6BDEADAB5CCC0A3DBDFE7CBCFD1BEA87E
EAD9B8FCEFD2F1DBA6EBD5A7E9D2A5E9D1A5E9D1A3E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A3E9D0A0F0CE7AF8DE97A9905BC0BEBAE8EAF0D7
D8DAC5C4C3A6A5A54746466160617978787675767877777A78797B7A7B7D7C7C
7D7C7C929192ADACADFFFFFFFEFEFEFFFFFFFFFFFFFFFFFFFFFFFFE7E7E8918E
8BD9D9DBE5E7EDDBD9D7D8BF91DFC79EE5CDA3E9D2A4E8D0A2E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E9D09FEECE82FCDB7EDEC892957C42
AEACA6C8CDD7DCDCD9FBF5E9F4E5CAEBDDC5EDE2CCE9DABCF0E0C0F7E6BCF0E1
BFCFC0A1D8DBDFD1D5DCBCA885E3CFA8FBF1D8F2DFB0EAD5AAE9D2A7E9D2A6E9
D2A6E9D1A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E8D0A2
EDCE81FADE93B7A06BB2AB9CE6EAF3DDDEDFCBC9C8B2B3B34C4A4B5E5C5D7978
797675767877787A797A7B7A7B7E7C7D7E7E7F828081B2B1B2FFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFC8C8C9A2A09BE2E4E6E3E7EFD8D1C2DCC295E0CBA5
E6D0A6E9D2A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A3E8D09EEECE7DFCDD84D8C391937B41B1AFACC9CED8DEDDDCFCF5E8F1
E2C8EADCC2F1E3C8F5E4BCF4E6C0D2C3A0D6D6D7D3DAE3BCAD90DBC59DFBF0D9
F2E1B9ECD6ACE9D3A8E9D2A6E9D3A6E9D3A6E9D1A4E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EDCE89F9DC8FC4AB76AAA089E6EAF4DF
E0E2D3D3D1C3C2C25451525C5C5D7978797675767978787A797A7B7A7B7E7C7E
7F7E7F7F7D7E969796FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBDBDBEAFAC
AAE6E7EAE1E6EED9CCB5DFC79AE2CDA9E8D2A9E9D2A4E8D0A2E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D09CEFCE79FDDF8A
D5BE8B927842B2B2B2CACFD6DFDEDCFCF5E8F0E0C4E7D5B1E8D5ACC9B48CD5D3
CED8DEEABDB49DD4BB8FFAEED8F4E5C1EBD9AFEAD4A8E9D3A7EAD3A8EAD3A8EA
D3A8E9D2A7E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3
EBCE8FF9DB8BCEB57EA5987BE5EAF5DFDFE2D7D7D5CCCBCC5654545957587A79
7A7676767978787B7A7B7C7B7C7D7C7D807E7F818081858384F6F6F6FFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFA3A2A2BCBBBAE6E9ECE0E4EADAC9AAE2CDA5E3CEA9
EBD3ACE9D2A5E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2EACF9AF0CE76FDE192CFB886917A44B5B5B7CBCFD7E2
E1DEFCF6E8EED9B1C2A671CAC5BADCE2EFC2BBAFCBB385F7EBD0F7E8C8EDD9B1
EAD3AAEAD3A8EAD3A8EAD3A9EAD3A9EAD3A9EAD3A8E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3E9D094F7D888D6BE87A39372E3E7F2E4
E5E7DDDCDACFCED05957575755567B797A7776777878787B7A7B7C7B7C7D7D7E
807F80818181848384D9D9DAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9A9998C5C5
C3E8EAEFE0E2E6DCC9A7E4CFABE4CFABEAD4ACEAD3A7E8D0A2E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EACF98
F0CE73FDE197CAB380917B47B8B9BECED3DADFDEDDE2D7C1D2CEC2DBE0EBC7C6
C0C4AC7EECDEC0F7EBCFEEDAB5EAD4ACEAD4A9EAD4A9EAD4AAEAD4AAEAD4AAEA
D4AAEAD4AAE9D1A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3
EAD097F6D88ADAC18CA4936EE0E3EDE6E7EAE4E2E2D4D4D45959595857587A79
7A7776777978787B7A7A7D7C7C7E7D7E807E80818081888786CBCACBFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFF9C9A97CACACBE8EAEFDFDFE3DCC7A1E4D0ADE4D1AD
ECD4ACEAD3A8E9D1A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EACF96F2CF74FBE19DC4AD79917C4CBE
C0C6D6D7DCD8DAE1D9DEE4D5D7D9C4AD81E0C9A0F2E6CCEFDFBDECD6AFEAD4AA
EAD4AAEAD4ABEAD4ABEAD4ABEAD4ABEAD4ABEAD4ABE9D3A8E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4E8D09AF5D78BDAC18BA4946EE2E6EFE3
E4E6E7E7E6D6D6D65C5B5B5857587A797A7876777978797B7A7A7D7C7C7E7D7E
807E7F807F80939192A4A3A3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA19E9DD2D2
D3E8EBEEDEDFDFE0CAA3E5D2B2E5D2AFEBD5ACEAD4AAE9D3A7E8D0A2E8D0A2E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2
E8D0A4E9D099F3D377FCE39FB19559A4987FDBDEE6DADBDDD9DBE2D8D0C6DEC5
98E4CEA8EFE3CCEBDBBAECD7AFEAD5ABEAD5ABEAD5ACEAD5ACEAD5ACEAD5ACEA
D5ACEAD5ACEAD4ADE8D1A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4
E8D09BF5D78DD8C08AA69572E4E8F1E2E2E4EDEDEBD2D2D25D5A5B5F5E5F7A79
7A7776777978797B7A7B7D7B7C7E7E7E807F80828182878685C2C1C2FFFFFFFE
FEFEFFFFFFFFFFFFFFFFFFA8A6A5D1D1D2E8EBF1DFDEDDE2CDA8E6D4B6E5D2B0
EBD5ADEAD4AAEAD4AAE8D1A4E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E9D1A4EED191FEDD77D1B87EAE
A184DEE2ECDADBDED9DCE1DBDAD9F2E7D3E5D1AFE6D5B6EDE2CCE7D5B3EBD7B1
EBD6ADEBD5ACEBD5ADEBD5ADEBD5ADEBD5ADEBD5ADEBD5ADEAD3A8E8D0A0E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4E9D09BF4D891D4BB84AA9B7BE6EBF5E5
E4E6F1F0EFCBCBCB5856576160617A797A7776777979797B7A7A7D7B7C7E7E7E
807F80828182858485ACABADFFFFFFFEFEFEFFFFFFFFFFFFFFFFFFAFAEADD1D0
D1E8ECF1DFDDDBE3CEAAE7D7B8E5D2B0EAD5AEEAD5ABEAD5ABEAD4A9E8D0A1E8
D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2
E8D0A3E8D3A3F2D799F5D98BC5B080D1D1CFE1E0E8DFD9E7D1D1D8D3D2DDE1E0
DDF7EDDCE4D1AFE9D9BDEDE1CCE9D5B3ECD8B1ECD7AEEBD6ADEBD6AEEBD6AEEB
D6AEEBD6AEEBD6AEEBD5ADE8D1A5E8D0A0E8D0A2E8D0A2E8D0A2E8D0A2E8D0A4
E9D09AF4D994D0B67FAFA389E8ECF7E6E5E6F3F3F3C2C1C15553546665667C7B
7C7876777978797B7A7B7D7B7C7E7E7E807F80828182878685A6A6A8FFFFFFFB
FBFBFFFFFFFFFFFFFFFFFFB1B0AFD2D1D1E9ECF1E0DEDDE4D1AEE8D8BAE6D3B2
EAD5AEEBD5ACEBD5ACEBD5ACEAD2A7E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A1E7D1A4EED8AAF7E0A8D4BE8CCDC7BAE3
E4F0DCD8E26D955B3A652A949E92D5D1DFE3E1DEF7EEDDE6D2B0E9D9BEEDE1CB
E7D5B5EBD8B3ECD7AFEBD6AEEBD7AFEBD7AFEBD7AFEBD7AEEBD7AFEAD5AEE8D1
A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A3EAD09AF5DA98C5AC74B8AF9AE8ECF4EA
EAEBF7F7F7B3B2B3504D4E706E6E7E7D7B7876777978797B7A7A7D7B7C7E7E7E
807F7F818081878685A7A7A8FFFFFFF9F9F9FFFFFFFFFFFFFFFFFFB2B1B0D4D4
D3E9EBF0E1E0E1E5D1B1E9DABCE6D4B4E9D4ADEBD6ADEBD6ADEBD6ADEBD5AEEA
D2A6E8D0A0E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A2E8D0A1E9D1A5
EDD9B2F6E5C1DCC596C7BCA6E1E3EEE7DBF06CAA502CB20A37AF28115C008B97
86D7D2E2E3E1DCF7EEDEE5D4B1E9DABDEDE2CCE7D6B4EBD9B3EBD8B0EBD7AFEC
D7B0ECD7B0ECD7B0ECD7AFECD7B1EBD5ACE8CFA1E8D0A2E8D0A2E8D0A2E8D0A3
EAD098F4D99EB99F69C4C0B6E8EBF2ECECECF7F7F6A2A1A24F4E4E7775757978
777878787A797A7A7A7A7D7B7C7E7E7E807F80818181858485A9A9ABFFFFFFF8
F8F8FFFFFFFFFFFFFFFFFFB2AFB0D4D4D3EAEBF0E1E1E4E7D7BAEADAC0E6D5B7
E8D4ADECD6AEEBD6AEEBD6AEEBD6AEEBD5AFE9D2A6E8D0A0E8D0A2E8D0A2E8D0
A2E8D0A2E8D0A2E8D0A2E9D2A4ECD8B0F5E8CCE4CFA7C2B290DCE0E7ECE2F98B
B47936BF177AED6A7DF4644FE8541264008E9687D7D3E3E3E2DDF6EEDEE7D3B3
E9DBBEEDE2CCE7D6B4ECD9B4EDD8B1ECD7B0ECD8B1ECD8B1ECD8B1ECD8B0ECD8
B2EBD5ACE9D1A2E8D0A0E8D0A2E8D0A3EBD097F0D79DAF9762D1D3D3E9EBEEEF
EFEEF1F2F2908E8F4F4D4E7F7D7D7A78777978797C7B7B7B7B7B7C7B7C7E7D7E
807F808180818A8989B2B2B3FFFFFFF8F8F8FFFFFFFFFFFFFFFFFFB4B3B3D1D0
D0EBEEF1E1E3E6E6D9C1ECDBBFE7D7BAE7D2ADECD8B0EBD7AFEBD7AFEBD7AFEB
D7AFEBD6B0E9D3A8E8CFA1E8D0A1E8D0A2E8D0A2E8D0A2E8D1A3EBD5ADF4E5CA
EBDBB9C2AE82D6D8DAECE4FAAEC1A832B20C6AE3593CC31924C80067EF5544E9
57126400909789D8D4E3E3E2DEF6EEDFE7D5B4EADBC0EEE2CCE9D6B5ECD9B4EC
D9B2ECD8B1ECD8B2ECD8B2ECD8B2ECD8B1ECD8B3EBD7B0E9D2A5E8D0A0E8D0A1
EDD399E8CD93AC986CDEE0E5E8E9EBF8F7F7E4E4E47978795655558483827B79
777978797C7B7B7D7C7D7D7C7D7D7D7D807F7F807F80949394A2A2A2FFFFFFF9
F9F9FFFFFFFFFFFFFFFFFFB4B3B3D0CFCEECEEF1E2E5EAE6D9C5EAD9BCE9DBC1
E5D2ACECD8B1ECD7B0ECD7B0ECD7B0ECD7B0ECD7B0ECD7B1EAD5ABE9D0A3E8D0
A0E8D0A2E8CFA2EAD5A9F2E2C3F3E4C7C7B082D1CFC9EAE6F8CBCECC3BAB1357
DD3F44C42814BE0014C2061DC10065EE5D3DEB57126300939A8DDAD5E5E3E2DF
F8EDDEE8D6B6EADBC1ECE3CDE9D6B5ECDAB5ECD9B3ECD8B2ECD9B3ECD9B3ECD9
B3ECD9B2ECD9B3ECDAB3EAD6ADE9D1A4F0D59BD5BC83B2A483E8ECF5EAE9EBF9
F9F9D4D4D46665656162628A8A897977767A797A7B7B7B7C7C7D7F7D7E7F7E7E
7F7F7F807F80949394A8A8A8FFFFFFFDFDFDFFFFFFFFFFFFFFFFFFB7B8B8CECE
CBEEEDF1E3E7EDE6DDCCEADABCEADDC3E5D2B0ECD7B1ECD7B1ECD8B1ECD8B1EC
D8B1ECD8B1ECD8B1ECD8B3EBD7B1EAD4A9E9D0A2E8D2A5EEDEBAF6E8D1D0B98B
CAC4B3E6E7F5E0D7E952A82F41D1204BCA3216B8030FBC080BB7090CB9041BC0
0268F0613CE956126200959B8FDBD5E6E2E2DFF6EFDEE8D6B7E8DCC0EEE1CEE8
D7B5ECDAB6ECDAB4ECD9B3ECD9B4ECD9B4ECD9B4ECD9B4ECD9B4ECDAB6ECD9B5
F2DAA5C2A66CC1BBABE9ECF4EEEEEFFAF8F8B8B7B95B5959706F6F8D8C8C7976
757B7A7A7D7B7D7C7C7C7E7D7D807F7F7F7E7F7F7E7F989798BABABAFFFFFFFE
FEFEFFFFFFFFFFFFFFFFFFC4C5C7C9C8C5EFF0F3E6E8EEE5DFD6EBDDC2EBDCC3
E7D6B7EAD6AFEDD9B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8B2ECD8
B3ECD9B3EFDEBCF7EBD4DBC59AC6B99EE4E6F1EBE0F672B05832C2084ECE301C
B7040EBC060AB50807B30809B5090BB9041DC00269F1643AE855136000969E91
DCD6E6E4E3E0F7EEDFE9D7B8EADCC1EEE3CEE8D7B5EDDAB6EDDAB5EDD9B4EDD9
B5EDD9B5EDD9B5EDD9B5EDDBB6F0DCB4EDD4A1B29963D8D9DAE9EAEFF2F1F1F5
F5F69A99995958587D7C7C8E8E8C7A77767B7A7A7C7B7C7E7D7D7E7C7E7F7E7F
807F807F7E7E909091EAEAEBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD9D9DCC0BF
BDEFEEEEE8E9EEE3E2E2EBDEC4EBDCC2E9DABFE8D3AFEDD9B3ECD9B2ECD9B2EC
D9B2ECD9B2ECD9B2ECD9B2ECD8B2ECD9B4EFDEBDF9EEDAE6D4B3C3B38EDFE3E9
F0E5FD95BA872BB8004CD33026B80C10BA0509B50806B10805B10806B20809B5
080BB8031EC0036BF1663AE753135F00989F94DDD8E8E3E2E1F6EEDFE8D7B9E9
DCC1EFE3CEE8D7B6EDDBB8EDDBB6EDDAB5EDDAB6EDDAB5EEDAB7EFDDBAF3E1B9
DABE85B3A27EE7EBF4EAE9EDF8FAF8DEDFE07E7C7C5E5E5E898788908E8E7B78
777C7B7C7D7C7D7E7D7E7F7E7F807F7F81808181807F8A898AFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFE1E2E4BCBBB9E7E9E7ECEDEFE3E5E7EAE0CDEBDCC0
EBDEC6E5D2B0ECD9B4ECD9B3ECD9B4ECD9B4ECD9B4ECD9B4ECD9B3ECD9B3EEDD
BAF6E9D3F0E1C5C5AF86D9DBDBF0EAFEB6C6B22FAD0146D2242EB91312BA040C
B50807B10705B00805B00805B00806B20809B50809B8031FC0046EF3693AE650
125E009BA195DDDAE9E3E3E1F7EEDFEAD8BAEBDDC2EDE4CFE7D7B7EDDBB8EDDB
B7EDDAB6EDDAB5EEDDBBF0E2C4F4E1B8BFA469C8C3B5E9EDF5EEEEEFFAFAF9C7
C8C96866666B686A8F8F8D918F8E7A79777E7C7D7F7D7E7F7E7F7F7E7F818080
818080817F80A9A8AAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8F8F9BAB9
B9E0DFDDF1F2F3E3E6ECE8E1D6EDDEC1EBDDC5E7D7BAEAD7B2EEDAB5EDD9B5ED
D9B5EDD9B5EDD9B5EDD9B5EDDCB8F4E6CDF7E9D3CBB587D4D1C9EDECFCD2D2D4
3EA9143DCE1537BE1815B8030CB60708B10705AE0705AF0705B00705B00805B0
0806B10809B40809B80220C0046EF36A39E450145D009CA397DEDBE9E4E3E1F7
EEE0EAD9BCEBDDC2EEE4CFE8D7B7EDDBB8EDDBB8EDDAB8F0E0C2F6E9CDE8D1A4
B29D6EE1E4EAE8EAEEF5F5F4F4F4F59F9FA161606079777692908F908E907A79
777E7D7D7F7E7F807F7F817F7F807F7F818181818181CACACBFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFBEBEBFD1CFCEF6F7F7E6E9ECE4E3E2EFE1CB
EBDCC1EBDEC6E6D3B0EFDCB6EDDAB5EDDAB5EDDAB5EDDAB5EEDBB8F1E2C4F9ED
DBD3C095CDC5B4EAECF9E6DDEE59AB3935C6053AC31A19B6050EB70607B00605
AE0605AE0705AE0705AF0705B00705B00805B00806B10809B40809B70222C005
6EF36A37E14E135D00A0A49BDFDCEAE4E3E2F5EEE1EADABFEBDCC3EDE4CFE8D5
B6EDDBB8EFDFBEF3E8D0FAEDD1CAB078C4BAA6E9EEF7ECEDEEF8F8F8DFDFE080
7F7F66646483807D91908E9091917B79777F7E7D807F80817F80818080818081
818080838182E9E9E9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD8D9
DBC3C2C0F4F4F4EBEDEEE3E6EAEBE3D5ECDEC3EDE0C8E6D5B8EBD8B3EEDBB7ED
DAB6EDDAB6EEDBB7EFDFC1F9EEDBE0CCA7C8BA9EE7E9F3EFE5FB7AB3632FBB00
41C71C1EB40611B8060AB00606AD0605AC0605AD0605AE0705AE0705AE0705AF
0705B00705B00806B10809B40809B80222C0056EF46A37E04B145C00A1A69DE1
DDECE5E6E3F6EDE1ECDBC0EBDEC5EEE3CEE9D7B9F1E4C8FAF1E0EBD9B2B8A173
E0E3E9E9EAEFF3F3F2F7F7F8BCBCBD696767716F6E85828091908F9191917C7A
797F7E7E807F7F828081828181828181807F7F969595FFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEF0BCBAB9E6E5E5F4F4F4E5E6ECE7E4DF
F0E3CFEBDDC3ECDEC7E7D2B1EFDBB8EDDBB7EDD9B6EFDEBDF7ECD5EBDABBC6B4
91E2E4E9F5EAFF9EC09331B40041CA172BB81214B70709B00506AC0505AB0605
AC0605AD0605AD0605AE0605AE0705AF0705AF0705AF0705AF0706B00809B308
09B80122C0076EF46A37DD4A145B00A3A89FE2DEEDE5E5E4F6EEE0EDDEC3ECDD
C4F1E9DAF6ECDDF9EFD3CAB07CC9C1B1E9EDF7EDEEEFF6F7F6EAEBED8D8D8D6B
68677F7D7985827E9391909492927D7B7981807F818181828081828182838283
7D7B7BCCCDCEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFCACBCECECDCBF9F9F9EAEBEDE3E5E9EFE7D8EDDDC5EDE1CBE7D6BAE9D7B4EE
DCB9EEDCB9F5E8CEF3E7CCC8B58BDCDDDBF4EEFFBFCDBE39AD0A3FCA1031BA15
22BA1510B20B05AA0305AB0505AA0505AC0605AC0605AC0605AD0605AD0605AD
0705AE0705AF0705AF0705AF0706B00809B30809B80323C00670F46C38DD4915
5C00A4ABA0E3DFEEE6E5E4F6EEE1EDDDC3E7D6BBEEDFC7D5BB8BBAA782E7EAF1
F0F1F3F4F3F3F9FAFAC3C3C4737072797675847F7C827F7D9291909594937E7B
7A828180838383848383838282828181858584F0F1F1FFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE3E4E7C1C1C0EFEFEFF2F2F3E5E8EC
E6E5E2F3E7D3ECDCC3EDE1CBE6D3B4EDDCB8F4E5C9F8EBD6CFBB92D5D1C7F1F0
FFDAD8DE4DAD263FC70B38BD1927BA161FB81813AF1004A90305A90505AA0505
AA0505AB0505AC0605AC0605AD0605AD0605AE0605AE0705AE0705AF0705AF07
06B00709B30809B70323C10673F6703ADB4A145A00A6ABA3E4DFEEE5E5E5F5EF
E3ECDBBFD8BC8BAD925DDBD9D6FBFDFFF7F7F6F6F6F6E9E9EB8E8D8E75737386
8381837F7C83807D929291959393817F7D838282838383858484848383828080
A1A1A1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFDFDFEC8C7C9DAD9D9F9F8F8EAECEEE4E7ECEDE7DDF1E2CBECDEC6EBDFC8ED
DFC5FAF0DCD9C79ECFC5B3EDF0FAEBE2F368B24C3BC30841C21C2DBA1A22B919
1DB21818AF1705A90604A90405AA0505AA0505AB0505AB0505AB0605AB0605AC
0605AC0605AD0605AE0705AE0705AE0705AE0706AF0709B30708B70023C10879
F9763DD74A155A00A8ADA5E4E0EFE5E7E7F1E5D5CEB383D4CDBEFEFFFFFBFBFA
F4F3F2F9FAFBB7B7B97774748987888C8987817D7885827E8E8D8C8A89898280
80858384858484858484858484868686D2D2D3FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE3E4E7CACAC8F2F0F0F4F2F3
E6E7ECE5E6E8F3ECDDECDDC3ECDEC9F1E6D2DBC59ECABB9DE9ECF4F4E9FF88BB
773CBD0846C71F33BA1E28BC1D22B41C1EB01C20B01E10AC0F03A80105A90505
A90505A90505AA0505AB0505AB0505AC0605AC0605AC0605AD0605AD0605AE07
05AE0705AE0706AF0709B30708B70024C1097BF7773ED343185B00AAB1A9E5E2
EDE4E5E7EEEDEEFFFFFFFCFCFCF3F3F3F9F9FAE1E3E58584837C7B7C9B9B9A89
868483807E8483838A88888886868382828483838685858685868584848F8F8E
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFDFDFDCECFD2E0E0DEF6F6F6EDEDEFE4E7ECE9E8E6F4EBDAE7D5B2D1
B684B9A379E4E5E9F7EEFFACC6A440B6104CCC203CBB222FBC2127B52022B120
21B12022B12120B21F05A70404A80205A90505A90505A90505AA0505AA0505AA
0505AB0505AC0605AC0605AD0605AD0605AE0605AE0705AE0706AF070AB30709
B7002AC50A77FD732EC11C245D08CBCDCFF6F4FAFEFFFFFDFDFDF4F5F5F4F4F4
FAFAFCA7A7A8757372908E8D9B9A998A87868E8A8B928F8F7E7A7B7A76778985
85848383858484868586848383D0D0D2FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE8EAEDD9D8DAF0F0EF
F5F5F4E9EAEDE5E7EDEDEBE6EAD7B9C5AB7CDBDBDAF4F0FFCAD3CB4AB2214FCD
2043BE2734BD252BB82527B22425B12425B12425B22427B32818AE1801A60005
A80405A90505A90505A90505A90505AA0505AB0505AB0505AB0605AC0605AC06
05AC0605AD0605AD0705AE0708AF070BB50513BE0066E45654FD380F7A00AEC0
A7FFFFFFFCFCFCF7F7F7F2F1F1FEFFFFD1D1D47D7B79817F7D94929194949497
96958B858657565834373C5352568D8B8A8584848584848584849A999AFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFDBDCE0E4E5E7F4F5F3F2F2F1E7E9ECE7E8EEE5E3E1E6
E6E9EEEFF8E3E1E85DB33C4ECD1D4EC62C3CBE2931BB282CB4282AB22829B228
2AB3282AB3282AB3292CB52B12AC1201A50005A70405A80405A90505A90505A9
0505A90505AA0505AB0505AB0505AC0605AC0605AC0605AD0607AE0607B1040D
B7014DD13D61EF5436DD00389E0FF0F1EFFFFFFFF8F8F8F1F1F1FCFAFAEEF0F1
908E8E82807F8E8C8A9696969D9A9973717338393F41434A54575C4A4B4E8886
86878586868585848484E2E2E3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8F8F9DDDDE1
EDEDEFF5F4F4EFEFF0E6E7EBE7E9EEE7E9EEF6EDFF95D08044C9105BD32F48C0
2E3BC02D32B72C2DB42B2EB22B2EB32C2EB32C2EB42C2EB42C2FB52D31B62F11
AC1000A50004A70305A80405A90405A90505A90505AA0505AA0505AA0505AA05
05AB0505AC0608AE060AB0040FB70241CB2E5EE54337DC0036B104D5E6CDFFFF
FFF9F8F9F2F2F1F8F8F8FEFEFFA7A7A881807E94918FA1A09F9C99986361642E
30353B3D4266676C7374784A4C4F888686888787858383B3B3B4FFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFE9EAEDE6E8E9F0F1F1F5F5F4EDEEF0E6E7EAE7
E8EBF2E9FBA8E39692E7705BD12E49BF2B42C13138BB3033B52F32B42F32B42F
31B53031B53031B53031B53034B63134B73318AE1700A40001A60105A70405A8
0405A90505A90505A90505A90505AA0507AB0508AE050BB20418BB093BCB2350
E02931D8003DB70CDBE9D5FFFFFFFAF9FAF2F2F2F6F6F6FFFFFFBCBCBD817F7F
969493ADACAC9D99996E6C6F5152583C3D4050515484858893949756565A8887
868988878F8E8FFBFBFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
E5E6EAE8EBECF1F2F2F4F5F4EDEEF0E7E8EBEBE8F0DEE9DEC6F1B4A5E98A5DCC
3746BE2C44C1343DBE343ABA3437B73336B63335B63335B53435B63435B63436
B7353AB9392AB2290BA90900A50000A50104A70305A80405A90407AA0509AC05
0BAF0511B50522BF0E3ED11F46E0142AD10057C22BE8F0E5FFFFFFF8F8F9F0F2
F0F6F5F5FFFFFFC8C8C9888787939291B8B9B7A7A4A47473757F7F827C7C7F49
494B616263A3A4A6AFAFB16060618A8988868584E5E5E6FFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0E2E6EDEEF0F0F2F1F5F4F3EE
EFF0E7EAEBECE9F5DCEADDC9EFBAB3EE9B74D6544EC33049C33347C43842BF38
3EBC373CB9363BB8363AB83639B83739B73739B7373DB93B3AB93827B2250FAA
0D04A60101A70004AB0009AE0010B4031BBC072DC8113FD8153BDE002CCC0080
CD5FFFFCFFFFFFFFF7F6F7F0F0F0F8F6F6FFFFFFCFCFD08D8C8D919090B8B8B8
B8B5B5777477919296ADADAD9A9A9C545455747273BDBFC0C5C5C66667688584
84C6C5C6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFDEE0E5EDEEF1F2F2F2F4F4F3F0F0F1E8EBEEECE9F2E5E9EACAEB
BFBEF1A999E47C67CE4750C7324DCA374CC83B48C33B45C03A42BE3A41BD3A40
BC3A40BC3B40BD3B40BD3B45BF3F45BF3E3DBE3530BB2529BD1B28C1122DC811
3CD41540DF092FD7004DCD1BC2E6B4FFFFFFFFFEFFF3F3F3F2F0F0FAFAF9FFFF
FFCCCCCE949392939292B4B3B3C7C5C47B78796C6D6EB8B8B9D0CECEB4B3B35D
5C5B7F7E7ECFCFCFD2D2D3666667B7B7B9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE2E4E9EFF0F3F4
F4F6F5F3F3F1F3F2EBEDEEEAE8F0ECE9F5D7E9D4C0ECB0B2EC9992E17370D450
5AD03B53D03851CE3A50CB3E4EC83C4CC63E4BC73E4BC63E4CC63E4DC83E50CA
3E56CF435FD34A69DB4E71E2516CE84052E21B50D6199BDF7FFAFAFBFFFFFFFA
F8FAF2F2F2F3F2F2FDFDFDFFFFFFC4C4C69A999A999897A9A8A8D1D0D19F9C9C
7678797C7A7CCFD0CEE9E8E7CAC9C9646261858584D7D7D8D8D8D769696AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA6A2A5E2E4E7F5F7F9F4F4F3F3F3F2EFF0F0ECED
EFEEECF7E9E9EFD1E8CABAEAA8A8E98D96E27885DC6379DC5869DC4966DB4564
DB4461D94262D94564DA4669DD4B6DE04E6FE44A6FE64562E73055E31D5FDD2C
9FE383F1F8F0FFFFFFFFFCFFF3F3F3F1F1F1F6F6F6FFFFFFF6F7F9BFBFC09E9D
9B9F9E9E9F9E9DC9C8CAB7B2B1A2A1A38E8E8E828181DFDEDDFAF9F8D4D3D266
6663878885DBDADBDBDBDB696969FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7B747687
7F81D3D4D7F7FAFDFBFCFDF4F4F4F3F3F3F7F7F6FAF9FCFFFCFFFCF9FFE6F4E2
CCF1BDB1EC989DE57F8BE1698BE36983E35D7EE45677E44C74E6476EE73E6CE8
3961E52C6CE33C98EA78C9F1B8FFFCFFFFFFFFFFFBFFF4F4F5F0F1F0F5F5F3FD
FDFCFEFFFFE6E6E8B4B3B4A2A1A0A5A3A49F9D9EA6A6A6DAD8D967645F9FA1A0
959494878584E5E4E4FFFFFDD7D6D4676665898A89DCDBDBDCDCDC6A6A6AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF8680827C7274867C7CB0ABACEBEEF0FFFFFFFCFC
FCF2F2F0F2F2F2F6F6F6FBFBFBFFFFFFFFFFFFFFFFFFF9FDF8E1F7D9CEF2C1BC
EBA9B8EAA4B2E99DB4EA9DBBECA7D2F2C6F1FBEDFFFEFFFFFFFFFFFEFFFAF7FB
F3F3F3F0F0F0F5F5F3FCFCFCFFFFFFF3F4F6CECFD0B0AFB0A6A5A6A5A4A4A4A3
A49C9B9BADADADD4D2D25D5A56ACACAD9A9A99868685E7E6E3FFFFFFDDDCDA69
68678A8988DCDCDCDCDCDC6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF88848482
797C897F80827475807475B3AFB1F5F6F7FFFFFFFFFFFFF4F3F4F0F0F0F2F2F2
F4F4F4F8F7F9FDF9FEFFFCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB
FFFDF8FFF8F6FAF3F2F1F1F1F0F2F2F2F7F7F7FEFDFDFFFFFFF4F6F7D9DADCBC
BCBEAEADAEABAAABA8A7A7A5A3A4A4A2A39F9D9DA5A4A4D4D4D4CECCCBB9BAB9
989897848383E5E4E3FFFFFFDDDCDA6A69678C8989DCDCDCDDDDDD6A6A6AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF8B8787837C7E8E84859488897A6B6D6251537368
69AFA9ABECEAEBFFFFFFFFFFFFFAFAFAF4F3F3F2F2F2F0F0F0F0F0F0F0F0F0F0
F0F0F1F2F1F0F0F0F0F0F0F1F0F0F1F2F0F2F2F1F4F4F4F9F8F8FDFDFDFFFFFF
FBFBFEF0F0F2D6D8DAC2C1C4B6B6B7B2B1B2AEADAEAAA9AAA8A6A7A4A3A3A4A3
A3A1A0A0A09D9DA7A6A6AAAAAAB2B1B2979696838481E4E3E2FFFFFFDDDCDA6A
6A678B8A89DDDDDDDDDDDD6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8E8B8D85
7F81948B8D9E9394867A7B7264666E5E606352546D5E60958B8ECECACBFFFFFF
FFFFFFFFFFFFFFFFFFFFFEFEFCFCFBFBFBFAFBFBFBFBFBFBFCFCFBFEFEFEFDFD
FDFFFFFFFFFFFFFAFBFCF3F3F5E0E2E4CDCDD1BEBEC0B8B7B8B5B4B5B3B3B3B1
B0B1ADACACA9A8A8A6A5A5A4A2A3A4A3A3A3A1A2A09D9F9E9D9D9B9A9AAFAEB0
989896828181E2E1E1FFFFFFDEDEDC6B6A688B8B8ADDDDDDDDDDDD696969FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF9290918A85889C9597ACA1A290858675686A7668
6A7465676F5E606453555E4E4FD7D5D7DADCE0DADBDDEFF0F1F4F5F7F6F7F8F8
F9FAF7F9FBF6F6F8F4F4F6F6F6F8F1F1F3E1E1E5D6D8DACECFD1C1C1C2BCBBBB
B7B7B8B9B8B8B7B6B7B3B2B3B0B0B0ADACADABAAAAA9A8A8A7A5A6A4A3A3A4A3
A3A7A4A4A6A4A4A4A3A3989796AFAFAF999998828180E1E0DFFFFFFFDEDDDB6B
6A698D8A8ADDDDDDDDDDDD696969FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF96969890
8C8EA7A1A3BDB4B69C9294786D6F7C70727B6E7077696B7365666D5D5EFFFFFF
FFFFFFFBFBFBDFDFE1D0CFD2BABABDBBBABCC0C0C2C2C1C3BCBCBEBBBBBDBDBD
BEBBBABBB9B7B8B7B6B7BABABAB8B8B9B6B6B7B6B5B6B3B2B3B1B1B1B0AEB0AD
ACADABAAABAAA9A9A8A8A7A9A7A7A8A7A7A4A3A39C9A9B9B999AC6C7C7AFAFB0
9A9999828180E0DFDEFFFFFFDDDADB6C6A698E8D8CDDDDDDDEDEDE696969FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF99999B969497B3AFB0CFCACAACA3A47D7476867C
7E867B7D8174767A6D6F736668F5F4F4FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB
FBFCE2E2E4DBDCDCC8C9CABABABDB5B5B5B6B6B7B6B6B8B5B4B5B6B4B5B5B4B5
B4B3B3B3B2B2B1B0B1B2AFB0B0AFB0B0AFAFAAA9A9A7A6A6A6A5A69C999A9E9E
9EBBBBBCE1E1E1FFFFFFFFFFFFB2B2B29A9999828180E0DFDEFFFFFFDEDEDC6D
6C6A8D8E8DDEDEDEDEDEDE696969FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9C9C9D9C
9B9DBFBEC1E5E1E2BDB8B9837C80918A8B968C8F908688857A7B776D6FF9F9F9
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFEDEEEFDCDDDFD8D8D9C8C9CBBCBCBFB6B7B8B1B0B2ABABACAAAAACACACAEAB
ABADBBBABCC9C9CAD0D0D1F4F4F4FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0B0AE
9A9A99828180DFDFDDFFFFFFDEDDDC6E6C6A8E8E8CDFDEDFDEDEDE696969FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF9C9D9E9D9DA0CCCBCCFCFAFAD1CECE8A86899D98
99A6A0A1A29B9D918A8C7D7577FCFBFBFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFADADAD9A9A9A828080DFDEDDFFFFFFDCDAD96D
6C6A908F8EDEDEDFDEDEDE696969FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9D9D9F9E
9EA0CDCDCEFFFFFFE2E1E2939194ABA8AAB6B4B5B3AFB19E9A9C807D7FFEFEFE
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFACACAC
9A9A9A828181DFDEDDFFFFFFDBDAD9706E6C908F8FDFDEDEDEDEDE6A6A6AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF9E9D9FA0A0A2CCCECFFFFFFFE7E7E899989BB5B4
B6C4C3C5C0BFC0A7A5A7828183FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFABABAB9B9A9A828180DFDEDDFFFFFEDBDAD970
6E6C908F8FDFDEDEDEDEDE6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9E9FA0A1
A1A3CECECFFFFFFFE6E6E79B9C9EB9B9BBC9C9CBC6C6C8ABAAAC818184FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFABABAB
9B9A9A828181DFDEDDFFFFFEDAD9D8706F6E91908FDDDEDEDEDEDE6A6A6AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF9F9FA1A3A5A6CFCED0FFFFFFE7E7E79E9EA0B9B9
BBC9C9CBC8C8CAABABAD818183FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFABABAB9B9A9B848482DFDEDEFFFFFEDADAD871
6F6E929190DEDFDFDFDFDF6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9F9FA1A6
A6A8D0D0D1FFFFFFE7E7E89F9FA1BABABCC9C9CBC7C7C9A9A9AB7F7F81FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAA
9B9B9B858482E0DFDEFFFFFDD9D9D772706F929191E0E0E0DFDFDF686868FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA0A0A2A9A9AAD0D0D2FFFFFFE6E6E8A2A2A3BBBB
BCC9C9CAC6C7C8A8A8AA7C7C7EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAA9C9B9C868585E0E0DEFFFFFDD8D7D672
7170929291E0E0E0DFDFDF6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA2A2A2AC
ACADD3D3D3FFFFFFE8E8E7A4A4A6BCBCBDC9C9CBC6C7C8A7A7A87A7A7CFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA9A9A9
9C9B9C878686E0E0DFFFFFFDD8D6D4727170939291E0E0E0DFDFDF6A6A6AFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA2A2A3AEAEAFD4D4D4FFFFFFE7E7E7A6A7A8BDBD
BEC8C8CAC5C5C6A5A5A678787AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFAAAAAA9C9B9B878786E1E1E0FFFEFCD4D5D374
7271949393DFE0E0DFDFDF686868FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA4A4A5B0
B0B1D5D5D5FFFFFFE7E7E7A9A9AABCBDBDCDCDCFC5C5C7A2A2A3767677FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA9A9A9
9C9C9C898887E2E2E0FEFEFCD3D3D1757473959494DFDFDFDFDFDF696969FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA5A5A6B2B2B5D6D6D7FFFFFFDDDBD9A6A5A4C4C4
C6FBFBFCE6E6E69E9E9F737375FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFA9A9A99C9C9C8C8A8BE2E3E2FEFDFCD2D1D076
7573959594DFDFDFDFDFDF6A6A6AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA5A5A6B6
B6B7D7D7D8FFFFFFCCCBC79F9D99D8D8D8FFFFFFFFFFFFA4A4A36F6F70FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFABABAB
9B9A9A8D8C8BE4E3E2FDFEFBD1D0CF767574969695E0E0E0DFDFDF6B6B6BFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA7A7A7B8B8B9D7D7D9FFFFFFC4C2BD9E9D99E6E6
E7FFFFFFFFFFFFAFAFB06A6A6CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFF7F7F7AEAEAF9594938D8C8CE3E3E2FBF9F9CAC8C876
75749D9C9CE2E2E2DEDEDE6C6C6CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA4A4A6BE
BEBDDEDEDEFFFFFFBEBBB6A09E9AF1F1F2FFFFFFFFFFFFB6B6B6666667FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE7E7E7B4B5B3
9493938E8D8DE3E2E2F7F7F5B3B4B1737271A3A4A2E5E5E5DDDDDD6D6D6DFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA2A2A2C2C2C2E4E4E3FFFFFFB8B6AF9D9B95F6F6
F7FFFFFFFFFFFFB5B5B6626263FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFD0D0D0B9B9B9939492959392E9E8E7F4F2F2A3A2A172
7170ADADADEAEAEBCECECE8C8C8CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA4A4A4C3
C3C3E0E0E2FFFFFFB5B2AD999791F6F7F7FFFFFFFFFFFFB4B4B4606060FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7C7C7BCBCBC
8F8F8F9E9D9DF0EFEEE9E8E791908F7A7978B7B6B6F1F1F1BBBBBBA8A8A8FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFA9A9A9C1C1C1DBDBDBFFFFFFB4B2AD939189F2F3
F2FFFFFFFFFFFFB6B6B65D5D5EFEFEFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFADADADBEBEBE8B8A8AA6A5A5F0EFEEDBDAD97F7D7D83
8381C2C1C2F2F2F2A4A4A4BABABAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBBBBBBBF
BFBFD4D4D6FCFCFDB8B6B08C8980E6E5E6FFFFFFFFFFFFB1B1B15C5C5CF3F3F3
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE2E2E2B6B5B6B5B4B4
868584B4B3B3EFEFEEC6C5C47B78798F8E8CD1D1D1ECECEC979797CECECEFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFC8C8C8BEBEBECCCCCCF4F4F5C0BFB9878478D2D2
D0FFFFFFFEFEFEAEAEAE5F5F5FCFCFCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFBABABAC1C1C1A9A7A9848584C4C4C3EDECEBAFAEAC7777749C
9B9ADBDBDBE1E1E17C7C7CF6F6F6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCBCBCBBA
BABAC7C7C7E4E4E4C8C6C1898478B4B2AFFDFDFDDDDDDDB5B5B56C6C6CAEAEAE
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF4F4F4ABABABC4C4C29A9999
8C8A89CECDCCDBDAD98F8E8D7E7C7BAFAEADE8E8E8C4C4C4929292FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFE7E7E7B1B1B1C6C6C6D6D6D7CCCCC88E897F9E9B
94D0D1D1C3C5C5BDBDBE7C7C7C737373FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFBBBBBBBFBFBFB8B8B88C8B8A999897D4D3D3BAB9B87C7A788A8887C4
C3C1EEEEEE9D9D9DC0C0C0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA4
A4A4C6C6C6CECECFCFCECD928E82938F85C1C0C0CCCCCDC2C2C39A9A9A5A5A5A
E0E0E0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBEBEBAAAAAAC6C6C6A5A5A4858483
A7A7A7CAC9C89695947D7D799D9B99D8D8D8DEDEDE838383F2F2F2FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB8B8B8BFBFBFCBCBCBD2D1D0A09D938985
7AAEADA8D0D0D0C5C5C6B5B5B5666666989898FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFA8A8A8C2C2C2BCBBBB9392908A8987AAA9A8AFADAB82817F868582B5B4B3E7
E7E7B8B8B89B9B9BFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD8
D8D8B7B7B7C7C7C6D4D6D4B2B0AB8581759E9B92C0BFBFCCCCCEC4C5C58A8A8A
595959EAEAEAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFB6B6B6B6B6B6C5C5C4A5A5A4878682939290
A1A09E918F8D817F7C989694D3D3D1E1E1E18E8E8EDBDBDBFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFABABABC5C5C6D3D3D0C7C6C18F8A
7F8E8B7EAEAEAAC2C2C3CCCCCDB5B5B56565658A8A8AFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0C0C0AAAA
AAC6C6C5B2B2B08E8D898888839492908F8E8B84827F898784B6B5B3E5E5E5BA
BABA949494FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFC6C6C6BDBDBDD1CFCDDADBD6A7A49B848075A2A098B3B3B3BCBCBDCDCDCD
9A9A9A5B5B5BBDBDBDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFCCCCCCA5A5A5C4C4C4BBBAB99694918684818D8B888D8B8A
8685818583809F9F9CD7D7D6DADADA8C8C8CDADADAFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7F7F7ADADAFC7C7C6DEDCD8D3D1
CB938F848B867CB2B1ADADAEB0B8B7B7CCCCCD8B8B8B5A5A5AD5D5D5FFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0C0C0A3A3A3C2C2C2C0BE
BE9F9E998785828987848B898689868385838092908CC4C4C2E5E5E5A9A9A9A3
A3A3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFC7C7C7BDBDBDCDCDCBE7E8E3C8C6BD8E8A7D969288BBBAB7AAAAAA
ACACACC4C4C48F8F8F616161C8C8C8FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9
F9F9A9A9A9A6A6A6C1C1C1BFBFBEA1A09B8787828985818A888489878285837F
8C8985B4B3B1E1E1E1C0C1C1858484F1F1F1FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCFCFCADADADC4C5C4D7D6
D3EDECE9C1BFB68E8A7D9D9991C0BFBFA7A7A99B9D9CB3B3B39B9B9B6B6B6BA2
A2A2F4F4F4FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFCECECE939393AEAEAEC2C2C1B6B7B49D9B988988
838886828A8984898782878581888883AAA9A6DBDBDAD1D1D1909090CBCBCBFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFE0E0E0B6B6B6C9C8C8E0E0DCF0F0ECC4C2B9939083A09D96
BEBFBDB0B0B19797979B9B9B8D8D8D6F6F6F6A6A6AB1B1B1F2F2F2FFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFBFBCBCBCB9494949E9E9EB8
B8B7C0BFBFB1B0AE9593908786818987838B89858A8883888681898985A7A5A3
D9D8D8D8D8D89A9A9AA9A9A9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC3C3C3BEBE
BECBCBC9EAEAE6F6F5F3D4D2CAA09C8F9B968DB9B8B5BCBCBCA4A6A59595968D
8D8D8282827878787171718D8D8DAEAEAEB8B8B8B9B9B9B9B9B9BCBCBCBBBBBB
9D9D9D8A8A8A9E9FA0B2B3B3BFBFBFBABAB8A4A2A08D8B878887829896909694
8E8A88838987818D8B86ACAAA8DADAD9D8D8D8A2A2A29B9B9BFBFBFBFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFB7B7B7C3C3C3D1D0CEEFEDEBFAFAF8E5E4DE
B6B1A89B988DAEADA7BDBDBCB8B8B8AAAAAA9F9F9F9797979090908B8B8B8787
878686868888888B8B8B9191919B9B9BA7A8A8B6B6B6BFBEBEBDBCBBACACAA96
95918B898595948EB5B3ABB8B4AE92908B88868292908BB3B2AFDCDBDBD4D4D4
A2A2A2929292F2F2F2FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAFA
FAB7B7B7C3C3C2D3D3D0F0F0EEFCFDFBF7F6F5D7D5CFB4B0A6A8A49CB1AFABBA
BAB7BABABAB4B4B4B0B0B0ABABABABABABABABABADADADB1B1B1B6B6B6BCBCBC
C0C0C0BCBCBBAEAFACA09D9A989793A3A29DBEBBB7DCD8D3CDC8C295948F8B87
839E9C98C1C0BEDCDCDDCACACBA2A2A2989898EEEEEEFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF3F3F3B4B4B3C6C4C3D8D7D3F2F2F0
FCFBFCFEFDFCF6F5F2E1DED8C6C4BDBCBAB2B9B6B1C2C1BFC7C7C7C4C5C5C3C4
C4C4C4C4C5C5C5C7C7C7CCCCCCD0CED0C3C2C1B8B7B4BAB9B8C3C0BCD3D3CEEA
E7E3F2EDE9CBC6C195938E928F8BAEADAAD0D0CFDBDBDBBFBFBFA1A1A19B9B9B
F0F0F0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFF9F9F9BBBBBCC3C3C2D8D8D4F1F1EEFBF9F7FBFBFAFEFEFDFFFFFFFD
FCFCF3F1F0EEEDEBE7E7E5DFDEDADBDBD7DCDCDADDDDDBDDDDDBE1E0DDE3E4E0
E2E1DEE6E4E1EFEDEBF7F4F2FAF7F4EEE9E7C1BCB5999692A8A7A4C8C7C6D8D8
D9CFCFCFB4B4B4A2A2A2AEAEAEF3F3F3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC2C2C4BEBEBD
D6D6D2EFEEEBFCFBFAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF8F8F7F3F3
F1F3F3F0F4F3F1F4F3F0F5F3F1F7F5F4FAF8F7FAF8F7F9F7F6F6F4F1E1DBD8BA
B7B3AEAFACC8C7C5D9D8D8D2D2D2C2C2C2AFAFAFA3A3A3BDBDBDFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFE1E1E1B1B1B1CDCDCBECEBE9FFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFBFAFCF9F9F8F9F9FAFAF9FBFAFAFAFCFAFA
FAF9F8F9F6F5EFE9E7DAD5D0C5C3C1CACAC9D6D6D6D1D2D0C6C6C6B8B8B8ABAB
ABA7A7A7E3E3E3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
F6F6F7C4C4C4BDBDBCEDEDECFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCFC
FCFCFAFBFCFBFBFCFBFBFBFAFAF9F7F7F2F0EDE3DFDDD6D3D1D0CFCED0D1D1CE
CECEC4C4C5BCBCBCB0B0B0A7A7A7CCCCCCFDFDFDFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEEEEEEC5C5C5D0D0CFF2
F2F1FFFFFFFFFFFFFFFFFFFEFDFDF9F8F7F7F6F5F4F2F1F2EFEEEBE6E4DEDAD8
D6D4D1CDCDCDCACACAC6C7C7C3C3C3BBBBBBB3B3B3AEAEAECECECEF7F7F7FFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFF6F6F6D5D5D5C4C4C3C8C9C8D0CFCED3D1CFD8D6
D2D5D2D0D1CDCACCC9C8C7C7C6C4C4C4C2C4C4BEBEBEBABABAB4B4B4AEAEAEC7
C7C7E1E1E1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFEFEFEE1E1E1DCDCDCD2D2D2BEBEBEBEBEBEB6B6B6BABABABDBDBF
C8C8C8D9D9D9DEDEDEF6F6F6FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFF}
Transparent = True
OnMouseDown = FormMouseDown
end
object tx5: TXPLabel
Left = 288
Top = 14
Width = 115
Cursor = crHandPoint
Caption = 'GNU Open Sourse Code'
Font.Charset = SHIFTJIS_CHARSET
Font.Color = clRed
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
ForegroundColor = 16744448
BackgroundColor = clWhite
OnClick = tx5Click
OnMouseMove = tx5MouseMove
OnMouseUp = tx5MouseUp
OnMouseLeave = tx5MouseLeave
end
object InputName: TXPEdit
Left = 64
Top = 78
Width = 249
Height = 19
Color = 16382457
ReadOnly = True
OnKeyDown = FormKeyDown
TabStop = False
TabOrder = 0
end
object InputCode: TXPEdit
Left = 64
Top = 134
Width = 249
Height = 19
Color = 16382457
CharCase = ecLowerCase
PasswordChar = '*'
OnKeyDown = InputCodeKeyDown
TabOrder = 1
end
object Cancel: TXPButton
Left = 133
Top = 190
Width = 77
Height = 27
Cursor = crHandPoint
Caption = #1054#1090#1084#1077#1085#1072
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Segoe UI'
Font.Style = []
Glyph.Data = {
07544269746D617036040000424D360400000000000036000000280000001000
0000100000000100200000000000000400000000000000000000000000000000
0000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00241CED00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF0000000000FF00
FF00FF00FF00FF00FF00241CED00241CED00241CED00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00241CED00241CED00241CED00241CED00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF0000000000FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00241CED00241CED00241CED00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241CED00241CED00FF00
FF00FF00FF00FF00FF00FF00FF00241CED00241CED00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241CED00241C
ED00FF00FF00FF00FF00241CED00241CED00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241C
ED00241CED00241CED00241CED00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00241C
ED00241CED00241CED00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241C
ED00241CED00241CED00241CED00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241CED00241C
ED00FF00FF00FF00FF00241CED00241CED00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00241CED00241CED00241CED00241CED00FF00
FF00FF00FF00FF00FF00FF00FF00241CED00241CED00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00241CED00241CED00241CED00241CED00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00241CED00241CED00FF00FF00FF00
FF00FF00FF00FF00FF00241CED00241CED00241CED00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF0000000000FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00}
ModalResult = 2
OnClick = CancelClick
OnKeyDown = FormKeyDown
TabStop = False
TabOrder = 2
end
object OK: TXPButton
Left = 213
Top = 190
Width = 77
Height = 27
Cursor = crHandPoint
Caption = 'OK'
Font.Charset = RUSSIAN_CHARSET
Font.Color = clBlack
Font.Height = -11
Font.Name = 'Segoe UI'
Font.Style = []
Glyph.Data = {
07544269746D617036040000424D360400000000000036000000280000001000
0000100000000100200000000000000400000000000000000000000000000000
0000FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00CADACA00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00BEC6BE009DA59D00CADA
CA00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF009DA59D004444F6009DA5
9D00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00BEC6BE004461E6000808F6008581
C600FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF007D857D000808F6000808F6004461
E600BEC6BE00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF0085A1E6000808F6008581E6000808
F6009DA59D00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF004444F600C6A1E600C6A1E6000808
F6004461E6009DA59D00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00C6A1E600FF00FF00FF00FF000808
F6000808F6008581C600CADACA00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF008581
E6000808F6004444F6009DA59D00CADACA00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF008581
E6000808F6000808F6004444F600BEC6BE009DA59D00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF000808F6000808F6000808F6000808F60085A1E600BEC6BE00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00C6A1E6000808F6000808F6000808F6000808F600C6A1E600FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF004444F6000808F6004444F600FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00C6A1E6000808F600FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00C6A1E600FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
FF00}
ModalResult = 2
OnClick = OKClick
OnKeyDown = FormKeyDown
TabStop = False
TabOrder = 3
end
object ch1: TXPCheckBox
Left = 64
Top = 159
Width = 249
Cursor = crHandPoint
Alignment = taLeft
Caption = #1054#1090#1086#1073#1088#1072#1078#1072#1090#1100' '#1087#1072#1088#1086#1083#1100' '#1087#1088#1080' '#1074#1074#1086#1076#1077
Checked = False
TabStop = False
TabOrder = 4
OnClick = ch1Click
end
end
| 69.833267 | 144 | 0.897025 |
857248292ce8efc27137b81635ae89ef9cd3f9b9
| 2,018 |
pas
|
Pascal
|
API - BitCoin/UPrincipal.pas
|
miguelhp373/Programacao_Mobile_Modulo_02
|
ac5d079683d9592fde19f74452132b8e94ba2a77
|
[
"MIT"
] | 1 |
2021-11-02T18:11:46.000Z
|
2021-11-02T18:11:46.000Z
|
API - BitCoin/UPrincipal.pas
|
miguelhp373/Programacao_Mobile_Modulo_02
|
ac5d079683d9592fde19f74452132b8e94ba2a77
|
[
"MIT"
] | null | null | null |
API - BitCoin/UPrincipal.pas
|
miguelhp373/Programacao_Mobile_Modulo_02
|
ac5d079683d9592fde19f74452132b8e94ba2a77
|
[
"MIT"
] | 1 |
2021-11-02T18:11:47.000Z
|
2021-11-02T18:11:47.000Z
|
unit UPrincipal;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.TabControl,
FMX.Controls.Presentation, FMX.StdCtrls, FMX.Edit, REST.Types, REST.Client,
Data.Bind.Components, Data.Bind.ObjectScope, System.JSON;
type
TForm1 = class(TForm)
RESTClient1: TRESTClient;
RESTRequest1: TRESTRequest;
RESTResponse1: TRESTResponse;
TabControl1: TTabControl;
TabItem1: TTabItem;
btncalcular: TButton;
btnclear: TButton;
Button1: TButton;
editconvertbitcoin: TEdit;
editreais: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
TabItem2: TTabItem;
TabItem3: TTabItem;
procedure btncalcularClick(Sender: TObject);
procedure btnclearClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure ConvertToBitcoin;
procedure CalcularConversao;
end;
var
Form1: TForm1;
Reais, BitCoin, QtdBitcoin: real;
implementation
{$R *.fmx}
procedure TForm1.btnclearClick(Sender: TObject);
begin
editconvertbitcoin.Text := '';
editreais.Text := '';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ConvertToBitcoin;
end;
procedure TForm1.btncalcularClick(Sender: TObject);
begin
CalcularConversao;
end;
procedure TForm1.ConvertToBitcoin; //converte para bitcoin
var
jsonvalue: TJSONValue;
begin
RESTRequest1.Execute;
jsonvalue := RESTResponse1.JSONValue;
BitCoin := StrToFloat(
StringReplace(
copy(jsonvalue.ToString, Pos('"last":"',jsonvalue.ToString)+8, 14), '.',',',
[rfReplaceAll,rfIgnoreCase]));
editconvertbitcoin.Text := FormatFloat('#0.00',BitCoin);
end;
procedure TForm1.CalcularConversao;
begin
Reais:= StrToFloat(editreais.Text);
QtdBitcoin:= Reais / BitCoin;
Label4.Text:= '';
Label4.Text:= FormatFloat('#0.0000000',QtdBitcoin);
end;
end.
| 21.698925 | 82 | 0.722002 |
6ad386c9bca269ffa42a02241d07eaabc898c7d4
| 24,690 |
pas
|
Pascal
|
Source/dwsPascalTokenizer.pas
|
jomael/DWScript
|
560797ff8dbed6b2508a561af6dadd7fba058a4e
|
[
"Condor-1.1"
] | null | null | null |
Source/dwsPascalTokenizer.pas
|
jomael/DWScript
|
560797ff8dbed6b2508a561af6dadd7fba058a4e
|
[
"Condor-1.1"
] | null | null | null |
Source/dwsPascalTokenizer.pas
|
jomael/DWScript
|
560797ff8dbed6b2508a561af6dadd7fba058a4e
|
[
"Condor-1.1"
] | 1 |
2021-09-11T05:26:27.000Z
|
2021-09-11T05:26:27.000Z
|
{**********************************************************************}
{ }
{ "The contents of this file are subject to the Mozilla Public }
{ License Version 1.1 (the "License"); you may not use this }
{ file except in compliance with the License. You may obtain }
{ a copy of the License at http://www.mozilla.org/MPL/ }
{ }
{ Software distributed under the License is distributed on an }
{ "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express }
{ or implied. See the License for the specific language }
{ governing rights and limitations under the License. }
{ }
{ Copyright Creative IT. }
{ Current maintainer: Eric Grange }
{ }
{**********************************************************************}
unit dwsPascalTokenizer;
{$I dws.inc}
interface
uses dwsTokenizer, dwsTokenTypes, dwsStrings;
type
TPascalTokenizerStateRules = class(TTokenizerRules)
private
sStart, sComment, sCommentF, sSlashComment, sSlashComment0 : TState;
sBracketLeft, sBlockCommentBracket, sBlockCommentBracket1 : TState;
sBlockCommentSlash, sBlockCommentSlash1 : TState;
sSwitch, sSwitchNameF, sChar0, sCharF, sCharHex, sCharHexF : TState;
sNameF, sNameEscapedF, sNameEscapedS: TState;
sIntS, sIntF, sIntPoint, sIntPointF, sIntExp, sIntExp0, sIntExpF : TState;
sBin, sBinF, sHex, sHexF : TState;
sAssign0 : TState;
sPlus, sMinus, sTimes, sPipe : TState;
sStringSingle, sStringSingleF : TState;
sStringDouble, sStringDoubleF : TState;
sStringIndentDouble, sStringIndentDoubleF : TState;
sStringIndentSingle, sStringIndentSingleF : TState;
sGreaterF, sSmallerF, sEqualS, sEqualF, sDotDot, sQuestion : TState;
sExclamation : TState;
FCurlyCommentTransition : TTransition;
FDollarNamesTransition : TTransition;
protected
function StartState : TState; override;
function GetCurlyComments : Boolean; inline;
procedure SetCurlyComments(const val : Boolean);
function GetDollarNames : Boolean; inline;
procedure SetDollarNames(const val : Boolean);
public
constructor Create; override;
property CurlyComments : Boolean read GetCurlyComments write SetCurlyComments;
property DollarNames : Boolean read GetDollarNames write SetDollarNames;
end;
const
cPascalSymbolTokens : TTokenTypes = [
ttStrVal, ttIntVal, ttFloatVal,
ttDOT, ttDOTDOT,
ttPLUS, ttMINUS,
ttTIMES, ttDIVIDE, ttPERCENT, ttCARET, ttAT, ttDOLLAR, ttTILDE,
ttEQ, ttNOT_EQ, ttGTR, ttGTR_EQ, ttLESS, ttLESS_EQ,
ttLESS_LESS, ttGTR_GTR, ttEQ_GTR, ttEQ_EQ,
ttSEMI, ttCOMMA, ttCOLON,
ttASSIGN, ttPLUS_ASSIGN, ttMINUS_ASSIGN, ttTIMES_ASSIGN, ttDIVIDE_ASSIGN,
ttPERCENT_ASSIGN, ttCARET_ASSIGN, ttAT_ASSIGN, ttTILDE_ASSIGN,
ttPLUS_PLUS, ttMINUS_MINUS,
ttBLEFT, ttBRIGHT, ttALEFT, ttARIGHT, ttCRIGHT
];
cPascalReservedNames : TTokenTypes = [
ttAND, ttARRAY, ttAS, ttBEGIN, ttBREAK,
ttCASE, ttCLASS, ttCONST, ttCONSTRUCTOR, ttCONTINUE,
ttDESTRUCTOR, ttDIV, ttDO, ttDOWNTO,
ttELSE, ttEND, ttEXCEPT, ttEXIT,
ttFALSE, ttFINALLY, ttFINALIZATION, ttFOR, ttFUNCTION, ttIF,
ttIMPLEMENTATION, ttIMPLIES, ttIN, ttINHERITED, ttINITIALIZATION,
ttINTERFACE, ttIS, ttMOD, ttNEW, ttNIL, ttNOT, ttOBJECT,
ttOF, ttOPERATOR, ttOR, ttOVERLOAD, ttPROCEDURE, ttPROPERTY, ttRAISE, ttRECORD,
ttREINTRODUCE, ttREPEAT, ttRESOURCESTRING, ttSAR, ttSHL, ttSHR,
ttTHEN, ttTRUE, ttTRY, ttTYPE,
ttUNIT, ttUNTIL, ttUSES, ttVAR, ttWHILE, ttXOR
];
// ------------------------------------------------------------------
// ------------------------------------------------------------------
// ------------------------------------------------------------------
implementation
// ------------------------------------------------------------------
// ------------------------------------------------------------------
// ------------------------------------------------------------------
const
cOPS = ['+', '-', '*', '/', '=', '<', '>', '@', '%', '^', '|'];
cSPACE = [' ', #9, #13, #10, #0];
cSPEC = ['(', ')', ',', ';', '[', ']', '}', '!', '?'];
cSTOP = cSPEC + cOPS + cSPACE + [':', '.', '{'];
cANYCHAR = [#0..#127];
cNAM = ['A'..'Z', 'a'..'z', '_', #127];
cINT = ['0'..'9'];
cHEX = cINT + ['A'..'F', 'a'..'f', '_'];
cBIN = ['0', '1', '_'];
cStart = ['''', '"', '#', ':', '$', '.'] + cNAM + cINT + cOPS;
// ------------------
// ------------------ TPascalTokenizerStateRules ------------------
// ------------------
// Create
//
constructor TPascalTokenizerStateRules.Create;
begin
inherited;
SymbolTokens:=cPascalSymbolTokens;
ReservedNames:=cPascalReservedNames;
sStart:=CreateState;
sComment:=CreateState;
sCommentF:=CreateState;
sSwitch:=CreateState;
sSwitchNameF:=CreateState;
sSlashComment0:=CreateState;
sSlashComment:=CreateState;
sBracketLeft:=CreateState;
sBlockCommentBracket:=CreateState;
sBlockCommentBracket1:=CreateState;
sBlockCommentSlash:=CreateState;
sBlockCommentSlash1:=CreateState;
sChar0:=CreateState;
sCharF:=CreateState;
sCharHex:=CreateState;
sCharHexF:=CreateState;
sNameF:=CreateState;
sNameEscapedS:=CreateState;
sNameEscapedF:=CreateState;
sIntS:=CreateState;
sIntF:=CreateState;
sIntPoint:=CreateState;
sIntPointF:=CreateState;
sIntExp:=CreateState;
sIntExp0:=CreateState;
sIntExpF:=CreateState;
sHex:=CreateState;
sHexF:=CreateState;
sBin:=CreateState;
sBinF:=CreateState;
sStringSingle:=CreateState;
sStringSingleF:=CreateState;
sStringDouble:=CreateState;
sStringDoubleF:=CreateState;
sStringIndentSingle:=CreateState;
sStringIndentSingleF:=CreateState;
sStringIndentDouble:=CreateState;
sStringIndentDoubleF:=CreateState;
sAssign0:=CreateState;
sPlus:=CreateState;
sMinus:=CreateState;
sTimes:=CreateState;
sPipe:=CreateState;
sGreaterF:=CreateState;
sSmallerF:=CreateState;
sEqualS:=CreateState;
sEqualF:=CreateState;
sDotDot:=CreateState;
sQuestion:=CreateState;
sExclamation := CreateState;
sStart.AddTransition([' ', #9], TGalopTransition.Create(sStart, [], caNone));
sStart.AddTransition(cSPACE - [' ', #9], TSeekTransition.Create(sStart, [], caNone));
// sStart.AddTransition(cSPACE, TSeekTransition.Create(sStart, [], caNone));
sStart.AddTransition(cNAM, TConsumeTransition.Create(sNameF, [toStart], caNone));
sStart.AddTransition(['&'], TSeekTransition.Create(sNameEscapedS, [toStart], caNone));
sStart.AddTransition(cINT, TConsumeTransition.Create(sIntS, [toStart], caNone));
sStart.AddTransition([''''], TSeekTransition.Create(sStringSingle, [toStart], caNone));
sStart.AddTransition(['"'], TSeekTransition.Create(sStringDouble, [toStart], caNone));
sStart.AddTransition(['#'], TSeekTransition.Create(sChar0, [toStart], caNone));
sStart.AddTransition([':', '@', '%', '^', '~'], TConsumeTransition.Create(sAssign0, [toStart], caNone));
sStart.AddTransition(['+'], TConsumeTransition.Create(sPlus, [toStart], caNone));
sStart.AddTransition(['-'], TConsumeTransition.Create(sMinus, [toStart], caNone));
sStart.AddTransition(['*'], TConsumeTransition.Create(sTimes, [toStart], caNone));
sStart.AddTransition(['|'], TConsumeTransition.Create(sPipe, [toStart], caNone));
sStart.AddTransition(['='], TConsumeTransition.Create(sEqualS, [toStart], caNone));
sStart.AddTransition(cSPEC-['(', '?', '!'], TConsumeTransition.Create(sStart, [toStart, toFinal], caName));
sStart.AddTransition(['?'], TConsumeTransition.Create(sQuestion, [toStart], caNone));
sStart.AddTransition(['!'], TConsumeTransition.Create(sExclamation, [toStart], caNone));
sStart.AddTransition(['('], TConsumeTransition.Create(sBracketLeft, [toStart], caNone));
sStart.AddTransition(['/'], TConsumeTransition.Create(sSlashComment0, [toStart], caNone));
sStart.AddTransition(['<'], TConsumeTransition.Create(sSmallerF, [toStart], caNone));
sStart.AddTransition(['>'], TConsumeTransition.Create(sGreaterF, [toStart], caNone));
sStart.AddTransition(['.'], TConsumeTransition.Create(sDotDot, [toStart], caNone));
sStart.AddTransition(['{'], TSeekTransition.Create(sComment, [], caNone));
sStart.AddTransition(['$'], TConsumeTransition.Create(sHex, [toStart], caNone));
sStart.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sComment.AddTransition(['}'], TSeekTransition.Create(sStart, [], caClear));
sComment.AddTransition(['$'], TSeekTransition.Create(sSwitch, [], caNone));
sComment.SetElse(TSeekTransition.Create(sCommentF, [], caNone));
sCommentF.AddTransition(['}'], TSeekTransition.Create(sStart, [], caClear));
sCommentF.AddEOFTransition(TErrorTransition.Create(CPE_UnexpectedEndOfFileForUnfinishedComment));
sCommentF.SetElse(TSeekTransition.Create(sCommentF, [], caNone));
sSwitch.AddTransition(cNAM, TConsumeTransition.Create(sSwitchNameF, [toStart], caNone));
sSwitch.AddEOFTransition(TErrorTransition.Create(CPE_UnexpectedEndOfFileForUnfinishedDirective));
sSwitch.SetElse(TErrorTransition.Create(TOK_NameOfSwitchExpected));
sSwitchNameF.AddTransition(cNAM + cINT, TConsumeTransition.Create(sSwitchNameF, [], caNone));
sSwitchNameF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caSwitch));
sSwitchNameF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sSlashComment0.AddTransition(['/'], TSeekTransition.Create(sSlashComment, [], caNone));
sSlashComment0.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sSlashComment0.AddTransition(['*'], TConsumeTransition.Create(sBlockCommentSlash, [], caNone));
sSlashComment0.SetElse(TCheckTransition.Create(sStart, [toFinal], caName));
sSlashComment.AddTransition([#10], TSeekTransition.Create(sStart, [], caClear));
sSlashComment.SetElse(TSeekTransition.Create(sSlashComment, [], caNone));
sBracketLeft.AddTransition(['*'], TSeekTransition.Create(sBlockCommentBracket, [], caNone));
sBracketLeft.SetElse(TCheckTransition.Create(sStart, [toFinal], caName));
sBlockCommentBracket.AddTransition(['*'], TSeekTransition.Create(sBlockCommentBracket1, [], caNone));
sBlockCommentBracket.SetElse(TSeekTransition.Create(sBlockCommentBracket, [], caNone));
sBlockCommentBracket1.AddTransition([')'], TSeekTransition.Create(sStart, [], caClear));
sBlockCommentBracket1.AddTransition(['*'], TSeekTransition.Create(sBlockCommentBracket1, [], caNone));
sBlockCommentBracket1.AddEOFTransition(TErrorTransition.Create(CPE_UnexpectedEndOfFileForUnfinishedComment));
sBlockCommentBracket1.SetElse(TSeekTransition.Create(sBlockCommentBracket, [], caNone));
sBlockCommentSlash.AddTransition(['*'], TSeekTransition.Create(sBlockCommentSlash1, [], caNone));
sBlockCommentSlash.SetElse(TSeekTransition.Create(sBlockCommentSlash, [], caNone));
sBlockCommentSlash1.AddTransition(['/'], TSeekTransition.Create(sStart, [], caClear));
sBlockCommentSlash1.AddTransition(['*'], TSeekTransition.Create(sBlockCommentSlash1, [], caNone));
sBlockCommentSlash1.AddEOFTransition(TErrorTransition.Create(CPE_UnexpectedEndOfFileForUnfinishedComment));
sBlockCommentSlash1.SetElse(TSeekTransition.Create(sBlockCommentSlash, [], caNone));
sChar0.AddTransition(cINT, TConsumeTransition.Create(sCharF, [], caNone));
sChar0.AddTransition(['$'], TConsumeTransition.Create(sCharHex, [], caNone));
sChar0.AddTransition([''''], TSeekTransition.Create(sStringIndentSingle, [], caNone));
sChar0.AddTransition(['"'], TSeekTransition.Create(sStringIndentDouble, [], caNone));
sChar0.SetElse(TErrorTransition.Create(TOK_NumberExpected));
sCharF.AddTransition(cINT, TConsumeTransition.Create(sCharF, [], caNone));
sCharF.AddTransition(['''', '"'], TCheckTransition.Create(sStart, [], caChar));
sCharF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caChar));
sCharF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caChar));
sCharF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sCharHex.AddTransition(cHEX, TConsumeTransition.Create(sCharHexF, [], caNone));
sCharHex.SetElse(TErrorTransition.Create(TOK_HexDigitExpected));
sCharHexF.AddTransition(cHEX, TConsumeTransition.Create(sCharHexF, [], caNone));
sCharHexF.AddTransition(['''', '"'], TCheckTransition.Create(sStart, [], caCharHex));
sCharHexF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caCharHex));
sCharHexF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caCharHex));
sCharHexF.SetElse(TErrorTransition.Create(TOK_HexDigitExpected));
sNameF.AddTransition(cNAM + cINT, TConsumeTransition.Create(sNameF, [], caNone));
sNameF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sNameF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sNameEscapedS.AddTransition(cNAM, TConsumeTransition.Create(sNameEscapedF, [toStart], caNone));
sNameEscapedS.AddTransition(['&'], TConsumeTransition.Create(sStart, [toFinal], caAmpAmp));
sNameEscapedS.SetElse(TCheckTransition.Create(sStart, [toFinal], caAmp));
sNameEscapedF.AddTransition(cNAM+cINT, TConsumeTransition.Create(sNameEscapedF, [], caNone));
sNameEscapedF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caNameEscaped));
sNameEscapedF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sIntS.AddTransition(cINT, TConsumeTransition.Create(sIntF, [], caNone));
sIntS.AddTransition(['.'], TConsumeTransition.Create(sIntPoint, [], caNone));
sIntS.AddTransition(['E', 'e'], TConsumeTransition.Create(sIntExp, [], caNone));
sIntS.AddTransition(['X', 'x'], TConsumeTransition.Create(sHexF, [], caNone));
sIntS.AddTransition(['B', 'b'], TConsumeTransition.Create(sBin, [], caNone));
sIntS.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caInteger));
sIntS.SetElse(TErrorTransition.Create(TOK_NumberPointExponentExpected));
sIntF.AddTransition(cINT, TConsumeTransition.Create(sIntF, [], caNone));
sIntF.AddTransition(['.'], TConsumeTransition.Create(sIntPoint, [], caNone));
sIntF.AddTransition(['E', 'e'], TConsumeTransition.Create(sIntExp, [], caNone));
sIntF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caInteger));
sIntF.SetElse(TErrorTransition.Create(TOK_NumberPointExponentExpected));
sIntPoint.AddTransition(['.'], TCheckTransition.Create(sDotDot, [toFinal], caInteger));
sIntPoint.AddTransition(cINT, TConsumeTransition.Create(sIntPointF, [], caNone));
sIntPoint.SetElse(TErrorTransition.Create(TOK_NumberExpected));
sIntPointF.AddTransition(cINT, TConsumeTransition.Create(sIntPointF, [], caNone));
sIntPointF.AddTransition(['E', 'e'], TConsumeTransition.Create(sIntExp, [], caNone));
sIntPointF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caFloat));
sIntPointF.SetElse(TErrorTransition.Create(TOK_NumberExponentExpected));
sIntExp.AddTransition(['+', '-'], TConsumeTransition.Create(sIntExp0, [], caNone));
sIntExp.AddTransition(cINT, TConsumeTransition.Create(sIntExpF, [], caNone));
sIntExp.SetElse(TErrorTransition.Create(TOK_NumberSignExpected));
sIntExp0.AddTransition(cINT, TConsumeTransition.Create(sIntExpF, [], caNone));
sIntExp0.SetElse(TErrorTransition.Create(TOK_NumberExpected));
sIntExpF.AddTransition(cINT, TConsumeTransition.Create(sIntExpF, [], caNone));
sIntExpF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caFloat));
sIntExpF.SetElse(TErrorTransition.Create(TOK_NumberExpected));
sHex.AddTransition(cHEX, TConsumeTransition.Create(sHexF, [], caNone));
sHex.AddTransition(['('], TCheckTransition.Create(sStart, [toFinal], caName));
sHex.SetElse(TErrorTransition.Create(TOK_HexDigitExpected));
sHexF.AddTransition(cHEX, TConsumeTransition.Create(sHexF, [], caNone));
sHexF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caHex));
sHexF.SetElse(TErrorTransition.Create(TOK_HexDigitExpected));
sBin.AddTransition(cBIN, TConsumeTransition.Create(sBinF, [], caNone));
sBin.SetElse(TErrorTransition.Create(TOK_BinDigitExpected));
sBinF.AddTransition(cBIN, TConsumeTransition.Create(sBinF, [], caNone));
sBinF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caBin));
sBinF.SetElse(TErrorTransition.Create(TOK_BinDigitExpected));
sStringSingle.AddTransition(cANYCHAR - ['''', #13, #10], TConsumeTransition.Create(sStringSingle, [], caNone));
sStringSingle.AddTransition([''''], TSeekTransition.Create(sStringSingleF, [], caNone));
sStringSingle.AddTransition([#0, #13, #10], TErrorTransition.Create(TOK_StringTerminationError));
sStringSingleF.AddTransition([''''], TConsumeTransition.Create(sStringSingle, [], caNone));
sStringSingleF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caString));
sStringSingleF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caString));
sStringSingleF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sStringDouble.AddTransition(cANYCHAR - ['"', #0], TConsumeTransition.Create(sStringDouble, [], caNone));
sStringDouble.AddTransition(['"'], TSeekTransition.Create(sStringDoubleF, [], caNone));
sStringDouble.AddEOFTransition(TErrorTransition.Create(TOK_HereDocTerminationError));
sStringDoubleF.AddTransition(['"'], TConsumeTransition.Create(sStringDouble, [], caNone));
sStringDoubleF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caString));
sStringDoubleF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caString));
sStringDoubleF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sStringIndentSingle.AddTransition(cANYCHAR - ['''', #0], TConsumeTransition.Create(sStringIndentSingle, [], caNone));
sStringIndentSingle.AddTransition([''''], TSeekTransition.Create(sStringIndentSingleF, [], caNone));
sStringIndentSingle.AddEOFTransition(TErrorTransition.Create(TOK_HereDocTerminationError));
sStringIndentSingleF.AddTransition([''''], TConsumeTransition.Create(sStringIndentSingle, [], caNone));
sStringIndentSingleF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caMultiLineString));
sStringIndentSingleF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caMultiLineString));
sStringIndentSingleF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sStringIndentDouble.AddTransition(cANYCHAR - ['"', #0], TConsumeTransition.Create(sStringIndentDouble, [], caNone));
sStringIndentDouble.AddTransition(['"'], TSeekTransition.Create(sStringIndentDoubleF, [], caNone));
sStringIndentDouble.AddEOFTransition(TErrorTransition.Create(TOK_HereDocTerminationError));
sStringIndentDoubleF.AddTransition(['"'], TConsumeTransition.Create(sStringIndentDouble, [], caNone));
sStringIndentDoubleF.AddTransition(['#'], TCheckTransition.Create(sStart, [], caMultiLineString));
sStringIndentDoubleF.AddTransition(cSTOP, TCheckTransition.Create(sStart, [toFinal], caMultiLineString));
sStringIndentDoubleF.SetElse(TErrorTransition.Create(TOK_InvalidChar));
sAssign0.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sAssign0.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sAssign0.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sPlus.AddTransition(['=', '+'], TConsumeTransition.Create(sStart, [toFinal], caName));
sPlus.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sPlus.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sMinus.AddTransition(['=', '-'], TConsumeTransition.Create(sStart, [toFinal], caName));
sMinus.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sMinus.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sTimes.AddTransition(['=', '*'], TConsumeTransition.Create(sStart, [toFinal], caName));
sTimes.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sTimes.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sPipe.AddTransition(['=', '|'], TConsumeTransition.Create(sStart, [toFinal], caName));
sPipe.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sPipe.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sGreaterF.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sGreaterF.AddTransition(['>'], TConsumeTransition.Create(sStart, [toFinal], caName));
sGreaterF.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sGreaterF.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sSmallerF.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sSmallerF.AddTransition(['>'], TConsumeTransition.Create(sStart, [toFinal], caName));
sSmallerF.AddTransition(['<'], TConsumeTransition.Create(sStart, [toFinal], caName));
sSmallerF.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sSmallerF.SetElse(TErrorTransition.Create(TOK_GreaterEqualityExpected));
sEqualS.AddTransition(['='], TConsumeTransition.Create(sEqualF, [], caNone));
sEqualS.AddTransition(['>'], TConsumeTransition.Create(sStart, [toFinal], caName));
sEqualS.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sEqualS.SetElse(TErrorTransition.Create(TOK_GreaterEqualityExpected));
sEqualF.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sEqualF.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sEqualF.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sExclamation.AddTransition(['='], TConsumeTransition.Create(sStart, [toFinal], caName));
sExclamation.AddTransition(cStart + cSTOP, TCheckTransition.Create(sStart, [toFinal], caName));
sExclamation.SetElse(TErrorTransition.Create(TOK_EqualityExpected));
sDotDot.AddTransition(['.'], TConsumeTransition.Create(sStart, [toFinal], caDotDot));
sDotDot.SetElse(TCheckTransition.Create(sStart, [toFinal], caName));
sQuestion.AddTransition(['?', '.'], TConsumeTransition.Create(sStart, [toFinal], caName));
sQuestion.SetElse(TCheckTransition.Create(sStart, [toFinal], caName));
PrepareStates;
end;
// StartState
//
function TPascalTokenizerStateRules.StartState : TState;
begin
Result:=sStart;
end;
// GetCurlyComments
//
function TPascalTokenizerStateRules.GetCurlyComments : Boolean;
begin
Result:=(FCurlyCommentTransition=nil);
end;
// SetCurlyComments
//
procedure TPascalTokenizerStateRules.SetCurlyComments(const val : Boolean);
begin
if val=CurlyComments then Exit;
if val then begin
sStart.SetTransition('{', FCurlyCommentTransition);
FCurlyCommentTransition:=nil;
end else begin
FCurlyCommentTransition:=sStart.FindTransition('{');
sStart.SetTransition('{', sStart.FindTransition(';'));
end;
end;
// GetDollarNames
//
function TPascalTokenizerStateRules.GetDollarNames : Boolean;
begin
Result:=(FDollarNamesTransition<>nil);
end;
// SetDollarNames
//
procedure TPascalTokenizerStateRules.SetDollarNames(const val : Boolean);
begin
if val=DollarNames then Exit;
if val then begin
FDollarNamesTransition:=sStart.FindTransition('$');
sStart.SetTransition('$', sStart.FindTransition('A'));
sNameF.SetTransition('$', sNameF.FindTransition('A'));
end else begin
sStart.SetTransition('$', FDollarNamesTransition);
sNameF.SetTransition('$', sNameF.FindTransition(#0));
FDollarNamesTransition:=nil;
end;
end;
end.
| 52.309322 | 121 | 0.693155 |
f1c52ead0805f2d7806b0a5fdf7cbd55e983cd8e
| 3,191 |
pas
|
Pascal
|
Source/LeakCheck.Trace.WinApi.pas
|
sauravmohapatra/delphi-leakcheck
|
9c4964d4e504a17e8820364d907cdb6703045dcf
|
[
"Apache-2.0"
] | 25 |
2017-10-11T14:52:00.000Z
|
2021-12-02T05:38:56.000Z
|
Source/LeakCheck.Trace.WinApi.pas
|
sauravmohapatra/delphi-leakcheck
|
9c4964d4e504a17e8820364d907cdb6703045dcf
|
[
"Apache-2.0"
] | null | null | null |
Source/LeakCheck.Trace.WinApi.pas
|
sauravmohapatra/delphi-leakcheck
|
9c4964d4e504a17e8820364d907cdb6703045dcf
|
[
"Apache-2.0"
] | 10 |
2017-06-05T13:48:42.000Z
|
2021-12-02T05:38:58.000Z
|
{***************************************************************************}
{ }
{ LeakCheck for Delphi }
{ }
{ Copyright (c) 2015 Honza Rames }
{ }
{ https://bitbucket.org/shadow_cs/delphi-leakcheck }
{ }
{***************************************************************************}
{ }
{ Licensed under the Apache License, Version 2.0 (the "License"); }
{ you may not use this file except in compliance with the License. }
{ You may obtain a copy of the License at }
{ }
{ http://www.apache.org/licenses/LICENSE-2.0 }
{ }
{ Unless required by applicable law or agreed to in writing, software }
{ distributed under the License is distributed on an "AS IS" BASIS, }
{ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. }
{ See the License for the specific language governing permissions and }
{ limitations under the License. }
{ }
{***************************************************************************}
unit LeakCheck.Trace.WinApi;
{$I LeakCheck.inc}
interface
/// <summary>
/// Native Windows API solution. Performs basic scanning and may omit some
/// stack frames. Win32 and Win64 only. Best solution for Win64. Does not use
/// global caches.
/// </summary>
function WinApiStackTrace(IgnoredFrames: Integer; Data: PPointer;
Size: Integer): Integer;
implementation
uses
Windows,
SysUtils;
function RtlCaptureStackBackTrace(FramesToSkip: ULONG; FramesToCapture: ULONG;
BackTrace: PPointer; BackTraceHash : PULONG = nil): USHORT;
stdcall; external 'kernel32.dll';
var
// Current windows version is XP or older (RtlCaptureStackBackTrace is not
// suppored on older version than XP according to MSDN, it may be supported
// on Windows 2000 but the documentation has been stripped off already)
WinXPDown: Boolean = False;
function WinApiStackTrace(IgnoredFrames: Integer; Data: PPointer;
Size: Integer): Integer;
begin
// Implicitly ignore current frame
Inc(IgnoredFrames);
if (WinXPDown) then
begin
// Windows XP only supports IgnoredFrames + Size < 63
// https://msdn.microsoft.com/en-us/library/windows/desktop/bb204633(v=vs.85).aspx
if IgnoredFrames + Size >= 63 then
Size := 62 - IgnoredFrames;
end;
Result := RtlCaptureStackBackTrace(IgnoredFrames, Size, Data);
end;
initialization
WinXPDown := not CheckWin32Version(6);
end.
| 42.546667 | 86 | 0.479474 |
850accfa7b0bf91094537c2aee81e0d2e0eec0ec
| 806 |
dfm
|
Pascal
|
Udm.dfm
|
rioda78/LoadAuto
|
bc15c139540d333fea66b83eda6cb2a7f7d4aa0c
|
[
"MIT"
] | null | null | null |
Udm.dfm
|
rioda78/LoadAuto
|
bc15c139540d333fea66b83eda6cb2a7f7d4aa0c
|
[
"MIT"
] | null | null | null |
Udm.dfm
|
rioda78/LoadAuto
|
bc15c139540d333fea66b83eda6cb2a7f7d4aa0c
|
[
"MIT"
] | null | null | null |
object Dm: TDm
OldCreateOrder = False
OnCreate = DataModuleCreate
Height = 246
Width = 427
object ADOConnSatu: TADOConnection
Connected = True
ConnectionString =
'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security In' +
'fo=False;User ID=sa;Initial Catalog=siskeudes_sragen;Data Source' +
'=.'
LoginPrompt = False
Provider = 'SQLOLEDB.1'
BeforeConnect = ADOConnSatuBeforeConnect
Left = 136
Top = 112
end
object ADOConnDua: TADOConnection
ConnectionString =
'Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security In' +
'fo=False;User ID=sa;Initial Catalog=siskeudes_sragen;Data Source' +
'=.'
Provider = 'SQLOLEDB.1'
BeforeConnect = ADOConnDuaBeforeConnect
Left = 248
Top = 112
end
end
| 27.793103 | 74 | 0.691067 |
f1e55f40f4cb99d6775f9f347ca0811522341574
| 304 |
dpr
|
Pascal
|
Projects/Lazarus_Bible/D_XE/Capslock.dpr
|
joecare99/Public
|
9eee060fbdd32bab33cf65044602976ac83f4b83
|
[
"MIT"
] | 11 |
2017-06-17T05:13:45.000Z
|
2021-07-11T13:18:48.000Z
|
Projects/Lazarus_Bible/D_XE/Capslock.dpr
|
joecare99/Public
|
9eee060fbdd32bab33cf65044602976ac83f4b83
|
[
"MIT"
] | 2 |
2019-03-05T12:52:40.000Z
|
2021-12-03T12:34:26.000Z
|
Projects/Lazarus_Bible/D_XE/Capslock.dpr
|
joecare99/Public
|
9eee060fbdd32bab33cf65044602976ac83f4b83
|
[
"MIT"
] | 6 |
2017-09-07T09:10:09.000Z
|
2022-02-19T20:19:58.000Z
|
program Capslock;
uses
Forms,
Frm_CapslockMAIN in '..\source\CAPSLOCK\Frm_CapslockMAIN.PAS' {MainForm};
{$R *.RES}
{$E EXE}
begin
Application.Initialize;
Application.Title := 'Demo: Capslock';
Application.CreateForm(TfrmCapsLockMain, frmCapsLockMain);
Application.Run;
end.
| 17.882353 | 76 | 0.703947 |
f1a45ce182b560ef0a5c90b61787d1d62bf8aeae
| 7,276 |
pas
|
Pascal
|
sources/MVCFramework.RQL.AST2SQLite.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | 1 |
2021-09-08T12:47:24.000Z
|
2021-09-08T12:47:24.000Z
|
sources/MVCFramework.RQL.AST2SQLite.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | null | null | null |
sources/MVCFramework.RQL.AST2SQLite.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | 1 |
2021-09-08T12:47:25.000Z
|
2021-09-08T12:47:25.000Z
|
// *************************************************************************** }
//
// Delphi MVC Framework
//
// Copyright (c) 2010-2020 Daniele Teti and the DMVCFramework Team
//
// https://github.com/danieleteti/delphimvcframework
//
// ***************************************************************************
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ***************************************************************************
unit MVCFramework.RQL.AST2SQLite;
interface
uses
MVCFramework.RQL.Parser;
type
TRQLSQLiteCompiler = class(TRQLCompiler)
private
function RQLFilterToSQL(const aRQLFIlter: TRQLFilter): string;
function RQLSortToSQL(const aRQLSort: TRQLSort): string;
function RQLLimitToSQL(const aRQLLimit: TRQLLimit): string;
function RQLWhereToSQL(const aRQLWhere: TRQLWhere): string;
function RQLLogicOperatorToSQL(const aRQLFIlter: TRQLLogicOperator): string;
function RQLCustom2SQL(const aRQLCustom: TRQLCustom): string;
public
procedure AST2SQL(const aRQLAST: TRQLAbstractSyntaxTree; out aSQL: string); override;
end;
implementation
uses
System.SysUtils,
FireDAC.Phys.SQLite,
FireDAC.Phys.SQLiteDef;
{ TRQLSQLiteCompiler }
function TRQLSQLiteCompiler.RQLCustom2SQL(
const aRQLCustom: TRQLCustom): string;
begin
if aRQLCustom is TRQLFilter then
begin
Result := RQLFilterToSQL(TRQLFilter(aRQLCustom));
end
else if aRQLCustom is TRQLLogicOperator then
begin
Result := RQLLogicOperatorToSQL(TRQLLogicOperator(aRQLCustom));
end
else if aRQLCustom is TRQLSort then
begin
Result := RQLSortToSQL(TRQLSort(aRQLCustom));
end
else if aRQLCustom is TRQLLimit then
begin
Result := RQLLimitToSQL(TRQLLimit(aRQLCustom));
end
else if aRQLCustom is TRQLWhere then
begin
Result := RQLWhereToSQL(TRQLWhere(aRQLCustom));
end
else
raise ERQLException.CreateFmt('Unknown token in compiler: %s', [aRQLCustom.ClassName]);
end;
function TRQLSQLiteCompiler.RQLFilterToSQL(const aRQLFIlter: TRQLFilter): string;
var
lValue, lDBFieldName: string;
begin
if (aRQLFIlter.RightValueType = vtString) and (aRQLFIlter.Token <> tkContains) then
lValue := aRQLFIlter.OpRight.QuotedString('''')
else
lValue := aRQLFIlter.OpRight;
lDBFieldName := GetDatabaseFieldName(aRQLFIlter.OpLeft);
case aRQLFIlter.Token of
tkEq:
begin
if aRQLFIlter.RightValueType = vtNull then
Result := Format('(%s IS NULL)', [lDBFieldName])
else
Result := Format('(%s = %s)', [lDBFieldName, lValue]);
end;
tkLt:
begin
Result := Format('(%s < %s)', [lDBFieldName, lValue]);
end;
tkLe:
begin
Result := Format('(%s <= %s)', [lDBFieldName, lValue]);
end;
tkGt:
begin
Result := Format('(%s > %s)', [lDBFieldName, lValue]);
end;
tkGe:
begin
Result := Format('(%s >= %s)', [lDBFieldName, lValue]);
end;
tkNe:
begin
if aRQLFIlter.RightValueType = vtNull then
Result := Format('(%s IS NOT NULL)', [lDBFieldName])
else
Result := Format('(%s != %s)', [lDBFieldName, lValue]);
end;
tkContains:
begin
lValue := Format('%%%s%%', [lValue]).QuotedString('''');
Result := Format('(%s LIKE %s)', [lDBFieldName, lValue.ToLower])
end;
tkIn:
begin
case aRQLFIlter.RightValueType of
vtIntegerArray: // if array is empty, RightValueType is always vtIntegerArray
begin
Result := Format('(%s IN (%s))', [
lDBFieldName, string.Join(',', aRQLFIlter.OpRightArray)
]);
end;
vtStringArray:
begin
Result := Format('(%s IN (%s))', [
lDBFieldName, string.Join(',', QuoteStringArray(aRQLFIlter.OpRightArray))
]);
end;
else
raise ERQLException.Create('Invalid RightValueType for tkIn');
end;
end;
tkOut:
begin
case aRQLFIlter.RightValueType of
vtIntegerArray:
begin
Result := Format('(%s NOT IN (%s))', [
lDBFieldName, string.Join(',', aRQLFIlter.OpRightArray)
]);
end;
vtStringArray:
begin
Result := Format('(%s NOT IN (%s))', [
lDBFieldName, string.Join(',', QuoteStringArray(aRQLFIlter.OpRightArray))
]);
end;
else
raise ERQLException.Create('Invalid RightValueType for tkOut');
end;
end;
end;
end;
function TRQLSQLiteCompiler.RQLLimitToSQL(const aRQLLimit: TRQLLimit): string;
begin
Result := Format(' /*limit*/ LIMIT %d OFFSET %d', [aRQLLimit.Count, aRQLLimit.Start]);
end;
function TRQLSQLiteCompiler.RQLLogicOperatorToSQL(const aRQLFIlter: TRQLLogicOperator): string;
var
lJoin: string;
lRQLCustom: TRQLCustom;
lFirst: Boolean;
begin
case aRQLFIlter.Token of
tkAnd:
begin
lJoin := ' and ';
end;
tkOr:
begin
lJoin := ' or ';
end;
else
raise ERQLException.Create('Invalid token in RQLLogicOperator');
end;
Result := '';
lFirst := True;
for lRQLCustom in aRQLFIlter.FilterAST do
begin
if not lFirst then
begin
Result := Result + lJoin;
end;
lFirst := False;
Result := Result + RQLCustom2SQL(lRQLCustom);
end;
Result := '(' + Result + ')';
end;
function TRQLSQLiteCompiler.RQLSortToSQL(const aRQLSort: TRQLSort): string;
var
I: Integer;
begin
Result := ' /*sort*/ ORDER BY';
for I := 0 to aRQLSort.Fields.Count - 1 do
begin
if I > 0 then
Result := Result + ',';
Result := Result + ' ' + GetDatabaseFieldName(aRQLSort.Fields[I]);
if aRQLSort.Signs[I] = '+' then
Result := Result + ' ASC'
else
Result := Result + ' DESC';
end;
end;
function TRQLSQLiteCompiler.RQLWhereToSQL(const aRQLWhere: TRQLWhere): string;
begin
Result := ' WHERE ';
end;
procedure TRQLSQLiteCompiler.AST2SQL(const aRQLAST: TRQLAbstractSyntaxTree;
out aSQL: string);
var
lBuff: TStringBuilder;
lItem: TRQLCustom;
begin
inherited;
{
Here you can rearrange tokens in the list, for example:
For firebird and mysql syntax you have: filters, sort, limit (default)
For MSSQL syntax you need to rearrange in: limit, filters, sort
}
lBuff := TStringBuilder.Create;
try
for lItem in aRQLAST do
begin
lBuff.Append(RQLCustom2SQL(lItem));
end;
aSQL := lBuff.ToString;
finally
lBuff.Free;
end;
end;
initialization
TRQLCompilerRegistry.Instance.RegisterCompiler('sqlite', TRQLSQLiteCompiler);
finalization
TRQLCompilerRegistry.Instance.UnRegisterCompiler('sqlite');
end.
| 27.560606 | 95 | 0.626581 |
f110bbb599451edb65f1bda54821e8e4d7db63a8
| 2,042 |
pas
|
Pascal
|
samples/jsonwebtoken_livevaliditywindow/WebModuleUnit1.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | null | null | null |
samples/jsonwebtoken_livevaliditywindow/WebModuleUnit1.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | null | null | null |
samples/jsonwebtoken_livevaliditywindow/WebModuleUnit1.pas
|
JensMertelmeyer/delphimvcframework
|
1c9bcea41cbded5eacffeaab3275b9b9aa9761de
|
[
"Apache-2.0"
] | null | null | null |
unit WebModuleUnit1;
interface
uses
System.SysUtils,
System.Classes,
Web.HTTPApp,
MVCFramework,
MVCFramework.Commons;
type
TWebModule1 = class(TWebModule)
procedure WebModuleCreate(Sender: TObject);
private
MVC: TMVCEngine;
public
{ Public declarations }
end;
var
WebModuleClass: TComponentClass = TWebModule1;
implementation
{$R *.dfm}
uses
AppControllerU,
System.Generics.Collections,
AuthenticationU,
MVCFramework.Middleware.JWT,
MVCFramework.JWT,
MVCFramework.Middleware.StaticFiles,
System.DateUtils;
procedure TWebModule1.WebModuleCreate(Sender: TObject);
var
lClaimsSetup: TJWTClaimsSetup;
begin
lClaimsSetup := procedure(const JWT: TJWT)
begin
JWT.Claims.Issuer := 'Delphi MVC Framework JWT Middleware Sample';
JWT.Claims.NotBefore := Now - OneMinute * 5; // valid since 5 minutes ago
JWT.Claims.IssuedAt := Now;
JWT.Claims.ExpirationTime := Now + OneSecond * 30;
JWT.CustomClaims['mycustomvalue'] := 'hello there';
// Here we dont use a fixed ExpirationTime but a LiveValidityWindowInSeconds
// to make the ExpirationTime dynamic, incrementing the
// ExpirationTime by LiveValidityWindowInSeconds seconds at each request
JWT.LiveValidityWindowInSeconds := 60; // 60 * 60; // 1 hour
end;
MVC := TMVCEngine.Create(Self,
procedure(Config: TMVCConfig)
begin
Config[TMVCConfigKey.SessionTimeout] := '30';
Config[TMVCConfigKey.DefaultContentType] := 'text/html';
end);
MVC
.AddController(TApp1MainController)
.AddController(TAdminController)
.AddMiddleware(TMVCJWTAuthenticationMiddleware.Create(
TAuthenticationSample.Create, lClaimsSetup, 'mys3cr37', '/login',
[TJWTCheckableClaim.ExpirationTime, TJWTCheckableClaim.NotBefore, TJWTCheckableClaim.IssuedAt], 0
// just for test, Leeway seconds is zero.
));
// .AddMiddleware(TMVCStaticFilesMiddleware.Create(
// '/static', { StaticFilesPath }
// '..\..\www' { DocumentRoot }
// ));
end;
end.
| 26.179487 | 103 | 0.714985 |
838f0ccc87b46309ce3b015586eb53de28900216
| 6,492 |
pas
|
Pascal
|
src/loaders/PortableExecutable/uLoaderDOS.pas
|
vdisasm/vdisasm
|
5827a579782d247e51e281533362517318dc47b4
|
[
"MIT"
] | 34 |
2015-05-04T03:55:42.000Z
|
2021-08-22T09:57:44.000Z
|
src/loaders/PortableExecutable/uLoaderDOS.pas
|
vdisasm/vdisasm
|
5827a579782d247e51e281533362517318dc47b4
|
[
"MIT"
] | null | null | null |
src/loaders/PortableExecutable/uLoaderDOS.pas
|
vdisasm/vdisasm
|
5827a579782d247e51e281533362517318dc47b4
|
[
"MIT"
] | 11 |
2016-08-11T10:00:15.000Z
|
2020-11-27T06:00:09.000Z
|
unit uLoaderDOS;
interface
uses
System.Classes,
System.SysUtils,
VDAPI;
function IsDosFile: boolean;
procedure FillTask(const Task: IVDLoaderTask);
implementation
const
PARA_SIZE = 16; // size of paragraph
BLCK_SIZE = 512; // size of block
type
// http://www.delorie.com/djgpp/doc/exe/
TImageDosHeader = packed record
{ 00-01 } e_magic: Word;
// The number of bytes in the last block of the program that are actually used.
// If this value is zero, that means the entire last block is used (i.e. the effective value is 512).
{ 02-03 } e_cblp: Word;
// Number of blocks in the file that are part of the EXE file.
// If [02-03] is non-zero, only that much of the last block is used.
e_cp: Word;
// Number of relocation entries stored after the header. May be zero.
{ 06-07 } e_crlc: Word;
// Number of paragraphs in the header.
// The program's data begins just after the header, and this field can be used
// to calculate the appropriate file offset. The header includes the relocation
// entries. Note that some OSs and/or programs may fail if the header is not a
// multiple of 512 bytes.
{ 08-09 } e_cparhdr: Word;
// Number of paragraphs of additional memory that the program will need.
// This is the equivalent of the BSS size in a Unix program.
// The program can't be loaded if there isn't at least this much memory available to it.
{ 0A-0B } e_minalloc: Word;
// Maximum number of paragraphs of additional memory. Normally, the OS reserves
// all the remaining conventional memory for your program, but you can limit it with this field.
{ 0C-0D } e_maxalloc: Word;
// Relative value of the stack segment.
// This value is added to the segment the program was loaded at, and the result
// is used to initialize the SS register.
{ 0E-0F } e_ss: Word;
// Initial value of the SP register.
{ 10-11 } e_sp: Word;
// Word checksum.
// If set properly, the 16-bit sum of all words in the file should be zero.
// Usually, this isn't filled in.
{ 12-13 } e_csum: Word;
// Initial value of the IP register.
{ 14-15 } e_ip: Word;
// Initial value of the CS register, relative to the segment the program was loaded at.
{ 16-17 } e_cs: Word;
// Offset of the first relocation item in the file.
{ 18-19 } e_lfarlc: Word;
// Overlay number. Normally zero, meaning that it's the main program.
{ 1A-1B } e_ovno: Word;
// e_res: array [0 .. 3] of Word;
// e_oemid: Word;
// e_oeminfo: Word;
// e_res2: array [0 .. 9] of Word;
// e_lfanew: LongInt;
function GetExeDataStart: uint32; inline;
function GetExtraDataStart: uint32; inline;
end;
{ TImageDosHeader }
TExeReloc = packed record
offset: Word;
segment: Word;
end;
function TImageDosHeader.GetExeDataStart: uint32;
begin
Result := e_cparhdr * PARA_SIZE;
end;
function TImageDosHeader.GetExtraDataStart: uint32;
begin
Result := e_cp * BLCK_SIZE;
if e_cblp <> 0 then
dec(Result, BLCK_SIZE - e_cblp);
end;
function ReadDosHeader(out Hdr: TImageDosHeader): boolean;
const
MAGIC_1 = $4D5A;
MAGIC_2 = $5A4D;
var
c: IVDCore;
fn: string;
fs: TFileStream;
begin
c := CoreGet();
fn := c.InputFile.FileName;
fs := TFileStream.Create(fn, fmOpenRead or fmShareDenyWrite);
try
Result :=
// Read header
(fs.Read(Hdr, SizeOf(TImageDosHeader)) = SizeOf(TImageDosHeader)) and
// Match signature
((Hdr.e_magic = MAGIC_1) or (Hdr.e_magic = MAGIC_2));
finally
fs.Free;
end;
end;
function IsDosFile: boolean;
var
hdr: TImageDosHeader;
begin
result := ReadDosHeader(hdr);
end;
procedure DumpDosHdr(const c: IVDCore; const DosHdr: TImageDosHeader);
begin
{$IFDEF DEBUG}
c.Log.WriteLn(Format('e_magic: %x', [DosHdr.e_magic]));
c.Log.WriteLn(Format('e_cblp: %x', [DosHdr.e_cblp]));
c.Log.WriteLn(Format('e_cp: %x', [DosHdr.e_cp]));
c.Log.WriteLn(Format('e_crlc: %x', [DosHdr.e_crlc]));
c.Log.WriteLn(Format('e_cparhdr: %x', [DosHdr.e_cparhdr]));
c.Log.WriteLn(Format('e_minalloc: %x', [DosHdr.e_minalloc]));
c.Log.WriteLn(Format('e_maxalloc: %x', [DosHdr.e_maxalloc]));
c.Log.WriteLn(Format('e_ss: %x', [DosHdr.e_ss]));
c.Log.WriteLn(Format('e_sp: %x', [DosHdr.e_sp]));
c.Log.WriteLn(Format('e_csum: %x', [DosHdr.e_csum]));
c.Log.WriteLn(Format('e_ip: %x', [DosHdr.e_ip]));
c.Log.WriteLn(Format('e_cs: %x', [DosHdr.e_cs]));
c.Log.WriteLn(Format('e_lfarlc: %x', [DosHdr.e_lfarlc]));
c.Log.WriteLn(Format('e_ovno: %x', [DosHdr.e_ovno]));
{$ENDIF}
end;
procedure ApplyCpu(const Task: IVDLoaderTask);
begin
Task.SetCpuName(TCpuName.X16);
Task.SetEndianness(TEndianness.Little);
Task.SetAddressSize(2);
end;
procedure FillTask(const Task: IVDLoaderTask);
const
IMG_BASE = 0;
var
c: IVDCore;
io: IVDIO;
DosHdr: TImageDosHeader;
FileName: BSTR;
var
DataOfs, DataSize: uint;
ExtraOfs, CodeOfs, CodeSize: uint;
DataVA, CodeVA, EntryVA: TVA;
DataVSize, CodeVSize: uint;
begin
c := CoreGet();
io := IOGet;
if not ReadDosHeader(DosHdr) then
begin
c.Log.WriteLn('Failed to read DOS header.');
exit;
end;
FileName := c.InputFile.FileName;
ExtraOfs := DosHdr.GetExtraDataStart;
DataOfs := DosHdr.GetExeDataStart;
if DosHdr.e_cs = 0 then
begin
// If code section is at start of data, there will be no 'data' section.
DataSize := 0;
CodeOfs := DataOfs;
CodeSize := ExtraOfs - DataOfs;
end
else
begin
DataSize := DosHdr.e_cs * PARA_SIZE;
CodeOfs := DataOfs + DataSize;
CodeSize := ExtraOfs - CodeOfs;
end;
DataVA := IMG_BASE;
CodeVA := IMG_BASE + DosHdr.e_cs * PARA_SIZE;
CodeVSize := CodeSize;
DataVSize := DataSize;
DumpDosHdr(c, DosHdr);
ApplyCpu(Task);
// Apply sections.
if DataSize <> 0 then
begin
// If cs = 0, there is no 'data' section, because 'code' occupies its space.
Task.AddSectionFromFile(
BSTR_IN(FileName),
'data',
DataOfs, DataSize, DataVSize, DataVA,
TVDSectionFlag.Readable or TVDSectionFlag.Writable or TVDSectionFlag.Execuatable);
end;
if CodeSize <> 0 then
begin
Task.AddSectionFromFile(
BSTR_IN(FileName),
'code',
CodeOfs, CodeSize, CodeVSize, CodeVA,
TVDSectionFlag.Readable or TVDSectionFlag.Writable or TVDSectionFlag.Execuatable);
// Entry address.
EntryVA := CodeVA + DosHdr.e_ip;
Task.SetEntry(EntryVA);
end;
end;
end.
| 26.716049 | 105 | 0.67252 |
f184aac5d97bdfd3ef82c7294d1021fdc9a9a401
| 3,084 |
pas
|
Pascal
|
Source/DUnitX.Banner.pas
|
nandod/DUnitX
|
adcc1b13b6e5e226ad45eba27b6e70a3bf6ba902
|
[
"Apache-2.0"
] | 282 |
2015-01-16T04:59:48.000Z
|
2022-03-31T01:33:36.000Z
|
Source/DUnitX.Banner.pas
|
nandod/DUnitX
|
adcc1b13b6e5e226ad45eba27b6e70a3bf6ba902
|
[
"Apache-2.0"
] | 179 |
2015-01-05T23:43:12.000Z
|
2022-02-22T22:38:42.000Z
|
Source/DUnitX.Banner.pas
|
nandod/DUnitX
|
adcc1b13b6e5e226ad45eba27b6e70a3bf6ba902
|
[
"Apache-2.0"
] | 178 |
2015-01-06T11:25:14.000Z
|
2022-03-30T00:31:10.000Z
|
{***************************************************************************}
{ }
{ DUnitX }
{ }
{ Copyright (C) 2015 Vincent Parrett & Contributors }
{ }
{ vincent@finalbuilder.com }
{ http://www.finalbuilder.com }
{ }
{ }
{***************************************************************************}
{ }
{ Licensed under the Apache License, Version 2.0 (the "License"); }
{ you may not use this file except in compliance with the License. }
{ You may obtain a copy of the License at }
{ }
{ http://www.apache.org/licenses/LICENSE-2.0 }
{ }
{ Unless required by applicable law or agreed to in writing, software }
{ distributed under the License is distributed on an "AS IS" BASIS, }
{ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. }
{ See the License for the specific language governing permissions and }
{ limitations under the License. }
{ }
{***************************************************************************}
unit DUnitX.Banner;
interface
procedure ShowBanner;
implementation
uses
DUnitX.ConsoleWriter.Base,
DUnitX.IoC;
procedure ShowBanner;
var
consoleWriter : IDUnitXConsoleWriter;
procedure WriteLine(const value : string);
begin
if consoleWriter <> nil then
consoleWriter.WriteLn(value)
else
System.Writeln(value);
end;
begin
consoleWriter := TDUnitXIoC.DefaultContainer.Resolve<IDUnitXConsoleWriter>();
if consoleWriter <> nil then
consoleWriter.SetColour(ccBrightWhite, ccDefault);
WriteLine('**********************************************************************');
WriteLine('* DUnitX - (c) 2015-2020 Vincent Parrett & Contributors *');
WriteLine('* *');
WriteLine('* License - http://www.apache.org/licenses/LICENSE-2.0 *');
WriteLine('**********************************************************************');
WriteLine('');
if consoleWriter <> nil then
consoleWriter.SetColour(ccDefault);
end;
end.
| 44.057143 | 87 | 0.355707 |
85e532a5bb8a709ff76dfc60a45cb1e59d0db5df
| 3,621 |
pas
|
Pascal
|
source/uvcvideo.pas
|
afriess/fpcVideo4L2
|
d9eb589517aadc57d83bd5858d1f90057bfa0f9f
|
[
"MIT"
] | 12 |
2018-06-30T13:48:57.000Z
|
2022-02-27T22:42:05.000Z
|
source/uvcvideo.pas
|
afriess/fpcVideo4L2
|
d9eb589517aadc57d83bd5858d1f90057bfa0f9f
|
[
"MIT"
] | 1 |
2021-10-06T07:25:45.000Z
|
2021-10-06T07:25:45.000Z
|
source/uvcvideo.pas
|
afriess/fpcVideo4L2
|
d9eb589517aadc57d83bd5858d1f90057bfa0f9f
|
[
"MIT"
] | 6 |
2018-06-30T11:57:45.000Z
|
2021-10-05T19:04:38.000Z
|
unit uvcvideo;
interface
{
Automatically converted by H2Pas 1.0.0 from uvcvideo.h
The following command line parameters were used:
-e
-p
uvcvideo.h
}
{ Pointers to basic pascal types, inserted by h2pas conversion program.}
{ Type
PLongint = ^Longint;
PSmallInt = ^SmallInt;
PByte = ^Byte;
PWord = ^Word;
PDWord = ^DWord;
PDouble = ^Double;
}{
Type
P__u8 = ^__u8;
Puvc_menu_info = ^uvc_menu_info;
Puvc_xu_control_mapping = ^uvc_xu_control_mapping;
Puvc_xu_control_query = ^uvc_xu_control_query;
}
{$IFDEF FPC}
{$PACKRECORDS C}
{$ENDIF}
{$ifndef __LINUX_UVCVIDEO_H_}
{$define __LINUX_UVCVIDEO_H_}
{//#include <linux/ioctl.h>}
const
_IOC_NRBITS = 8;
_IOC_TYPEBITS = 8;
_IOC_SIZEBITS = 14;
_IOC_DIRBITS = 2;
_IOC_NRMASK = (1 shl _IOC_NRBITS)-1;
_IOC_TYPEMASK = (1 shl _IOC_TYPEBITS)-1;
_IOC_SIZEMASK = (1 shl _IOC_SIZEBITS)-1;
_IOC_DIRMASK = (1 shl _IOC_DIRBITS)-1;
_IOC_NRSHIFT = 0;
_IOC_TYPESHIFT = _IOC_NRSHIFT+_IOC_NRBITS;
_IOC_SIZESHIFT = _IOC_TYPESHIFT+_IOC_TYPEBITS;
_IOC_DIRSHIFT = _IOC_SIZESHIFT+_IOC_SIZEBITS;
{
* Direction bits.
}
_IOC_NONE = 0;
_IOC_WRITE = 1;
_IOC_READ = 2;
{//#include <linux/types.h>}
type
__u8 = byte;
__u16 = word;
__u32 = LongWord;
{
* Dynamic controls
}
{ Data types for UVC control data }
const
UVC_CTRL_DATA_TYPE_RAW = 0;
UVC_CTRL_DATA_TYPE_SIGNED = 1;
UVC_CTRL_DATA_TYPE_UNSIGNED = 2;
UVC_CTRL_DATA_TYPE_BOOLEAN = 3;
UVC_CTRL_DATA_TYPE_ENUM = 4;
UVC_CTRL_DATA_TYPE_BITMASK = 5;
{ Control flags }
UVC_CTRL_FLAG_SET_CUR = 1 shl 0;
UVC_CTRL_FLAG_GET_CUR = 1 shl 1;
UVC_CTRL_FLAG_GET_MIN = 1 shl 2;
UVC_CTRL_FLAG_GET_MAX = 1 shl 3;
UVC_CTRL_FLAG_GET_RES = 1 shl 4;
UVC_CTRL_FLAG_GET_DEF = 1 shl 5;
{ Control should be saved at suspend and restored at resume. }
UVC_CTRL_FLAG_RESTORE = 1 shl 6;
{ Control can be updated by the camera. }
UVC_CTRL_FLAG_AUTO_UPDATE = 1 shl 7;
UVC_CTRL_FLAG_GET_RANGE = (((UVC_CTRL_FLAG_GET_CUR or UVC_CTRL_FLAG_GET_MIN) or UVC_CTRL_FLAG_GET_MAX) or UVC_CTRL_FLAG_GET_RES) or UVC_CTRL_FLAG_GET_DEF;
type
Puvc_menu_info = ^uvc_menu_info;
uvc_menu_info = record
value : __u32;
name : array[0..31] of __u8;
end;
{__user } Puvc_xu_control_mapping = ^uvc_xu_control_mapping;
uvc_xu_control_mapping = record
id : __u32;
name : array[0..31] of __u8;
entity : array[0..15] of __u8;
selector : __u8;
size : __u8;
offset : __u8;
v4l2_type : __u32;
data_type : __u32;
menu_info : Puvc_menu_info;
menu_count : __u32;
reserved : array[0..3] of __u32;
end;
{ Video Class-Specific Request Code, }
{ defined in linux/usb/video.h A.8. }
{__user } Puvc_xu_control_query = ^uvc_xu_control_query;
uvc_xu_control_query = record
_unit : __u8;
selector : __u8;
query : __u8;
size : __u16;
data : ^__u8;
end;
const
UVCIOC_CTRL_MAP = LongInt(((_IOC_READ or _IOC_WRITE) shl _IOC_DIRSHIFT) or (Ord('u') shl _IOC_TYPESHIFT) or ($20 shl _IOC_NRSHIFT) or (SizeOf(uvc_xu_control_mapping) shl _IOC_SIZESHIFT));
UVCIOC_CTRL_QUERY = LongInt(((_IOC_READ or _IOC_WRITE) shl _IOC_DIRSHIFT) or (Ord('u') shl _IOC_TYPESHIFT) or ($21 shl _IOC_NRSHIFT) or (SizeOf(uvc_xu_control_query) shl _IOC_SIZESHIFT));
{$endif}
implementation
end.
| 28.289063 | 197 | 0.646783 |
f1571f87dd20bad1aa0d7713e8602242d5ca95ff
| 5,984 |
pas
|
Pascal
|
lib/delphi2007/src/Thrift.Serializer.pas
|
luongtphu/thrift-delphi2007
|
326945864d3c55986d7ad0b1303b821da805041d
|
[
"Apache-2.0"
] | 3 |
2019-07-28T06:19:42.000Z
|
2020-05-06T08:39:27.000Z
|
lib/delphi2007/src/Thrift.Serializer.pas
|
luongtphu/thrift-delphi2007
|
326945864d3c55986d7ad0b1303b821da805041d
|
[
"Apache-2.0"
] | null | null | null |
lib/delphi2007/src/Thrift.Serializer.pas
|
luongtphu/thrift-delphi2007
|
326945864d3c55986d7ad0b1303b821da805041d
|
[
"Apache-2.0"
] | null | null | null |
(*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*)
{
Fix and modify Delphi version less 2010
luongtphu@gmail.com
Date:Nov 20 2013
}
unit Thrift.Serializer;
interface
uses
Classes, Windows, SysUtils,
Thrift.Protocol,
Thrift.Transport,
Thrift.Stream;
type
// Generic utility for easily serializing objects into a byte array or Stream.
TSerializer = class
private
FStream : TMemoryStream;
FTransport : ITransport;
FProtocol : IProtocol;
public
// Create a new TSerializer that uses the TBinaryProtocol by default.
constructor Create; overload;
// Create a new TSerializer.
// It will use the TProtocol specified by the factory that is passed in.
constructor Create( const factory : IProtocolFactory); overload;
// DTOR
destructor Destroy; override;
// Serialize the Thrift object.
function Serialize( const input : IBase) : TBytes; overload;
procedure Serialize( const input : IBase; const aStm : TStream); overload;
end;
// Generic utility for easily deserializing objects from byte array or Stream.
TDeserializer = class
private
FStream : TMemoryStream;
FTransport : ITransport;
FProtocol : IProtocol;
public
// Create a new TDeserializer that uses the TBinaryProtocol by default.
constructor Create; overload;
// Create a new TDeserializer.
// It will use the TProtocol specified by the factory that is passed in.
constructor Create( const factory : IProtocolFactory); overload;
// DTOR
destructor Destroy; override;
// Deserialize the Thrift object data.
procedure Deserialize( const input : TBytes; const target : IBase); overload;
procedure Deserialize( const input : TStream; const target : IBase); overload;
end;
implementation
{ TSerializer }
constructor TSerializer.Create();
// Create a new TSerializer that uses the TBinaryProtocol by default.
begin
Create( TBinaryProtocolImpl.TFactory.Create);
end;
constructor TSerializer.Create( const factory : IProtocolFactory);
// Create a new TSerializer.
// It will use the TProtocol specified by the factory that is passed in.
var adapter : IThriftStream;
begin
inherited Create;
FStream := TMemoryStream.Create;
adapter := TThriftStreamAdapterDelphi.Create( FStream, FALSE);
FTransport := TStreamTransportImpl.Create( nil, adapter);
FProtocol := factory.GetProtocol( FTransport);
end;
destructor TSerializer.Destroy;
begin
try
FProtocol := nil;
FTransport := nil;
FreeAndNil( FStream);
finally
inherited Destroy;
end;
end;
function TSerializer.Serialize( const input : IBase) : TBytes;
// Serialize the Thrift object into a byte array. The process is simple,
// just clear the byte array output, write the object into it, and grab the
// raw bytes.
var iBytes : Int64;
begin
try
FStream.Size := 0;
input.Write( FProtocol);
SetLength( result, FStream.Size);
iBytes := Length(result);
if iBytes > 0
then Move( FStream.Memory^, result[0], iBytes);
finally
FStream.Size := 0; // free any allocated memory
end;
end;
procedure TSerializer.Serialize( const input : IBase; const aStm : TStream);
// Serialize the Thrift object into a byte array. The process is simple,
// just clear the byte array output, write the object into it, and grab the
// raw bytes.
const COPY_ENTIRE_STREAM = 0;
begin
try
FStream.Size := 0;
input.Write( FProtocol);
aStm.CopyFrom( FStream, COPY_ENTIRE_STREAM);
finally
FStream.Size := 0; // free any allocated memory
end;
end;
{ TDeserializer }
constructor TDeserializer.Create();
// Create a new TDeserializer that uses the TBinaryProtocol by default.
begin
Create( TBinaryProtocolImpl.TFactory.Create);
end;
constructor TDeserializer.Create( const factory : IProtocolFactory);
// Create a new TDeserializer.
// It will use the TProtocol specified by the factory that is passed in.
var adapter : IThriftStream;
begin
inherited Create;
FStream := TMemoryStream.Create;
adapter := TThriftStreamAdapterDelphi.Create( FStream, FALSE);
FTransport := TStreamTransportImpl.Create( adapter, nil);
FProtocol := factory.GetProtocol( FTransport);
end;
destructor TDeserializer.Destroy;
begin
try
FProtocol := nil;
FTransport := nil;
FreeAndNil( FStream);
finally
inherited Destroy;
end;
end;
procedure TDeserializer.Deserialize( const input : TBytes; const target : IBase);
// Deserialize the Thrift object data from the byte array.
var iBytes : Int64;
begin
try
iBytes := Length(input);
FStream.Size := iBytes;
if iBytes > 0
then Move( input[0], FStream.Memory^, iBytes);
target.Read( FProtocol);
finally
FStream.Size := 0; // free any allocated memory
end;
end;
procedure TDeserializer.Deserialize( const input : TStream; const target : IBase);
// Deserialize the Thrift object data from the byte array.
const COPY_ENTIRE_STREAM = 0;
var before : Int64;
begin
try
before := FStream.Position;
FStream.CopyFrom( input, COPY_ENTIRE_STREAM);
FStream.Position := before;
target.Read( FProtocol);
finally
FStream.Size := 0; // free any allocated memory
end;
end;
end.
| 26.245614 | 83 | 0.720254 |
85ad7db514dda0b4475112b494c2f4b17a4e8e34
| 24,701 |
pas
|
Pascal
|
mainform.pas
|
serbod/drkb_import
|
a3d544b16afcbab1cde7f2002bcd34e8e47d932b
|
[
"MIT"
] | null | null | null |
mainform.pas
|
serbod/drkb_import
|
a3d544b16afcbab1cde7f2002bcd34e8e47d932b
|
[
"MIT"
] | null | null | null |
mainform.pas
|
serbod/drkb_import
|
a3d544b16afcbab1cde7f2002bcd34e8e47d932b
|
[
"MIT"
] | null | null | null |
unit MainForm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,
FastHTMLParser, RFUtils, lconvencoding, LazUTF8;
type
TOutputMode = (omText, omMarkdown, omHtml);
TBlockType = (btUndef, btCode, btIgnore);
TParaType = (ptUndef, ptCode, ptHeader, ptAuthor, ptSource);
TSpanType = (stUndef, stMono, stBold, stEmpty);
{ TConverter }
TConverter = class(TObject)
private
FSrcFiles: TStringList;
FInFile: TStringList;
FOutputMode: TOutputMode;
FOutFile: TStringList;
FFileName: string;
FCurTag: string;
FBlockType: TBlockType;
FSpanType: TSpanType;
FSpanTypePrev: TSpanType;
FParaType: TParaType;
FParaText: string;
FSpanText: string;
FCodeText: string;
FFileTitle: string;
FFileAuthor: string;
FFileSource: string;
FFileDrkb: string;
FOutputExt: string;
FEmptyParaCount: Integer;
procedure SpanStart(ASpanType: TSpanType);
procedure SpanEnd(IsParaEnd: Boolean = False);
procedure OnFoundTagHandler(NoCaseTag, ActualTag: string);
procedure OnFoundTextHandler(AText: string);
function ExtractTagParamValue(ATagStr, AParamName: string): string;
procedure PutCredentials(AOutFile: TStringList; AClearAfter: Boolean = True);
public
procedure AfterConstruction; override;
procedure BeforeDestruction; override;
procedure FillSrcFilesList();
procedure Start(AOutputMode: TOutputMode);
procedure ReadIndex();
function FindFilenameByTitle(AStr: string): string;
function FindFilenameByDrkbID(AStr: string): string;
procedure StripFile(AOutFile: TStringList; AFileName: string);
property OutputMode: TOutputMode read FOutputMode write FOutputMode;
property OutputExt: string read FOutputExt;
end;
{ TWorker }
TWorker = class(TThread)
protected
procedure Execute; override;
public
Converter: TConverter;
end;
{ TFormMain }
TFormMain = class(TForm)
btnConvertAll: TButton;
btnPasteTitle: TButton;
edFileName: TEdit;
edDrkbID: TEdit;
edTitle: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
MemoCategory: TMemo;
memoPageText: TMemo;
rgOutputFormat: TRadioGroup;
procedure btnIndexMDClick(Sender: TObject);
procedure btnPasteTitleClick(Sender: TObject);
procedure btnConvertAllClick(Sender: TObject);
procedure edDrkbIDEditingDone(Sender: TObject);
procedure edFileNameEditingDone(Sender: TObject);
procedure edTitleEditingDone(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
FConverter: TConverter;
FWorker: TWorker;
public
end;
var
FormMain: TFormMain;
implementation
{$R *.lfm}
const
CATEGORY_FILENAME = 'category.txt';
procedure HtmlUnicodeToUtf8(var AText: string);
var
n, m, iLen, iChar: Integer;
sCode, sChar: string;
wc: WideChar;
begin
n := Pos('&#', AText);
while n > 0 do
begin
m := PosEx(';', AText, n);
iLen := (m-n)-2;
if iLen > 5 then
begin
Assert(False);
Exit;
end;
iChar := StrToIntDef(Copy(AText, n+2, iLen), 0);
if iChar = 0 then
begin
Assert(False);
Exit;
end;
wc := WideChar(iChar);
sChar := UTF8Encode(wc);
sCode := Copy(AText, n, iLen + 3);
AText := StringReplace(AText, sCode, sChar, [rfReplaceAll]);
n := Pos('&#', AText);
end;
end;
procedure FindFiles(AFiles: TStrings; ADir, AFileMask: string);
var
SearchRec: TSearchRec;
FileName: string;
begin
// WriteLn('Adding Dir: ', ADir);
if FindFirst(ADir + AFileMask, faAnyFile or faDirectory, SearchRec) = 0 then
begin
repeat
if (SearchRec.Attr and faDirectory) <> 0 then
begin
if Pos('.', SearchRec.Name) = 0 then
begin
FindFiles(AFiles, IncludeTrailingPathDelimiter(ADir + SearchRec.Name), AFileMask);
end;
end
else
begin
FileName := ADir + SearchRec.Name;
//FileName := ExtractRelativepath(Project.ProjectDir, FileName);
if AFiles.IndexOf(FileName) = -1 then
AFiles.Add(FileName);
end;
until FindNext(SearchRec) <> 0;
FindClose(SearchRec);
end;
end;
function TrimSpacesRight(s: string): string;
var
l: SizeInt;
begin
l := Length(s);
while (l > 0) and (s[l] = ' ') do
Dec(l);
Result := Copy(s, 1, l);
end;
{ TFormMain }
procedure TFormMain.FormCreate(Sender: TObject);
begin
FConverter := TConverter.Create();
FConverter.ReadIndex();
if FileExists(CATEGORY_FILENAME) then
MemoCategory.Lines.LoadFromFile(CATEGORY_FILENAME);
end;
procedure TFormMain.FormDestroy(Sender: TObject);
begin
if FileExists(CATEGORY_FILENAME) then
DeleteFile(CATEGORY_FILENAME);
MemoCategory.Lines.SaveToFile(CATEGORY_FILENAME);
if Assigned(FWorker) then
FreeAndNil(FWorker);
FreeAndNil(FConverter);
end;
procedure TFormMain.btnIndexMDClick(Sender: TObject);
begin
FConverter.ReadIndex();
end;
procedure TFormMain.btnPasteTitleClick(Sender: TObject);
begin
edTitle.Clear;
edTitle.PasteFromClipboard();
edTitleEditingDone(nil);
end;
procedure TFormMain.btnConvertAllClick(Sender: TObject);
begin
btnConvertAll.Enabled := False;
FConverter.Start(omMarkdown);
btnConvertAll.Enabled := True;
end;
procedure TFormMain.edDrkbIDEditingDone(Sender: TObject);
var
sFileName: string;
begin
sFileName := FConverter.FindFilenameByDrkbID(edDrkbID.Text);
if sFileName = '' then Exit;
edFileName.Text := Trim(sFileName);
edFileNameEditingDone(nil);
end;
procedure TFormMain.edFileNameEditingDone(Sender: TObject);
var
s, sFileName: string;
i: Integer;
sl: TStringList;
begin
if Trim(edFileName.Text) = '' then
Exit;
case rgOutputFormat.ItemIndex of
0: FConverter.OutputMode := omMarkdown;
1: FConverter.OutputMode := omHtml;
2: FConverter.OutputMode := omText;
end;
sl := TStringList.Create();
try
FConverter.StripFile(sl, 'drkb3/' + Trim(edFileName.Text) + '.htm');
memoPageText.Lines.Assign(sl);
finally
sl.Free();
end;
//sFileName := 'out/' + Trim(edFileName.Text) + sExt;
//memoPageText.Lines.LoadFromFile(sFileName);
for i := 0 to MemoCategory.Lines.Count-1 do
begin
if i = 0 then
memoPageText.Lines.Add('');
s := '[[Category:' + MemoCategory.Lines[i] + ']]';
memoPageText.Lines.Add(s);
end;
memoPageText.SelectAll();
memoPageText.CopyToClipboard();
memoPageText.SelLength := 0;
end;
procedure TFormMain.edTitleEditingDone(Sender: TObject);
var
sFileName: string;
begin
sFileName := FConverter.FindFilenameByTitle(edTitle.Text);
edDrkbID.Text := '';
edFileName.Text := '';
if sFileName = '' then Exit;
edFileName.Text := Trim(sFileName);
edFileNameEditingDone(nil);
{sFileName := 'out/' + Trim(FSrcFiles.Names[n]) + '.md';
memoPageText.Lines.LoadFromFile(sFileName);
memoPageText.SelectAll();
memoPageText.CopyToClipboard();
memoPageText.SelLength := 0;}
end;
{ TConverter }
procedure TConverter.SpanStart(ASpanType: TSpanType);
begin
if (FSpanTypePrev = stMono) and (ASpanType <> stMono) then
begin
// Mono -> other
FParaText := FParaText + sLineBreak + ' ' + FSpanText;
FSpanText := '';
// new line
if (Trim(FParaText) <> '') or (FEmptyParaCount < 2) then
FOutFile.Add(FParaText);
if Trim(FParaText) = '' then
Inc(FEmptyParaCount)
else
FEmptyParaCount := 0;
FParaText := '';
end
else
if (FSpanTypePrev = stBold) and (ASpanType <> stBold) then
begin
// Bold -> other
if (FSpanText <> '') and (FSpanTypePrev = stBold) then
begin
if FOutputMode = omText then
FParaText := FParaText + '**' + FSpanText + '**'
else
if FOutputMode = omMarkdown then
FParaText := FParaText + '''''''' + FSpanText + ''''''''
else
if FOutputMode = omHtml then
FParaText := FParaText + FSpanText;
FSpanText := '';
end;
end;
FSpanType := ASpanType;
end;
procedure TConverter.SpanEnd(IsParaEnd: Boolean);
begin
if (FSpanText <> '') and IsParaEnd then
begin
case FSpanTypePrev of
{stBold:
begin
if FOutputMode = omText then
FParaText := FParaText + '**' + FSpanText + '**'
else
if FOutputMode = omMarkdown then
FParaText := FParaText + '''''''' + FSpanText + '''''''';
end; }
stMono:
begin
FParaText := FParaText + sLineBreak + ' ' + FSpanText;
FSpanText := '';
end;
end;
end;
if (FSpanText <> '') then
begin
case FSpanType of
{stMono:
begin
FParaText := FParaText + '<code>' + FSpanText + '</code>';
end;}
stBold:
begin
if FOutputMode = omText then
FParaText := FParaText + '**' + FSpanText + '**'
else
if FOutputMode = omMarkdown then
FParaText := FParaText + '''''''' + FSpanText + '''''''';
end;
else
FParaText := FParaText + '' + FSpanText + '';
end;
FSpanText := '';
end;
if FSpanType <> stUndef then
FSpanTypePrev := FSpanType;
if IsParaEnd then
FSpanTypePrev := stUndef;
FSpanType := stUndef;
end;
procedure TConverter.OnFoundTagHandler(NoCaseTag, ActualTag: string);
begin
FCurTag := NoCaseTag;
if NoCaseTag = '</TABLE>' then
begin
if FBlockType = btIgnore then
FBlockType := btUndef;
end
else
if (Pos('<TABLE', NoCaseTag) > 0) and (Pos('BGCOLOR="#EAD7FF"', NoCaseTag) > 0)
then
begin
// navigation table
FBlockType := btIgnore;
end
else
if (ActualTag = '<table width="100%" border="0" cellpadding="0" cellspacing="0">') then
begin
// empty table
FBlockType := btIgnore;
end
else
if (ActualTag = '<tr align="left">') then
begin
FBlockType := btCode;
FCodeText := '';
end
else
if (ActualTag = '<p style="text-align: center;">') then
begin
FParaType := ptHeader;
end
else
if (FBlockType = btUndef) and (FParaType = ptUndef) and (Pos('<span ', ActualTag) = 1) then
begin
if (Pos('font-size: 8pt', ActualTag) > 0) then
begin
SpanStart(stEmpty);
end
else
if (Pos('Courier New', ActualTag) > 0)
or (Pos('CourierFixed', ActualTag) > 0) then
begin
// Mono
SpanStart(stMono);
end
else
if (Pos('font-weight: bold', ActualTag) > 0) then
begin
// Bold
SpanStart(stBold);
end;
end
else
if (FBlockType = btUndef) and (FParaType = ptUndef) and (NoCaseTag = '</SPAN>')then
begin
SpanEnd();
end
else
if (FBlockType = btCode) and (NoCaseTag = '</P>')then
begin
FCodeText := TrimSpacesRight(FCodeText) + sLineBreak;
end
else
if (NoCaseTag = '</P>') then
begin
case FParaType of
ptHeader:
begin
if Trim(FParaText) <> '' then
FOutFile.Add('==== ' + FParaText + ' ====')
else
FOutFile.Add('');
end;
ptAuthor:
begin
FFileAuthor := FFileAuthor + FParaText;
//FOutFile.Add('Author: ' + FFileAuthor);
end;
ptSource:
begin
FFileSource := FParaText;
//FOutFile.Add('Source: ' + FFileSource);
end;
else
//if (FSpanTypePrev <> stEmpty) and (FParaText <> '') then
//if (FSpanTypePrev <> stEmpty) and (FEmptyParaCount < 2) then
SpanEnd(True);
if FOutputMode = omMarkdown then
FParaText := StringReplace(FParaText, '''''''''''''', '', [rfReplaceAll]);
if (Trim(FParaText) <> '') or (FEmptyParaCount < 2) then
FOutFile.Add(TrimSpacesRight(FParaText));
if Trim(FParaText) = '' then
Inc(FEmptyParaCount)
else
FEmptyParaCount := 0;
end;
FParaType := ptUndef;
FSpanTypePrev := stUndef;
FParaText := '';
end
else
if (FBlockType = btCode) and (NoCaseTag = '</TR>') then
begin
FBlockType := btUndef;
//FOutFile.Add('');
if FOutputMode = omText then
FOutFile.Add('<code>' + FCodeText + '</code>')
else
if FOutputMode = omMarkdown then
begin
FOutFile.Add('<syntaxhighlight lang="delphi">');
FOutFile.Add(FCodeText + '</syntaxhighlight>'); // FCodeText already have last line break
//FOutFile.Add('</syntaxhighlight>');
end
else
if FOutputMode = omHtml then
FOutFile.Add('<pre><code class="delphi">' + FCodeText + '</code></pre>');
FOutFile.Add('');
FOutFile.Add('');
FCodeText := '';
end
else
if (Pos('<img ', ActualTag) = 1) then
begin
if FOutputMode = omHtml then
FOutFile.Add(ActualTag)
else
if FOutputMode = omMarkdown then
begin
FOutFile.Add('');
FOutFile.Add('[[file:' + ExtractTagParamValue(ActualTag, 'src') + ']]');
FOutFile.Add('');
end
else
if FOutputMode = omText then
begin
FOutFile.Add('');
FOutFile.Add('[img:' + ExtractTagParamValue(ActualTag, 'src') + ']');
FOutFile.Add('');
end;
end
else
if (Pos('<hr', ActualTag) = 1) then
begin
PutCredentials(FOutFile);
if FOutputMode = omHtml then
FOutFile.Add(ActualTag)
else
if FOutputMode = omMarkdown then
begin
FOutFile.Add('----');
FOutFile.Add('');
end
else
if FOutputMode = omText then
begin
FOutFile.Add('');
FOutFile.Add('--------------------------------------------------------------------------------');
FOutFile.Add('');
end;
end
else
if (FBlockType = btUndef) and (FParaType = ptUndef) and (NoCaseTag = '<BR>') then
begin
FParaText := FParaText + sLineBreak;
end;
end;
procedure TConverter.OnFoundTextHandler(AText: string);
begin
while Copy(AText, 1, 2) = sLineBreak do
AText := Copy(AText, 3, MaxInt);
{if Copy(AText, 1, 2) = sLineBreak then
Exit; }
if AText = '' then
Exit;
if AText = ' ' then
Exit;
if AText = ' ' then
begin
FOutFile.Add('');
Exit;
end;
if AText = '©' then
begin
FOutFile.Add('');
//FOutFile.Add('Copyrights:');
Exit;
end;
if (AText = 'Code:') and (Pos('<SPAN STYLE=', FCurTag) = 1) then
begin
// Code:
Exit;
end;
AText := StringReplace(AText, ' ', ' ', [rfReplaceAll]);
AText := StringReplace(AText, '&', '&', [rfReplaceAll]);
AText := StringReplace(AText, '<', '<', [rfReplaceAll]);
AText := StringReplace(AText, '>', '>', [rfReplaceAll]);
AText := StringReplace(AText, '–', '-', [rfReplaceAll]); // EN DASH
AText := StringReplace(AText, '—', '-', [rfReplaceAll]); // EM DASH
AText := StringReplace(AText, '·', sLinebreak + '* ', [rfReplaceAll]); // MIDDLE DOT
{while Pos(' '+sLinebreak, AText) > 0 do
AText := StringReplace(AText, ' '+sLinebreak, sLinebreak, [rfReplaceAll]); // пробел перед концом строки }
//AText := CP1251ToUTF8(AText);
AText := WinCPToUTF8(AText);
HtmlUnicodeToUtf8(AText);
if (Pos('Автор:', AText) in [1..3])
or (Pos('Author:', AText) in [1..3])
or (Pos('Tip by ', AText) in [1..3])
or (Pos('Автор ', AText) in [1..3]) then
begin
FParaType := ptAuthor;
FSpanType := stUndef;
FParaText := FParaText + AText;
Exit;
end;
if Pos('Взято ', AText) = 1 then
begin
FParaType := ptSource;
FSpanType := stUndef;
FParaText := '';
if Length(AText) > 10 then
FParaText := AText;
Exit;
end;
if Pos('delphiworld.narod', LowerCase(AText)) > 0 then
begin
FFileSource := AText;
FParaText := FParaText + AText;
Exit;
end;
if UpperCase(Copy(AText, 1, 6)) = 'DRKB::' then
begin
FFileDrkb := Copy(AText, 7, MaxInt);
Exit;
end;
if FCurTag = '<TITLE>' then
begin
FFileTitle := AText;
//FOutFile.Add('<title>' + AText + '</title>');
end
else
if (FBlockType = btIgnore) then
begin
// nothing
end
else
if (FBlockType = btCode) then
begin
// code block
FCodeText := FCodeText + AText;
if Pos('delphibase.endimus.com', AText) > 0 then
begin
FFileSource := 'http://delphibase.endimus.com';
end;
end
else
begin
if (FSpanType in [stMono, stBold]) then
FSpanText := FSpanText + AText
else
FParaText := FParaText + AText;
end;
end;
function TConverter.ExtractTagParamValue(ATagStr, AParamName: string): string;
var
n1, n2: Integer;
begin
Result := '';
// extract src
n1 := Pos(AParamName + '="', ATagStr);
if n1 = 0 then
Exit;
n1 := n1 + Length(AParamName + '="');
n2 := PosEx('"', ATagStr, n1);
Result := Copy(ATagStr, n1, n2-n1);
end;
procedure TConverter.PutCredentials(AOutFile: TStringList; AClearAfter: Boolean);
begin
if FOutputMode = omText then
begin
AOutFile.Add('Author: ' + FFileAuthor);
AOutFile.Add('Source: ' + FFileSource);
AOutFile.Add('ID: ' + FFileDrkb);
end
else
if FOutputMode = omMarkdown then
begin;
if FFileAuthor <> '' then
AOutFile.Add('Author: ' + FFileAuthor + '<br>');
if FFileSource <> '' then
AOutFile.Add('Source: ' + FFileSource + '<br>');
if FFileDrkb <> '' then
AOutFile.Add('ID: ' + FFileDrkb + '<br>');
end
else
if FOutputMode = omHtml then
begin
//FOutFile.Add('<p>Title: ' + FFileTitle + '</p>');
if FFileAuthor <> '' then
AOutFile.Add('<p>Author: ' + FFileAuthor + '</p>');
if FFileSource <> '' then
AOutFile.Add('<p>Source: ' + FFileSource + '</p>');
if FFileDrkb <> '' then
AOutFile.Add('<p>ID: ' + FFileDrkb + '</p>');
end;
if AClearAfter then
begin
FFileAuthor := '';
FFileSource := '';
FFileDrkb := '';
end;
end;
procedure TConverter.AfterConstruction;
begin
inherited AfterConstruction;
FSrcFiles := TStringList.Create();
FInFile := TStringList.Create();
end;
procedure TConverter.BeforeDestruction;
begin
FreeAndNil(FInFile);
FreeAndNil(FSrcFiles);
inherited BeforeDestruction;
end;
procedure TConverter.FillSrcFilesList();
begin
FSrcFiles.Clear();
//FindFiles(FSrcFiles, 'test\', '*.htm');
FindFiles(FSrcFiles, 'drkb3\', '*.htm');
end;
procedure TConverter.Start(AOutputMode: TOutputMode);
var
i: Integer;
sFileName, sNewFileName: string;
sl: TStringList;
begin
FOutputMode := AOutputMode;
FillSrcFilesList();
sl := TStringList.Create();
try
for i := 0 to FSrcFiles.Count-1 do
begin
sFileName := FSrcFiles[i];
StripFile(sl, sFileName);
sNewFileName := StringReplace(sFileName, '.htm', OutputExt, [rfIgnoreCase]);
sl.SaveToFile('out\' + sNewFileName);
sl.Clear();
end;
finally
sl.Free();
end;
end;
procedure TConverter.ReadIndex();
var
sl: TStringList;
i, ii, iTabs: Integer;
n1, n2: Integer;
s, ss, sName, sFileName: string;
begin
iTabs := 0;
sName := '';
sFileName := '';
FSrcFiles.Clear();
sl := TStringList.Create();
try
FInFile.Clear();
FInFile.LoadFromFile('drkb3\drkb3_full.hhc');
for i := 0 to FInFile.Count-1 do
begin
ss := FInFile[i];
if Pos('<UL>', ss) > 0 then
begin
Inc(iTabs);
end
else
if Pos('</UL>', ss) > 0 then
begin
Dec(iTabs);
end
else
if Pos('</OBJECT>', ss) > 0 then
begin
if (sName <> '') then
begin
s := '';
for ii := 1 to iTabs do
s := s + '*';
if (sFileName <> '') then
begin
//s := s + ' [[' + sFileName + '|' + sName + ']]';
s := s + ' [[' + sName + ']]';
end
else
s := s + ' ' + sName;
s := WinCPToUTF8(s);
sl.Add(s);
Assert(sFileName <> '');
FSrcFiles.Add(sFileName + FSrcFiles.NameValueSeparator + WinCPToUTF8(sName));
end;
sName := '';
sFileName := '';
end
else
if Pos('name="Name"', ss) > 0 then
begin
// extract name
sName := ExtractTagParamValue(ss, 'value');
{n1 := Pos('value="', ss);
if n1 = 0 then
Continue;
n1 := n1 + Length('value="');
n2 := PosEx('">', ss, n1);
sName := Copy(ss, n1, n2-n1);}
end
else
if Pos('name="Local"', ss) > 0 then
begin
// extract filename
sFileName := ExtractTagParamValue(ss, 'value');
{n1 := Pos('value="', ss);
if n1 = 0 then
Continue;
n1 := n1 + Length('value="');
n2 := PosEx('">', ss, n1);
sFileName := Copy(ss, n1, n2-n1); }
// remove ".htm"
sFileName := Copy(sFileName, 1, Length(sFileName) - 4);
end;
end;
sl.SaveToFile('out/_index.md');
finally
sl.Free();
end;
end;
function TConverter.FindFilenameByTitle(AStr: string): string;
var
i, n: Integer;
sTitle: string;
begin
Result := '';
n := -1;
sTitle := Trim(AStr);
for i := 0 to FSrcFiles.Count-1 do
begin
if Pos(sTitle, FSrcFiles[i]) > 0 then
begin
n := i;
Break;
end;
end;
if n < 0 then Exit;
Result := Trim(FSrcFiles.Names[n]);
end;
function TConverter.FindFilenameByDrkbID(AStr: string): string;
var
i, n: Integer;
s, sName: string;
sl: TStringList;
begin
Result := '';
s := Trim(AStr) + '<br>';
sl := TStringList.Create();
for i := 0 to FSrcFiles.Count-1 do
begin
sName := Trim(FSrcFiles.Names[i]);
if sName = '' then
Continue;
sl.LoadFromFile('out\' + sName + '.md');
for n := 0 to sl.Count-1 do
begin
if Pos(s, sl[n]) > 0 then
begin
Result := sName;
Exit;
end;
end;
end;
sl.Free();
end;
procedure TConverter.StripFile(AOutFile: TStringList; AFileName: string);
var
ss: string;
Parser: THTMLParser;
begin
AOutFile.Clear();
FOutFile := AOutFile;
FFileName := ExtractFileName(AFileName);
FBlockType := btUndef;
FSpanType := stUndef;
FSpanTypePrev := stUndef;
FParaType := ptUndef;
FParaText := '';
FCodeText := '';
FFileTitle := '';
FFileAuthor := '';
FFileSource := '';
FFileDrkb := '';
FSpanText := '';
FEmptyParaCount := 0;
FInFile.Clear();
FInFile.LoadFromFile(AFileName);
ss := FInFile.Text;
Parser := THTMLParser.Create(ss);
try
Parser.OnFoundTag := @OnFoundTagHandler;
Parser.OnFoundText := @OnFoundTextHandler;
Parser.Exec();
finally
Parser.Free();
end;
if FOutputMode = omText then
begin
AOutFile.Insert(0, 'Title: ' + FFileTitle);
PutCredentials(AOutFile);
FOutputExt := '.txt';
end
else
if FOutputMode = omMarkdown then
begin;
//AOutFile.Insert(0, '=== ' + FFileTitle + ' ===');
AOutFile.Insert(0, '<!-- ' + FFileTitle + ' -->');
PutCredentials(AOutFile);
FOutputExt := '.md';
//FFileName := StringReplace(FFileName, '.htm', '.md', [rfIgnoreCase]);
end
else
if FOutputMode = omHtml then
begin
// HTML
ss := '<!DOCTYPE html>' + sLineBreak
+ '<html>' + sLineBreak
+ '<head>' + sLineBreak
+ ' <title>' + FFileTitle + '</title>' + sLineBreak
+ ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />' + sLineBreak
+ ' <link type="text/css" href="default.css" rel="stylesheet" />' + sLineBreak
+ ' <link rel="stylesheet" href="hl_default.css">' + sLineBreak
+ ' <script src="highlight.pack.js"></script>' + sLineBreak
+ ' <script>hljs.initHighlightingOnLoad();</script>' + sLineBreak
+ '</head>' + sLineBreak
+ '<body>' + sLineBreak;
AOutFile.Insert(0, ss);
PutCredentials(AOutFile);
AOutFile.Add('</body>');
AOutFile.Add('</html>');
end;
FOutFile := nil;
end;
{ TWorker }
procedure TWorker.Execute;
begin
//
end;
end.
| 25.026342 | 112 | 0.584835 |
856323a5240ba3cadd2d2388c928398f83befa11
| 42,332 |
pas
|
Pascal
|
gui/bs.gui.scheme.model.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | 1 |
2022-02-11T06:49:00.000Z
|
2022-02-11T06:49:00.000Z
|
gui/bs.gui.scheme.model.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | null | null | null |
gui/bs.gui.scheme.model.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | null | null | null |
{
-- Begin License block --
Copyright (C) 2019-2022 Pavlov V.V. (PVV)
"Black Shark Graphics Engine" for Delphi and Lazarus (named
"Library" in the file "License(LGPL).txt" included in this distribution).
The Library is free software.
Last revised June, 2022
This file is part of "Black Shark Graphics Engine", and may only be
used, modified, and distributed under the terms of the project license
"License(LGPL).txt". By continuing to use, modify, or distribute this
file you indicate that you have read the license and understand and
accept it fully.
"Black Shark Graphics Engine" is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- End License block --
}
unit bs.gui.scheme.model;
{ container for data of a model }
{$I BlackSharkCfg.inc}
interface
uses
classes,
bs.basetypes,
bs.events,
bs.collections;
type
TSchemeShape = class;
TSchemeLink = class;
TSchemeBlock = class;
TSchemeModel = class;
TSchemeShapeClass = class of TSchemeShape;
TSchemeParser = TVirtualTree<TSchemeShape>;
TSchemeParserNode = TSchemeParser.PVirtualTreeNode;
TListSchemeItems = TListDual<TSchemeShape>;
TMapSchemeItems = TBinTreeTemplate<int32, TSchemeShape>;
TSchemeShape = class
private
FParentLevel: TSchemeBlock;
FWidth: int32;
FID: int32;
FView: TObject;
FNumberLevel: UInt32;
FCenter: TVec2i;
FHeight: int32;
FPosition: TVec2i;
_PosInList: TListSchemeItems.PListItem;
FTag: Pointer;
function GetChildren(index: int32): TSchemeShape;
function GetChildrenCount: int32;
function GetLeft: int32;
function GetParent: TSchemeShape;
function GetTop: int32;
procedure SetHeight(const Value: int32);
procedure SetID(const Value: int32);
procedure SetLeft(const Value: int32);
procedure SetPosition(const Value: TVec2i);
procedure SetTop(const Value: int32);
procedure SetWidth(const Value: int32);
protected
FCaption: string;
FNode: TSchemeParserNode;
FSchemeModel: TSchemeModel;
procedure Save(Stream: TStream); virtual;
procedure Load(Stream: TStream; var SizeData: int32); virtual;
procedure SetParent(const Value: TSchemeShape); virtual;
procedure SetCaption(const Value: string); virtual;
procedure CalcParentLevel;
{ only for load of shapes }
{%H-}constructor Create(ToNode: TSchemeParserNode); overload;
public
{ contains id of copied/coping shapes }
CopyedItemID: int32;
public
constructor Create(AParent: TSchemeShape); overload; virtual;
destructor Destroy; override;
procedure AfterConstruction; override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); virtual;
procedure Resize(AWidth, AHeight: int32); overload;
procedure Resize(NewSize: TVec2f); overload;
class function FindParentLevel(Shape: TSchemeShape): TSchemeShape;
class function GetDefaultSize: TVec2i; virtual; abstract;
class function IsContainer: boolean; virtual;
{ reset CopyedItemID to -1 (useful, for example, for find out if a shape
was copied from a source, so when shape is copied, to CopyedItemID writes
id of copied/coping shapes }
procedure ResetCopyedItemID;
function IsAncestor(Ancestor: TSchemeShape): boolean;
function GetRect: TRectBSi;
property Parent: TSchemeShape read GetParent write SetParent;
property ChildrenCount: int32 read GetChildrenCount;
property Children[index: int32]: TSchemeShape read GetChildren;
property Position: TVec2i read FPosition write SetPosition;
property Width: int32 read FWidth write SetWidth;
property Height: int32 read FHeight write SetHeight;
property Left: int32 read GetLeft write SetLeft;
property Top: int32 read GetTop write SetTop;
property Caption: string read FCaption write SetCaption;
property ParentLevel: TSchemeBlock read FParentLevel;
property NumberLevel: UInt32 read FNumberLevel;
property Center: TVec2i read FCenter;
property SchemeModel: TSchemeModel read FSchemeModel;
property ID: int32 read FID write SetID;
property Tag: Pointer read FTag write FTag;
property View: TObject read FView write FView;
end;
TSchemeLinkedShape = class;
{ Link b/w two shapes of type TSchemeLinkedShape; its Parent is shape "from" }
TSchemeLink = class(TSchemeShape)
private
IDFrom: int32;
IDTo: int32;
FToLink: TSchemeLinkedShape;
FNumOut: int32;
procedure SetToLink(const Value: TSchemeLinkedShape);
procedure SetNumOut(const Value: int32);
function GetToLink: TSchemeLinkedShape;
protected
procedure SetParent(const Value: TSchemeShape); override;
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); override;
destructor Destroy; override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
class function GetDefaultSize: TVec2i; override;
property NumOut: integer read FNumOut write SetNumOut;
property ToLink: TSchemeLinkedShape read GetToLink write SetToLink;
end;
{ group of shapes }
TSchemeRegion = class(TSchemeShape)
protected
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
class function GetDefaultSize: TVec2i; override;
class function IsContainer: boolean; override;
end;
{ is base class for linked shapes }
TSchemeLinkedShape = class(TSchemeShape)
private
function GetCountOutputs: int32;
function GetOutput(Index: Int32): TSchemeLink;
protected
{ links }
FOutputs: TListVec<TSchemeLink>;
procedure SetParent(const Value: TSchemeShape); override;
public
destructor Destroy; override;
{ create link (output) to ToItem }
function AddOutput(Num: integer; ToItem: TSchemeLinkedShape): TSchemeLink; overload;
procedure AddOutput(Link: TSchemeLink); overload; virtual;
{ delete link }
procedure DeleteOutput(Link: TSchemeLink; FreeLink: boolean); virtual;
function PossibleOutput(ToLink: TSchemeLinkedShape): boolean; virtual;
function PossibleInput(FromLink: TSchemeLinkedShape): boolean; virtual;
{
!!! not all index may contain link, that is why need to check on nil; it
was done intentionally, so Index pointing on link equal TSchemeLink.NumOut }
property Output[Index: Int32]: TSchemeLink read GetOutput;
{ count of output links
!!! the property points count of outputs but on reasons mentioned above
it is not exact }
property CountOutputs: int32 read GetCountOutputs;
end;
{ A some processor, a work horse }
TSchemeProcessor = class(TSchemeLinkedShape)
private
FName: string;
protected
procedure SetParent(const Value: TSchemeShape); override;
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); override;
destructor Destroy; override;
function PossibleOutput(ToLink: TSchemeLinkedShape): boolean; override;
class function GetDefaultSize: TVec2i; override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
property Name: string read FName write FName;
end;
TSchemeBlockLink = class(TSchemeLinkedShape)
private
public
class function GetDefaultSize: TVec2i; override;
end;
{ block's an input pin/leg }
{ TSchemeBlockLinkInput }
TSchemeBlockLinkInput = class(TSchemeBlockLink)
protected
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); override;
destructor Destroy; override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
function PossibleOutput(ToLink: TSchemeLinkedShape): boolean; override;
function PossibleInput(FromLink: TSchemeLinkedShape): boolean; override;
end;
{ block's an output pin/leg }
{ TSchemeBlockLinkOutput }
TSchemeBlockLinkOutput = class(TSchemeBlockLink)
protected
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); override;
procedure DeleteOutput(Link: TSchemeLink; FreeLink: boolean); override;
procedure AddOutput(Link: TSchemeLink); override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
function PossibleOutput(ToLink: TSchemeLinkedShape): boolean; override;
function PossibleInput(FromLink: TSchemeLinkedShape): boolean; override;
end;
{ presents a level of scheme }
TSchemeBlock = class(TSchemeLinkedShape)
private
procedure GetPath;
function GetBlockLevel: int32;
protected
FPath: string;
procedure DeleteOutLink(Link: TSchemeLink; FreeLink: boolean); virtual;
procedure AddOutLink(Link: TSchemeLink); virtual;
procedure SetCaption(const Value: string); override;
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
procedure SetParent(const Value: TSchemeShape); override;
public
constructor Create(AParent: TSchemeShape); override;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
class function GetDefaultSize: TVec2i; override;
class function IsContainer: boolean; override;
property BlockLevel: int32 read GetBlockLevel;
property Path: string read FPath;
end;
TModelState = (msNone, msLoading, msSaving, msRelease);
TOnCreateShape = procedure(Shape: TSchemeShape) of object;
TOnDeleteShape = TOnCreateShape;
TSchemeModel = class(TSchemeBlock)
private
type
TSchemClasses = TBinTreeTemplate<AnsiString, TSchemeShapeClass>;
TSchemClassesDicLoad = TBinTreeTemplate<int32, TSchemeShapeClass>;
TSchemClassesDicSave = TBinTreeTemplate<TSchemeShapeClass, int32>;
private
FTree: TSchemeParser;
FFileScheme: string;
FModified: boolean;
{ dictionary of all shapes }
FItems: TMapSchemeItems;
FListItems: TListSchemeItems;
Loading: boolean;
LoadDic: TSchemClassesDicLoad;
SaveDic: TSchemClassesDicSave;
FOnDeleteShape: TOnDeleteShape;
FOnCreateShape: TOnCreateShape;
FAfterLoad: IBEmptyEvent;
procedure SetModified(const Value: boolean);
function GetCurrentID: int32;
procedure OnNodeSave(Node: TSchemeParser.PVirtualTreeNode; Stream: TStream);
procedure OnNodeLoad(Node: TSchemeParser.PVirtualTreeNode; Stream: TStream;
SizeData: int32);
procedure OnFreeNode(Node: TSchemeParser.PVirtualTreeNode);
procedure FillDicSave;
function Open(Stream: TStream): boolean; overload;
private
class var RegistredSchemeClasses: TSchemClasses;
class constructor Create;
class destructor Destroy;
protected
FModelState: TModelState;
procedure OnDeleteSchemeItem(Shape: TSchemeShape; ListItem: TListSchemeItems.PListItem); virtual;
function OnCreateSchemeItem(Shape: TSchemeShape): TListSchemeItems.PListItem; virtual;
procedure OnChangeID(Shape: TSchemeShape; NewID: int32);
procedure Save(Stream: TStream); override;
procedure Load(Stream: TStream; var SizeData: int32); override;
public
constructor Create(AParent: TSchemeShape); overload; override;
destructor Destroy; override;
procedure AfterConstruction; override;
class procedure RegisterSchemeClass(SchemeClass: TSchemeShapeClass);
class function FindSchemeClass(const ClassName: Ansistring): TSchemeShapeClass;
procedure Clear; virtual;
{ find shape by ID }
function GetSchemeItemFromID(ID: int32): TSchemeShape;
{ delete Item from model }
procedure DeleteSchemeItem(Item: TSchemeShape);
{ only for history - remove from scheme, but not Item;
TODO: remove with children }
procedure Remove(Item: TSchemeShape);
function OpenScheme(const FileName: string): boolean; overload;
function OpenScheme(Stream: TStream): boolean; overload;
function SaveScheme(const FileName: string): boolean; overload;
function SaveScheme(Stream: TStream): boolean; overload;
procedure CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape); override;
{ insert scheme; return first inserted item }
function PasteScheme(Source: TSchemeModel; const Position: TVec2i;
Destination: TSchemeShape; ListAdded: TListVec<TSchemeShape>): TSchemeShape;
function FindItem(InSource: TSchemeShape; ClassItem: TSchemeShapeClass;
ExceptItem: TSchemeShape; const Rect: TRectBSf): TSchemeShape;
function FindParentRegion(SchemeShape: TSchemeShape): TSchemeRegion;
procedure DeleteEmptyChildSchemeRegions(SchemeShape: TSchemeShape;
Exptn: TSchemeShape);
{ set all id to CopyedItemID, that is to source }
procedure IdToSource;
property Modified : boolean read FModified write SetModified;
property CurrentID: int32 read GetCurrentID;
property ListItems: TListSchemeItems read FListItems;
property FileScheme: string read FFileScheme;
property OnCreateShape: TOnCreateShape read FOnCreateShape write FOnCreateShape;
property OnDeleteShape: TOnDeleteShape read FOnDeleteShape write FOnDeleteShape;
property ModelState: TModelState read FModelState;
property AfterLoad: IBEmptyEvent read FAfterLoad;
end;
const
SCHEME_VERSION = 0;
// default size of processor
DEF_PROCESSOR_WIDTH = 100;
DEF_PROCESSOR_HEIGHT = 40;
MIN_SIZE_PROCESSOR = 20;
// default size of block
DEF_BLOCK_WIDTH = 100;
DEF_BLOCK_HEIGHT = 60;
POINT_WIDTH = 50;
POINT_HEIGHT = 20;
REG_BORDER_WIDTH = 10;
implementation
uses SysUtils, bs.strings;
{ TSchemeShape }
procedure TSchemeShape.AfterConstruction;
begin
inherited;
if FSchemeModel <> nil then
_PosInList := FSchemeModel.OnCreateSchemeItem(Self);
end;
procedure TSchemeShape.CalcParentLevel;
var
i: int32;
begin
FParentLevel := TSchemeBlock(FindParentLevel(Parent));
for i := 0 to ChildrenCount - 1 do
Children[i].CalcParentLevel;
end;
procedure TSchemeShape.CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape);
var
i: int32;
ch: TSchemeShape;
begin
Result.FCaption := FCaption;
Result.FHeight := FHeight;
Result.FWidth := FWidth;
Result.FPosition := FPosition;
Result.FCenter := FCenter;
if Prnt <> nil then
Result.ID := Prnt.SchemeModel.CurrentID;
Result.CopyedItemID := FID;
CopyedItemID := Result.ID;
for i := 0 to ChildrenCount - 1 do
begin
ch := nil;
Children[i].CopyShape(ch, Result);
end;
end;
constructor TSchemeShape.Create(ToNode: TSchemeParserNode);
begin
FNode := ToNode;
if (FNode <> nil) and (FNode.Parent <> nil) then
Create(FNode.Parent.Data) else
Create(TSchemeShape(nil));
end;
constructor TSchemeShape.Create(AParent: TSchemeShape);
begin
FWidth := GetDefaultSize.x;
FHeight := GetDefaultSize.y;
FID := -1;
CopyedItemID := -1;
if AParent <> nil then
begin
FSchemeModel := AParent.FSchemeModel;
if (FNode = nil) then
FNode := FSchemeModel.FTree.CreateNode(AParent.FNode, Self);
Parent := AParent;
end;
end;
destructor TSchemeShape.Destroy;
begin
if (FSchemeModel <> nil) and (_PosInList <> nil) then
FSchemeModel.OnDeleteSchemeItem(Self, _PosInList);
end;
class function TSchemeShape.FindParentLevel(Shape: TSchemeShape): TSchemeShape;
begin
Result := Shape;
while Result <> nil do
begin
if (Result is TSchemeBlock) then
exit;
Result := Result.Parent;
end;
end;
function TSchemeShape.GetChildren(index: int32): TSchemeShape;
begin
if (FNode <> nil) and (FNode.Childs <> nil) then
begin
FNode.Childs.Cursor := index;
if FNode.Childs.UnderCursorItem <> nil then
Result := FNode.Childs.UnderCursorItem.Item.Data else
Result := nil;
end else
Result := nil;
end;
function TSchemeShape.GetChildrenCount: int32;
begin
if (FNode <> nil) and (FNode.Childs <> nil) then
Result := FNode.Childs.Count else
Result := 0;
end;
function TSchemeShape.GetLeft: int32;
begin
Result := FPosition.X;
end;
function TSchemeShape.GetParent: TSchemeShape;
begin
if (FNode <> nil) and (FNode.Parent <> nil) then
Result := FNode.Parent.Data else
Result := nil;
end;
function TSchemeShape.GetRect: TRectBSi;
begin
Result.Left := FPosition.X;
Result.Top := FPosition.Y;
Result.Width := FWidth;
Result.Height := FHeight;
end;
function TSchemeShape.GetTop: int32;
begin
Result := FPosition.Y;
end;
function TSchemeShape.IsAncestor(Ancestor: TSchemeShape): boolean;
var
prnt: TSchemeShape;
begin
prnt := Parent;
while (prnt <> nil) do
begin
if prnt = Ancestor then
exit(true);
prnt := prnt.Parent;
end;
Result := false;
end;
class function TSchemeShape.IsContainer: boolean;
begin
Result := false;
end;
procedure TSchemeShape.Load(Stream: TStream; var SizeData: int32);
var
l: int32;
s: WideString;
_id: int32;
begin
Stream.Read(l{%H-}, 4);
if l > 0 then
begin
s := '';
SetLength(s, l shr 1);
if Stream.Read(s[1], l) = l then
FCaption := WideToString(s);
end;
Stream.Read(_id{%H-}, 4);
Stream.Read(FWidth, 4);
Stream.Read(FHeight, 4);
Stream.Read(FPosition, SizeOf(FPosition));
FCenter := vec2(FPosition.x + FWidth shr 1, FPosition.y + FHeight shr 1);
ID := _id;
end;
procedure TSchemeShape.ResetCopyedItemID;
var
i: int32;
begin
CopyedItemID := -1;
for i := 0 to ChildrenCount - 1 do
Children[i].ResetCopyedItemID;
end;
procedure TSchemeShape.Resize(NewSize: TVec2f);
begin
Resize(round(NewSize.x), round(NewSize.y));
end;
procedure TSchemeShape.Resize(AWidth, AHeight: int32);
begin
if (AWidth = 0) or (AHeight = 0) then
raise Exception.Create('Error Message');
FWidth := AWidth;
FHeight := AHeight;
FCenter := vec2(FPosition.x + FWidth shr 1, FPosition.y + FHeight shr 1);
end;
procedure TSchemeShape.Save(Stream: TStream);
var
l: int32;
s: WideString;
begin
s := StringToWide(FCaption);
l := Length(s) shl 1;
Stream.Write(l, 4);
if l > 0 then
Stream.Write(s[1], l);
Stream.Write(FID, 4);
Stream.Write(FWidth, 4);
Stream.Write(FHeight, 4);
Stream.Write(FPosition, SizeOf(FPosition));
end;
procedure TSchemeShape.SetCaption(const Value: string);
begin
FCaption := Value;
end;
procedure TSchemeShape.SetHeight(const Value: int32);
begin
FHeight := Value;
end;
procedure TSchemeShape.SetID(const Value: int32);
begin
FSchemeModel.OnChangeID(Self, Value);
FID := Value;
end;
procedure TSchemeShape.SetLeft(const Value: int32);
begin
Position := vec2(Value, FPosition.y);
end;
procedure TSchemeShape.SetParent(const Value: TSchemeShape);
begin
FParentLevel := nil;
if Value <> nil then
begin
FSchemeModel.FTree.SetNodeParent(FNode, Value.FNode);
CalcParentLevel;
end else
if FSchemeModel <> nil then
FSchemeModel.FTree.SetNodeParent(FNode, nil);
end;
procedure TSchemeShape.SetPosition(const Value: TVec2i);
begin
FPosition := Value;
FCenter := vec2(FPosition.x + FWidth shr 1, FPosition.y + FHeight shr 1);
end;
procedure TSchemeShape.SetTop(const Value: int32);
begin
Position := vec2(FPosition.x, Value);
end;
procedure TSchemeShape.SetWidth(const Value: int32);
begin
FWidth := Value;
end;
{ TSchemeLinkedShape }
function TSchemeLinkedShape.AddOutput(Num: integer; ToItem: TSchemeLinkedShape): TSchemeLink;
begin
Result := TSchemeLink.Create(Self);
Result.NumOut := Num;
Result.ToLink := ToItem;
AddOutput(Result);
end;
procedure TSchemeLinkedShape.AddOutput(Link: TSchemeLink);
begin
if (FOutputs <> nil) and (FOutputs.Items[Link.NumOut] <> nil) then
DeleteOutPut(FOutputs.Items[Link.NumOut], true);
if FOutputs = nil then
FOutputs := TListVec<TSchemeLink>.Create(@PtrCmp);
FOutputs.Items[Link.NumOut] := Link;
end;
procedure TSchemeLinkedShape.DeleteOutput(Link: TSchemeLink; FreeLink: boolean);
begin
if (FOutPuts <> nil) then
begin
if FOutPuts.Items[Link.NumOut] <> Link then
FOutPuts.Remove(Link) else
FOutPuts.Items[Link.NumOut] := nil;
{ remove all empty links in end }
while (FOutPuts.Count > 0) and (FOutPuts.Items[FOutPuts.Count - 1] = nil) do
FOutPuts.Pop;
if FOutPuts.Count = 0 then
FreeAndNil(FOutPuts);
if FreeLink then
Link.Free;
end;
end;
destructor TSchemeLinkedShape.Destroy;
begin
FreeAndNil(FOutPuts);
inherited;
end;
function TSchemeLinkedShape.GetCountOutputs: int32;
begin
if (FOutPuts <> nil) then
Result := FOutPuts.Count else
Result := 0;
end;
function TSchemeLinkedShape.GetOutput(Index: Int32): TSchemeLink;
begin
if (FOutPuts <> nil) then
Result := FOutPuts.Items[Index] else
Result := nil;
end;
function TSchemeLinkedShape.PossibleInput(FromLink: TSchemeLinkedShape): boolean;
begin
Result := (ParentLevel = FromLink.ParentLevel);
end;
function TSchemeLinkedShape.PossibleOutput(ToLink: TSchemeLinkedShape): boolean;
begin
Result := (ParentLevel = ToLink.ParentLevel);
end;
procedure TSchemeLinkedShape.SetParent(const Value: TSchemeShape);
begin
inherited;
end;
{ TSchemeModel }
procedure TSchemeModel.AfterConstruction;
begin
inherited;
FSchemeModel := Self;
end;
procedure TSchemeModel.Clear;
begin
FTree.ClearNodeChilds(FNode);
FFileScheme := '';
end;
procedure TSchemeModel.CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeModel.Create(Prnt);
inherited;
end;
constructor TSchemeModel.Create(AParent: TSchemeShape);
begin
inherited Create(TSchemeShape(nil));
FAfterLoad := CreateEmptyEvent(nil);
FItems := TMapSchemeItems.Create(@Int32cmp);
FListItems := TListSchemeItems.Create;
Caption := 'Scheme';
FTree := TSchemeParser.Create;
FTree.Version := SCHEME_VERSION;
FTree.OnSaveNode := OnNodeSave;
FTree.OnLoadNode := OnNodeLoad;
FTree.OnDeleteNode := OnFreeNode;
FNode := FTree.CreateNode(nil, Self);
end;
class constructor TSchemeModel.Create;
begin
RegistredSchemeClasses := TSchemClasses.Create(StrCmpA);
end;
procedure TSchemeModel.DeleteEmptyChildSchemeRegions(SchemeShape: TSchemeShape;
Exptn: TSchemeShape);
var
it, next: TSchemeParser.TListVirtualNodes.PListItem;
begin
if SchemeShape.FNode.Childs <> nil then
begin
it := SchemeShape.FNode.Childs.ItemListFirst;
while it <> nil do
begin
next := it.Next;
if (Exptn <> it.Item.Data) and (it.Item.Data is TSchemeRegion) and (it.Item.Data.ChildrenCount = 0) then
it.Item.Data.Free;
it := next;
end;
end;
end;
procedure TSchemeModel.DeleteSchemeItem(Item: TSchemeShape);
begin
Item.Free;
end;
class destructor TSchemeModel.Destroy;
begin
RegistredSchemeClasses.Free;
end;
destructor TSchemeModel.Destroy;
begin
FModelState := msRelease;
FTree.Free;
FAfterLoad := nil;
inherited;
FItems.Free;
FListItems.Destroy;
end;
procedure TSchemeModel.FillDicSave;
var
cl_id: int32;
cl_sh: TSchemeShapeClass;
begin
{ fill dictionary classes; 0 is always TSchemeModel }
SaveDic.Add(TSchemeModel, 0);
cl_id := 1;
if RegistredSchemeClasses.Iterator.SetToBegin(cl_sh) then
repeat
SaveDic.Add(cl_sh, cl_id);
inc(cl_id);
until not RegistredSchemeClasses.Iterator.Next(cl_sh);
end;
function TSchemeModel.FindItem(InSource: TSchemeShape;
ClassItem: TSchemeShapeClass; ExceptItem: TSchemeShape;
const Rect: TRectBSf): TSchemeShape;
var
i: int32;
it: TSchemeShape;
begin
for i := 0 to InSource.ChildrenCount - 1 do
begin
it := InSource.Children[i];
if not (it is ClassItem) or (ExceptItem = it) then
continue;
if (it.Position.x <= Rect.x) and (it.Position.y <= Rect.y) and
(it.Position.x + it.Width <= Rect.x + Rect.Width) and
(it.Position.y + it.Height <= Rect.y + Rect.Height) then
exit(it);
end;
Result := nil;
end;
function TSchemeModel.FindParentRegion(SchemeShape: TSchemeShape): TSchemeRegion;
var
it: TSchemeShape;
begin
it := SchemeShape.Parent;
while it <> nil do
begin
if it is TSchemeRegion then
exit(TSchemeRegion(it));
it := it.Parent;
end;
Result := nil;
end;
class function TSchemeModel.FindSchemeClass(
const ClassName: Ansistring): TSchemeShapeClass;
begin
RegistredSchemeClasses.Find(ClassName, Result);
end;
function TSchemeModel.GetCurrentID: int32;
var
it: TSchemeShape;
begin
Result := FItems.Count;
while FItems.Find(Result, it) do
inc(Result);
end;
function TSchemeModel.GetSchemeItemFromID(ID: int32): TSchemeShape;
begin
FItems.Find(ID, Result);
end;
procedure TSchemeModel.IdToSource;
procedure IDToSrc(Item: TSchemeShape);
var
i: int32;
it: TSchemeShape;
begin
for i := 0 to Item.ChildrenCount - 1 do
begin
it := Item.Children[i];
if it.CopyedItemID >= 0 then
begin
it.ID := it.CopyedItemID;
end;
IDToSrc(it);
end;
end;
procedure IDAss(Item: TSchemeShape);
var
i: int32;
it: TSchemeShape;
begin
for i := 0 to Item.ChildrenCount - 1 do
begin
it := Item.Children[i];
if it.CopyedItemID < 0 then
it.ID := CurrentID;
IDToSrc(it);
end;
end;
begin
FItems.Clear;
{ take ID a source }
IDToSrc(Self);
{ assign ID where it has not }
IDAss(Self);
end;
procedure TSchemeModel.Load(Stream: TStream; var SizeData: int32);
var
count: int32;
cl_id: int32;
cl_sh: TSchemeShapeClass;
l: int32;
n: Ansistring;
begin
Stream.Read(count{%H-}, 4);
dec(SizeData, 4);
while (count > 0) and (SizeData > 0) do
begin
dec(count);
{ id }
Stream.Read(cl_id{%H-}, 4);
{ len name }
Stream.Read(l{%H-}, 4);
{ name }
n := '';
SetLength(n, l);
Stream.Read(n[1], l);
dec(SizeData, l + 8);
if RegistredSchemeClasses.Find(n, cl_sh) then
LoadDic.Add(cl_id, cl_sh);
end;
inherited Load(Stream, SizeData);
end;
procedure TSchemeModel.OnChangeID(Shape: TSchemeShape; NewID: int32);
var
i: TSchemeShape;
begin
if (NewID < 0) or FItems.Find(NewID, i) then
exit;
if FItems.Find(Shape.ID, i) and (Shape = i) then
FItems.Remove(Shape.ID);
FItems.Add(NewID, Shape);
end;
function TSchemeModel.OnCreateSchemeItem(
Shape: TSchemeShape): TListSchemeItems.PListItem;
begin
if Shape <> Self then
begin
Result := FListItems.PushToEnd(Shape);
if not (Loading) then
begin
Shape.ID := CurrentID;
end;
if Assigned(FOnCreateShape) then
FOnCreateShape(Shape);
end else
Result := nil;
end;
procedure TSchemeModel.OnDeleteSchemeItem(Shape: TSchemeShape;
ListItem: TListSchemeItems.PListItem);
var
n: TSchemeParserNode;
begin
FListItems.Remove(ListItem);
FItems.Remove(Shape.ID);
if Shape.FNode <> nil then
begin
n := Shape.FNode;
Shape.FNode := nil;
FTree.DeleteNode(n, true, false);
end;
if (Shape <> Self) and Assigned(FOnDeleteShape) then
FOnDeleteShape(Shape);
end;
procedure TSchemeModel.OnFreeNode(Node: TSchemeParser.PVirtualTreeNode);
begin
if Node.Data = Self then
exit;
{ the Node is free by FTree.Clear, otherewise outside by user }
if Node.Data.FNode <> nil then
begin
Node.Data.FNode := nil;
FreeAndNil(Node.Data);
end;
end;
procedure TSchemeModel.OnNodeLoad(Node: TSchemeParser.PVirtualTreeNode;
Stream: TStream; SizeData: int32);
var
id: int32;
cl_sh: TSchemeShapeClass;
sh: TSchemeShape;
sz: int32;
begin
Stream.Read(id{%H-}, 4);
sz := SizeData - 4;
if id > 0 then
begin
if LoadDic.Find(id, cl_sh) then
begin
sh := cl_sh.Create(Node);
Node.Data := sh;
sh.Load(Stream, sz);
end else
begin
{ TODO: empty shape, or exception??? }
end;
end else { load root }
begin
FNode := Node;
FNode.Data := Self;
Load(Stream, sz);
end;
end;
procedure TSchemeModel.OnNodeSave(Node: TSchemeParser.PVirtualTreeNode;
Stream: TStream);
var
cl_id: int32;
begin
if SaveDic.Find(TSchemeShapeClass(Node.Data.ClassType), cl_id) then
begin
Stream.Write(cl_id, 4);
Node.Data.Save(Stream);
end else
raise Exception.Create('Have not found class of the shape!');
end;
function TSchemeModel.OpenScheme(const FileName: string): boolean;
var
f: TFileStream;
begin
try
f := TFileStream.Create(FileName, fmOpenRead);
try
Result := Open(f);
finally
f.Free;
end;
except
exit(false);
end;
FCaption := ChangeFileExt(ExtractFileName(FileName), '');
FFileScheme := FileName;
end;
function TSchemeModel.Open(Stream: TStream): boolean;
begin
FModelState := msLoading;
try
Clear;
LoadDic := TSchemClassesDicLoad.Create(Int32cmp);
Loading := true;
try
Result := FTree.LoadFrom(Stream);
finally
Loading := false;
FreeAndNil(LoadDic);
end;
finally
FModelState := msNone;
end;
end;
function TSchemeModel.OpenScheme(Stream: TStream): boolean;
begin
Result := Open(Stream);
end;
function TSchemeModel.PasteScheme(Source: TSchemeModel; const Position: TVec2i;
Destination: TSchemeShape; ListAdded: TListVec<TSchemeShape>): TSchemeShape;
var
i: int32;
it: TSchemeShape;
begin
if (Source.ChildrenCount = 0) then
exit(nil);
Result := nil;
// TODO: have not tested
for i := 0 to Source.ChildrenCount - 1 do
begin
it := Source.Children[i];
Result := nil;
it.CopyShape(Result, Destination);
ListAdded.Add(Result);
Result.Left := Position.X + (it.Left - Source.Left);
Result.Top := Position.Y + (it.Top - Source.Top);
end;
end;
class procedure TSchemeModel.RegisterSchemeClass(SchemeClass: TSchemeShapeClass);
var
n: AnsiString;
begin
n := StringToAnsi(SchemeClass.ClassName);
if not RegistredSchemeClasses.Exists(n) then
RegistredSchemeClasses.Add(n, SchemeClass);
end;
procedure TSchemeModel.Remove(Item: TSchemeShape);
begin
OnDeleteSchemeItem(Item, Item._PosInList);
end;
procedure TSchemeModel.Save(Stream: TStream);
var
cl_id: int32;
l: int32;
cl_name: AnsiString;
begin
{ save dictionary of shape classes }
l := SaveDic.Count;
Stream.Write(l, 4);
if SaveDic.Iterator.SetToBegin(cl_id) then
repeat
{ id }
Stream.Write(cl_id, 4);
cl_name := StringToAnsi(SaveDic.Iterator.CurrentNode.Key.ClassName);
l := length(cl_name);
{ len name }
Stream.Write(l, 4);
{ name }
Stream.Write(cl_name[1], l);
until not SaveDic.Iterator.Next(cl_id);
inherited;
end;
function TSchemeModel.SaveScheme(Stream: TStream): boolean;
begin
FModelState := msSaving;
try
SaveDic := TSchemClassesDicSave.Create(@ptrCmp);
try
FillDicSave;
Result := FTree.SaveTo(Stream);
finally
FreeAndNil(SaveDic);
end;
finally
FModelState := msNone;
end;
end;
function TSchemeModel.SaveScheme(const FileName: string): boolean;
begin
FModelState := msSaving;
try
FFileScheme := FileName;
SaveDic := TSchemClassesDicSave.Create(@ptrCmp);
try
FillDicSave;
Result := FTree.SaveTo(FileName);
finally
FreeAndNil(SaveDic);
end;
finally
FModelState := msNone;
end;
end;
procedure TSchemeModel.SetModified(const Value: boolean);
begin
FModified := Value;
end;
{ TSchemeLink }
procedure TSchemeLink.CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeLink.Create(Prnt);
TSchemeLink(Result).Parent := Parent;
TSchemeLink(Result).IDFrom := IDFrom;
TSchemeLink(Result).IDTo := IDTo;
TSchemeLink(Result).NumOut := FNumOut;
inherited;
end;
constructor TSchemeLink.Create(AParent: TSchemeShape);
begin
inherited;
IDFrom := -1;
IDTo := -1;
FNumOut := -1;
if AParent <> nil then
IDFrom := AParent.ID;
end;
destructor TSchemeLink.Destroy;
begin
//TSchemeLinkedShape(Parent).DeleteOutput(Self, false);
inherited;
end;
class function TSchemeLink.GetDefaultSize: TVec2i;
begin
Result := vec2(10, 10);
end;
function TSchemeLink.GetToLink: TSchemeLinkedShape;
var
sh: TSchemeShape;
begin
if FToLink = nil then
begin
if IDTo < 0 then
exit(nil);
sh := FSchemeModel.GetSchemeItemFromID(IDTo);
if not (sh is TSchemeLinkedShape) then
raise Exception.Create('TSchemeLinkedShape has not found! (ID = ' + IntToStr(IDTo) + ')');
FToLink := TSchemeLinkedShape(sh);
if FToLink = nil then
exit(nil);
end;
Result := FToLink;
end;
procedure TSchemeLink.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
Stream.Read(IDFrom, 4);
Stream.Read(IDTo, 4);
Stream.Read(FNumOut, 4);
if FNumOut < 0 then
FCaption := '' else
FCaption := IntToStr(FNumOut);
TSchemeLinkedShape(Parent).AddOutput(Self);
end;
procedure TSchemeLink.Save(Stream: TStream);
begin
inherited;
Stream.Write(IDFrom, 4);
Stream.Write(IDTo, 4);
Stream.Write(FNumOut, 4);
end;
procedure TSchemeLink.SetNumOut(const Value: int32);
begin
FNumOut := Value;
if FNumOut < 0 then
FCaption := '' else
FCaption := IntToStr(FNumOut);
end;
procedure TSchemeLink.SetParent(const Value: TSchemeShape);
begin
inherited;
if Value <> nil then
IDFrom := Value.ID else
raise Exception.Create('Error Message');
end;
procedure TSchemeLink.SetToLink(const Value: TSchemeLinkedShape);
begin
FToLink := Value;
if FToLink <> nil then
IDTo := FToLink.ID else
IDTo := -1;
end;
{ TSchemeRegion }
procedure TSchemeRegion.CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeRegion.Create(Prnt);
inherited;
end;
constructor TSchemeRegion.Create(AParent: TSchemeShape);
begin
inherited;
FCaption := 'Group';
end;
class function TSchemeRegion.GetDefaultSize: TVec2i;
begin
Result := vec2(BSInt(DEF_BLOCK_WIDTH shl 1), BSInt(DEF_BLOCK_WIDTH shl 1));
end;
class function TSchemeRegion.IsContainer: boolean;
begin
Result := true;
end;
procedure TSchemeRegion.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
end;
procedure TSchemeRegion.Save(Stream: TStream);
begin
inherited;
end;
{ TSchemeBlockLinkOutput }
procedure TSchemeBlockLinkOutput.AddOutput(Link: TSchemeLink);
begin
inherited;
ParentLevel.AddOutLink(Link);
end;
procedure TSchemeBlockLinkOutput.CopyShape(var Result: TSchemeShape;
Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeBlockLinkOutput.Create(Prnt);
inherited;
end;
procedure TSchemeBlockLinkOutput.DeleteOutput(Link: TSchemeLink; FreeLink: boolean);
begin
if Link <> nil then
ParentLevel.DeleteOutLink(Link, FreeLink);
inherited;
end;
procedure TSchemeBlockLinkOutput.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
end;
constructor TSchemeBlockLinkOutput.Create(AParent: TSchemeShape);
begin
inherited Create(AParent);
FCaption := 'Output from the block';
end;
function TSchemeBlockLinkOutput.PossibleInput(FromLink: TSchemeLinkedShape): boolean;
begin
Result := inherited PossibleInput(FromLink);
if not Result then
begin
if (FromLink is TSchemeBlockLinkOutput) then
Result := FParentLevel = FromLink.ParentLevel.ParentLevel;
end;
end;
function TSchemeBlockLinkOutput.PossibleOutput(ToLink: TSchemeLinkedShape): boolean;
begin
Result := not inherited;
if Result then
begin
{ from the output block A to a input (ToLink) block B which is on the same level ??? }
Result := (ToLink is TSchemeBlockLinkInput) and (FParentLevel.ParentLevel = ToLink.ParentLevel.ParentLevel);
if not Result then
begin
Result := FParentLevel.ParentLevel = ToLink.ParentLevel;
end;
end;
end;
procedure TSchemeBlockLinkOutput.Save(Stream: TStream);
begin
inherited;
end;
{ TSchemeBlockLinkInput }
procedure TSchemeBlockLinkInput.CopyShape(var Result: TSchemeShape;
Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeBlockLinkInput.Create(Prnt);
inherited;
end;
destructor TSchemeBlockLinkInput.Destroy;
begin
inherited;
end;
procedure TSchemeBlockLinkInput.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
end;
constructor TSchemeBlockLinkInput.Create(AParent: TSchemeShape);
begin
inherited Create(AParent);
FCaption := 'Input to the block';
end;
function TSchemeBlockLinkInput.PossibleInput(
FromLink: TSchemeLinkedShape): boolean;
begin
Result := not inherited;
if Result then
begin
Result := (FParentLevel.ParentLevel = FromLink.ParentLevel);
if not Result then
Result := (FromLink is TSchemeBlockLinkOutput) and (FParentLevel.ParentLevel = FromLink.ParentLevel.ParentLevel);
end;
end;
function TSchemeBlockLinkInput.PossibleOutput(ToLink: TSchemeLinkedShape): boolean;
begin
Result := inherited;
if not Result then
begin
{ from the output block A to a input (ToLink) block B which is on the same level ??? }
Result := (ToLink is TSchemeBlockLinkInput) and (FParentLevel = ToLink.ParentLevel.ParentLevel);
end;
end;
procedure TSchemeBlockLinkInput.Save(Stream: TStream);
begin
inherited;
end;
{ TSchemeBlockLink }
class function TSchemeBlockLink.GetDefaultSize: TVec2i;
begin
Result := vec2(POINT_WIDTH, POINT_HEIGHT);
end;
{ TSchemeProcessor }
procedure TSchemeProcessor.CopyShape(var Result: TSchemeShape;
Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeProcessor.Create(Prnt);
inherited;
end;
constructor TSchemeProcessor.Create(AParent: TSchemeShape);
begin
inherited;
FCaption := 'Processor';
end;
destructor TSchemeProcessor.Destroy;
begin
inherited;
end;
class function TSchemeProcessor.GetDefaultSize: TVec2i;
begin
Result := vec2(DEF_PROCESSOR_WIDTH, DEF_PROCESSOR_HEIGHT);
end;
procedure TSchemeProcessor.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
end;
function TSchemeProcessor.PossibleOutput(ToLink: TSchemeLinkedShape): boolean;
begin
Result := ToLink.PossibleInput(Self);
end;
procedure TSchemeProcessor.Save(Stream: TStream);
begin
inherited;
end;
procedure TSchemeProcessor.SetParent(const Value: TSchemeShape);
{var
i: int32;
l: TSchemeLink; }
begin
inherited;
{for i := CountOutputs - 1 downto 0 do
begin
l := Output[i];
if l = nil then
continue;
if (l.ToLink <> nil) and (l.ToLink.ParentLevel <> ParentLevel) then
DeleteOutput(l);
end; }
end;
{ TSchemeBlock }
procedure TSchemeBlock.AddOutLink(Link: TSchemeLink);
begin
if FOutPuts = nil then
FOutPuts := TListVec<TSchemeLink>.Create(@PtrCmp);
FOutPuts.Add(Link);
end;
procedure TSchemeBlock.CopyShape(var Result: TSchemeShape; Prnt: TSchemeShape);
begin
if Result = nil then
Result := TSchemeBlock.Create(Prnt);
inherited;
end;
constructor TSchemeBlock.Create(AParent: TSchemeShape);
begin
inherited;
FCaption := 'Block';
end;
procedure TSchemeBlock.DeleteOutLink(Link: TSchemeLink; FreeLink: boolean);
begin
if FOutPuts <> nil then
begin
FOutPuts.Remove(Link);
if FOutPuts.Count = 0 then
FreeAndNil(FOutPuts);
end;
end;
function TSchemeBlock.GetBlockLevel: int32;
var
bl: TSchemeBlock;
begin
Result := 0;
bl := FParentLevel;
while bl <> nil do
begin
inc(Result);
bl := bl.FParentLevel;
end;
end;
class function TSchemeBlock.GetDefaultSize: TVec2i;
begin
Result := vec2(DEF_BLOCK_WIDTH, DEF_BLOCK_HEIGHT);
end;
procedure TSchemeBlock.GetPath;
var
pr: TSchemeShape;
begin
pr := ParentLevel;
FPath := FCaption;
while pr <> nil do
begin
FPath := pr.Caption + '/' + FPath;
pr := pr.ParentLevel;
end;
end;
class function TSchemeBlock.IsContainer: boolean;
begin
Result := true;
end;
procedure TSchemeBlock.Load(Stream: TStream; var SizeData: int32);
begin
inherited;
end;
procedure TSchemeBlock.Save(Stream: TStream);
begin
inherited;
end;
procedure TSchemeBlock.SetCaption(const Value: string);
begin
inherited;
GetPath;
end;
procedure TSchemeBlock.SetParent(const Value: TSchemeShape);
begin
inherited;
GetPath;
end;
initialization
TSchemeModel.RegisterSchemeClass(TSchemeLink);
TSchemeModel.RegisterSchemeClass(TSchemeRegion);
TSchemeModel.RegisterSchemeClass(TSchemeProcessor);
TSchemeModel.RegisterSchemeClass(TSchemeBlockLinkInput);
TSchemeModel.RegisterSchemeClass(TSchemeBlockLinkOutput);
TSchemeModel.RegisterSchemeClass(TSchemeBlock);
finalization
end.
| 26.407985 | 120 | 0.694628 |
831e61d37561f58f3048f92aebd59cee5cf00cde
| 25,210 |
pas
|
Pascal
|
src/UDatabase.pas
|
comiluv/Drago
|
5a9f8266ab09d0ba30d92f8aac22c7edda06f4a7
|
[
"MIT"
] | 13 |
2018-02-08T16:30:24.000Z
|
2021-11-27T13:49:12.000Z
|
src/UDatabase.pas
|
comiluv/Drago
|
5a9f8266ab09d0ba30d92f8aac22c7edda06f4a7
|
[
"MIT"
] | 5 |
2021-05-13T14:52:54.000Z
|
2022-01-04T22:56:16.000Z
|
src/UDatabase.pas
|
comiluv/Drago
|
5a9f8266ab09d0ba30d92f8aac22c7edda06f4a7
|
[
"MIT"
] | 5 |
2019-11-25T18:17:16.000Z
|
2021-06-18T07:21:58.000Z
|
// ---------------------------------------------------------------------------
// -- Drago -- Interface to database ------------------------ UDatabase.pas --
// ---------------------------------------------------------------------------
unit UDatabase;
// ---------------------------------------------------------------------------
interface
uses
Windows, SysUtils, Classes,
ClassesEx,
DefineUi, UView, UGoban, UKombilo, Main,
UGameTree;
type
TDBCallBack = procedure(bar, mode, n, processed : integer);
type
TSearchContext = class
// db tab
DBTab : TTabSheetEx;
kh : TKGameList;
// calling tab
CallingTab : TTabSheetEx;
CallingView : TViewMode;
// calling game position;
gt : TGameTree;
// is pattern selected from thumbnail (init as false, set latter)
IsThumbPattern : boolean;
// timing
t0 : double;
end;
procedure CreateDatabase(const dbName : WideString; var ok : boolean);
procedure UserMainOpenDatabase(sameTab : boolean);
procedure DoMainOpenDatabase( aName : WideString;
num : integer;
node : string;
sameTab : boolean;
var ok : boolean);
procedure AddListToDB(view : TView; fileList : TWideStringList; DBCallBack : TDBCallBack);
procedure CurrentEntriesToCollection(view : TView;
aName : WideString = '';
aNode : string = '';
aIndx : integer = 1);
procedure DoPrepareSearch(i1, j1, i2, j2 : integer);
procedure DoPatternSearch(gbSrc : TGoban;
kh : TKGameList;
i1, j1, i2, j2 : integer;
nextPlayer: integer;
msgProc : TProcString;
var ok : boolean);
procedure EndPatternSearch(gvSrc : TView;
gbSrc : TGoban;
i1, j1, i2, j2 : integer);
function ListOfPlayers(kh : TKGameList) : TStringList;
function ActiveDBTab : TTabSheetEx;
function ActiveDB : TKGameList;
procedure DoResetDatabase;
procedure ListOfSignatures(gl : TKGameList; list : TStringList);
function DatabaseExists(const dbName : WideString) : boolean;
procedure DisplayContinuations(gb : TGoban; gl : TKGameList; i1, j1 : integer);
function DbFormatNumberOfResults(n : integer; const dbName : WideString) : WideString;
function FormatTimeString(time : double) : WideString;
var
DBSearchContext : TSearchContext;
// ---------------------------------------------------------------------------
implementation
uses
Controls, Forms,
StrUtils, Math,
Define, Std, Translate, UGameColl, Sgfio, UMainUtil, WinUtils, SysUtilsEx,
UDialogs, Ugmisc, UGCom, UfmMsg, UStatus, UViewBoard,
UfmAddToDB, UViewMain, UfmDBSearch;
// -- Kombilo format string: definition and parsing --------------------------
function KombiloFormatString : string;
begin
Result := '[[filename]]*[[pos]]*'
end;
procedure KombiloFormatParse(const s : string;
var filename : string;
var index : integer;
var hits : string;
keepOnlyOneHit : boolean);
var
i, j, p : integer;
begin
i := Pos('*', s);
j := PosEx('*', s, i + 1);
if i = 0 then
begin
filename := s;
index := 1;
exit
end;
filename := Copy(s, 1, i - 1);
//if j = 0
// then j := Length(s);
index := StrToIntDef(Copy(s, i + 1, j - i - 1), 1);
hits := Copy(s, j + 1, Length(s) - j - 1);
if keepOnlyOneHit then
begin
p := Pos(',', hits);
if p > 0
then hits := Copy(hits, 1, p - 1)
end;
// add 1 as Drago collections are 1-based
inc(index)
end;
// -- Test of database existence ---------------------------------------------
function DatabaseExists(const dbName : WideString) : boolean;
begin
Result := WideFileExists(dbName) and WideFileExists(dbName + '1')
and WideFileExists(dbName + '2')
end;
// -- Creation of a new database ---------------------------------------------
procedure CreateDatabase(const dbName : WideString; var ok : boolean);
var
dbName1, dbName2 : WideString;
r, r1, r2 : boolean;
gl : TKGameList;
p_op : TKProcessOptions;
begin
ok := True;
// make names
dbName1 := dbName + '1';
dbName2 := dbName + '2';
// delete previous, user is already warned
r := (not WideFileExists(dbName )) or WideDeleteFile(dbName );
r1 := (not WideFileExists(dbName1)) or WideDeleteFile(dbName1);
r2 := (not WideFileExists(dbName2)) or WideDeleteFile(dbName2);
// abort if unable to create
if (not r) or (not r1) or (not r2) then
begin
if IsFileInUseW(dbName)
then MessageDialog(msOk, imExclam, [U('Unable to create database...')])
else MessageDialog(msOk, imExclam, [U('Unable to create database...')]);
ok := False;
exit
end;
// create database
p_op := TKProcessOptions.Create;
if not Settings.DBCreateExtended
then p_op.SetValue(poAlgos, ALGO_FINALPOS or ALGO_MOVELIST);
try
gl := TKGameList.Create(dbName, 'id', KombiloFormatString, p_op,
Settings.DBCache)
except
MessageDialog(msOk, imExclam, [U('Unable to create database...')]);
p_op.Free;
ok := False;
exit
end;
p_op.Free;
// mandatory (to be checked)
gl.StartProcessing(True);
gl.FinalizeProcessing;
// release handle
gl.Free;
if Assigned(fmDBSearch)
then fmDBSearch.ResetResultTabRef
end;
procedure UserCreateDatabase;
begin
end;
// -- Access to current database ---------------------------------------------
procedure FindDBTab(tabSrc : TTabSheetEx; var tabDB : TTabSheetEx);
begin
if tabSrc.TabView.kh <> nil
then tabDB := tabSrc
else tabDB := fmMain.DBListOfTabs.Top as TTabSheetEx
end;
function ActiveDBTab : TTabSheetEx;
begin
Result := fmMain.DBListOfTabs.Top as TTabSheetEx
end;
function ActiveDB : TKGameList;
var
obj : TObject;
begin
obj := fmMain.DBListOfTabs.Top;
if obj = nil
then Result := nil
else Result := TTabSheetEx(obj).TabView.kh
end;
// -- Delayed access to collection from database -----------------------------
//
// cl are 1-based, kh are 0-based
type TDBDelayedAccess = class(TDelayedAccess)
FKh : TKGameList;
FKhIndex : integer;
constructor Create(kh : TKGameList); overload;
constructor Create(kh : TKGameList; khIndex : integer); overload;
procedure DelayedAccess(clIndex : integer; ce : TCollElem); override;
end;
constructor TDBDelayedAccess.Create(kh : TKGameList);
begin
FKh := kh;
FKhIndex := -1
end;
constructor TDBDelayedAccess.Create(kh : TKGameList; khIndex : integer);
begin
FKh := kh;
FKhIndex := khIndex;
end;
procedure TDBDelayedAccess.DelayedAccess(clIndex : integer; ce : TCollElem);
var
x : TGameTree;
khIndex, index : integer;
s, filename, hits : string;
begin
if FKhIndex < 0
then khIndex := clIndex - 1
else khIndex := FKhIndex;
s := FKh.CurrentEntryAsString(khIndex);
KombiloFormatParse(s, filename, index, hits, FKh.FKeepOnlyOneHit);
s := FKh.GetSGF(khIndex);
x := ReadSgfInString(s, True); // always accept long property names here
ce.gtree := x;
ce.FFileName := filename;
ce.FIndex := index;
ce.FHits := hits
end;
// -- Adding a list of files to database -------------------------------------
// -- Processing flags
function ProcessingFlags(st : TStatus) : integer;
begin
// detection of duplicates
case st.DBDetectDuplicates of
0 : Result := 0;
1 : Result := CHECK_FOR_DUPLICATES;
2 : Result := CHECK_FOR_DUPLICATES_STRICT
end;
// omission of duplicates
if st.DBOmitDuplicates
then Result := Result or OMIT_DUPLICATES;
// omission of games with sgf errors
if st.DBOmitSGFErrors
then Result := Result or OMIT_GAMES_WITH_SGF_ERRORS
end;
// -- Errors messages
procedure AddToErrorList(const fn : WideString; single : boolean; index, count, flag : integer);
var
msg : string;
begin
case flag of
-1 :
msg := 'Unable to process game';
-2 :
msg := 'Unable to process game completely';
UNACCEPTABLE_BOARDSIZE :
msg := 'Boardsize not handled';
SGF_ERROR :
msg := 'SGF error detected, game inserted';
SGF_ERROR or NOT_INSERTED_INTO_DB :
msg := 'SGF error detected, game not inserted';
IS_DUPLICATE :
msg := 'Duplicate detected';
IS_DUPLICATE or NOT_INSERTED_INTO_DB :
msg := 'Duplicate ignored'
end;
fmAddToDB.ReportError(U(msg), fn, single, index, count)
end;
// --
procedure AddListToDB(view : TView;
fileList : TWideStringList;
DBCallBack : TDBCallBack);
var
i, k, nGames, processed, flags, r : integer;
fn, name, path, sgf : WideString;
cl : TGameColl;
single : boolean;
begin
if fileList.Count = 0
then exit;
// set processing flags
flags := ProcessingFlags(Settings);
DBCallBack(0, 0, fileList.Count, -1);
cl := TGameColl.Create;
view.kh.StartProcessing(Settings.DBProcessVariations);
processed := 0;
try
for i := 0 to fileList.Count - 1 do
begin
fn := fileList[i];
path := ExtractFilePath(fn);
name := ExtractFileName(fn);
ReadSgf(cl, fn, nGames,
Settings.LongPNames, Settings.AbortOnReadError);
// handle Drago reading errors
if nGames = 0 then
begin
AddToErrorList(fn, single, 0, 0, -1);
Continue
end;
if sgfResult <> 0
then AddToErrorList(fn, single, 0, 0, -2);
single := cl.Count = 1;
if single
then DBCallBack(1, 2, 1, -1) // just to count games
else DBCallBack(1, 0, cl.Count, -1); // set progress bar
for k := 1 to cl.Count do
begin
// get sgf string by reading from file or printing to string
if single
then sgf := FileToString(fn)
else sgf := TreeToString(cl[k]);
// process event and add it to collection or error list
r := view.kh.Process(sgf, path, name, flags);
// if error when parsing made by libkombilo, try parsing by Drago
if (r = 0) and single then
begin
sgf := TreeToString(cl[k]);
r := view.kh.Process(sgf, path, name, flags);
end;
if r = 0
then AddToErrorList(fn, single, k, cl.Count, -1)
else
begin
r := view.kh.ProcessResults(0);
if (r and NOT_INSERTED_INTO_DB) = 0
then view.cl.AddDelayed(TDBDelayedAccess.Create(view.kh));
// handle libkombilo errors
if (r and UNACCEPTABLE_BOARDSIZE) <> 0
then AddToErrorList(fn, single, k, cl.Count, UNACCEPTABLE_BOARDSIZE);
if (r and SGF_ERROR) <> 0
then AddToErrorList(fn, single, k, cl.Count, SGF_ERROR or
(r and NOT_INSERTED_INTO_DB));
if (r and IS_DUPLICATE) <> 0
then AddToErrorList(fn, single, k, cl.Count, IS_DUPLICATE or
(r and NOT_INSERTED_INTO_DB))
end;
// update progress status
inc(processed);
if cl.Count > 1
then DBCallBack(1, 1, k-1, processed);
// test escape key
if fmAddToDB.Abort
then exit
end;
DBCallBack(0, 1, i+1, processed)
end
finally
view.kh.FinalizeProcessing;
cl.Free
end
end;
// -- List of signatures in DB -----------------------------------------------
procedure ListOfSignatures(gl : TKGameList; list : TStringList);
var
i : integer;
begin
for i := 0 to gl.Size do
list.Add(gl.GetSignature(i))
end;
// -- Loading of results into Drago structures -------------------------------
procedure CurrentEntriesToCollection0(view : TViewBoard);
var
x : TGameColl;
i, nReadGames, index : integer;
s, currentReadGame, filename, hits : string;
begin
view.cl.Clear;
x := TGameColl.Create;
currentReadGame := '';
for i := 0 to view.kh.Size - 1 do
begin
s := view.kh.CurrentEntryAsString(i);
//KombiloFormatParse(s, filename, index, hits);
if filename <> currentReadGame then
begin
ReadSgf(x, filename, nReadGames,
Settings.LongPNames, Settings.AbortOnReadError);
currentReadGame := filename
end;
view.cl.Add(x[index], filename, index);
// avoid freeing games in cl
x[index] := nil;
end;
x.Free
end;
procedure CurrentEntriesToCollection(view : TView;
aName : WideString = '';
aNode : string = '';
aIndx : integer = 1);
var
x : TGameTree;
i, index : integer;
s, filename : string;
begin
view.cl.Clear;
for i := 0 to view.kh.Size - 1 do
begin
{$if 1=0}
s := view.kh.CurrentEntryAsString(i);
KombiloFormatParse(s, filename, index);
s := view.kh.GetSGF(i);
x := ReadSgfInString(s);
view.cl.Add(x, filename, index);
x := nil;
{$else}
view.cl.AddDelayed(TDBDelayedAccess.Create(view.kh))
{$ifend}
end;
with view do
begin
// update game instance
si.ParentView := view;
if aName <> ''
then si.DatabaseName := aName;
si.FolderName := '';
si.IndexTree := EnsureRange(aIndx, 1, cl.Count);
if cl.Count > 0
then si.FileName := cl.FileName[si.IndexTree]
else si.FileName := '';
si.FileSave := True;
//si.ReadOnly := False;
UpdatePlayer(Black);
si.MainMode := muNavigation;
// bind gt
if cl.Count > 0
then gt := cl[si.IndexTree]
else gt := nil;
// start
if cl.Count > 0
then StartEvent(seMain, snStrict, aNode)
end
end;
// -- Reset of database ------------------------------------------------------
procedure DoResetDatabase;
var
activeViewBak : TViewMain;
begin
if Assigned(DBSearchContext) then
with DBSearchContext do
if (DBTab = nil) or (not fmMain.DBListOfTabs.Registered(DBTab))
or (not TKGameList.Registered(kh))
then // nop
else
begin
kh.Reset;
CurrentEntriesToCollection(DBTab.ViewBoard);
fmMain.InvalidateView(DBTab, vmAll);
// SelectView may lose the view, so save and restore
activeViewBak := fmMain.ActiveView;
fmMain.SelectView(DBTab, vmInfo);
fmMain.ActiveView := activeViewBak
end;
if Assigned(fmDBSearch)
then fmDBSearch.ResetResultTabRef;
if Assigned(fmDBSearch)
then fmDBSearch.cbSearchIn.ItemIndex := 0
end;
// -- Opening of database ----------------------------------------------------
procedure TerminateOpenDatabase(tab : TTabSheetEx;
view : TViewMain;
kh : TKGameList;
aName : WideString;
num : integer;
node : string); forward;
// -- Opening entry point
procedure DoMainOpenDatabase( aName : WideString;
num : integer;
node : string;
sameTab : boolean; // not implemented
var ok : boolean);
var
kh : TKGameList;
n : integer;
modified : boolean;
begin
// test if already open
n := IsOpenInTab('', aName, modified);
if n >= 0 then
begin
fmMain.ActivePageIndex := n;
ok := True;
exit
end;
// test existence
if not DatabaseExists(aName) then
begin
HandleOpenErrorMessage([U('Error opening database') + ' ' + aName]);
ok := False;
exit
end;
// create tab
try
LockMainWindow(True);
fmMain.CreateTab(ok);
Application.ProcessMessages;
finally
LockMainWindow(False)
end;
if not ok
then exit;
// open
try
Screen.Cursor := fmMain.WaitCursor;
kh := TKGameList.Create(aName, 'id', KombiloFormatString, nil,
Settings.DBCache);
//Screen.Cursor := crDefault;
TerminateOpenDatabase(fmMain.ActivePage,
fmMain.ActiveView, kh, aName, num, node)
except
HandleOpenErrorMessage([U('Error opening database') + ' ' + aName]);
ok := False
end;
Screen.Cursor := crDefault;
end;
procedure TerminateOpenDatabase(tab : TTabSheetEx;
view : TViewMain;
kh : TKGameList;
aName : WideString;
num : integer;
node : string);
begin
view.kh := kh;
kh.FKeepOnlyOneHit := True;
// read
CurrentEntriesToCollection(view, aName, node, num);
SetTabIcon(tab, view, mdEdit);
fmMain.SelectView(tab, vmInfo);
// update list of DB tabs
if tab.TabView.kh <> nil
then fmMain.DBListOfTabs.Push(tab);
if Assigned(fmDBSearch)
then fmDBSearch.ResetResultTabRef
end;
// -- Open database user command
procedure UserMainOpenDatabase(sameTab : boolean);
var
cancel, ok : boolean;
filename : WideString;
begin
ok := OpenDialog('Open database',
ExtractFilePath(Status.DBOpenFolder), '', 'db',
U('Database files') + ' (*.db)|*.db|',
filename);
if not ok
then exit;
// protect against clicking on goban during loading
Status.EnableGobanMouseDn := False;
DoMainOpenDatabase(filename, 1, '', sameTab, ok);
Status.DBOpenFolder := ExtractFilePath(filename);
// process possible clicks on goban in protected context
Application.ProcessMessages;
// restore
Status.EnableGobanMouseDn := True
end;
// -- Pattern search ---------------------------------------------------------
// -- Entering in pattern search mode
procedure DoPrepareSearch(i1, j1, i2, j2 : integer);
begin
// capture thumbnail image
if Assigned(fmDBSearch)
then fmDBSearch.Snapshot(i1, j1, i2, j2)
end;
// -- Kombilo search rectangle strategy
procedure FindSearchRectangle(gb : TGoban; var patternType, i1, j1, i2, j2 : integer);
begin
if (i1 = 1) and (j1 = 1) and (i2 = gb.BoardSize) and (j2 = gb.BoardSize)
then patternType := FULLBOARD_PATTERN
else if ((i1 = 1) and (j1 = 1)) or
((i1 = 1) and (j2 = gb.BoardSize)) or
((i2 = gb.BoardSize) and (j1 = 1)) or
((i2 = gb.BoardSize) and (j2 = gb.BoardSize)) or // corner
Settings.DBFixedPos // or fixedAnchor
then // so no translation occurs
begin
j2 := j1;
i2 := i1;
patternType := -1
end
else if i1 = 1
then patternType := SIDE_N_PATTERN // translation along the edge only
else if i2 = gb.BoardSize
then patternType := SIDE_S_PATTERN
else if j1 = 1
then patternType := SIDE_W_PATTERN
else if j2 = gb.BoardSize
then patternType := SIDE_E_PATTERN
else
patternType := CENTER_PATTERN
end;
// -- Construction of the pattern string
function GetPatternString(gb : TGoban; i1, j1, i2, j2 : integer) : string;
var
i, j : integer;
begin
Result := '';
for i := i1 to i2 do
for j := j1 to j2 do
case gb.Board[i, j] of
Black : Result := Result + iff(gb.IsWildcard(i, j), 'x', 'X');
White : Result := Result + iff(gb.IsWildcard(i, j), 'o', 'O');
else Result := Result + iff(gb.IsWildcard(i, j), '*', '.');
end
end;
// -- Filter for pathological patterns (0 and 1 stones are not handled)
// not used
function AllowedPattern(s : string; patternType : integer) : integer;
var
i, n : integer;
begin
if patternType <> CENTER_PATTERN
then Result := 1000
else
begin
n := 0;
for i := 1 to Length(s) do
if s[i] in ['O', 'X']
then inc(n);
Result := n
end
end;
function NbStonesInPattern(const s : string) : integer;
var
i : integer;
begin
Result := 0;
for i := 1 to Length(s) do
if s[i] in ['O', 'X']
then inc(Result)
end;
// -- Searching
procedure DoPatternSearch(gbSrc : TGoban;
kh : TKGameList;
i1, j1, i2, j2 : integer;
nextPlayer: integer;
msgProc : TProcString;
var ok : boolean);
var
patternType, w, h, n, nextMove : integer;
pattern : string;
pat : TKPattern;
so : TKSearchOptions;
begin
if gbSrc.FLastRect.Top < 0 then
begin
msgProc(U('No search rectangle defined.'));
ok := False;
exit;
end;
// make pattern string
pattern := GetPatternString(gbSrc, i1, j1, i2, j2);
// set dim and anchors
w := j2 - j1 + 1;
h := i2 - i1 + 1;
FindSearchRectangle(gbSrc, patternType, i1, j1, i2, j2);
// filter pathological patterns (center empty or single stone patterns)
if patternType <> CENTER_PATTERN
then ok := True
else
begin
n := NbStonesInPattern(pattern);
ok := n > 1;
case n of
0 : msgProc(U('No search for center empty patterns.'));
1 : msgProc(U('No search for center single stone patterns.'));
end
end;
if not ok
then exit;
// conversion from value handled by Drago (both = 3) to value handled by
// libkombilo (both = 0)
case Settings.DBNextMove of
Black : nextMove := Black;
White : nextMove := White;
pcBoth : nextMove := 0;
pcAlternate : nextMove := nextPlayer
end;
// prepare search
so := TKSearchOptions.Create(Settings.DBFixedColor,
nextMove,
Settings.DBMoveLimit);
so.SetValue(soSearchInVariations, iff(Settings.DBSearchVariations, 1, 0));
if patternType >= 0
then pat := TKPattern.Create(patternType, gbSrc.BoardSize, w, h, pattern)
else pat := TKPattern.Create(j1, j1, i1, i1, gbSrc.BoardSize, w, h, pattern);
// search and make game list
kh.Continuations.Clear; // todo : check
kh.Search(pat, so);
pat.Free;
so.Free;
end;
// -- Display of continuations on board
procedure DisplayContinuations(gb : TGoban; gl : TKGameList; i1, j1 : integer);
var
k, nB, nW, color : integer;
begin
for k := 0 to gl.Continuations.Count - 1 do
with TKContinuation(gl.Continuations.Items[k]) do
begin
nB := B; // number of Black continuations
nW := W; // number of White continuations
if nB = 0
then color := $FFFFFF // white
else
if nW = 0
then color := $000000 // black
else color := $808080; // grey
gb.ShowTempMark(i1 + i, j1 + j, mrkTxt, labl, color)
end
end;
// -- Display of pattern search results
procedure EndPatternSearch(gvSrc : TView;
gbSrc : TGoban;
i1, j1, i2, j2 : integer);
var
kh : TKGameList;
begin
// set working data
kh := DBSearchContext.kh;
// compute list of continuations
kh.SortContinuations(Settings.DBNextMove);
// remove possible wildcard property(entered by user)
// gvSrc.gt can be nil if position selected in DB tab and no solution
(*
if gvSrc.gt <> nil
then gvSrc.gt.RemProp(pr_W);
*)
(*
// set labels on thumbnail
DisplayContinuations(gbSrc, kh, i1, j1);
*)
// exit if main board not concerned
with DBSearchContext do
if //DB// (DBTab = CallingTab) or
(CallingTab <> fmMain.ActivePage) or
IsThumbPattern
then exit;
// set labels on board if required
if VarMarkup(gvSrc.si) = vmGhost
then gvSrc.ShowNextOrVars(Enter);
DisplayContinuations(gvSrc.gb, kh, i1, j1);
with gvSrc.gb do
Rectangle(FLastRect.Top, FLastRect.Left, FLastRect.Bottom, FLastRect.Right, True)
end;
// ---------------------------------------------------------------------------
function ListOfPlayers(kh : TKGameList) : TStringList;
var
i : integer;
begin
Result := TStringList.Create;
for i := 0 to kh.PlSize do
Result.Add(kh.PlEntry(i));
end;
function DbFormatNumberOfResults(n : integer; const dbName : WideString) : WideString;
begin
case n of
0 : Result := WideFormat(U('No game found in %s'), [dbName]);
1 : Result := WideFormat(U('1 game found in %s'), [dbName]);
else
Result := WideFormat(U('%d games found in %s'), [n, dbName]);
end
end;
function FormatTimeString(time : double) : WideString;
var
x : integer;
begin
x := Round(time);
if x < 1000
then Result := WideFormat(U('%d ms.'), [x])
else
if x < 60000
then Result := WideFormat(U('%2.2f seconds'), [x / 1000])
else Result := ElapsedTimeToStr(time)
end;
// ---------------------------------------------------------------------------
end.
| 27.521834 | 96 | 0.57025 |
f159d1c6db00baf81d17cf6a0839b57d832761ff
| 1,640 |
pas
|
Pascal
|
Lib/rtcService.pas
|
maciej-izak/sdk-lite
|
4b68e2b8fb7ffecd310d1343d62beb61977d0f3c
|
[
"MIT"
] | 8 |
2017-08-25T08:15:14.000Z
|
2019-09-04T22:05:39.000Z
|
Lib/rtcService.pas
|
maciej-izak-tests/sdk-lite
|
4b68e2b8fb7ffecd310d1343d62beb61977d0f3c
|
[
"MIT"
] | null | null | null |
Lib/rtcService.pas
|
maciej-izak-tests/sdk-lite
|
4b68e2b8fb7ffecd310d1343d62beb61977d0f3c
|
[
"MIT"
] | 5 |
2017-08-22T13:52:42.000Z
|
2019-05-22T22:53:29.000Z
|
{
MS Windows Service functions
- Copyright 2004-2017 (c) RealThinClient.com (http://www.realthinclient.com)
This unit is ONLY for MS Windows.
}
unit rtcService;
{$include rtcDefs.inc}
interface
{$IFDEF WINDOWS}
uses
Windows,WinSvc,SysUtils,
rtcTypes;
function IsServiceStarting(const ServiceName:String):boolean;
function IsDesktopMode(const ServiceName:String):boolean;
function IsMiniMode:boolean;
{$ENDIF} // {$IFDEF WINDOWS}
implementation
{$IFDEF WINDOWS}
function IsServiceStarting(const ServiceName:String): Boolean;
var
Svc: Integer;
SvcMgr: Integer;
ServSt: TServiceStatus;
begin
Result := False;
SvcMgr := OpenSCManager(nil, nil, SC_MANAGER_CONNECT);
if SvcMgr = 0 then Exit;
try
Svc := OpenService (SvcMgr, PChar(ServiceName), SERVICE_QUERY_STATUS);
if Svc = 0 then Exit;
try
if not QueryServiceStatus (Svc, ServSt) then Exit;
Result := (ServSt.dwCurrentState = SERVICE_START_PENDING);
finally
CloseServiceHandle(Svc);
end;
finally
CloseServiceHandle(SvcMgr);
end;
end;
function IsDesktopMode(const ServiceName:String):boolean;
begin
if (Win32Platform <> VER_PLATFORM_WIN32_NT) then
Result := True
else
begin
Result := not FindCmdLineSwitch('INSTALL', ['-', '/'], True) and
not FindCmdLineSwitch('UNINSTALL', ['-', '/'], True) and
not IsServiceStarting(ServiceName);
end;
end;
function IsMiniMode:boolean;
begin
Result:=FindCmdLineSwitch('M',['-','/'],True);
end;
{$ENDIF} // {$IFDEF WINDOWS}
end.
| 22.465753 | 79 | 0.659756 |
85fb8d9a64ba72ddfaeedce927957fd77b44ecda
| 3,172 |
dfm
|
Pascal
|
Projeto Libras/unt_Dicas_CacaPalavras.dfm
|
WellingtonSouzaAbreu/Projetos-Desktop
|
affdd8977dbab033bd7d016a65f390828bc87f91
|
[
"MIT"
] | null | null | null |
Projeto Libras/unt_Dicas_CacaPalavras.dfm
|
WellingtonSouzaAbreu/Projetos-Desktop
|
affdd8977dbab033bd7d016a65f390828bc87f91
|
[
"MIT"
] | null | null | null |
Projeto Libras/unt_Dicas_CacaPalavras.dfm
|
WellingtonSouzaAbreu/Projetos-Desktop
|
affdd8977dbab033bd7d016a65f390828bc87f91
|
[
"MIT"
] | null | null | null |
object frm_Dica_CacaPalavras: Tfrm_Dica_CacaPalavras
Left = 0
Top = 0
Caption = 'Como Jogar'
ClientHeight = 749
ClientWidth = 1370
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
WindowState = wsMaximized
PixelsPerInch = 96
TextHeight = 23
object Label1: TLabel
Left = 48
Top = 161
Width = 175
Height = 53
Caption = 'Objetivo:'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label2: TLabel
Left = 120
Top = 224
Width = 1033
Height = 53
Caption = '* Encontre todas as 9 palavras que est'#227'o embaralhadas'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label3: TLabel
Left = 48
Top = 294
Width = 236
Height = 53
Caption = 'Como jogar:'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label4: TLabel
Left = 120
Top = 350
Width = 1224
Height = 53
Caption =
'* Clique sobre sobre as letras na sequ'#234'ncia para formar a palavr' +
'a'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label5: TLabel
Left = 120
Top = 413
Width = 1158
Height = 53
Caption = '* Para desmarcar uma sele'#231#227'o, clique novamente em alguma '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label6: TLabel
Left = 152
Top = 461
Width = 398
Height = 53
Caption = 'figura j'#225' selecionada.'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -47
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
end
object Label7: TLabel
Left = 496
Top = 39
Width = 425
Height = 76
Caption = 'Ca'#231'a-Palavras'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -67
Font.Name = 'Bauhaus 93'
Font.Style = []
ParentFont = False
end
object btJogar: TButton
Left = 1072
Top = 608
Width = 248
Height = 73
Caption = 'Jogar'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
TabOrder = 0
OnClick = btJogarClick
end
object Button1: TButton
Left = 48
Top = 608
Width = 248
Height = 73
Caption = 'Menu'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = 'Times New Roman'
Font.Style = []
ParentFont = False
TabOrder = 1
OnClick = Button1Click
end
end
| 22.496454 | 81 | 0.618222 |
85e18787833f31b6994e6847135892cb0b7c7440
| 9,288 |
pas
|
Pascal
|
Native/Delphi/bo.System/OSProcessUnit.pas
|
jpluimers/bo.codeplex
|
787ef3b5a8c6ced0a985361243c48a6c76f5d655
|
[
"BSD-3-Clause"
] | 5 |
2017-05-12T08:03:54.000Z
|
2022-02-15T08:23:27.000Z
|
Native/Delphi/bo.System/OSProcessUnit.pas
|
jpluimers/bo.codeplex
|
787ef3b5a8c6ced0a985361243c48a6c76f5d655
|
[
"BSD-3-Clause"
] | null | null | null |
Native/Delphi/bo.System/OSProcessUnit.pas
|
jpluimers/bo.codeplex
|
787ef3b5a8c6ced0a985361243c48a6c76f5d655
|
[
"BSD-3-Clause"
] | null | null | null |
unit OSProcessUnit;
interface
//{$R *.RES} // TODO ##jpl: component icon
uses
SysUtils,
Windows, // TStartupInfo
Classes, // TComponent
ActivatableUnit; // TActivatable
type
// see the ShowWindow() parameter at http://msdn.microsoft.com/en-us/library/ms686331(VS.85).aspx
TShowWindow = (
swHide,
swShowNormal,
swShowMinimized,
swShowMaximized,
swMaximize,
swShowNoActivate,
swShow,
swMinimize,
swShowMinNoActive,
swShowNA,
swRestore,
swShowDefault,
swMax);
EOSProcess = class(Exception)
end;
TCustomOSProcess = class(TActivatable)
{ "Activation" logic }
protected
procedure InternalAfterOpen; override;
procedure InternalAfterClose; override;
{ "OSProcess" properties }
private
FModuleName: string;
FParams: string;
FCaption: string;
FDirectory: string;
FShowWindow: TShowWindow;
FOSProcessWaitThread: TThread;
protected
procedure AssertInActive; virtual;
procedure SetModuleName(Value: string); virtual;
procedure SetParams(Value: string); virtual;
procedure SetCaption(Value: string); virtual;
procedure SetDirectory(Value: string); virtual;
procedure SetShowWindow(Value: TShowWindow); virtual;
property ModuleName: string read FModuleName write SetModuleName;
property Params: string read FParams write SetParams;
property Caption: string read FCaption write SetCaption;
property Directory: string read FDirectory write SetDirectory;
property ShowWindow: TShowWindow read FShowWindow write SetShowWindow default swShowNormal;
{ "OSProcess" logic }
private
FStartupInfo: TStartupInfo;
FProcessInfo: TProcessInformation;
FExitCode: UINT;
protected
function GetProcessHandle: THandle; virtual;
procedure ClearProcessInfo; virtual;
procedure StartProcess; virtual;
procedure StopProcess; virtual;
procedure ProcessTerminates(Sender: TObject); virtual;
function CheckExitCodeProcess: Boolean; virtual;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Execute; virtual;
procedure ExecuteAndWait; virtual;
public
property ProcessHandle: THandle read GetProcessHandle;
property ExitCode: UINT read FExitCode;
end;
TOSProcess = class(TCustomOSProcess)
published
property Active;
property ModuleName;
property Params;
property Caption;
property Directory;
property ShowWindow;
end;
implementation
uses
LoggerInterfaceUnit,
LoggerUnit,
EnumTypeInfoUnit;
type
TOSProcessWaitThread = class(TThread)
strict private
FLogger: ILeveledLogger;
FProcessHandle: THandle;
strict protected
function GetLogger: ILeveledLogger; virtual;
procedure SetLogger(const Value: ILeveledLogger); virtual;
procedure Execute; override;
public
constructor Create(AProcessHandle: THandle); overload;
constructor Create(const AProcessHandle: THandle; const Logger: ILeveledLogger); overload;
property Logger: ILeveledLogger read GetLogger write SetLogger;
property Terminated;
end;
constructor TOSProcessWaitThread.Create(AProcessHandle: THandle);
begin
Logger.Log('TOSProcessWaitThread.Create(%d)',[AProcessHandle]);
FProcessHandle := AProcessHandle;
FreeOnTerminate := True;
inherited Create(False);
end;
constructor TOSProcessWaitThread.Create(const AProcessHandle: THandle; const Logger: ILeveledLogger);
begin
Create(AProcessHandle);
FLogger := Logger;
end;
procedure TOSProcessWaitThread.Execute;
begin
Logger.Enter(Self, 'WaitForSingleObject %d',[FProcessHandle]);
WaitForSingleObject(FProcessHandle, INFINITE);
Logger.Leave(Self, 'WaitForSingleObject %d',[FProcessHandle]);
end;
function TOSProcessWaitThread.GetLogger: ILeveledLogger;
begin
Result := TLeveledLogger.CreateIfNeeded(FLogger);
end;
procedure TOSProcessWaitThread.SetLogger(const Value: ILeveledLogger);
begin
FLogger := Value;
end;
{ "Activation" logic }
resourcestring
{$ifdef English}
sCanNotChangePropertyWhileActive = 'Can not change property while active';
{$else}
sCanNotChangePropertyWhileActive = 'Kan property niet wijzigen als object actief is';
{$endif English}
procedure TCustomOSProcess.InternalAfterOpen;
begin
StartProcess();
end;
procedure TCustomOSProcess.InternalAfterClose;
begin
StopProcess();
end;
{ "OSProcess" properties }
procedure TCustomOSProcess.AssertInActive;
begin
if Active and not (csLoading in ComponentState) then
raise EOSProcess.Create(sCanNotChangePropertyWhileActive);
end;
procedure TCustomOSProcess.SetModuleName(Value: string);
begin
if Value <> ModuleName then
begin
AssertInActive();
FModuleName := Value;
end;
end;
procedure TCustomOSProcess.SetParams(Value: string);
begin
if Value <> Params then
begin
AssertInActive();
FParams := Value;
end;
end;
procedure TCustomOSProcess.SetCaption(Value: string);
begin
if Value <> Caption then
begin
AssertInActive();
FCaption := Value;
end;
end;
procedure TCustomOSProcess.SetDirectory(Value: string);
begin
if Value <> Directory then
begin
AssertInActive();
FDirectory := Value;
end;
end;
procedure TCustomOSProcess.SetShowWindow(Value: TShowWindow);
begin
if Value <> ShowWindow then
begin
AssertInActive();
FShowWindow := Value;
end;
end;
{ "OSProcess" logic }
function TCustomOSProcess.GetProcessHandle: THandle;
begin
Result := FProcessInfo.hProcess;
end;
procedure TCustomOSProcess.ClearProcessInfo;
begin
FillChar(FProcessInfo, Sizeof(FProcessInfo), #0); // for GetProcessHandle to return null if no process
end;
procedure TCustomOSProcess.StartProcess;
var
ApplicationName: string;
CurrentDirectory: PChar;
begin
ApplicationName := Format('%s %s', [ModuleName, Params]);
CurrentDirectory := Pointer(Directory); // returns NIL if Directory=''
FStartupInfo.wShowWindow := Ord(ShowWindow);
Logger.Log('CreateProcess ShowWindow=%s, Directory=%s, Application=%s',
[EnumerationInfo(Ord(ShowWindow), TypeInfo(TShowWindow)),
ApplicationName,
Directory]);
if CreateProcess(
nil, { don't use this parameter, it doesnot work under NT }
PChar(ApplicationName), { pointer to command line string }
nil, { pointer to process SECURITY_ATTRIBUTES }
nil, { pointer to thread SECURITY_ATTRIBUTES }
false, { handle inheritance flag }
CREATE_NEW_CONSOLE or { creation flags }
NORMAL_PRIORITY_CLASS,
nil, { pointer to new environment block }
CurrentDirectory, { pointer to current directory name }
FStartupInfo, { pointer to STARTUPINFO }
FProcessInfo) { pointer to PROCESS_INFORMATION }
then
begin
FOSProcessWaitThread := TOSProcessWaitThread.Create(ProcessHandle, Logger);
FOSProcessWaitThread.OnTerminate := ProcessTerminates;
FExitCode := 0;
CheckExitCodeProcess();
with FProcessInfo do
begin
Logger.Log('hProcess=%d; hThread=%d', [hProcess, hThread]);
Logger.Log('dwProcessId=%d; dwThreadId=%d', [dwProcessId, dwThreadId]);
end;
end
else
RaiseLastOSError();
end;
procedure TCustomOSProcess.StopProcess;
var
Result: Boolean;
begin
if CheckExitCodeProcess then
begin
if ExitCode = STILL_ACTIVE then
begin
Result := TerminateProcess(ProcessHandle, LongWord(-1));
Logger.Log('TerminateProcess returns %d',[Ord(Result)]);
CheckExitCodeProcess();
end;
end;
CloseHandle(FProcessInfo.hProcess);
CloseHandle(FProcessInfo.hThread);
ClearProcessInfo();
end;
procedure TCustomOSProcess.ProcessTerminates(Sender: TObject);
begin
Logger.Log('ProcessTerminates %d',[ProcessHandle]);
Close();
end;
function TCustomOSProcess.CheckExitCodeProcess: Boolean;
begin
Result := GetExitCodeProcess(ProcessHandle, FExitCode);
Logger.Log('GetExitCodeProcess returns %d with code %d',[Ord(Result), ExitCode]);
end;
{= public =}
constructor TCustomOSProcess.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ClearProcessInfo();
FillChar(FStartupInfo, Sizeof(FStartupInfo), #0);
FStartupInfo.cb := Sizeof(FStartupInfo);
FStartupInfo.dwFlags := STARTF_USESHOWWINDOW;
FStartupInfo.wShowWindow := SW_SHOWNORMAL;
FShowWindow := swShowNormal;
end;
destructor TCustomOSProcess.Destroy;
begin
inherited Destroy();
if Assigned(FOSProcessWaitThread) then
begin
FOSProcessWaitThread.OnTerminate := nil;
if TOSProcessWaitThread(FOSProcessWaitThread).Terminated then
FOSProcessWaitThread.Free()
else
FOSProcessWaitThread.FreeOnTerminate := True;
end;
end;
procedure TCustomOSProcess.Execute;
begin
Open();
end;
procedure TCustomOSProcess.ExecuteAndWait;
begin
Execute();
WaitForSingleObject(ProcessHandle, INFINITE);
end;
end.
| 27.47929 | 105 | 0.705426 |
f17a47dace8fdcbfa58187e3eee82f738fa0a80d
| 29,628 |
pas
|
Pascal
|
Source/PXL.Classes.pas
|
svn2github/AsphyrePXL
|
e29f402b27b3133e3971ecd4a7f14dddf81c2e34
|
[
"Apache-2.0"
] | 33 |
2018-03-19T15:54:14.000Z
|
2021-03-09T15:58:05.000Z
|
Source/PXL.Classes.pas
|
svn2github/AsphyrePXL
|
e29f402b27b3133e3971ecd4a7f14dddf81c2e34
|
[
"Apache-2.0"
] | 2 |
2019-01-13T23:05:21.000Z
|
2019-02-03T08:06:13.000Z
|
Source/PXL.Classes.pas
|
svn2github/AsphyrePXL
|
e29f402b27b3133e3971ecd4a7f14dddf81c2e34
|
[
"Apache-2.0"
] | 2 |
2019-01-21T08:52:17.000Z
|
2020-08-30T15:16:58.000Z
|
unit PXL.Classes;
(*
* This file is part of Asphyre Framework, also known as Platform eXtended Library (PXL).
* Copyright (c) 2015 - 2017 Yuriy Kotsarenko. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and limitations under the License.
*)
{< Extensions and utility classes that extend functionality of streams and provide ways for reading assets. }
interface
{$INCLUDE PXL.Config.inc}
{$IFNDEF PASDOC}
{$IF DEFINED(FPC) AND DEFINED(ANDROID)}
{$DEFINE ANDROID_ASSETS}
{$ENDIF}
{$ENDIF}
uses
{$IFDEF ANDROID_ASSETS}
Android.AssetManager,
{$ENDIF}
Classes, PXL.TypeDef, PXL.Types;
type
{$IFDEF ANDROID_ASSETS}
EAssetManagerNotSpecified = class(EStreamError);
{$ENDIF}
{ Extensions to TStream class for reading and writing different values depending on platform. Although TStream in
recent versions of FPC and Delphi introduced similar functions, this extension class provides a more comprehensive
and unified set of functions that work across all platforms. }
TStreamHelper = class helper for TStream
public type
{ Value stored as unsigned 8-bit integer, but represented as unsigned 32-bit or 64-bit value depending on platform. }
TStreamByte = SizeUInt;
{ Value stored as unsigned 16-bit integer, but represented as unsigned 32-bit or 64-bit value depending on platform. }
TStreamWord = SizeUInt;
{ Value stored as unsigned 32-bit integer, but represented as unsigned 32-bit or 64-bit value depending on platform. }
TStreamLongWord = {$IF SIZEOF(SizeUInt) >= 4} SizeUInt {$ELSE} LongWord {$ENDIF};
{ Value stored and represented as unsigned 64-bit integer. }
TStreamUInt64 = UInt64;
{ Value stored as 8-bit signed integer, but represented as signed 32-bit or 64-bit value depending on platform. }
TStreamShortInt = SizeInt;
{ Value stored as 16-bit signed integer, but represented as signed 32-bit or 64-bit value depending on platform. }
TStreamSmallInt = SizeInt;
{ Value stored as 32-bit signed integer, but represented as signed 32-bit or 64-bit value depending on platform. }
TStreamLongInt = {$IF SIZEOF(SizeInt) >= 4} SizeInt {$ELSE} LongInt {$ENDIF};
{ Value stored and represented as signed 64-bit integer. }
TStreamInt64 = Int64;
{ Value stored and represented as 32-bit (single-precision) floating-point. }
TStreamSingle = Single;
{ Value stored and represented as 64-bit (double-precision) floating-point. }
TStreamDouble = Double;
{ Value stored as 8-bit unsigned integer, but represented as Boolean. }
TStreamByteBool = Boolean;
{ Value stored as unsigned 8-bit integer, but represented as signed 32-bit or 64-bit index depending on platform. }
TStreamByteIndex = SizeInt;
{ Value stored as unsigned 16-bit integer, but represented as signed 32-bit or 64-bit index depending on platform. }
TStreamWordIndex = {$IF SIZEOF(SizeInt) >= 4} SizeInt {$ELSE} LongInt {$ENDIF};
public
{ Saves 8-bit unsigned integer to the stream. If the value is outside of [0..255] range, it will be clamped. }
procedure PutByte(const Value: TStreamByte); inline;
{ Loads 8-bit unsigned integer from the stream. }
function GetByte: TStreamByte; inline;
{ Saves 16-bit unsigned integer to the stream. If the value is outside of [0..65535] range, it will be clamped. }
procedure PutWord(const Value: TStreamWord); inline;
{ Loads 16-bit unsigned integer value from the stream. }
function GetWord: TStreamWord; inline;
{ Saves 32-bit unsigned integer to the stream. }
procedure PutLongWord(const Value: TStreamLongWord); inline;
{ Loads 32-bit unsigned integer from the stream. }
function GetLongWord: TStreamLongWord; inline;
{ Saves 64-bit unsigned integer to the stream. }
procedure PutUInt64(const Value: TStreamUInt64); inline;
{ Loads 64-bit unsigned integer from the stream. }
function GetUInt64: TStreamUInt64; inline;
{ Saves 8-bit signed integer to the stream. If the value is outside of [-128..127] range, it will be clamped. }
procedure PutShortInt(const Value: TStreamShortInt); inline;
{ Loads 8-bit signed integer from the stream. }
function GetShortInt: TStreamShortInt; inline;
{ Saves 16-bit signed integer to the stream. If the value is outside of [-32768..32767] range, it will be clamped. }
procedure PutSmallInt(const Value: TStreamSmallInt); inline;
{ Loads 16-bit signed integer from the stream. }
function GetSmallInt: TStreamSmallInt; inline;
{ Saves 32-bit signed integer to the stream. }
procedure PutLongInt(const Value: TStreamLongInt); inline;
{ Loads 32-bit signed integer from the stream. }
function GetLongInt: TStreamLongInt; inline;
{ Saves 64-bit signed integer to the stream. }
procedure PutInt64(const Value: TStreamInt64); inline;
{ Loads 64-bit signed integer from the stream. }
function GetInt64: TStreamInt64; inline;
{ Saves 32-bit floating-point value (single-precision) to the stream. }
procedure PutSingle(const Value: TStreamSingle); inline;
{ Loads 32-bit floating-point value (single-precision) from the stream. }
function GetSingle: TStreamSingle; inline;
{ Saves 64-bit floating-point value (double-precision) to the stream. }
procedure PutDouble(const Value: TStreamDouble); inline;
{ Loads 64-bit floating-point value (double-precision) from the stream. }
function GetDouble: TStreamDouble; inline;
{ Saves @bold(Boolean) value to the stream as 8-bit unsigned integer. A value of @False is saved as 255, while
@True is saved as 0. }
procedure PutByteBool(const Value: TStreamByteBool); inline;
{ Loads @bold(Boolean) value from the stream previously saved by @link(PutByteBool). The resulting value is treated
as 8-bit unsigned integer with values of [0..127] considered as @True and values of [128..255] considered
as @False. }
function GetByteBool: TStreamByteBool; inline;
{ Saves 8-bit unsigned index to the stream. A value of -1 (and other negative values) is stored as 255. Positive
numbers that are outside of [0..254] range will be clamped. }
procedure PutByteIndex(const Value: TStreamByteIndex); inline;
{ Loads 8-bit unsigned index from the stream. The range of returned values is [0..254], the value of 255 is
returned as -1. }
function GetByteIndex: TStreamByteIndex; inline;
{ Saves 16-bit unsigned index to the stream. A value of -1 (and other negative values) is stored as 65535.
Positive numbers that are outside of [0..65534] range will be clamped. }
procedure PutWordIndex(const Value: TStreamWordIndex); inline;
{ Loads 16-bit unsigned index from the stream. The range of returned values is [0..65534], the value of 65535 is
returned as -1. }
function GetWordIndex: TStreamWordIndex; inline;
{ Saves 2D integer point to the stream. Each coordinate is saved as 8-bit unsigned integer. }
procedure PutBytePoint2px(const Value: TPoint2i);
{ Loads 2D integer point from the stream. Each coordinate is loaded as 8-bit unsigned integer. }
function GetBytePoint2px: TPoint2i;
{ Saves 2D integer point to the stream. Each coordinate is saved as 16-bit unsigned integer. }
procedure PutWordPoint2px(const Value: TPoint2i);
{ Loads 2D integer point from the stream. Each coordinate is loaded as 16-bit unsigned integer.}
function GetWordPoint2px: TPoint2i;
{ Saves 2D integer point to the stream. Each coordinate is saved as 32-bit signed integer. }
procedure PutLongPoint2px(const Value: TPoint2i);
{ Loads 2D integer point from the stream. Each coordinate is loaded as 32-bit signed integer. }
function GetLongPoint2px: TPoint2i;
{ Saves floating-point value as 8-bit signed byte to the stream using 1:3:4 fixed-point format with values outside
of [-8..7.9375] range will be clamped. }
procedure PutFloat34(const Value: Single);
{ Loads floating-point value as 8-bit signed byte from the stream using 1:3:4 fixed-point format. The possible
values are in [-8..7.9375] range. }
function GetFloat34: Single;
{ Saves floating-point value as 8-bit signed byte to the stream using 1:4:3 fixed-point format with values outside
of [-16..15.875] range will be clamped. }
procedure PutFloat43(const Value: Single);
{ Loads floating-point value as 8-bit signed byte from the stream using 1:4:3 fixed-point format. The possible
values are in [-16..15.875] range. }
function GetFloat43: Single;
{ Saves two floating-point values as a single 8-bit unsigned byte to the stream with each value having 4-bits.
Values outside of [-8..7] range will be clamped. }
procedure PutFloats44(const Value1, Value2: Single);
{ Loads two floating-point values as a single 8-bit unsigned byte from the stream with each value having 4-bits.
The possible values are in [-8..7] range. }
procedure GetFloats44(out Value1, Value2: Single);
{ Saves two floating-point values as a single 8-bit unsigned byte to the stream with each value stored in
fixed-point 1:2:1 format. Values outside of [-4..3.5] range will be clamped. }
procedure PutFloats3311(const Value1, Value2: Single);
{ Loads two floating-point values as a single 8-bit unsigned byte from the stream with each value stored in
fixed-point 1:2:1 format. The possible values are in [-4..3.5] range. }
procedure GetFloats3311(out Value1, Value2: Single);
{ Saves Unicode string to the stream in UTF-8 encoding. The resulting UTF-8 string is limited to a maximum
of 255 characters; therefore, for certain charsets the actual string is limited to either 127 or even 85
characters in worst case. If MaxCount is not zero, the input string will be limited to the given number of
characters. }
procedure PutShortString(const Text: UniString; const MaxCount: Integer = 0);
{ Loads Unicode string from the stream in UTF-8 encoding previously saved by @link(PutShortString). }
function GetShortString: UniString;
{ Saves Unicode string to the stream in UTF-8 encoding. The resulting UTF-8 string is limited to a maximum
of 65535 characters; therefore, for certain charsets the actual string is limited to either 32767 or even 21845
characters in worst case. If MaxCount is not zero, the input string will be limited to the given number of
characters. }
procedure PutMediumString(const Text: UniString; const MaxCount: Integer = 0);
{ Loads Unicode string from the stream in UTF-8 encoding previously saved by @link(PutMediumString). }
function GetMediumString: UniString;
{ Stores Unicode string to the stream in UTF-8 encoding. }
procedure PutLongString(const Text: UniString);
{ Loads Unicode string from the stream in UTF-8 encoding previously saved by @link(PutLongString). }
function GetLongString: UniString;
end;
{ Special stream type that is used to read assets on Android platform. This stream serves no purpose on other
platforms. }
TAssetStream = class(TStream)
private
FFileName: StdString;
{$IFDEF ANDROID_ASSETS}
FAsset: PAAsset;
FFileSize: Int64;
{$ENDIF}
protected
{ @exclude } function GetSize: Int64; override;
public
{ Creates instance of asset stream to read from the specified file, which must be located in /assets sub-folder of
current Android package. }
constructor Create(const AFileName: StdString);
{ @exclude } destructor Destroy; override;
{ @exclude } function Read(var Buffer; Count: LongInt): LongInt; override;
{ @exclude } function Seek(const Offset: Int64; Origin: TSeekOrigin): Int64; override;
{ Asset file name, which must be located in /assets sub-folder. }
property FileName: StdString read FFilename;
{$IFDEF ANDROID_ASSETS}
public
property Asset: PAAsset read FAsset;
private
class var FAssetManager: PAAssetManager;
public
class property AssetManager: PAAssetManager read FAssetManager write FAssetManager;
{$ENDIF}
end;
{ A quick method for replacing "\" with "/" and vice-versa depending on platform. This calls makes sure that the
provided path uses correct path delimiter. }
function CrossFixFileName(const FileName: StdString): StdString;
implementation
uses
{$IFDEF DELPHI_NEXTGEN}
SysUtils,
{$ENDIF}
RTLConsts, PXL.Consts;
{$REGION 'Globals'}
{$IFDEF DELPHI_NEXTGEN}
const
DefaultCodePage = 65001; // UTF-8
function StringToBytes(const Text: string): TBytes;
var
ByteCount: Integer;
begin
if Text.IsEmpty then
Exit(nil);
ByteCount := LocaleCharsFromUnicode(DefaultCodePage, 0, Pointer(Text), Length(Text), nil, 0, nil, nil);
SetLength(Result, ByteCount);
LocaleCharsFromUnicode(DefaultCodePage, 0, Pointer(Text), Length(Text), Pointer(Result), ByteCount, nil, nil);
end;
function BytesToString(const Bytes: TBytes): string;
var
TextLength: Integer;
begin
if Length(Bytes) < 1 then
Exit(string.Empty);
TextLength := UnicodeFromLocaleChars(DefaultCodePage, 0, Pointer(Bytes), Length(Bytes), nil, 0);
if TextLength < 1 then
Exit(string.Empty);
SetLength(Result, TextLength);
UnicodeFromLocaleChars(DefaultCodePage, 0, Pointer(Bytes), Length(Bytes), Pointer(Result), TextLength);
end;
{$ENDIF}
function CrossFixFileName(const FileName: StdString): StdString;
const
{$IFDEF MSWINDOWS}
PrevChar = '/';
NewChar = '\';
{$ELSE}
PrevChar = '\';
NewChar = '/';
{$ENDIF}
var
I: Integer;
begin
Result := FileName;
UniqueString(Result);
for I := 1 to Length(Result) do
if Result[I] = PrevChar then
Result[I] := NewChar;
end;
{$ENDREGION}
{$REGION 'TStreamHelper'}
procedure TStreamHelper.PutByte(const Value: TStreamByte);
var
ByteValue: Byte;
begin
if Value <= High(Byte) then
ByteValue := Value
else
ByteValue := High(Byte);
WriteBuffer(ByteValue, SizeOf(Byte));
end;
function TStreamHelper.GetByte: TStreamByte;
var
ByteValue: Byte;
begin
ReadBuffer(ByteValue, SizeOf(Byte));
Result := ByteValue;
end;
procedure TStreamHelper.PutWord(const Value: TStreamWord);
{$IF SIZEOF(TStream.TStreamWord) > 2}
var
WordValue: Word;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamWord) > 2}
if Value <= High(Word) then
WordValue := Value
else
WordValue := High(Word);
WriteBuffer(WordValue, SizeOf(Word));
{$ELSE}
WriteBuffer(Value, SizeOf(Word));
{$ENDIF}
end;
function TStreamHelper.GetWord: TStreamWord;
{$IF SIZEOF(TStream.TStreamWord) > 2}
var
WordValue: Word;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamWord) > 2}
ReadBuffer(WordValue, SizeOf(Word));
Result := WordValue;
{$ELSE}
ReadBuffer(Result, SizeOf(Word));
{$ENDIF}
end;
procedure TStreamHelper.PutLongWord(const Value: TStreamLongWord);
{$IF SIZEOF(TStream.TStreamLongWord) > 4}
var
LongWordValue: LongWord;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamLongWord) > 4}
if Value <= High(LongWord) then
LongWordValue := Value
else
LongWordValue := High(LongWord);
WriteBuffer(LongWordValue, SizeOf(LongWord));
{$ELSE}
WriteBuffer(Value, SizeOf(LongWord));
{$ENDIF}
end;
function TStreamHelper.GetLongWord: TStreamLongWord;
{$IF SIZEOF(TStream.TStreamLongWord) > 4}
var
LongWordValue: LongWord;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamLongWord) > 4}
ReadBuffer(LongWordValue, SizeOf(LongWord));
Result := LongWordValue;
{$ELSE}
ReadBuffer(Result, SizeOf(LongWord));
{$ENDIF}
end;
procedure TStreamHelper.PutUInt64(const Value: TStreamUInt64);
begin
WriteBuffer(Value, SizeOf(UInt64));
end;
function TStreamHelper.GetUInt64: TStreamUInt64;
begin
ReadBuffer(Result, SizeOf(UInt64));
end;
procedure TStreamHelper.PutShortInt(const Value: TStreamShortInt);
var
ShortValue: ShortInt;
begin
if Value < Low(ShortInt) then
ShortValue := Low(ShortInt)
else if Value > High(ShortInt) then
ShortValue := High(ShortInt)
else
ShortValue := Value;
WriteBuffer(ShortValue, SizeOf(ShortInt));
end;
function TStreamHelper.GetShortInt: TStreamShortInt;
var
ShortValue: ShortInt;
begin
ReadBuffer(ShortValue, SizeOf(ShortInt));
Result := ShortValue;
end;
procedure TStreamHelper.PutSmallInt(const Value: TStreamSmallInt);
{$IF SIZEOF(TStream.TStreamSmallInt) > 2}
var
SmallValue: SmallInt;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamSmallInt) > 2}
if Value < Low(SmallInt) then
SmallValue := Low(SmallInt)
else if Value > High(SmallInt) then
SmallValue := High(SmallInt)
else
SmallValue := Value;
WriteBuffer(SmallValue, SizeOf(SmallInt));
{$ELSE}
WriteBuffer(Value, SizeOf(SmallInt));
{$ENDIF}
end;
function TStreamHelper.GetSmallInt: TStreamSmallInt;
{$IF SIZEOF(TStream.TStreamSmallInt) > 2}
var
SmallValue: SmallInt;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamSmallInt) > 2}
ReadBuffer(SmallValue, SizeOf(SmallInt));
Result := SmallValue;
{$ELSE}
ReadBuffer(Result, SizeOf(SmallInt));
{$ENDIF}
end;
procedure TStreamHelper.PutLongInt(const Value: TStreamLongInt);
{$IF SIZEOF(TStream.TStreamLongInt) > 4}
var
LongValue: LongInt;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamLongInt) > 4}
if Value < Low(LongInt) then
LongValue := Low(LongInt)
else if Value > High(LongInt) then
LongValue := High(LongInt)
else
LongValue := Value;
WriteBuffer(LongValue, SizeOf(LongInt));
{$ELSE}
WriteBuffer(Value, SizeOf(LongInt));
{$ENDIF}
end;
function TStreamHelper.GetLongInt: TStreamLongInt;
{$IF SIZEOF(TStream.TStreamLongInt) > 4}
var
LongValue: LongInt;
{$ENDIF}
begin
{$IF SIZEOF(TStream.TStreamLongInt) > 4}
ReadBuffer(LongValue, SizeOf(LongInt));
Result := LongValue;
{$ELSE}
ReadBuffer(Result, SizeOf(LongInt));
{$ENDIF}
end;
procedure TStreamHelper.PutInt64(const Value: TStreamInt64);
begin
WriteBuffer(Value, SizeOf(Int64));
end;
function TStreamHelper.GetInt64: TStreamInt64;
begin
ReadBuffer(Result, SizeOf(Int64));
end;
procedure TStreamHelper.PutSingle(const Value: TStreamSingle);
begin
WriteBuffer(Value, SizeOf(Single));
end;
function TStreamHelper.GetSingle: TStreamSingle;
begin
ReadBuffer(Result, SizeOf(Single));
end;
procedure TStreamHelper.PutDouble(const Value: TStreamDouble);
begin
WriteBuffer(Value, SizeOf(Double));
end;
function TStreamHelper.GetDouble: TStreamDouble;
begin
ReadBuffer(Result, SizeOf(Double));
end;
procedure TStreamHelper.PutByteBool(const Value: TStreamByteBool);
var
ByteValue: Byte;
begin
ByteValue := 255;
if Value then
ByteValue := 0;
WriteBuffer(ByteValue, SizeOf(Byte));
end;
function TStreamHelper.GetByteBool: TStreamByteBool;
var
ByteValue: Byte;
begin
ReadBuffer(ByteValue, SizeOf(Byte));
Result := ByteValue < 128;
end;
procedure TStreamHelper.PutByteIndex(const Value: TStreamByteIndex);
var
ByteValue: Byte;
begin
if Value < 0 then
ByteValue := 255
else if Value > 254 then
ByteValue := 254
else
ByteValue := Value;
WriteBuffer(ByteValue, SizeOf(Byte));
end;
function TStreamHelper.GetByteIndex: TStreamByteIndex;
var
ByteValue: Byte;
begin
Result := -1;
if (Read(ByteValue, SizeOf(Byte)) = SizeOf(Byte)) and (ByteValue <> 255) then
Result := ByteValue;
end;
procedure TStreamHelper.PutWordIndex(const Value: TStreamWordIndex);
var
WordValue: Word;
begin
if Value < 0 then
WordValue := 65535
else if Value > 65534 then
WordValue := 65534
else
WordValue := Value;
Write(WordValue, SizeOf(Word));
end;
function TStreamHelper.GetWordIndex: TStreamWordIndex;
var
WordValue: Word;
begin
Result := -1;
if (Read(WordValue, SizeOf(Word)) = SizeOf(Word)) and (WordValue <> 65535) then
Result := WordValue;
end;
procedure TStreamHelper.PutBytePoint2px(const Value: TPoint2i);
var
ByteValue: Byte;
begin
if Value.X <> Undefined2i.X then
ByteValue := Saturate(Value.X, 0, 254)
else
ByteValue := 255;
Write(ByteValue, SizeOf(Byte));
if Value.Y <> Undefined2i.Y then
ByteValue := Saturate(Value.Y, 0, 254)
else
ByteValue := 255;
Write(ByteValue, SizeOf(Byte));
end;
function TStreamHelper.GetBytePoint2px: TPoint2i;
var
ByteValue1, ByteValue2: Byte;
ValueInvalid: Boolean;
begin
ValueInvalid := False;
if Read(ByteValue1, SizeOf(Byte)) <> SizeOf(Byte) then
ValueInvalid := True;
if Read(ByteValue2, SizeOf(Byte)) <> SizeOf(Byte) then
ValueInvalid := True;
if (ByteValue1 = 255) or (ByteValue2 = 255) or ValueInvalid then
Exit(Undefined2i);
Result.X := ByteValue1;
Result.Y := ByteValue2;
end;
procedure TStreamHelper.PutWordPoint2px(const Value: TPoint2i);
var
InpValue: TStreamWordIndex;
WordValue: Word;
begin
if Value.X <> Undefined2i.X then
begin
InpValue := Value.X;
WordValue := Saturate(InpValue, 0, 65534)
end
else
WordValue := 65535;
Write(WordValue, SizeOf(Word));
if Value.Y <> Undefined2i.Y then
begin
InpValue := Value.Y;
WordValue := Saturate(InpValue, 0, 65534)
end
else
WordValue := 65535;
Write(WordValue, SizeOf(Word));
end;
function TStreamHelper.GetWordPoint2px: TPoint2i;
var
WordValue1, WordValue2: Word;
ValueInvalid: Boolean;
begin
ValueInvalid := False;
if Read(WordValue1, SizeOf(Word)) <> SizeOf(Word) then
ValueInvalid := True;
if Read(WordValue2, SizeOf(Word)) <> SizeOf(Word) then
ValueInvalid := True;
if (WordValue1 = 65535) or (WordValue2 = 65535) or ValueInvalid then
Exit(Undefined2i);
Result.X := WordValue1;
Result.Y := WordValue2;
end;
procedure TStreamHelper.PutLongPoint2px(const Value: TPoint2i);
begin
PutLongInt(Value.X);
PutLongInt(Value.Y);
end;
function TStreamHelper.GetLongPoint2px: TPoint2i;
begin
Result.X := GetLongInt;
Result.Y := GetLongInt;
end;
procedure TStreamHelper.PutFloat34(const Value: Single);
begin
PutShortInt(Saturate(Round(Value * 16), -128, 127));
end;
function TStreamHelper.GetFloat34: Single;
begin
Result := GetShortInt / 16;
end;
procedure TStreamHelper.PutFloat43(const Value: Single);
begin
PutShortInt(Saturate(Round(Value * 8), -128, 127));
end;
function TStreamHelper.GetFloat43: Single;
begin
Result := GetShortInt / 8;
end;
procedure TStreamHelper.PutFloats44(const Value1, Value2: Single);
var
Temp1, Temp2: Integer;
begin
Temp1 := Saturate(Round(Value1), -8, 7) + 8;
Temp2 := Saturate(Round(Value2), -8, 7) + 8;
PutByte(Temp1 or (Temp2 shl 4));
end;
procedure TStreamHelper.GetFloats44(out Value1, Value2: Single);
var
Temp: Integer;
begin
Temp := GetByte;
Value1 := (Temp and $0F) - 8;
Value2 := (Temp shr 4) - 8;
end;
procedure TStreamHelper.PutFloats3311(const Value1, Value2: Single);
var
Temp1, Temp2: Integer;
begin
Temp1 := Saturate(Round(Value1 * 2), -8, 7) + 8;
Temp2 := Saturate(Round(Value2 * 2), -8, 7) + 8;
PutByte(Temp1 or (Temp2 shl 4));
end;
procedure TStreamHelper.GetFloats3311(out Value1, Value2: Single);
var
Temp: Integer;
begin
Temp := GetByte;
Value1 := ((Temp and $0F) - 8) / 2;
Value2 := ((Temp shr 4) - 8) / 2;
end;
{$IFDEF DELPHI_NEXTGEN}
procedure TStreamHelper.PutShortString(const Text: UniString; const MaxCount: Integer);
var
Count: Integer;
Bytes: TBytes;
begin
Bytes := StringToBytes(Text);
Count := Length(Bytes);
if Count > 255 then
Count := 255;
if (MaxCount > 0) and (MaxCount < Count) then
Count := MaxCount;
PutByte(Count);
Write(Pointer(Bytes)^, Count);
end;
function TStreamHelper.GetShortString: UniString;
var
Count: Integer;
Bytes: TBytes;
begin
Count := GetByte;
SetLength(Bytes, Count);
if Read(Pointer(Bytes)^, Count) = Count then
Result := BytesToString(Bytes)
else
Result := string.Empty;
end;
procedure TStreamHelper.PutMediumString(const Text: UniString; const MaxCount: Integer);
var
Count: Integer;
Bytes: TBytes;
begin
Bytes := StringToBytes(Text);
Count := Length(Bytes);
if Count > 65535 then
Count := 65535;
if (MaxCount > 0) and (MaxCount < Count) then
Count := MaxCount;
PutWord(Count);
Write(Pointer(Bytes)^, Count);
end;
function TStreamHelper.GetMediumString: UniString;
var
Count: Integer;
Bytes: TBytes;
begin
Count := GetWord;
SetLength(Bytes, Count);
if Read(Pointer(Bytes)^, Count) = Count then
Result := BytesToString(Bytes)
else
Result := string.Empty;
end;
procedure TStreamHelper.PutLongString(const Text: UniString);
var
Count: Integer;
Bytes: TBytes;
begin
Bytes := StringToBytes(Text);
Count := Length(Bytes);
PutLongInt(Count);
Write(Pointer(Bytes)^, Count);
end;
function TStreamHelper.GetLongString: UniString;
var
Count: Integer;
Bytes: TBytes;
begin
Count := GetLongInt;
SetLength(Bytes, Count);
if Read(Pointer(Bytes)^, Count) = Count then
Result := BytesToString(Bytes)
else
Result := string.Empty;
end;
{$ELSE}
procedure TStreamHelper.PutShortString(const Text: UniString; const MaxCount: Integer);
var
Count: Integer;
ShortText: AnsiString;
begin
ShortText := UTF8Encode(Text);
Count := Length(ShortText);
if Count > 255 then
Count := 255;
if (MaxCount > 0) and (MaxCount < Count) then
Count := MaxCount;
PutByte(Count);
Write(Pointer(ShortText)^, Count);
end;
function TStreamHelper.GetShortString: UniString;
var
Count: Integer;
ShortText: AnsiString;
begin
Count := GetByte;
SetLength(ShortText, Count);
if Read(Pointer(ShortText)^, Count) <> Count then
Exit('');
{$IFDEF FPC}
Result := UTF8Decode(ShortText);
{$ELSE}
Result := UTF8ToWideString(ShortText);
{$IFEND}
end;
procedure TStreamHelper.PutMediumString(const Text: UniString; const MaxCount: Integer);
var
Count: Integer;
MediumText: AnsiString;
begin
MediumText := UTF8Encode(Text);
Count := Length(MediumText);
if Count > 65535 then
Count := 65535;
if (MaxCount > 0) and (MaxCount < Count) then
Count := MaxCount;
PutWord(Count);
Write(Pointer(MediumText)^, Count);
end;
function TStreamHelper.GetMediumString: UniString;
var
Count: Integer;
MediumText: AnsiString;
begin
Count := GetWord;
SetLength(MediumText, Count);
if Read(Pointer(MediumText)^, Count) <> Count then
Exit('');
{$IFDEF FPC}
Result := UTF8Decode(MediumText);
{$ELSE}
Result := UTF8ToWideString(MediumText);
{$IFEND}
end;
procedure TStreamHelper.PutLongString(const Text: UniString);
var
Count: Integer;
LongText: AnsiString;
begin
LongText := UTF8Encode(Text);
Count := Length(LongText);
PutLongInt(Count);
Write(Pointer(LongText)^, Count);
end;
function TStreamHelper.GetLongString: UniString;
var
Count: Integer;
LongText: AnsiString;
begin
Count := GetLongInt;
SetLength(LongText, Count);
if Read(Pointer(LongText)^, Count) <> Count then
Exit('');
{$IFDEF FPC}
Result := UTF8Decode(LongText);
{$ELSE}
Result := UTF8ToWideString(LongText);
{$IFEND}
end;
{$ENDIF}
{$ENDREGION}
{$REGION 'TAssetStream'}
constructor TAssetStream.Create(const AFileName: StdString);
begin
inherited Create;
FFileName := AFileName;
{$IFDEF ANDROID_ASSETS}
if FAssetManager = nil then
raise EAssetManagerNotSpecified.Create(SAssetManagerNotSpecified);
FAsset := AAssetManager_open(FAssetManager, PAnsiChar(FFileName), AASSET_MODE_STREAMING);
if FAsset = nil then
raise EFOpenError.CreateResFmt(@SFOpenError, [FFileName]);
FFileSize := AAsset_getLength64(FAsset);
{$ELSE}
inherited Create;
{$ENDIF}
end;
destructor TAssetStream.Destroy;
begin
{$IFDEF ANDROID_ASSETS}
if FAsset <> nil then
begin
AAsset_close(FAsset);
FAsset := nil;
end;
FFileSize := 0;
{$ENDIF}
inherited;
end;
function TAssetStream.GetSize: Int64;
begin
{$IFDEF ANDROID_ASSETS}
Result := FFileSize;
{$ELSE}
Result := inherited;
{$ENDIF}
end;
function TAssetStream.Seek(const Offset: Int64; Origin: TSeekOrigin): Int64;
begin
{$IFDEF ANDROID_ASSETS}
Result := AAsset_seek64(FAsset, Offset, Ord(Origin));
{$ELSE}
Result := inherited;
{$ENDIF}
end;
function TAssetStream.Read(var Buffer; Count: LongInt): LongInt;
begin
{$IFDEF ANDROID_ASSETS}
Result := AAsset_read(FAsset, @Buffer, Count);
{$ELSE}
Result := inherited;
{$ENDIF}
end;
{$ENDREGION}
end.
| 28.030274 | 123 | 0.695626 |
f1470d3319ac83adde378be3d18ef169d6eec5dd
| 481 |
dpr
|
Pascal
|
Capitulo8/5.2.Grupos/Grupos.dpr
|
diondcm/exemplos-delphi
|
16b4d195981e5f3161d0a2c62f778bec5ba9f3d4
|
[
"MIT"
] | 10 |
2017-08-02T00:44:41.000Z
|
2021-10-13T21:11:28.000Z
|
Capitulo8/5.2.Grupos/Grupos.dpr
|
diondcm/exemplos-delphi
|
16b4d195981e5f3161d0a2c62f778bec5ba9f3d4
|
[
"MIT"
] | 10 |
2019-12-30T04:09:37.000Z
|
2022-03-02T06:06:19.000Z
|
Capitulo8/5.2.Grupos/Grupos.dpr
|
diondcm/exemplos-delphi
|
16b4d195981e5f3161d0a2c62f778bec5ba9f3d4
|
[
"MIT"
] | 9 |
2017-04-29T16:12:21.000Z
|
2020-11-11T22:16:32.000Z
|
program Grupos;
uses
Vcl.Forms,
Form.Principal in 'Form.Principal.pas' {frmPrincipal},
Data.Grupo in 'Data.Grupo.pas' {dmdGrupo: TDataModule},
Form.Exibe.Dados in 'Form.Exibe.Dados.pas' {frmExibeDados};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TfrmPrincipal, frmPrincipal);
Application.CreateForm(TdmdGrupo, dmdGrupo);
Application.CreateForm(TfrmExibeDados, frmExibeDados);
Application.Run;
end.
| 25.315789 | 61 | 0.762994 |
857cf2b1dbb979b74fa4a62eae052d9129d317ce
| 12,862 |
pas
|
Pascal
|
Libraries/TChromeTabs/Demo/frameChromeTabStyleU.pas
|
jomael/Concepts
|
82d18029e41d55e897d007f826c021cdf63e53f8
|
[
"Apache-2.0"
] | 62 |
2016-01-20T16:26:25.000Z
|
2022-02-28T14:25:52.000Z
|
Libraries/TChromeTabs/Demo/frameChromeTabStyleU.pas
|
jomael/Concepts
|
82d18029e41d55e897d007f826c021cdf63e53f8
|
[
"Apache-2.0"
] | null | null | null |
Libraries/TChromeTabs/Demo/frameChromeTabStyleU.pas
|
jomael/Concepts
|
82d18029e41d55e897d007f826c021cdf63e53f8
|
[
"Apache-2.0"
] | 20 |
2016-09-08T00:15:22.000Z
|
2022-01-26T13:13:08.000Z
|
unit frameChromeTabStyleU;
interface
uses
Windows, Messages, SysUtils, Variants, Classes,
Graphics, Controls, Forms, Dialogs, StdCtrls,
Spin, ExtCtrls, Buttons,
GDIPAPI,
ChromeTabs,
ChromeTabsUtils,
ChromeTabsClasses;
type
TframeChromeTabStyle = class(TFrame)
ColorDialog1: TColorDialog;
gbBrush: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label6: TLabel;
edtAlphaStart: TSpinEdit;
edtAlphaStop: TSpinEdit;
Button1: TBitBtn;
Button2: TBitBtn;
colStart: TPanel;
colStop: TPanel;
gbPen: TGroupBox;
Label4: TLabel;
Label5: TLabel;
Label7: TLabel;
edtOutlineWidth: TSpinEdit;
edtOutlineAlpha: TSpinEdit;
Button3: TBitBtn;
colOutline: TPanel;
gbFont: TGroupBox;
chkUseDefaultFont: TCheckBox;
pnlFont: TPanel;
cbFontHintMode: TComboBox;
edtFontAlpha: TSpinEdit;
edtFontSize: TSpinEdit;
cbFontName: TComboBox;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Button4: TBitBtn;
colFont: TPanel;
Label8: TLabel;
gbModified: TGroupBox;
Label13: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
edtCentreAlpha: TSpinEdit;
edtOutsideAlpha: TSpinEdit;
Button5: TBitBtn;
Button6: TBitBtn;
colCentre: TPanel;
colOutside: TPanel;
Label17: TLabel;
Timer1: TTimer;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
BitBtn3: TBitBtn;
BitBtn4: TBitBtn;
BitBtn5: TBitBtn;
BitBtn6: TBitBtn;
procedure OnSelectColorClick(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure colStartChange(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure chkUseDefaultFontClick(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure colStartClick(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure BitBtn2Click(Sender: TObject);
procedure BitBtn3Click(Sender: TObject);
procedure BitBtn4Click(Sender: TObject);
procedure BitBtn5Click(Sender: TObject);
procedure BitBtn6Click(Sender: TObject);
private
FOnStartColorPicking: TNotifyEvent;
FUpdating: Boolean;
FChromeTabLookAndFeelStyle: TChromeTabsLookAndFeelStyle;
FChromeTabLookAndFeelPen: TChromeTabsLookAndFeelPen;
FChromeTabFont: TChromeTabsLookAndFeelBaseFont;
FChromeTabsLookAndFeelTabModified: TChromeTabsLookAndFeelGlow;
FPreviousColor: TColor;
FColorPickPanel: TPanel;
FChromeTabs: TChromeTabs;
procedure SetColor(ColorPanel: TPanel; Color: TColor; UpdateChromeTabs: Boolean);
function SelectColor(ColorBox: TPanel): Boolean;
procedure GUIToChromeTabLookAndFeelStyle;
procedure ChromeTabLookAndFeelStyleToGUI;
procedure SetChromeTabLookAndFeelStyle(const Value: TChromeTabsLookAndFeelStyle);
procedure SetChromeTabLookAndFeelPen(const Value: TChromeTabsLookAndFeelPen);
procedure SetChromeTabFont(const Value: TChromeTabsLookAndFeelBaseFont);
procedure UpdateControls;
procedure SetChromeTabsLookAndFeelTabModified(const Value: TChromeTabsLookAndFeelGlow);
procedure StartColourPicking(Panel: TPanel);
public
constructor Create(AOwner: TComponent; ChromeTabs: TChromeTabs); reintroduce; virtual;
procedure StopColorPicking(Cancelled: Boolean);
property ChromeTabLookAndFeelStyle: TChromeTabsLookAndFeelStyle read FChromeTabLookAndFeelStyle write SetChromeTabLookAndFeelStyle;
property ChromeTabLookAndFeelPen: TChromeTabsLookAndFeelPen read FChromeTabLookAndFeelPen write SetChromeTabLookAndFeelPen;
property ChromeTabFont: TChromeTabsLookAndFeelBaseFont read FChromeTabFont write SetChromeTabFont;
property ChromeTabsLookAndFeelTabModified: TChromeTabsLookAndFeelGlow read FChromeTabsLookAndFeelTabModified write SetChromeTabsLookAndFeelTabModified;
property OnStartColorPicking: TNotifyEvent read FOnStartColorPicking write FOnStartColorPicking;
end;
implementation
{$R *.dfm}
procedure TframeChromeTabStyle.BitBtn1Click(Sender: TObject);
begin
StartColourPicking(colStart);
end;
procedure TframeChromeTabStyle.BitBtn2Click(Sender: TObject);
begin
StartColourPicking(colStop);
end;
procedure TframeChromeTabStyle.BitBtn3Click(Sender: TObject);
begin
StartColourPicking(colOutline);
end;
procedure TframeChromeTabStyle.BitBtn4Click(Sender: TObject);
begin
StartColourPicking(colFont);
end;
procedure TframeChromeTabStyle.BitBtn5Click(Sender: TObject);
begin
StartColourPicking(colCentre);
end;
procedure TframeChromeTabStyle.BitBtn6Click(Sender: TObject);
begin
StartColourPicking(colOutside);
end;
procedure TframeChromeTabStyle.Button2Click(Sender: TObject);
begin
SelectColor(colStop);
end;
procedure TframeChromeTabStyle.Button3Click(Sender: TObject);
begin
SelectColor(colOutline);
end;
procedure TframeChromeTabStyle.Button4Click(Sender: TObject);
begin
SelectColor(colFont);
end;
procedure TframeChromeTabStyle.Button5Click(Sender: TObject);
begin
SelectColor(colCentre);
end;
procedure TframeChromeTabStyle.Button6Click(Sender: TObject);
begin
SelectColor(colOutside);
end;
procedure TframeChromeTabStyle.chkUseDefaultFontClick(Sender: TObject);
begin
UpdateControls;
GUIToChromeTabLookAndFeelStyle;
end;
procedure TframeChromeTabStyle.UpdateControls;
begin
chkUseDefaultFont.Visible := FChromeTabFont is TChromeTabsLookAndFeelFont;
EnableControlAndChildren(pnlFont, (not chkUseDefaultFont.Checked) or (not chkUseDefaultFont.Visible));
end;
procedure TframeChromeTabStyle.colStartChange(Sender: TObject);
begin
GUIToChromeTabLookAndFeelStyle;
end;
function GetPixelColourAsColor(const PixelCoords: TPoint): TColor;
var
dc: HDC;
begin
// Get Device Context of windows desktop
dc := GetDC(0);
// Read the color of the pixel at the given coordinates
Result := GetPixel(dc,PixelCoords.X,PixelCoords.Y);
end;
procedure TframeChromeTabStyle.colStartClick(Sender: TObject);
begin
StartColourPicking(TPanel(Sender));
end;
procedure TframeChromeTabStyle.StartColourPicking(Panel: TPanel);
begin
FPreviousColor := Panel.Color;
FColorPickPanel := Panel;
Timer1.Enabled := TRUE;
if Assigned(FOnStartColorPicking) then
FOnStartColorPicking(Self);
end;
constructor TframeChromeTabStyle.Create(AOwner: TComponent; ChromeTabs: TChromeTabs);
begin
inherited Create(AOwner);
FChromeTabs := ChromeTabs;
cbFontName.Items.Assign(Screen.Fonts);
end;
procedure TframeChromeTabStyle.StopColorPicking(Cancelled: Boolean);
begin
Timer1.Enabled := FALSE;
if Cancelled then
SetColor(FColorPickPanel, FPreviousColor, FALSE)
else
GUIToChromeTabLookAndFeelStyle;
end;
procedure TframeChromeTabStyle.ChromeTabLookAndFeelStyleToGUI;
begin
if not FUpdating then
begin
FUpdating := TRUE;
try
if FChromeTabLookAndFeelStyle <> nil then
begin
SetColor(colStart, FChromeTabLookAndFeelStyle.StartColor, TRUE);
SetColor(colStop, FChromeTabLookAndFeelStyle.StopColor, TRUE);
edtAlphaStart.Value := FChromeTabLookAndFeelStyle.StartAlpha;
edtAlphaStop.Value := FChromeTabLookAndFeelStyle.StopAlpha;
SetColor(colOutline, FChromeTabLookAndFeelStyle.OutlineColor, TRUE);
edtOutlineWidth.Value := Round(FChromeTabLookAndFeelStyle.OutlineSize);
edtOutlineAlpha.Value := FChromeTabLookAndFeelStyle.OutlineAlpha;
end;
if FChromeTabLookAndFeelPen <> nil then
begin
SetColor(colOutline, FChromeTabLookAndFeelPen.Color, TRUE);
edtOutlineWidth.Value := Round(FChromeTabLookAndFeelPen.Thickness);
edtOutlineAlpha.Value := FChromeTabLookAndFeelPen.Alpha;
end;
if FChromeTabFont <> nil then
begin
cbFontHintMode.ItemIndex := Integer(FChromeTabFont.TextRenderingMode);
cbFontName.Text := FChromeTabFont.Name;
edtFontAlpha.Value := FChromeTabFont.Alpha;
edtFontSize.Value := FChromeTabFont.Size;
cbFontName.Text := FChromeTabFont.Name;
SetColor(colFont, FChromeTabFont.Color, TRUE);
if FChromeTabFont is TChromeTabsLookAndFeelFont then
chkUseDefaultFont.Checked := TChromeTabsLookAndFeelFont(FChromeTabFont).UseDefaultFont
else
begin
pnlFont.Align := alTop;
chkUseDefaultFont.Visible := FALSE;
end;
UpdateControls;
end;
if FChromeTabsLookAndFeelTabModified <> nil then
begin
SetColor(colCentre, FChromeTabsLookAndFeelTabModified.CentreColor, TRUE);
SetColor(colOutside, FChromeTabsLookAndFeelTabModified.OutsideColor, TRUE);
edtCentreAlpha.Value := FChromeTabsLookAndFeelTabModified.CentreAlpha;
edtOutsideAlpha.Value := FChromeTabsLookAndFeelTabModified.OutsideAlpha;
end;
finally
FUpdating := FALSE;
end;
end;
end;
procedure TframeChromeTabStyle.GUIToChromeTabLookAndFeelStyle;
begin
if not FUpdating then
begin
FChromeTabs.BeginUpdate;
try
if FChromeTabLookAndFeelStyle <> nil then
begin
FChromeTabLookAndFeelStyle.StartColor := colStart.Color;
FChromeTabLookAndFeelStyle.StopColor := colStop.Color;
FChromeTabLookAndFeelStyle.StartAlpha := edtAlphaStart.Value;
FChromeTabLookAndFeelStyle.StopAlpha := edtAlphaStop.Value;
FChromeTabLookAndFeelStyle.OutlineColor := colOutline.Color;
FChromeTabLookAndFeelStyle.OutlineSize := edtOutlineWidth.Value;
FChromeTabLookAndFeelStyle.OutlineAlpha := edtOutlineAlpha.Value;
end;
if FChromeTabLookAndFeelPen <> nil then
begin
FChromeTabLookAndFeelPen.Color := colOutline.Color;
FChromeTabLookAndFeelPen.Thickness := edtOutlineWidth.Value;
FChromeTabLookAndFeelPen.Alpha := edtOutlineAlpha.Value;
end;
if FChromeTabFont <> nil then
begin
FChromeTabFont.TextRenderingMode := TTextRenderingHint(cbFontHintMode.ItemIndex);
FChromeTabFont.Name := cbFontName.Text;
FChromeTabFont.Alpha := edtFontAlpha.Value;
FChromeTabFont.Size := edtFontSize.Value;
FChromeTabFont.Name := cbFontName.Text;
FChromeTabFont.Color := colFont.Color;
if FChromeTabFont is TChromeTabsLookAndFeelFont then
TChromeTabsLookAndFeelFont(FChromeTabFont).UseDefaultFont := chkUseDefaultFont.Checked;
end;
if FChromeTabsLookAndFeelTabModified <> nil then
begin
FChromeTabsLookAndFeelTabModified.CentreColor := colCentre.Color;
FChromeTabsLookAndFeelTabModified.OutsideColor := colOutside.Color;
FChromeTabsLookAndFeelTabModified.CentreAlpha := edtCentreAlpha.Value;
FChromeTabsLookAndFeelTabModified.OutsideAlpha := edtOutsideAlpha.Value;
end;
finally
FChromeTabs.EndUpdate;
end;
end;
end;
procedure TframeChromeTabStyle.OnSelectColorClick(Sender: TObject);
begin
SelectColor(colStart);
end;
function TframeChromeTabStyle.SelectColor(ColorBox: TPanel): Boolean;
begin
ColorDialog1.Color := ColorBox.Color;
Result := ColorDialog1.Execute;
if Result then
SetColor(ColorBox, ColorDialog1.Color, TRUE);
end;
procedure TframeChromeTabStyle.SetColor(ColorPanel: TPanel; Color: TColor; UpdateChromeTabs: Boolean);
var
r,g,b: Byte;
begin
ColorPanel.Color := Color;
// Convert the Delphi TColor value to it's RGB components
r := Color and $FF;
g := (Color shr 8) and $FF;
b := (Color shr 16) and $FF;
ColorPanel.Caption := '$00' + IntToHex(r, 2) + IntToHex(g, 2) + IntToHex(b, 2);
ColorPanel.Color := Color;
ColorPanel.Font.Color := ContrastingColor(Color);
if UpdateChromeTabs then
GUIToChromeTabLookAndFeelStyle;
end;
procedure TframeChromeTabStyle.SetChromeTabFont(
const Value: TChromeTabsLookAndFeelBaseFont);
begin
FChromeTabFont := Value;
gbFont.Visible := TRUE;
ChromeTabLookAndFeelStyleToGUI;
end;
procedure TframeChromeTabStyle.SetChromeTabLookAndFeelPen(
const Value: TChromeTabsLookAndFeelPen);
begin
FChromeTabLookAndFeelPen := Value;
gbPen.Visible := TRUE;
ChromeTabLookAndFeelStyleToGUI;
end;
procedure TframeChromeTabStyle.SetChromeTabLookAndFeelStyle(
const Value: TChromeTabsLookAndFeelStyle);
begin
FChromeTabLookAndFeelStyle := Value;
gbBrush.Visible := TRUE;
gbPen.Visible := TRUE;
ChromeTabLookAndFeelStyleToGUI;
end;
procedure TframeChromeTabStyle.SetChromeTabsLookAndFeelTabModified(
const Value: TChromeTabsLookAndFeelGlow);
begin
FChromeTabsLookAndFeelTabModified := Value;
gbModified.Visible := TRUE;
ChromeTabLookAndFeelStyleToGUI;
end;
procedure TframeChromeTabStyle.Timer1Timer(Sender: TObject);
var
col: TColor;
begin
Col := GetPixelColourAsColor(Mouse.CursorPos);
SetColor(FColorPickPanel, Col, FALSE);
end;
end.
| 29.5 | 155 | 0.762323 |
8341ced92ca42652b614d5f53cd512a286db37a1
| 1,743 |
pas
|
Pascal
|
sources/factories/chHash.CRC.CRC16.GSM.Factory.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | null | null | null |
sources/factories/chHash.CRC.CRC16.GSM.Factory.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | null | null | null |
sources/factories/chHash.CRC.CRC16.GSM.Factory.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | 2 |
2020-08-30T18:22:38.000Z
|
2021-06-08T19:52:56.000Z
|
/////////////////////////////////////////////////////////////////////////////////
//*****************************************************************************//
//* Project : CryptoHash *//
//* Latest Source: https://github.com/vampirsoft/CryptoHash *//
//* Unit Name : CryptoHash.inc *//
//* Author : Сергей (LordVampir) Дворников *//
//* Copyright 2021 LordVampir (https://github.com/vampirsoft) *//
//* Licensed under MIT *//
//*****************************************************************************//
/////////////////////////////////////////////////////////////////////////////////
unit chHash.CRC.CRC16.GSM.Factory;
{$INCLUDE CryptoHash.inc}
interface
uses
chHash.CRC.CRC16,
chHash.CRC.CRC16.GSM;
type
{ TchCrc16GSM }
TchCrc16GSM = class sealed(chHash.CRC.CRC16.GSM.TchCrc16GSM)
private type
TInstance = {$IF DEFINED(SUPPORTS_INTERFACES)}IchCrc16{$ELSE}TchCrc16{$ENDIF};
private
class var FInstance: TInstance;
private
constructor Create; reintroduce;
public
class property Instance: TInstance read FInstance;
end;
implementation
{$IF NOT DEFINED(SUPPORTS_INTERFACES)}
uses
System.SysUtils;
{$ENDIF ~ NOT SUPPORTS_INTERFACES}
{ TchCrc16GSM }
constructor TchCrc16GSM.Create;
begin
inherited Create;
end;
initialization
TchCrc16GSM.FInstance := TchCrc16GSM.Create;
{$IF NOT DEFINED(SUPPORTS_INTERFACES)}
finalization
FreeAndNil(TchCrc16GSM.FInstance);
{$ENDIF ~ NOT SUPPORTS_INTERFACES}
end.
| 29.05 | 83 | 0.478485 |
61bafa4991b1f35942c8d1ff64a8cecf42e7369f
| 19,451 |
pas
|
Pascal
|
core/bs.window.ultibo.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | 1 |
2022-02-11T06:49:00.000Z
|
2022-02-11T06:49:00.000Z
|
core/bs.window.ultibo.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | null | null | null |
core/bs.window.ultibo.pas
|
PVV-BS/BlackShark
|
34dc339146ba1596f4db813a0fe95d103a0a8bf3
|
[
"Linux-OpenIB"
] | null | null | null |
{
-- Begin License block --
Copyright (C) 2019-2022 Pavlov V.V. (PVV)
"Black Shark Graphics Engine" for Delphi and Lazarus (named
"Library" in the file "License(LGPL).txt" included in this distribution).
The Library is free software.
Last revised June, 2022
This file is part of "Black Shark Graphics Engine", and may only be
used, modified, and distributed under the terms of the project license
"License(LGPL).txt". By continuing to use, modify, or distribute this
file you indicate that you have read the license and understand and
accept it fully.
"Black Shark Graphics Engine" is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- End License block --
}
unit bs.window.ultibo;
{$ifdef FPC}
{$WARN 5024 off : Parameter "$1" not used}
{$WARN 5026 off : Value parameter "$1" is assigned but never used}
{$endif}
{$I BlackSharkCfg.inc}
interface
uses
SysUtils
, Classes
, RaspberryPi2 {Include RaspberryPi2 to make sure all standard functions are included}
, GlobalConst
, GlobalTypes
, Platform
, Threads
, Console
, Framebuffer
//, BCM2837
//, BCM2710
, Mouse {Mouse uses USB so that will be included automatically}
, DWCOTG {We need to include the USB host driver for the Raspberry Pi}
, Keyboard {Keyboard uses USB so that will be included automatically}
, GPIO
, DispmanX
, VC4 {Include the VC4 unit to enable access to the GPU}
, gles20
, bs.collections
, bs.basetypes
, bs.window
, bs.gui.base
, bs.events
;
const
SCREEN_ORIENTATION_LANDSCAPE: int32 = 0;
SCREEN_ORIENTATION_PORTRAIT: int32 = 1;
type
{ TInputListener }
TInputListener = class(TThread)
protected
procedure Listen; virtual; abstract;
procedure Execute; override;
public
constructor Create;
function GetEvetns: boolean; virtual; abstract;
end;
{ TInputListener<T> }
TInputListener<T> = class(TInputListener)
public
type
TEventHandler = procedure(const AEvene: T) of object;
private
FQueue: TQueueFIFO<T>;
FEventHandler: TEventHandler;
protected
procedure Send(const AInput: T);
public
constructor Create;
destructor Destroy; override;
function GetEvetns: boolean; override;
property Queue: TQueueFIFO<T> read FQueue;
property EventHandler: TEventHandler read FEventHandler write FEventHandler;
end;
{ TMouseInputListener }
TMouseInputListener = class(TInputListener<TMouseData>)
protected
procedure Listen; override;
end;
{ TKeyboardInputListener }
TKeyboardInputListener = class(TInputListener<TKeyboardData>)
protected
procedure Listen; override;
end;
{ TGPIOInputListener: TODO }
TGPIOInputListener = class(TInputListener<TGPIOEvent>)
protected
procedure Listen; override;
end;
{ TWindowContextUltibo }
TWindowContextUltibo = class(TWindowContext)
protected
function GetDC: EGLNativeDisplayType; override;
function GetHandle: EGLNativeWindowType; override;
end;
{ BSApplicationUltibo }
BSApplicationUltibo = class(BSApplicationSystem)
private
MouseButtonsBefore: int32;
{DispmanX window}
FDispmanDisplay: DISPMANX_DISPLAY_HANDLE_T;
FDispmanElement: DISPMANX_ELEMENT_HANDLE_T;
FAlpha: VC_DISPMANX_ALPHA_T;
FNativeWindow: EGL_DISPMANX_WINDOW_T;
ConsoleWindowHandle: TWindowHandle;
FListeners: TListVec<TInputListener>;
FEvent: TEventHandle;
procedure UpdateClientRect(AWindow: BSWindow);
function GetNativeWindow: PEGL_DISPMANX_WINDOW_T;
procedure InitApplication;
function ProcessKeyBoardEvent: boolean;
function ProcessMouseEvent: boolean;
function ProcessEvents: boolean;
protected
procedure InitHandlers; override;
procedure InitMonitors; override;
procedure DoShow(AWindow: BSWindow; AInModalMode: boolean); override;
procedure DoClose(AWindow: BSWindow); override;
procedure DoInvalidate(AWindow: BSWindow); override;
procedure DoResize(AWindow: BSWindow; AWidth, AHeight: int32); override;
procedure DoSetPosition(AWindow: BSWindow; ALeft, ATop: int32); override;
procedure DoFullScreen(AWindow: BSWindow); override;
procedure DoActive(AWindow: BSWindow); override;
procedure DoShowCursor(AWindow: BSWindow); override;
function GetMousePointPos: TVec2i; override;
procedure ChangeDisplayResolution(NewWidth, NewHeight: int32);
procedure DoMouseInput(const AInput: TMouseData);
procedure DoKeyboardInput(const AInput: TKeyboardData);
public
constructor Create;
destructor Destroy; override;
function CreateWindow(AWindowClass: BSWindowClass; AOwner: TObject; AParent: BSWindow; APositionX, APositionY, AWidth, AHeight: int32): BSWindow; overload; override;
function CreateWindow(AWindow: BSWindow): BSWindow; overload; override;
procedure Update; override;
procedure UpdateWait; override;
{ you can add an own listener }
procedure AddListener(AInputListener: TInputListener);
function BeginListenKeyboard: TKeyboardInputListener;
function BeginListenMouse: TMouseInputListener;
procedure WriteEventToQueueNotify;
property NativeWindow: PEGL_DISPMANX_WINDOW_T read GetNativeWindow;
end;
var
ApplicationUltibo: BSApplicationUltibo;
implementation
uses
types
{$ifdef DEBUG_BS}
, bs.log
{$endif}
, GlobalConfig
, bs.utils
, bs.thread
, bs.config
, bs.gl.context
, bs.events.keyboard
, bs.math
;
constructor TInputListener.Create;
begin
inherited Create(false);
end;
procedure TInputListener.Execute;
begin
{$ifdef DEBUG_BS}
BSWriteMsg('TInputListener.Execute', 'begin: ' + ClassName);
{$endif}
repeat
Listen;
until Terminated;
{$ifdef DEBUG_BS}
BSWriteMsg('TInputListener.Listen', 'end: ' + ClassName);
{$endif}
end;
{ TInputListener<T> }
constructor TInputListener<T>.Create;
begin
inherited;
FQueue := TQueueFIFO<T>.Create;
end;
destructor TInputListener<T>.Destroy;
begin
FQueue.Free;
end;
procedure TInputListener<T>.Send(const AInput: T);
begin
FQueue.Push(AInput);
ApplicationUltibo.WriteEventToQueueNotify;
end;
function TInputListener<T>.GetEvetns: boolean;
var
e: T;
count: int32;
begin
count := 0;
while FQueue.Pop(e) do
begin
inc(count);
EventHandler(e);
end;
Result := count > 0;
end;
{ TKeyboardInputListener }
procedure TKeyboardInputListener.Listen;
var
keyboardData: TKeyBoardData;
count: LongWord;
begin
count := 0;
while KeyboardRead(@keyboardData, SizeOf(TKeyBoardData), count) = ERROR_SUCCESS do
begin
{$ifdef DEBUG_BS}
BSWriteMsg('TKeyboardInputListener.Listen');
{$endif}
Send(keyboardData);
end;
end;
{ TMouseInputListener }
procedure TMouseInputListener.Listen;
var
mouseData: TMouseData;
count: LongWord;
begin
count := 0;
while MouseRead(@mouseData, SizeOf(TMouseData), count) = ERROR_SUCCESS do
begin
Send(mouseData);
end;
end;
{ TGPIOInputListener }
procedure TGPIOInputListener.Listen;
begin
// TODO
end;
{ BSApplicationUltibo }
procedure BSApplicationUltibo.ChangeDisplayResolution(NewWidth, NewHeight: int32);
begin
end;
procedure BSApplicationUltibo.DoMouseInput(const AInput: TMouseData);
begin
FMousePos.x := bs.math.clamp(DisplayWidth - 1, 0, FMousePos.x + AInput.OffsetX);
FMousePos.y := bs.math.clamp(DisplayHeight - 1, 0, FMousePos.y + AInput.OffsetY);
if (MouseButtonsBefore <> AInput.Buttons) then
begin
if MouseButtonsBefore < AInput.Buttons then
Self.OnTouch(ACTION_DOWN, AInput.Buttons, FMousePos.x, FMousePos.y, 0)
else
Self.OnTouch(ACTION_UP, AInput.Buttons, FMousePos.x, FMousePos.y, 0);
end else
// TODO: How to get mouse wheel delta???
//if (AInput.OffsetWheel <> 0) and ((AInput.Buttons and MOUSE_MIDDLE_BUTTON) > 0) then
//begin
// Self.OnTouch(ACTION_WHEEL, AInput.Buttons, FMousePos.x, FMousePos.y, AInput.OffsetWheel);
//end else
begin
Self.OnTouch(ACTION_MOVE, AInput.Buttons, FMousePos.x, FMousePos.y, 0);
end;
MouseButtonsBefore := AInput.Buttons;
{ it doesn't need to handle required actions, reset them }
StackNeedActions.Count := 0;
end;
procedure BSApplicationUltibo.DoKeyboardInput(const AInput: TKeyboardData);
var
key: Word;
character: WideChar;
ss: TShiftState;
begin
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.DoKeyboardInput.AInput.KeyCode', IntToStr(AInput.KeyCode));
{$endif}
{Check for Key Up and Dead Key events}
if ((AInput.Modifiers and KEYBOARD_DEADKEY) = 0) then
begin
ss := [];
key := AInput.KeyCode;
if (AInput.Modifiers and KEYBOARD_KEYUP = 0) then
ActiveWindow.KeyDown(key, ss)
else
ActiveWindow.KeyUp(key, ss);
{Exclude Key Up and Dead Key events}
if (AInput.CharUnicode <> #0) and ((AInput.Modifiers and KEYBOARD_KEYUP) = 0) then
begin
{Get Char Unicode}
character := AInput.CharUnicode;
{Check Ctrl Keys}
if (AInput.Modifiers and (KEYBOARD_LEFT_CTRL or KEYBOARD_RIGHT_CTRL)) <> 0 then
begin
{Remap Ctrl Code}
character:= WideChar(KeyboardRemapCtrlCode(AInput.KeyCode, Word(character)));
end;
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.DoKeyboardInput', string(character));
{$endif}
ActiveWindow.KeyPress(character, ss);
end;
end;
end;
constructor BSApplicationUltibo.Create;
begin
inherited;
ApplicationUltibo := Self;
FListeners := TListVec<TInputListener>.Create;
InitApplication;
end;
function BSApplicationUltibo.CreateWindow(AWindow: BSWindow): BSWindow;
begin
Result := AWindow;
end;
function BSApplicationUltibo.CreateWindow(AWindowClass: BSWindowClass; AOwner: TObject; AParent: BSWindow; APositionX, APositionY, AWidth, AHeight: int32): BSWindow;
begin
if Application.MainWindow = nil then
Result := AWindowClass.Create(TWindowContextUltibo.Create, AOwner, AParent, APositionX, APositionY, DisplayWidth, DisplayHeight)
else
Result := AWindowClass.Create(TWindowContextUltibo.Create, AOwner, AParent, APositionX, APositionY, AWidth, AHeight);
Result.ClientRect := Rect(0, 0, Result.Width, Result.Height);
AddWindow(Result);
end;
destructor BSApplicationUltibo.Destroy;
var
i: int32;
begin
inherited;
for i := 0 to FListeners.Count - 1 do
begin
FListeners.Items[i].Terminate;
FListeners.Items[i].WaitFor;
FListeners.Items[i].Free;
end;
FListeners.Free;
if FDispmanDisplay <> DISPMANX_NO_HANDLE then
vc_dispmanx_display_close(FDispmanDisplay);
{Deinitialize the VC4}
BCMHostDeinit;
EventDestroy(FEvent);
//ConsoleWindowWriteLn(ConsoleWindowHandle, 'Completed BSApplication');
{Halt the main thread here}
ThreadHalt(0);
end;
procedure BSApplicationUltibo.DoActive(AWindow: BSWindow);
begin
inherited;
ApplicationRun;
end;
procedure BSApplicationUltibo.DoShowCursor(AWindow: BSWindow);
begin
inherited DoShowCursor(AWindow);
if AWindow.ShowCursor then
begin
//SysConsoleShowMouse(DisplayWidth div 2, DisplayHeight div 2, nil);
//CursorSetState(true, FMousePos.x, FMousePos.y, False);
end else
begin
//CursorSetState(false, FMousePos.x, FMousePos.y, False);
//SysConsoleHideMouse(nil);
end;
end;
procedure BSApplicationUltibo.DoClose(AWindow: BSWindow);
begin
inherited;
end;
procedure BSApplicationUltibo.DoFullScreen(AWindow: BSWindow);
begin
inherited{%H-};
end;
procedure BSApplicationUltibo.DoInvalidate(AWindow: BSWindow);
begin
inherited{%H-};
end;
procedure BSApplicationUltibo.DoResize(AWindow: BSWindow; AWidth, AHeight: int32);
begin
inherited{%H-};
UpdateClientRect(AWindow);
end;
procedure BSApplicationUltibo.DoSetPosition(AWindow: BSWindow; ALeft, ATop: int32);
begin
inherited{%H-};
UpdateClientRect(AWindow);
end;
procedure BSApplicationUltibo.DoShow(AWindow: BSWindow; AInModalMode: boolean);
begin
inherited;
end;
function BSApplicationUltibo.GetMousePointPos: TVec2i;
begin
Result := vec2(0, 0);
end;
procedure BSApplicationUltibo.UpdateClientRect(AWindow: BSWindow);
begin
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.UpdateClientRect', 'begin');
{$endif}
if Application.MainWindow <> AWindow then
begin
if AWindow.FullScreen then
begin
AWindow.ClientRect := Rect(0, 0, Application.ApplicationSystem.DisplayWidth, Application.ApplicationSystem.DisplayHeight);
end else
begin
AWindow.ClientRect := Rect(AWindow.Left, AWindow.Top, AWindow.Left + AWindow.Width, AWindow.Top + AWindow.Height);
end;
end else
AWindow.ClientRect := Rect(0, 0, AWindow.Width, AWindow.Height);
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.UpdateClientRect end: ', 'Left: ' + IntToStr(AWindow.ClientRect.Left) + '; Top: ' + IntToStr(AWindow.ClientRect.Top) +
'; Width: ' + IntToStr(AWindow.ClientRect.Width) + '; Height: ' + IntToStr(AWindow.ClientRect.Height));
{$endif}
end;
function BSApplicationUltibo.GetNativeWindow: PEGL_DISPMANX_WINDOW_T;
begin
Result := @FNativeWindow;
end;
procedure BSApplicationUltibo.InitApplication;
var
screenWidth: uint32;
screenHeight: uint32;
destRect: VC_RECT_T;
sourceRect: VC_RECT_T;
dispmanUpdate: DISPMANX_UPDATE_HANDLE_T;
framebufferDevice: PFramebufferDevice;
begin
{$ifdef DEBUG_BS}
{Create a console window as usual}
ConsoleWindowHandle := ConsoleWindowCreate(ConsoleDeviceGetDefault,CONSOLE_POSITION_FULL,True);
{Wait a couple of seconds for C:\ drive to be ready}
ConsoleWindowWriteLn(ConsoleWindowHandle,'Waiting for drive C:\');
{$endif}
while not DirectoryExists('C:\') do
begin
{Sleep for a moment}
Sleep(100);
end;
SetApplicationPath('C:\');
{ All applications using the VideoCore IV must call BCMHostInit before doing any other
operations. This will initialize all of the supporting libraries and start the VCHIQ
communication service. Applications should also call BCMHostDeinit when they no longer
require any VC4 services}
BCMHostInit;
screenWidth := 0;
screenHeight := 0;
framebufferDevice := {%H-}FramebufferDeviceGetDefault;
//FramebufferDeviceSetCursor(FramebufferDevice, 0, 0, 0, 0, nil ,0);
//FramebufferDeviceUpdateCursor(framebufferDevice, True, CursorX, CursorY, False);
if Assigned(framebufferDevice) then
begin
FramebufferDeviceRelease(framebufferDevice);
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.InitApplication', 'FramebufferDeviceRelease');
{$endif}
end;
{Create an EGL window surface}
if BCMHostGraphicsGetDisplaySize(DISPMANX_ID_MAIN_LCD, screenWidth, screenHeight) < 0 then
exit;
DisplayWidth := screenWidth;
DisplayHeight := screenHeight;
// ???
PixelsPerInchX := 96;
PixelsPerInchY := 96;
FAlpha.flags := DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS;
//FAlpha.flags := DISPMANX_FLAGS_ALPHA_FROM_SOURCE;
FAlpha.opacity := 255;
FAlpha.mask := 0;
{Setup the DispmanX source and destination rectangles}
vc_dispmanx_rect_set(@destRect, 0, 0, screenWidth, screenHeight);
vc_dispmanx_rect_set(@sourceRect, 0, 0, screenWidth, screenHeight);
{Open the DispmanX display}
FDispmanDisplay := vc_dispmanx_display_open(DISPMANX_ID_MAIN_LCD);
if FDispmanDisplay = DISPMANX_NO_HANDLE then
Exit;
{Start a DispmanX update}
dispmanUpdate := vc_dispmanx_update_start(0);
if dispmanUpdate = DISPMANX_NO_HANDLE then
Exit;
{Add a DispmanX element for our display}
FDispmanElement := vc_dispmanx_element_add(dispmanUpdate, FDispmanDisplay,0 {Layer},@destRect,0 {Source}, @sourceRect, DISPMANX_PROTECTION_NONE, @FAlpha, nil {Clamp}, DISPMANX_NO_ROTATE {Transform});
if FDispmanElement = DISPMANX_NO_HANDLE then
Exit;
{Define an EGL DispmanX native window structure}
FNativeWindow.Element:= FDispmanElement;
FNativeWindow.Width:= screenWidth;
FNativeWindow.Height:= screenHeight;
{Submit the DispmanX update}
vc_dispmanx_update_submit_sync(dispmanUpdate);
FMousePos.x := screenWidth div 2;
FMousePos.y := screenHeight div 2;
FEvent := EventCreate(true, false);
BeginListenKeyboard;
BeginListenMouse;
end;
function BSApplicationUltibo.ProcessKeyBoardEvent: boolean;
var
count: LongWord;
data: TKeyboardData;
begin
if KeyboardPeek <> ERROR_SUCCESS then
exit(false);
count := 0;
if (KeyboardReadEx(@data, SizeOf(TKeyboardData), KEYBOARD_FLAG_NONE, count) = ERROR_SUCCESS) and (data.Modifiers and KEYBOARD_DEADKEY = 0) then
begin
Result := true;
DoKeyboardInput(data);
end else
Result := false;
end;
function BSApplicationUltibo.ProcessMouseEvent: boolean;
var
mouseData: TMouseData;
count: LongWord;
begin
Result := false;
count := 0;
while MouseReadEx(@mouseData, SizeOf(TMouseData), MOUSE_FLAG_NON_BLOCK, count) = ERROR_SUCCESS do
begin
Result := true;
DoMouseInput(mouseData);
end;
end;
function BSApplicationUltibo.ProcessEvents: boolean;
var
i: int32;
begin
Result := false;
for i := 0 to FListeners.Count - 1 do
begin
if FListeners.Items[i].GetEvetns then
Result := true;
end;
// an old approach
//Result := ProcessKeyBoardEvent;
//if ProcessMouseEvent then
// Result := true;
end;
procedure BSApplicationUltibo.WriteEventToQueueNotify;
begin
EventSet(FEvent);
end;
procedure BSApplicationUltibo.InitHandlers;
begin
inherited{%H-};
end;
procedure BSApplicationUltibo.InitMonitors;
begin
inherited{%H-};
end;
procedure BSApplicationUltibo.Update;
begin
inherited{%H-};
ProcessEvents;
ActiveWindow.Draw;
end;
procedure BSApplicationUltibo.UpdateWait;
begin
inherited{%H-};
EventReset(FEvent);
EventWait(FEvent);
ProcessEvents;
ActiveWindow.Draw;
end;
procedure BSApplicationUltibo.AddListener(AInputListener: TInputListener);
begin
FListeners.Add(AInputListener);
{$ifdef DEBUG_BS}
BSWriteMsg('BSApplicationUltibo.AddListener', AInputListener.ClassName + '; Handle: ' + IntToHex(AInputListener.ThreadID, SizeOf(NativeInt)*2));
{$endif}
end;
function BSApplicationUltibo.BeginListenKeyboard: TKeyboardInputListener;
begin
Result := TKeyboardInputListener.Create;
Result.EventHandler := DoKeyBoardInput;
AddListener(Result);
end;
function BSApplicationUltibo.BeginListenMouse: TMouseInputListener;
begin
Result := TMouseInputListener.Create;
Result.EventHandler := DoMouseInput;
AddListener(Result);
end;
{ TWindowContextUltibo }
function TWindowContextUltibo.GetDC: EGLNativeDisplayType;
begin
Result := TSharedEglContext.SharedDisplay;
end;
function TWindowContextUltibo.GetHandle: EGLNativeWindowType;
begin
Result := ApplicationUltibo.NativeWindow;
end;
initialization
{.$ifndef DEBUG_BS}
FRAMEBUFFER_CONSOLE_AUTOCREATE := false;
{.$endif}
end.
| 27.090529 | 202 | 0.717238 |
83cdb875772e3b9fb60751b555804299ce0cef66
| 231,297 |
pas
|
Pascal
|
demos/ALFmxEffects/_source/embarcadero/tokyo/FMX.Filter.Effects.pas
|
cfusari/alcinoe
|
a3ffbf099c1bfdb0361dc745c64063ae54dc9205
|
[
"Apache-2.0"
] | 1 |
2018-10-16T03:14:44.000Z
|
2018-10-16T03:14:44.000Z
|
demos/ALFmxEffects/_source/embarcadero/tokyo/FMX.Filter.Effects.pas
|
cfusari/alcinoe
|
a3ffbf099c1bfdb0361dc745c64063ae54dc9205
|
[
"Apache-2.0"
] | null | null | null |
demos/ALFmxEffects/_source/embarcadero/tokyo/FMX.Filter.Effects.pas
|
cfusari/alcinoe
|
a3ffbf099c1bfdb0361dc745c64063ae54dc9205
|
[
"Apache-2.0"
] | null | null | null |
{*******************************************************}
{ }
{ Delphi FireMonkey Platform }
{ }
{ Copyright(c) 2011-2017 Embarcadero Technologies, Inc. }
{ All rights reserved }
{ }
{*******************************************************}
// This unit auto-generated do not edit directly
unit FMX.Filter.Effects;
{$HPPEMIT LINKUNIT}
interface
{$SCOPEDENUMS ON}
uses
System.Classes, System.Types, System.UITypes, FMX.Types, FMX.Effects, FMX.Filter, FMX.Graphics;
type
TFilterBaseFilter = class(TFmxObject)
private
FFilter: TFilter;
FInputFilter: TFilterBaseFilter;
function GetOutput: TBitmap;
procedure SetInput(const AValue: TBitmap);
procedure SetInputFilter(const AValue: TFilterBaseFilter);
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
property Input: TBitmap write SetInput;
property Output: TBitmap read GetOutput;
published
property InputFilter: TFilterBaseFilter read FInputFilter write SetInputFilter;
end;
//A transition effect.
TFilterPixelateTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterBrightTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterSwirlTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The amount of twist to the spiral.
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength;
end;
//A transition effect.
TFilterDissolveTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterBloodTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterBlurTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterDropTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterCrumpleTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterWaterTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterBandedSwirlTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetFrequency: Single;
procedure SetFrequency(AValue: Single);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The amount of twist to the spiral.
// The frequency of the spiral.
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength;
// The frequency of the spiral.
property Frequency: Single read GetFrequency write SetFrequency;
// The center point of the ripples.
end;
//A swipe transition effect.
TFilterSwipeTransition = class(TFilterBaseFilter)
private
function GetMousePoint: TPointF;
procedure SetMousePoint(AValue: TPointF);
function GetCornerPoint: TPointF;
procedure SetCornerPoint(AValue: TPointF);
function GetDeep: Single;
procedure SetDeep(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetBack: TBitmap;
procedure SetBack(const AValue: TBitmap);
public
// The point of coursor
property MousePoint: TPointF read GetMousePoint write SetMousePoint;
// The point of corner
property CornerPoint: TPointF read GetCornerPoint write SetCornerPoint;
// The deep of fold
// Target desription
property Target: TBitmap read GetTarget write SetTarget;
// Back page texture
property Back: TBitmap read GetBack write SetBack;
published
// The point of coursor
// The point of corner
// The deep of fold
property Deep: Single read GetDeep write SetDeep;
// Target desription
// Back page texture
end;
//A transition effect.
TFilterSlideTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetSlideAmount: TPointF;
procedure SetSlideAmount(AValue: TPointF);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The center point of the ripples.
property SlideAmount: TPointF read GetSlideAmount write SetSlideAmount;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The center point of the ripples.
end;
//A transition effect.
TFilterMagnifyTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The center point of the ripples.
end;
//A transition effect.
TFilterLineTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetOrigin: TPointF;
procedure SetOrigin(AValue: TPointF);
function GetNormal: TPointF;
procedure SetNormal(AValue: TPointF);
function GetOffsetProp: TPointF;
procedure SetOffsetProp(AValue: TPointF);
function GetFuzzyAmount: Single;
procedure SetFuzzyAmount(AValue: Single);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The line origin.
property Origin: TPointF read GetOrigin write SetOrigin;
// The line normal.
property Normal: TPointF read GetNormal write SetNormal;
// The line offset.
property OffsetProp: TPointF read GetOffsetProp write SetOffsetProp;
// The fuzziness factor.
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The line origin.
// The line normal.
// The line offset.
// The fuzziness factor.
property FuzzyAmount: Single read GetFuzzyAmount write SetFuzzyAmount;
end;
//A transition effect.
TFilterRotateCrumpleTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterRippleTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterCircleTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetFuzzyAmount: Single;
procedure SetFuzzyAmount(AValue: Single);
function GetCircleSize: Single;
procedure SetCircleSize(AValue: Single);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The fuzziness factor.
// The size of the circle.
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The fuzziness factor.
property FuzzyAmount: Single read GetFuzzyAmount write SetFuzzyAmount;
// The size of the circle.
property CircleSize: Single read GetCircleSize write SetCircleSize;
// The center point of the ripples.
end;
//A transition effect.
TFilterWiggleTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//A transition effect.
TFilterSaturateTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterWaveTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterFadeTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
end;
//A transition effect.
TFilterBlindTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetNumberOfBlinds: Single;
procedure SetNumberOfBlinds(AValue: Single);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The number of Blinds strips
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The number of Blinds strips
property NumberOfBlinds: Single read GetNumberOfBlinds write SetNumberOfBlinds;
end;
//A transition effect.
TFilterShapeTransition = class(TFilterBaseFilter)
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
function GetSecond: TBitmap;
procedure SetSecond(const AValue: TBitmap);
public
// The amount(%) of the transition from first texture to the second texture.
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
// The seed value that determines dripiness.
// Second desription
property Second: TBitmap read GetSecond write SetSecond;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress;
// The target bitmap.
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed;
// Second desription
end;
//An pencil stroke effect.
TFilterPencilStroke = class(TFilterBaseFilter)
private
function GetbrushSize: Single;
procedure SetbrushSize(AValue: Single);
public
// The brush size of the sketch effect.
published
// The brush size of the sketch effect.
property brushSize: Single read GetbrushSize write SetbrushSize;
end;
//An effect that sharpens the input.
TFilterSharpen = class(TFilterBaseFilter)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
public
// The amount of sharpening.
published
// The amount of sharpening.
property Amount: Single read GetAmount write SetAmount;
end;
//An effect that embosses the input.
TFilterEmboss = class(TFilterBaseFilter)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
function GetWidth: Single;
procedure SetWidth(AValue: Single);
public
// The amplitude of the embossing.
// The separation between samples (as a fraction of input size).
published
// The amplitude of the embossing.
property Amount: Single read GetAmount write SetAmount;
// The separation between samples (as a fraction of input size).
property Width: Single read GetWidth write SetWidth;
end;
//Sepia effect.
TFilterSepia = class(TFilterBaseFilter)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
public
// The amount of sharpening.
published
// The amount of sharpening.
property Amount: Single read GetAmount write SetAmount;
end;
//An paper sketch effect.
TFilterPaperSketch = class(TFilterBaseFilter)
private
function GetbrushSize: Single;
procedure SetbrushSize(AValue: Single);
public
// The brush size of the sketch effect.
published
// The brush size of the sketch effect.
property brushSize: Single read GetbrushSize write SetbrushSize;
end;
//Pixelate a image.
TFilterPixelate = class(TFilterBaseFilter)
private
function GetBlockCount: Single;
procedure SetBlockCount(AValue: Single);
public
// The number of pixel blocks.
published
// The number of pixel blocks.
property BlockCount: Single read GetBlockCount write SetBlockCount;
end;
//An effect that applies cartoon-like shading (posterization).
TFilterToon = class(TFilterBaseFilter)
private
function GetLevels: Single;
procedure SetLevels(AValue: Single);
public
// The number of color levels to use.
published
// The number of color levels to use.
property Levels: Single read GetLevels write SetLevels;
end;
//An effect that applies a wave pattern to the input.
TFilterWave = class(TFilterBaseFilter)
private
function GetTime: Single;
procedure SetTime(AValue: Single);
function GetWaveSize: Single;
procedure SetWaveSize(AValue: Single);
public
// The moment in time. Animate this value over a long period of time. The speed depends on the size. The larger the size, the larger the increase in time on every frame, thus from 0 to 2048 in a smaller amount of time.
// The distance between waves. (the higher the value the closer the waves are to their neighbor).
published
// The moment in time. Animate this value over a long period of time. The speed depends on the size. The larger the size, the larger the increase in time on every frame, thus from 0 to 2048 in a smaller amount of time.
property Time: Single read GetTime write SetTime;
// The distance between waves. (the higher the value the closer the waves are to their neighbor).
property WaveSize: Single read GetWaveSize write SetWaveSize;
end;
//An effect that swirls the input in alternating clockwise and counterclockwise bands.
TFilterBandedSwirl = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetBands: Single;
procedure SetBands(AValue: Single);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
// The number of bands in the swirl.
// The amount of twist to the spiral.
// he aspect ratio (width / height) of the input.
published
// The center point of the ripples.
// The number of bands in the swirl.
property Bands: Single read GetBands write SetBands;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength;
// he aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//An effect that magnifies a circular region.
TFilterSmoothMagnify = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetInnerRadius: Single;
procedure SetInnerRadius(AValue: Single);
function GetOuterRadius: Single;
procedure SetOuterRadius(AValue: Single);
function GetMagnification: Single;
procedure SetMagnification(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
// The inner radius of the magnified region.
// The outer radius of the magnified region.
// The magnification factor.
// The aspect ratio (width / height) of the input.
published
// The center point of the ripples.
// The inner radius of the magnified region.
property InnerRadius: Single read GetInnerRadius write SetInnerRadius;
// The outer radius of the magnified region.
property OuterRadius: Single read GetOuterRadius write SetOuterRadius;
// The magnification factor.
property Magnification: Single read GetMagnification write SetMagnification;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//Wrap image by two Bezier curves.
TFilterWrap = class(TFilterBaseFilter)
private
function GetLeftStart: Single;
procedure SetLeftStart(AValue: Single);
function GetLeftControl1: Single;
procedure SetLeftControl1(AValue: Single);
function GetLeftControl2: Single;
procedure SetLeftControl2(AValue: Single);
function GetLeftEnd: Single;
procedure SetLeftEnd(AValue: Single);
function GetRightStart: Single;
procedure SetRightStart(AValue: Single);
function GetRightControl1: Single;
procedure SetRightControl1(AValue: Single);
function GetRightControl2: Single;
procedure SetRightControl2(AValue: Single);
function GetRightEnd: Single;
procedure SetRightEnd(AValue: Single);
public
// Left wrap curve start point
// Left wrap curve control point 1
// Left wrap curve control point 2
// Left wrap curve end point
// Right wrap curve start point
// Right wrap curve control point 1
// Right wrap curve control point 2
// Right wrap curve end point
published
// Left wrap curve start point
property LeftStart: Single read GetLeftStart write SetLeftStart;
// Left wrap curve control point 1
property LeftControl1: Single read GetLeftControl1 write SetLeftControl1;
// Left wrap curve control point 2
property LeftControl2: Single read GetLeftControl2 write SetLeftControl2;
// Left wrap curve end point
property LeftEnd: Single read GetLeftEnd write SetLeftEnd;
// Right wrap curve start point
property RightStart: Single read GetRightStart write SetRightStart;
// Right wrap curve control point 1
property RightControl1: Single read GetRightControl1 write SetRightControl1;
// Right wrap curve control point 2
property RightControl2: Single read GetRightControl2 write SetRightControl2;
// Right wrap curve end point
property RightEnd: Single read GetRightEnd write SetRightEnd;
end;
//An effect that swirls the input in a spiral.
TFilterSwirl = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetSpiralStrength: Single;
procedure SetSpiralStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
// The amount of twist to the spiral.
// The aspect ratio (width / height) of the input.
published
// The center point of the ripples.
// The amount of twist to the spiral.
property SpiralStrength: Single read GetSpiralStrength write SetSpiralStrength;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//An effect that creates bands of bright regions.
TFilterBands = class(TFilterBaseFilter)
private
function GetBandDensity: Single;
procedure SetBandDensity(AValue: Single);
function GetBandIntensity: Single;
procedure SetBandIntensity(AValue: Single);
public
// The number of verical bands to add to the output. The higher the value the more bands.
// Intensity of each band.
published
// The number of verical bands to add to the output. The higher the value the more bands.
property BandDensity: Single read GetBandDensity write SetBandDensity;
// Intensity of each band.
property BandIntensity: Single read GetBandIntensity write SetBandIntensity;
end;
//An effect that magnifies a circular region.
TFilterMagnify = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRadius: Single;
procedure SetRadius(AValue: Single);
function GetMagnification: Single;
procedure SetMagnification(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
// The radius of the magnified region.
// The magnification factor.
// The aspect ratio (width / height) of the input.
published
// The center point of the ripples.
// The radius of the magnified region.
property Radius: Single read GetRadius write SetRadius;
// The magnification factor.
property Magnification: Single read GetMagnification write SetMagnification;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//An effect that pinches a circular region.
TFilterPinch = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRadius: Single;
procedure SetRadius(AValue: Single);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the pinched region.
property Center: TPointF read GetCenter write SetCenter;
// The radius of the pinched region.
// The amount of twist to the spiral.
// The aspect ratio (width / height) of the input.
published
// The center point of the pinched region.
// The radius of the pinched region.
property Radius: Single read GetRadius write SetRadius;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//An effect that superimposes rippling waves upon the input.
TFilterRipple = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetAmplitude: Single;
procedure SetAmplitude(AValue: Single);
function GetFrequency: Single;
procedure SetFrequency(AValue: Single);
function GetPhase: Single;
procedure SetPhase(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
// The amplitude of the ripples.
// The frequency of the ripples.
// The phase of the ripples.
// The aspect ratio (width / height) of the input.
published
// The center point of the ripples.
// The amplitude of the ripples.
property Amplitude: Single read GetAmplitude write SetAmplitude;
// The frequency of the ripples.
property Frequency: Single read GetFrequency write SetFrequency;
// The phase of the ripples.
property Phase: Single read GetPhase write SetPhase;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio;
end;
//Applies an perspective transform to an image.
TFilterPerspectiveTransform = class(TFilterBaseFilter)
private
function GetTopLeft: TPointF;
procedure SetTopLeft(AValue: TPointF);
function GetTopRight: TPointF;
procedure SetTopRight(AValue: TPointF);
function GetBottomRight: TPointF;
procedure SetBottomRight(AValue: TPointF);
function GetBottomLeft: TPointF;
procedure SetBottomLeft(AValue: TPointF);
public
// Top left point of result transformation.
property TopLeft: TPointF read GetTopLeft write SetTopLeft;
// Top right point of result transformation.
property TopRight: TPointF read GetTopRight write SetTopRight;
// Bottom right point of result transformation.
property BottomRight: TPointF read GetBottomRight write SetBottomRight;
// Bottom left point of result transformation.
property BottomLeft: TPointF read GetBottomLeft write SetBottomLeft;
published
// Top left point of result transformation.
// Top right point of result transformation.
// Bottom right point of result transformation.
// Bottom left point of result transformation.
end;
//The size and shape of the cropped image depend on the rectangle you specify.
TFilterCrop = class(TFilterBaseFilter)
private
function GetLeftTop: TPointF;
procedure SetLeftTop(AValue: TPointF);
function GetRightBottom: TPointF;
procedure SetRightBottom(AValue: TPointF);
public
// Left-top corner of cropping rect
property LeftTop: TPointF read GetLeftTop write SetLeftTop;
// Left-top corner of cropping rect
property RightBottom: TPointF read GetRightBottom write SetRightBottom;
published
// Left-top corner of cropping rect
// Left-top corner of cropping rect
end;
//Applies an affine transform to an image.
TFilterAffineTransform = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRotation: Single;
procedure SetRotation(AValue: Single);
function GetScale: Single;
procedure SetScale(AValue: Single);
public
// The center point of the rotation.
property Center: TPointF read GetCenter write SetCenter;
// Rotation angle in degrees.
// Scale value as floating.
published
// The center point of the rotation.
// Rotation angle in degrees.
property Rotation: Single read GetRotation write SetRotation;
// Scale value as floating.
property Scale: Single read GetScale write SetScale;
end;
//Pixel shader tiles the image across multiple rows and columns.
TFilterTiler = class(TFilterBaseFilter)
private
function GetVerticalTileCount: Single;
procedure SetVerticalTileCount(AValue: Single);
function GetHorizontalTileCount: Single;
procedure SetHorizontalTileCount(AValue: Single);
function GetHorizontalOffset: Single;
procedure SetHorizontalOffset(AValue: Single);
function GetVerticalOffset: Single;
procedure SetVerticalOffset(AValue: Single);
public
// The number of verical tiles to add to the output. The higher the value the more tiles.
// The number of horizontal tiles to add to the output. The higher the value the more tiles.
// Change the horizontal offset of each tile.
// Change the vertical offset of each tile.
published
// The number of verical tiles to add to the output. The higher the value the more tiles.
property VerticalTileCount: Single read GetVerticalTileCount write SetVerticalTileCount;
// The number of horizontal tiles to add to the output. The higher the value the more tiles.
property HorizontalTileCount: Single read GetHorizontalTileCount write SetHorizontalTileCount;
// Change the horizontal offset of each tile.
property HorizontalOffset: Single read GetHorizontalOffset write SetHorizontalOffset;
// Change the vertical offset of each tile.
property VerticalOffset: Single read GetVerticalOffset write SetVerticalOffset;
end;
//An effect that blurs in a single direction.
TFilterDirectionalBlur = class(TFilterBaseFilter)
private
function GetAngle: Single;
procedure SetAngle(AValue: Single);
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
// The direction of the blur (in degrees).
// The scale of the blur (as a fraction of the input size).
published
// The direction of the blur (in degrees).
property Angle: Single read GetAngle write SetAngle;
// The scale of the blur (as a fraction of the input size).
property BlurAmount: Single read GetBlurAmount write SetBlurAmount;
end;
//An effect that applies a radial blur to the input.
TFilterRadialBlur = class(TFilterBaseFilter)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
// The center point of the zomming.
property Center: TPointF read GetCenter write SetCenter;
// The scale of the blur (as a fraction of the input size).
published
// The center point of the zomming.
// The scale of the blur (as a fraction of the input size).
property BlurAmount: Single read GetBlurAmount write SetBlurAmount;
end;
//An effect that GaussianBlurs.
TFilterGaussianBlur = class(TFilterBaseFilter)
private
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
// The GaussianBlur factor.
published
// The GaussianBlur factor.
property BlurAmount: Single read GetBlurAmount write SetBlurAmount;
end;
//An effect that blurs.
TFilterBoxBlur = class(TFilterBaseFilter)
private
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
// The blur factor.
published
// The blur factor.
property BlurAmount: Single read GetBlurAmount write SetBlurAmount;
end;
//Converts a grayscale image to a white image that is masked by alpha.
TFilterMaskToAlpha = class(TFilterBaseFilter)
private
public
published
end;
//An effect that makes pixels of a particular color transparent.
TFilterColorKeyAlpha = class(TFilterBaseFilter)
private
function GetColorKey: TAlphaColor;
procedure SetColorKey(AValue: TAlphaColor);
function GetTolerance: Single;
procedure SetTolerance(AValue: Single);
public
// The color that becomes transparent.
// The tolerance in color differences.
published
// The color that becomes transparent.
property ColorKey: TAlphaColor read GetColorKey write SetColorKey;
// The tolerance in color differences.
property Tolerance: Single read GetTolerance write SetTolerance;
end;
//Remaps colors so they fall within shades of a single color.
TFilterMonochrome = class(TFilterBaseFilter)
private
public
published
end;
//An effect that inverts all colors.
TFilterInvert = class(TFilterBaseFilter)
private
public
published
end;
//An effect that intensifies dark regions.
TFilterGloom = class(TFilterBaseFilter)
private
function GetGloomIntensity: Single;
procedure SetGloomIntensity(AValue: Single);
function GetBaseIntensity: Single;
procedure SetBaseIntensity(AValue: Single);
function GetGloomSaturation: Single;
procedure SetGloomSaturation(AValue: Single);
function GetBaseSaturation: Single;
procedure SetBaseSaturation(AValue: Single);
public
// Intensity of the gloom image.
// Intensity of the base image.
// Saturation of the gloom image.
// Saturation of the base image.
published
// Intensity of the gloom image.
property GloomIntensity: Single read GetGloomIntensity write SetGloomIntensity;
// Intensity of the base image.
property BaseIntensity: Single read GetBaseIntensity write SetBaseIntensity;
// Saturation of the gloom image.
property GloomSaturation: Single read GetGloomSaturation write SetGloomSaturation;
// Saturation of the base image.
property BaseSaturation: Single read GetBaseSaturation write SetBaseSaturation;
end;
//Changes the overall hue, or tint, of the source pixels.
TFilterHueAdjust = class(TFilterBaseFilter)
private
function GetHue: Single;
procedure SetHue(AValue: Single);
public
// The hue offset.
published
// The hue offset.
property Hue: Single read GetHue write SetHue;
end;
//An effect that intensifies bright regions.
TFilterBloom = class(TFilterBaseFilter)
private
function GetBloomIntensity: Single;
procedure SetBloomIntensity(AValue: Single);
function GetBaseIntensity: Single;
procedure SetBaseIntensity(AValue: Single);
function GetBloomSaturation: Single;
procedure SetBloomSaturation(AValue: Single);
function GetBaseSaturation: Single;
procedure SetBaseSaturation(AValue: Single);
public
// Intensity of the bloom image.
// Intensity of the base image.
// Saturation of the bloom image.
// Saturation of the base image.
published
// Intensity of the bloom image.
property BloomIntensity: Single read GetBloomIntensity write SetBloomIntensity;
// Intensity of the base image.
property BaseIntensity: Single read GetBaseIntensity write SetBaseIntensity;
// Saturation of the bloom image.
property BloomSaturation: Single read GetBloomSaturation write SetBloomSaturation;
// Saturation of the base image.
property BaseSaturation: Single read GetBaseSaturation write SetBaseSaturation;
end;
//An effect that controls brightness and contrast.
TFilterContrast = class(TFilterBaseFilter)
private
function GetBrightness: Single;
procedure SetBrightness(AValue: Single);
function GetContrast: Single;
procedure SetContrast(AValue: Single);
public
// The brightness offset.
// The contrast multiplier.
published
// The brightness offset.
property Brightness: Single read GetBrightness write SetBrightness;
// The contrast multiplier.
property Contrast: Single read GetContrast write SetContrast;
end;
//Generates a solid color.
TFilterFill = class(TFilterBaseFilter)
private
function GetColor: TAlphaColor;
procedure SetColor(AValue: TAlphaColor);
public
// The fill color.
published
// The fill color.
property Color: TAlphaColor read GetColor write SetColor;
end;
//Fill all pixels with not empty alpha.
TFilterFillRGB = class(TFilterBaseFilter)
private
function GetColor: TAlphaColor;
procedure SetColor(AValue: TAlphaColor);
public
// The fill color.
published
// The fill color.
property Color: TAlphaColor read GetColor write SetColor;
end;
//Normal blending of two images.
TFilterNormalBlend = class(TFilterBaseFilter)
private
function GetTarget: TBitmap;
procedure SetTarget(const AValue: TBitmap);
public
// The target bitmap.
property Target: TBitmap read GetTarget write SetTarget;
published
// The target bitmap.
end;
TImageFXEffect = class(TFilterEffect)
protected
function CreateFilter: TFilter; override;
published
property Trigger;
property Enabled;
end;
//A transition effect.
TPixelateTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TBrightTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TSwirlTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength nodefault;
end;
//A transition effect.
TDissolveTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TBloodTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TBlurTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TDropTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TCrumpleTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TWaterTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TBandedSwirlTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetFrequency: Single;
procedure SetFrequency(AValue: Single);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength nodefault;
// The frequency of the spiral.
property Frequency: Single read GetFrequency write SetFrequency nodefault;
end;
//A swipe transition effect.
TSwipeTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
FBack: TBitmap;
procedure BackChanged(Sender: TObject);
private
function GetMousePoint: TPointF;
procedure SetMousePoint(AValue: TPointF);
function GetCornerPoint: TPointF;
procedure SetCornerPoint(AValue: TPointF);
function GetDeep: Single;
procedure SetDeep(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
procedure SetBack(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The point of coursor
property MousePoint: TPointF read GetMousePoint write SetMousePoint;
// The point of corner
property CornerPoint: TPointF read GetCornerPoint write SetCornerPoint;
published
// The deep of fold
property Deep: Single read GetDeep write SetDeep nodefault;
// Target desription
property Target: TBitmap read FTarget write SetTarget;
// Back page texture
property Back: TBitmap read FBack write SetBack;
end;
//A transition effect.
TSlideTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetSlideAmount: TPointF;
procedure SetSlideAmount(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property SlideAmount: TPointF read GetSlideAmount write SetSlideAmount;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TMagnifyTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TLineTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetOrigin: TPointF;
procedure SetOrigin(AValue: TPointF);
function GetNormal: TPointF;
procedure SetNormal(AValue: TPointF);
function GetOffsetProp: TPointF;
procedure SetOffsetProp(AValue: TPointF);
function GetFuzzyAmount: Single;
procedure SetFuzzyAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The line origin.
property Origin: TPointF read GetOrigin write SetOrigin;
// The line normal.
property Normal: TPointF read GetNormal write SetNormal;
// The line offset.
property OffsetProp: TPointF read GetOffsetProp write SetOffsetProp;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The fuzziness factor.
property FuzzyAmount: Single read GetFuzzyAmount write SetFuzzyAmount nodefault;
end;
//A transition effect.
TRotateCrumpleTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TRippleTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TCircleTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetFuzzyAmount: Single;
procedure SetFuzzyAmount(AValue: Single);
function GetCircleSize: Single;
procedure SetCircleSize(AValue: Single);
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The fuzziness factor.
property FuzzyAmount: Single read GetFuzzyAmount write SetFuzzyAmount nodefault;
// The size of the circle.
property CircleSize: Single read GetCircleSize write SetCircleSize nodefault;
end;
//A transition effect.
TWiggleTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//A transition effect.
TSaturateTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TWaveTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TFadeTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
//A transition effect.
TBlindTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetNumberOfBlinds: Single;
procedure SetNumberOfBlinds(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The number of Blinds strips
property NumberOfBlinds: Single read GetNumberOfBlinds write SetNumberOfBlinds nodefault;
end;
//A transition effect.
TShapeTransitionEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
function GetProgress: Single;
procedure SetProgress(AValue: Single);
procedure SetTarget(const AValue: TBitmap);
function GetRandomSeed: Single;
procedure SetRandomSeed(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount(%) of the transition from first texture to the second texture.
property Progress: Single read GetProgress write SetProgress nodefault;
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
// The seed value that determines dripiness.
property RandomSeed: Single read GetRandomSeed write SetRandomSeed nodefault;
end;
//An pencil stroke effect.
TPencilStrokeEffect = class(TImageFXEffect)
private
function GetbrushSize: Single;
procedure SetbrushSize(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The brush size of the sketch effect.
property brushSize: Single read GetbrushSize write SetbrushSize nodefault;
end;
//An effect that sharpens the input.
TSharpenEffect = class(TImageFXEffect)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount of sharpening.
property Amount: Single read GetAmount write SetAmount nodefault;
end;
//An effect that embosses the input.
TEmbossEffect = class(TImageFXEffect)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
function GetWidth: Single;
procedure SetWidth(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amplitude of the embossing.
property Amount: Single read GetAmount write SetAmount nodefault;
// The separation between samples (as a fraction of input size).
property Width: Single read GetWidth write SetWidth nodefault;
end;
//Sepia effect.
TSepiaEffect = class(TImageFXEffect)
private
function GetAmount: Single;
procedure SetAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The amount of sharpening.
property Amount: Single read GetAmount write SetAmount nodefault;
end;
//An paper sketch effect.
TPaperSketchEffect = class(TImageFXEffect)
private
function GetbrushSize: Single;
procedure SetbrushSize(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The brush size of the sketch effect.
property brushSize: Single read GetbrushSize write SetbrushSize nodefault;
end;
//Pixelate a image.
TPixelateEffect = class(TImageFXEffect)
private
function GetBlockCount: Single;
procedure SetBlockCount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The number of pixel blocks.
property BlockCount: Single read GetBlockCount write SetBlockCount nodefault;
end;
//An effect that applies cartoon-like shading (posterization).
TToonEffect = class(TImageFXEffect)
private
function GetLevels: Single;
procedure SetLevels(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The number of color levels to use.
property Levels: Single read GetLevels write SetLevels nodefault;
end;
//An effect that applies a wave pattern to the input.
TWaveEffect = class(TImageFXEffect)
private
function GetTime: Single;
procedure SetTime(AValue: Single);
function GetWaveSize: Single;
procedure SetWaveSize(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The moment in time. Animate this value over a long period of time. The speed depends on the size. The larger the size, the larger the increase in time on every frame, thus from 0 to 2048 in a smaller amount of time.
property Time: Single read GetTime write SetTime nodefault;
// The distance between waves. (the higher the value the closer the waves are to their neighbor).
property WaveSize: Single read GetWaveSize write SetWaveSize nodefault;
end;
//An effect that swirls the input in alternating clockwise and counterclockwise bands.
TBandedSwirlEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetBands: Single;
procedure SetBands(AValue: Single);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The number of bands in the swirl.
property Bands: Single read GetBands write SetBands nodefault;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength nodefault;
// he aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//An effect that magnifies a circular region.
TSmoothMagnifyEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetInnerRadius: Single;
procedure SetInnerRadius(AValue: Single);
function GetOuterRadius: Single;
procedure SetOuterRadius(AValue: Single);
function GetMagnification: Single;
procedure SetMagnification(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The inner radius of the magnified region.
property InnerRadius: Single read GetInnerRadius write SetInnerRadius nodefault;
// The outer radius of the magnified region.
property OuterRadius: Single read GetOuterRadius write SetOuterRadius nodefault;
// The magnification factor.
property Magnification: Single read GetMagnification write SetMagnification nodefault;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//Wrap image by two Bezier curves.
TWrapEffect = class(TImageFXEffect)
private
function GetLeftStart: Single;
procedure SetLeftStart(AValue: Single);
function GetLeftControl1: Single;
procedure SetLeftControl1(AValue: Single);
function GetLeftControl2: Single;
procedure SetLeftControl2(AValue: Single);
function GetLeftEnd: Single;
procedure SetLeftEnd(AValue: Single);
function GetRightStart: Single;
procedure SetRightStart(AValue: Single);
function GetRightControl1: Single;
procedure SetRightControl1(AValue: Single);
function GetRightControl2: Single;
procedure SetRightControl2(AValue: Single);
function GetRightEnd: Single;
procedure SetRightEnd(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// Left wrap curve start point
property LeftStart: Single read GetLeftStart write SetLeftStart nodefault;
// Left wrap curve control point 1
property LeftControl1: Single read GetLeftControl1 write SetLeftControl1 nodefault;
// Left wrap curve control point 2
property LeftControl2: Single read GetLeftControl2 write SetLeftControl2 nodefault;
// Left wrap curve end point
property LeftEnd: Single read GetLeftEnd write SetLeftEnd nodefault;
// Right wrap curve start point
property RightStart: Single read GetRightStart write SetRightStart nodefault;
// Right wrap curve control point 1
property RightControl1: Single read GetRightControl1 write SetRightControl1 nodefault;
// Right wrap curve control point 2
property RightControl2: Single read GetRightControl2 write SetRightControl2 nodefault;
// Right wrap curve end point
property RightEnd: Single read GetRightEnd write SetRightEnd nodefault;
end;
//An effect that swirls the input in a spiral.
TSwirlEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetSpiralStrength: Single;
procedure SetSpiralStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amount of twist to the spiral.
property SpiralStrength: Single read GetSpiralStrength write SetSpiralStrength nodefault;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//An effect that creates bands of bright regions.
TBandsEffect = class(TImageFXEffect)
private
function GetBandDensity: Single;
procedure SetBandDensity(AValue: Single);
function GetBandIntensity: Single;
procedure SetBandIntensity(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The number of verical bands to add to the output. The higher the value the more bands.
property BandDensity: Single read GetBandDensity write SetBandDensity nodefault;
// Intensity of each band.
property BandIntensity: Single read GetBandIntensity write SetBandIntensity nodefault;
end;
//An effect that magnifies a circular region.
TMagnifyEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRadius: Single;
procedure SetRadius(AValue: Single);
function GetMagnification: Single;
procedure SetMagnification(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The radius of the magnified region.
property Radius: Single read GetRadius write SetRadius nodefault;
// The magnification factor.
property Magnification: Single read GetMagnification write SetMagnification nodefault;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//An effect that pinches a circular region.
TPinchEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRadius: Single;
procedure SetRadius(AValue: Single);
function GetStrength: Single;
procedure SetStrength(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the pinched region.
property Center: TPointF read GetCenter write SetCenter;
published
// The radius of the pinched region.
property Radius: Single read GetRadius write SetRadius nodefault;
// The amount of twist to the spiral.
property Strength: Single read GetStrength write SetStrength nodefault;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//An effect that superimposes rippling waves upon the input.
TRippleEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetAmplitude: Single;
procedure SetAmplitude(AValue: Single);
function GetFrequency: Single;
procedure SetFrequency(AValue: Single);
function GetPhase: Single;
procedure SetPhase(AValue: Single);
function GetAspectRatio: Single;
procedure SetAspectRatio(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the ripples.
property Center: TPointF read GetCenter write SetCenter;
published
// The amplitude of the ripples.
property Amplitude: Single read GetAmplitude write SetAmplitude nodefault;
// The frequency of the ripples.
property Frequency: Single read GetFrequency write SetFrequency nodefault;
// The phase of the ripples.
property Phase: Single read GetPhase write SetPhase nodefault;
// The aspect ratio (width / height) of the input.
property AspectRatio: Single read GetAspectRatio write SetAspectRatio nodefault;
end;
//Applies an perspective transform to an image.
TPerspectiveTransformEffect = class(TImageFXEffect)
private
function GetTopLeft: TPointF;
procedure SetTopLeft(AValue: TPointF);
function GetTopRight: TPointF;
procedure SetTopRight(AValue: TPointF);
function GetBottomRight: TPointF;
procedure SetBottomRight(AValue: TPointF);
function GetBottomLeft: TPointF;
procedure SetBottomLeft(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// Top left point of result transformation.
property TopLeft: TPointF read GetTopLeft write SetTopLeft;
// Top right point of result transformation.
property TopRight: TPointF read GetTopRight write SetTopRight;
// Bottom right point of result transformation.
property BottomRight: TPointF read GetBottomRight write SetBottomRight;
// Bottom left point of result transformation.
property BottomLeft: TPointF read GetBottomLeft write SetBottomLeft;
published
end;
//The size and shape of the cropped image depend on the rectangle you specify.
TCropEffect = class(TImageFXEffect)
private
function GetLeftTop: TPointF;
procedure SetLeftTop(AValue: TPointF);
function GetRightBottom: TPointF;
procedure SetRightBottom(AValue: TPointF);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// Left-top corner of cropping rect
property LeftTop: TPointF read GetLeftTop write SetLeftTop;
// Left-top corner of cropping rect
property RightBottom: TPointF read GetRightBottom write SetRightBottom;
published
end;
//Applies an affine transform to an image.
TAffineTransformEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetRotation: Single;
procedure SetRotation(AValue: Single);
function GetScale: Single;
procedure SetScale(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the rotation.
property Center: TPointF read GetCenter write SetCenter;
published
// Rotation angle in degrees.
property Rotation: Single read GetRotation write SetRotation nodefault;
// Scale value as floating.
property Scale: Single read GetScale write SetScale nodefault;
end;
//Pixel shader tiles the image across multiple rows and columns.
TTilerEffect = class(TImageFXEffect)
private
function GetVerticalTileCount: Single;
procedure SetVerticalTileCount(AValue: Single);
function GetHorizontalTileCount: Single;
procedure SetHorizontalTileCount(AValue: Single);
function GetHorizontalOffset: Single;
procedure SetHorizontalOffset(AValue: Single);
function GetVerticalOffset: Single;
procedure SetVerticalOffset(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The number of verical tiles to add to the output. The higher the value the more tiles.
property VerticalTileCount: Single read GetVerticalTileCount write SetVerticalTileCount nodefault;
// The number of horizontal tiles to add to the output. The higher the value the more tiles.
property HorizontalTileCount: Single read GetHorizontalTileCount write SetHorizontalTileCount nodefault;
// Change the horizontal offset of each tile.
property HorizontalOffset: Single read GetHorizontalOffset write SetHorizontalOffset nodefault;
// Change the vertical offset of each tile.
property VerticalOffset: Single read GetVerticalOffset write SetVerticalOffset nodefault;
end;
//An effect that blurs in a single direction.
TDirectionalBlurEffect = class(TImageFXEffect)
private
function GetAngle: Single;
procedure SetAngle(AValue: Single);
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The direction of the blur (in degrees).
property Angle: Single read GetAngle write SetAngle nodefault;
// The scale of the blur (as a fraction of the input size).
property BlurAmount: Single read GetBlurAmount write SetBlurAmount nodefault;
end;
//An effect that applies a radial blur to the input.
TRadialBlurEffect = class(TImageFXEffect)
private
function GetCenter: TPointF;
procedure SetCenter(AValue: TPointF);
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
// The center point of the zomming.
property Center: TPointF read GetCenter write SetCenter;
published
// The scale of the blur (as a fraction of the input size).
property BlurAmount: Single read GetBlurAmount write SetBlurAmount nodefault;
end;
//An effect that GaussianBlurs.
TGaussianBlurEffect = class(TImageFXEffect)
private
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The GaussianBlur factor.
property BlurAmount: Single read GetBlurAmount write SetBlurAmount nodefault;
end;
//An effect that blurs.
TBoxBlurEffect = class(TImageFXEffect)
private
function GetBlurAmount: Single;
procedure SetBlurAmount(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The blur factor.
property BlurAmount: Single read GetBlurAmount write SetBlurAmount nodefault;
end;
//Converts a grayscale image to a white image that is masked by alpha.
TMaskToAlphaEffect = class(TImageFXEffect)
private
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
end;
//An effect that makes pixels of a particular color transparent.
TColorKeyAlphaEffect = class(TImageFXEffect)
private
function GetColorKey: TAlphaColor;
procedure SetColorKey(AValue: TAlphaColor);
function GetTolerance: Single;
procedure SetTolerance(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The color that becomes transparent.
property ColorKey: TAlphaColor read GetColorKey write SetColorKey;
// The tolerance in color differences.
property Tolerance: Single read GetTolerance write SetTolerance nodefault;
end;
//Remaps colors so they fall within shades of a single color.
TMonochromeEffect = class(TImageFXEffect)
private
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
end;
//An effect that inverts all colors.
TInvertEffect = class(TImageFXEffect)
private
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
end;
//An effect that intensifies dark regions.
TGloomEffect = class(TImageFXEffect)
private
function GetGloomIntensity: Single;
procedure SetGloomIntensity(AValue: Single);
function GetBaseIntensity: Single;
procedure SetBaseIntensity(AValue: Single);
function GetGloomSaturation: Single;
procedure SetGloomSaturation(AValue: Single);
function GetBaseSaturation: Single;
procedure SetBaseSaturation(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// Intensity of the gloom image.
property GloomIntensity: Single read GetGloomIntensity write SetGloomIntensity nodefault;
// Intensity of the base image.
property BaseIntensity: Single read GetBaseIntensity write SetBaseIntensity nodefault;
// Saturation of the gloom image.
property GloomSaturation: Single read GetGloomSaturation write SetGloomSaturation nodefault;
// Saturation of the base image.
property BaseSaturation: Single read GetBaseSaturation write SetBaseSaturation nodefault;
end;
//Changes the overall hue, or tint, of the source pixels.
THueAdjustEffect = class(TImageFXEffect)
private
function GetHue: Single;
procedure SetHue(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The hue offset.
property Hue: Single read GetHue write SetHue nodefault;
end;
//An effect that intensifies bright regions.
TBloomEffect = class(TImageFXEffect)
private
function GetBloomIntensity: Single;
procedure SetBloomIntensity(AValue: Single);
function GetBaseIntensity: Single;
procedure SetBaseIntensity(AValue: Single);
function GetBloomSaturation: Single;
procedure SetBloomSaturation(AValue: Single);
function GetBaseSaturation: Single;
procedure SetBaseSaturation(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// Intensity of the bloom image.
property BloomIntensity: Single read GetBloomIntensity write SetBloomIntensity nodefault;
// Intensity of the base image.
property BaseIntensity: Single read GetBaseIntensity write SetBaseIntensity nodefault;
// Saturation of the bloom image.
property BloomSaturation: Single read GetBloomSaturation write SetBloomSaturation nodefault;
// Saturation of the base image.
property BaseSaturation: Single read GetBaseSaturation write SetBaseSaturation nodefault;
end;
//An effect that controls brightness and contrast.
TContrastEffect = class(TImageFXEffect)
private
function GetBrightness: Single;
procedure SetBrightness(AValue: Single);
function GetContrast: Single;
procedure SetContrast(AValue: Single);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The brightness offset.
property Brightness: Single read GetBrightness write SetBrightness nodefault;
// The contrast multiplier.
property Contrast: Single read GetContrast write SetContrast nodefault;
end;
//Generates a solid color.
TFillEffect = class(TImageFXEffect)
private
function GetColor: TAlphaColor;
procedure SetColor(AValue: TAlphaColor);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The fill color.
property Color: TAlphaColor read GetColor write SetColor;
end;
//Fill all pixels with not empty alpha.
TFillRGBEffect = class(TImageFXEffect)
private
function GetColor: TAlphaColor;
procedure SetColor(AValue: TAlphaColor);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The fill color.
property Color: TAlphaColor read GetColor write SetColor;
end;
//Normal blending of two images.
TNormalBlendEffect = class(TImageFXEffect)
private
FTarget: TBitmap;
procedure TargetChanged(Sender: TObject);
private
procedure SetTarget(const AValue: TBitmap);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
// The target bitmap.
property Target: TBitmap read FTarget write SetTarget;
end;
procedure Register;
implementation
uses
System.UIConsts, System.SysUtils, FMX.Filter.Standard;
constructor TFilterBaseFilter.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FFilter := TFilterManager.FilterByName(ClassName.Substring(7, 100));
end;
destructor TFilterBaseFilter.Destroy;
begin
if FFilter <> nil then
FFilter.Free;
inherited Destroy;
end;
function TFilterBaseFilter.GetOutput: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Output']
else
Result := nil;
end;
procedure TFilterBaseFilter.SetInput(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Input'] := AValue;
end;
procedure TFilterBaseFilter.SetInputFilter(const AValue: TFilterBaseFilter);
begin
FInputFilter := AValue;
if FFilter <> nil then
if (FInputFilter <> nil) then
FFilter.InputFilter := FInputFilter.FFilter
else
FFilter.InputFilter := nil;
end;
procedure TFilterBaseFilter.Notification(AComponent: TComponent; Operation: TOperation);
begin
inherited ;
if (Operation = opRemove) and (AComponent = FInputFilter) then
InputFilter := nil;
end;
{ TFilterPixelateTransition Implementation }
function TFilterPixelateTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterPixelateTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterPixelateTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterPixelateTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterBrightTransition Implementation }
function TFilterBrightTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterBrightTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterBrightTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterBrightTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterSwirlTransition Implementation }
function TFilterSwirlTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterSwirlTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterSwirlTransition.GetStrength: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
procedure TFilterSwirlTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterSwirlTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterSwirlTransition.SetStrength(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Strength'] := AValue;
end;
{ TFilterDissolveTransition Implementation }
function TFilterDissolveTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterDissolveTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterDissolveTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterDissolveTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterDissolveTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterDissolveTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterDissolveTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterDissolveTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterBloodTransition Implementation }
function TFilterBloodTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterBloodTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterBloodTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterBloodTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterBloodTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterBloodTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterBloodTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterBloodTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterBlurTransition Implementation }
function TFilterBlurTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterBlurTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterBlurTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterBlurTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterDropTransition Implementation }
function TFilterDropTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterDropTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterDropTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterDropTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterDropTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterDropTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterDropTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterDropTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterCrumpleTransition Implementation }
function TFilterCrumpleTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterCrumpleTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterCrumpleTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterCrumpleTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterCrumpleTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterCrumpleTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterCrumpleTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterCrumpleTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterWaterTransition Implementation }
function TFilterWaterTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterWaterTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterWaterTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterWaterTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterWaterTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterWaterTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterWaterTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterWaterTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterBandedSwirlTransition Implementation }
function TFilterBandedSwirlTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterBandedSwirlTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterBandedSwirlTransition.GetStrength: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TFilterBandedSwirlTransition.GetFrequency: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Frequency']
else
Result := 0.0;
end;
function TFilterBandedSwirlTransition.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TFilterBandedSwirlTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterBandedSwirlTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterBandedSwirlTransition.SetStrength(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Strength'] := AValue;
end;
procedure TFilterBandedSwirlTransition.SetFrequency(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Frequency'] := AValue;
end;
procedure TFilterBandedSwirlTransition.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
{ TFilterSwipeTransition Implementation }
function TFilterSwipeTransition.GetMousePoint: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['MousePoint']
else
Result := TPointF.Zero;
end;
function TFilterSwipeTransition.GetCornerPoint: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['CornerPoint']
else
Result := TPointF.Zero;
end;
function TFilterSwipeTransition.GetDeep: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Deep']
else
Result := 0.0;
end;
function TFilterSwipeTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterSwipeTransition.GetBack: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Back']
else
Result := nil;
end;
procedure TFilterSwipeTransition.SetMousePoint(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['MousePoint'] := AValue;
end;
procedure TFilterSwipeTransition.SetCornerPoint(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['CornerPoint'] := AValue;
end;
procedure TFilterSwipeTransition.SetDeep(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Deep'] := AValue;
end;
procedure TFilterSwipeTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterSwipeTransition.SetBack(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Back'] := AValue;
end;
{ TFilterSlideTransition Implementation }
function TFilterSlideTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterSlideTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterSlideTransition.GetSlideAmount: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['SlideAmount']
else
Result := TPointF.Zero;
end;
procedure TFilterSlideTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterSlideTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterSlideTransition.SetSlideAmount(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['SlideAmount'] := AValue;
end;
{ TFilterMagnifyTransition Implementation }
function TFilterMagnifyTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterMagnifyTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterMagnifyTransition.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TFilterMagnifyTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterMagnifyTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterMagnifyTransition.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
{ TFilterLineTransition Implementation }
function TFilterLineTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterLineTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterLineTransition.GetOrigin: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Origin']
else
Result := TPointF.Zero;
end;
function TFilterLineTransition.GetNormal: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Normal']
else
Result := TPointF.Zero;
end;
function TFilterLineTransition.GetOffsetProp: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['OffsetProp']
else
Result := TPointF.Zero;
end;
function TFilterLineTransition.GetFuzzyAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['FuzzyAmount']
else
Result := 0.0;
end;
procedure TFilterLineTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterLineTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterLineTransition.SetOrigin(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Origin'] := AValue;
end;
procedure TFilterLineTransition.SetNormal(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Normal'] := AValue;
end;
procedure TFilterLineTransition.SetOffsetProp(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['OffsetProp'] := AValue;
end;
procedure TFilterLineTransition.SetFuzzyAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['FuzzyAmount'] := AValue;
end;
{ TFilterRotateCrumpleTransition Implementation }
function TFilterRotateCrumpleTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterRotateCrumpleTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterRotateCrumpleTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterRotateCrumpleTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterRotateCrumpleTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterRotateCrumpleTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterRotateCrumpleTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterRotateCrumpleTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterRippleTransition Implementation }
function TFilterRippleTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterRippleTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterRippleTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterRippleTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterCircleTransition Implementation }
function TFilterCircleTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterCircleTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterCircleTransition.GetFuzzyAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['FuzzyAmount']
else
Result := 0.0;
end;
function TFilterCircleTransition.GetCircleSize: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['CircleSize']
else
Result := 0.0;
end;
function TFilterCircleTransition.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TFilterCircleTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterCircleTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterCircleTransition.SetFuzzyAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['FuzzyAmount'] := AValue;
end;
procedure TFilterCircleTransition.SetCircleSize(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['CircleSize'] := AValue;
end;
procedure TFilterCircleTransition.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
{ TFilterWiggleTransition Implementation }
function TFilterWiggleTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterWiggleTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterWiggleTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterWiggleTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterWiggleTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterWiggleTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterWiggleTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterWiggleTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterSaturateTransition Implementation }
function TFilterSaturateTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterSaturateTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterSaturateTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterSaturateTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterWaveTransition Implementation }
function TFilterWaveTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterWaveTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterWaveTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterWaveTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterFadeTransition Implementation }
function TFilterFadeTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterFadeTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterFadeTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterFadeTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
{ TFilterBlindTransition Implementation }
function TFilterBlindTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterBlindTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterBlindTransition.GetNumberOfBlinds: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['NumberOfBlinds']
else
Result := 0.0;
end;
procedure TFilterBlindTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterBlindTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterBlindTransition.SetNumberOfBlinds(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['NumberOfBlinds'] := AValue;
end;
{ TFilterShapeTransition Implementation }
function TFilterShapeTransition.GetProgress: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TFilterShapeTransition.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
function TFilterShapeTransition.GetRandomSeed: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
function TFilterShapeTransition.GetSecond: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Second']
else
Result := nil;
end;
procedure TFilterShapeTransition.SetProgress(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Progress'] := AValue;
end;
procedure TFilterShapeTransition.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
procedure TFilterShapeTransition.SetRandomSeed(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RandomSeed'] := AValue;
end;
procedure TFilterShapeTransition.SetSecond(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Second'] := AValue;
end;
{ TFilterPencilStroke Implementation }
function TFilterPencilStroke.GetbrushSize: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['brushSize']
else
Result := 0.0;
end;
procedure TFilterPencilStroke.SetbrushSize(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['brushSize'] := AValue;
end;
{ TFilterSharpen Implementation }
function TFilterSharpen.GetAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
procedure TFilterSharpen.SetAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Amount'] := AValue;
end;
{ TFilterEmboss Implementation }
function TFilterEmboss.GetAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
function TFilterEmboss.GetWidth: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Width']
else
Result := 0.0;
end;
procedure TFilterEmboss.SetAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Amount'] := AValue;
end;
procedure TFilterEmboss.SetWidth(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Width'] := AValue;
end;
{ TFilterSepia Implementation }
function TFilterSepia.GetAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
procedure TFilterSepia.SetAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Amount'] := AValue;
end;
{ TFilterPaperSketch Implementation }
function TFilterPaperSketch.GetbrushSize: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['brushSize']
else
Result := 0.0;
end;
procedure TFilterPaperSketch.SetbrushSize(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['brushSize'] := AValue;
end;
{ TFilterPixelate Implementation }
function TFilterPixelate.GetBlockCount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BlockCount']
else
Result := 0.0;
end;
procedure TFilterPixelate.SetBlockCount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BlockCount'] := AValue;
end;
{ TFilterToon Implementation }
function TFilterToon.GetLevels: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Levels']
else
Result := 0.0;
end;
procedure TFilterToon.SetLevels(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Levels'] := AValue;
end;
{ TFilterWave Implementation }
function TFilterWave.GetTime: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Time']
else
Result := 0.0;
end;
function TFilterWave.GetWaveSize: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['WaveSize']
else
Result := 0.0;
end;
procedure TFilterWave.SetTime(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Time'] := AValue;
end;
procedure TFilterWave.SetWaveSize(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['WaveSize'] := AValue;
end;
{ TFilterBandedSwirl Implementation }
function TFilterBandedSwirl.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterBandedSwirl.GetBands: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Bands']
else
Result := 0.0;
end;
function TFilterBandedSwirl.GetStrength: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TFilterBandedSwirl.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterBandedSwirl.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterBandedSwirl.SetBands(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Bands'] := AValue;
end;
procedure TFilterBandedSwirl.SetStrength(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Strength'] := AValue;
end;
procedure TFilterBandedSwirl.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterSmoothMagnify Implementation }
function TFilterSmoothMagnify.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterSmoothMagnify.GetInnerRadius: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['InnerRadius']
else
Result := 0.0;
end;
function TFilterSmoothMagnify.GetOuterRadius: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['OuterRadius']
else
Result := 0.0;
end;
function TFilterSmoothMagnify.GetMagnification: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Magnification']
else
Result := 0.0;
end;
function TFilterSmoothMagnify.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterSmoothMagnify.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterSmoothMagnify.SetInnerRadius(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['InnerRadius'] := AValue;
end;
procedure TFilterSmoothMagnify.SetOuterRadius(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['OuterRadius'] := AValue;
end;
procedure TFilterSmoothMagnify.SetMagnification(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Magnification'] := AValue;
end;
procedure TFilterSmoothMagnify.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterWrap Implementation }
function TFilterWrap.GetLeftStart: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['LeftStart']
else
Result := 0.0;
end;
function TFilterWrap.GetLeftControl1: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['LeftControl1']
else
Result := 0.0;
end;
function TFilterWrap.GetLeftControl2: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['LeftControl2']
else
Result := 0.0;
end;
function TFilterWrap.GetLeftEnd: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['LeftEnd']
else
Result := 0.0;
end;
function TFilterWrap.GetRightStart: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RightStart']
else
Result := 0.0;
end;
function TFilterWrap.GetRightControl1: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RightControl1']
else
Result := 0.0;
end;
function TFilterWrap.GetRightControl2: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RightControl2']
else
Result := 0.0;
end;
function TFilterWrap.GetRightEnd: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['RightEnd']
else
Result := 0.0;
end;
procedure TFilterWrap.SetLeftStart(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['LeftStart'] := AValue;
end;
procedure TFilterWrap.SetLeftControl1(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['LeftControl1'] := AValue;
end;
procedure TFilterWrap.SetLeftControl2(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['LeftControl2'] := AValue;
end;
procedure TFilterWrap.SetLeftEnd(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['LeftEnd'] := AValue;
end;
procedure TFilterWrap.SetRightStart(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RightStart'] := AValue;
end;
procedure TFilterWrap.SetRightControl1(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RightControl1'] := AValue;
end;
procedure TFilterWrap.SetRightControl2(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RightControl2'] := AValue;
end;
procedure TFilterWrap.SetRightEnd(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['RightEnd'] := AValue;
end;
{ TFilterSwirl Implementation }
function TFilterSwirl.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterSwirl.GetSpiralStrength: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['SpiralStrength']
else
Result := 0.0;
end;
function TFilterSwirl.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterSwirl.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterSwirl.SetSpiralStrength(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['SpiralStrength'] := AValue;
end;
procedure TFilterSwirl.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterBands Implementation }
function TFilterBands.GetBandDensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BandDensity']
else
Result := 0.0;
end;
function TFilterBands.GetBandIntensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BandIntensity']
else
Result := 0.0;
end;
procedure TFilterBands.SetBandDensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BandDensity'] := AValue;
end;
procedure TFilterBands.SetBandIntensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BandIntensity'] := AValue;
end;
{ TFilterMagnify Implementation }
function TFilterMagnify.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterMagnify.GetRadius: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Radius']
else
Result := 0.0;
end;
function TFilterMagnify.GetMagnification: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Magnification']
else
Result := 0.0;
end;
function TFilterMagnify.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterMagnify.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterMagnify.SetRadius(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Radius'] := AValue;
end;
procedure TFilterMagnify.SetMagnification(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Magnification'] := AValue;
end;
procedure TFilterMagnify.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterPinch Implementation }
function TFilterPinch.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterPinch.GetRadius: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Radius']
else
Result := 0.0;
end;
function TFilterPinch.GetStrength: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TFilterPinch.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterPinch.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterPinch.SetRadius(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Radius'] := AValue;
end;
procedure TFilterPinch.SetStrength(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Strength'] := AValue;
end;
procedure TFilterPinch.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterRipple Implementation }
function TFilterRipple.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterRipple.GetAmplitude: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Amplitude']
else
Result := 0.0;
end;
function TFilterRipple.GetFrequency: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Frequency']
else
Result := 0.0;
end;
function TFilterRipple.GetPhase: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Phase']
else
Result := 0.0;
end;
function TFilterRipple.GetAspectRatio: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TFilterRipple.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterRipple.SetAmplitude(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Amplitude'] := AValue;
end;
procedure TFilterRipple.SetFrequency(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Frequency'] := AValue;
end;
procedure TFilterRipple.SetPhase(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Phase'] := AValue;
end;
procedure TFilterRipple.SetAspectRatio(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['AspectRatio'] := AValue;
end;
{ TFilterPerspectiveTransform Implementation }
function TFilterPerspectiveTransform.GetTopLeft: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['TopLeft']
else
Result := TPointF.Zero;
end;
function TFilterPerspectiveTransform.GetTopRight: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['TopRight']
else
Result := TPointF.Zero;
end;
function TFilterPerspectiveTransform.GetBottomRight: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['BottomRight']
else
Result := TPointF.Zero;
end;
function TFilterPerspectiveTransform.GetBottomLeft: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['BottomLeft']
else
Result := TPointF.Zero;
end;
procedure TFilterPerspectiveTransform.SetTopLeft(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['TopLeft'] := AValue;
end;
procedure TFilterPerspectiveTransform.SetTopRight(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['TopRight'] := AValue;
end;
procedure TFilterPerspectiveTransform.SetBottomRight(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['BottomRight'] := AValue;
end;
procedure TFilterPerspectiveTransform.SetBottomLeft(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['BottomLeft'] := AValue;
end;
{ TFilterCrop Implementation }
function TFilterCrop.GetLeftTop: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['LeftTop']
else
Result := TPointF.Zero;
end;
function TFilterCrop.GetRightBottom: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['RightBottom']
else
Result := TPointF.Zero;
end;
procedure TFilterCrop.SetLeftTop(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['LeftTop'] := AValue;
end;
procedure TFilterCrop.SetRightBottom(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['RightBottom'] := AValue;
end;
{ TFilterAffineTransform Implementation }
function TFilterAffineTransform.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterAffineTransform.GetRotation: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Rotation']
else
Result := 0.0;
end;
function TFilterAffineTransform.GetScale: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Scale']
else
Result := 0.0;
end;
procedure TFilterAffineTransform.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterAffineTransform.SetRotation(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Rotation'] := AValue;
end;
procedure TFilterAffineTransform.SetScale(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Scale'] := AValue;
end;
{ TFilterTiler Implementation }
function TFilterTiler.GetVerticalTileCount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['VerticalTileCount']
else
Result := 0.0;
end;
function TFilterTiler.GetHorizontalTileCount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['HorizontalTileCount']
else
Result := 0.0;
end;
function TFilterTiler.GetHorizontalOffset: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['HorizontalOffset']
else
Result := 0.0;
end;
function TFilterTiler.GetVerticalOffset: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['VerticalOffset']
else
Result := 0.0;
end;
procedure TFilterTiler.SetVerticalTileCount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['VerticalTileCount'] := AValue;
end;
procedure TFilterTiler.SetHorizontalTileCount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['HorizontalTileCount'] := AValue;
end;
procedure TFilterTiler.SetHorizontalOffset(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['HorizontalOffset'] := AValue;
end;
procedure TFilterTiler.SetVerticalOffset(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['VerticalOffset'] := AValue;
end;
{ TFilterDirectionalBlur Implementation }
function TFilterDirectionalBlur.GetAngle: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Angle']
else
Result := 0.0;
end;
function TFilterDirectionalBlur.GetBlurAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TFilterDirectionalBlur.SetAngle(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Angle'] := AValue;
end;
procedure TFilterDirectionalBlur.SetBlurAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BlurAmount'] := AValue;
end;
{ TFilterRadialBlur Implementation }
function TFilterRadialBlur.GetCenter: TPointF;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TFilterRadialBlur.GetBlurAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TFilterRadialBlur.SetCenter(AValue: TPointF);
begin
if FFilter <> nil then
FFilter.ValuesAsPoint['Center'] := AValue;
end;
procedure TFilterRadialBlur.SetBlurAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BlurAmount'] := AValue;
end;
{ TFilterGaussianBlur Implementation }
function TFilterGaussianBlur.GetBlurAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TFilterGaussianBlur.SetBlurAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BlurAmount'] := AValue;
end;
{ TFilterBoxBlur Implementation }
function TFilterBoxBlur.GetBlurAmount: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TFilterBoxBlur.SetBlurAmount(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BlurAmount'] := AValue;
end;
{ TFilterMaskToAlpha Implementation }
{ TFilterColorKeyAlpha Implementation }
function TFilterColorKeyAlpha.GetColorKey: TAlphaColor;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsColor['ColorKey']
else
Result := claNull;
end;
function TFilterColorKeyAlpha.GetTolerance: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Tolerance']
else
Result := 0.0;
end;
procedure TFilterColorKeyAlpha.SetColorKey(AValue: TAlphaColor);
begin
if FFilter <> nil then
FFilter.ValuesAsColor['ColorKey'] := AValue;
end;
procedure TFilterColorKeyAlpha.SetTolerance(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Tolerance'] := AValue;
end;
{ TFilterMonochrome Implementation }
{ TFilterInvert Implementation }
{ TFilterGloom Implementation }
function TFilterGloom.GetGloomIntensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['GloomIntensity']
else
Result := 0.0;
end;
function TFilterGloom.GetBaseIntensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BaseIntensity']
else
Result := 0.0;
end;
function TFilterGloom.GetGloomSaturation: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['GloomSaturation']
else
Result := 0.0;
end;
function TFilterGloom.GetBaseSaturation: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BaseSaturation']
else
Result := 0.0;
end;
procedure TFilterGloom.SetGloomIntensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['GloomIntensity'] := AValue;
end;
procedure TFilterGloom.SetBaseIntensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BaseIntensity'] := AValue;
end;
procedure TFilterGloom.SetGloomSaturation(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['GloomSaturation'] := AValue;
end;
procedure TFilterGloom.SetBaseSaturation(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BaseSaturation'] := AValue;
end;
{ TFilterHueAdjust Implementation }
function TFilterHueAdjust.GetHue: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Hue']
else
Result := 0.0;
end;
procedure TFilterHueAdjust.SetHue(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Hue'] := AValue;
end;
{ TFilterBloom Implementation }
function TFilterBloom.GetBloomIntensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BloomIntensity']
else
Result := 0.0;
end;
function TFilterBloom.GetBaseIntensity: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BaseIntensity']
else
Result := 0.0;
end;
function TFilterBloom.GetBloomSaturation: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BloomSaturation']
else
Result := 0.0;
end;
function TFilterBloom.GetBaseSaturation: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['BaseSaturation']
else
Result := 0.0;
end;
procedure TFilterBloom.SetBloomIntensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BloomIntensity'] := AValue;
end;
procedure TFilterBloom.SetBaseIntensity(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BaseIntensity'] := AValue;
end;
procedure TFilterBloom.SetBloomSaturation(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BloomSaturation'] := AValue;
end;
procedure TFilterBloom.SetBaseSaturation(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['BaseSaturation'] := AValue;
end;
{ TFilterContrast Implementation }
function TFilterContrast.GetBrightness: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Brightness']
else
Result := 0.0;
end;
function TFilterContrast.GetContrast: Single;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsFloat['Contrast']
else
Result := 0.0;
end;
procedure TFilterContrast.SetBrightness(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Brightness'] := AValue;
end;
procedure TFilterContrast.SetContrast(AValue: Single);
begin
if FFilter <> nil then
FFilter.ValuesAsFloat['Contrast'] := AValue;
end;
{ TFilterFill Implementation }
function TFilterFill.GetColor: TAlphaColor;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsColor['Color']
else
Result := claNull;
end;
procedure TFilterFill.SetColor(AValue: TAlphaColor);
begin
if FFilter <> nil then
FFilter.ValuesAsColor['Color'] := AValue;
end;
{ TFilterFillRGB Implementation }
function TFilterFillRGB.GetColor: TAlphaColor;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsColor['Color']
else
Result := claNull;
end;
procedure TFilterFillRGB.SetColor(AValue: TAlphaColor);
begin
if FFilter <> nil then
FFilter.ValuesAsColor['Color'] := AValue;
end;
{ TFilterNormalBlend Implementation }
function TFilterNormalBlend.GetTarget: TBitmap;
begin
if FFilter <> nil then
Result := FFilter.ValuesAsBitmap['Target']
else
Result := nil;
end;
procedure TFilterNormalBlend.SetTarget(const AValue: TBitmap);
begin
if FFilter <> nil then
FFilter.ValuesAsBitmap['Target'] := AValue;
end;
function TImageFXEffect.CreateFilter: TFilter;
var
FilterName: string;
begin
FEffectStyle := [TEffectStyle.DisablePaint];
FilterName := ClassName.Substring(1, 100);
Result := TFilterManager.FilterByName(FilterName.Substring(0, FilterName.Length - 6));
end;
{ TPixelateTransitionEffect Implementation }
constructor TPixelateTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TPixelateTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TPixelateTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TPixelateTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPixelateTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TPixelateTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TBrightTransitionEffect Implementation }
constructor TBrightTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TBrightTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TBrightTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TBrightTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBrightTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TBrightTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TSwirlTransitionEffect Implementation }
constructor TSwirlTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TSwirlTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TSwirlTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TSwirlTransitionEffect.GetStrength: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
procedure TSwirlTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwirlTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TSwirlTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TSwirlTransitionEffect.SetStrength(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Strength'] <> AValue then
begin
Filter.ValuesAsFloat['Strength'] := AValue;
UpdateParentEffects;
end;
end;
{ TDissolveTransitionEffect Implementation }
constructor TDissolveTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TDissolveTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TDissolveTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TDissolveTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TDissolveTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TDissolveTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TDissolveTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TDissolveTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TBloodTransitionEffect Implementation }
constructor TBloodTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TBloodTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TBloodTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TBloodTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TBloodTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBloodTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TBloodTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TBloodTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TBlurTransitionEffect Implementation }
constructor TBlurTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TBlurTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TBlurTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TBlurTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBlurTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TBlurTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TDropTransitionEffect Implementation }
constructor TDropTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TDropTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TDropTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TDropTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TDropTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TDropTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TDropTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TDropTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TCrumpleTransitionEffect Implementation }
constructor TCrumpleTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TCrumpleTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TCrumpleTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TCrumpleTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TCrumpleTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TCrumpleTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TCrumpleTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TCrumpleTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TWaterTransitionEffect Implementation }
constructor TWaterTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TWaterTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TWaterTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TWaterTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TWaterTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWaterTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TWaterTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TWaterTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TBandedSwirlTransitionEffect Implementation }
constructor TBandedSwirlTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TBandedSwirlTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TBandedSwirlTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TBandedSwirlTransitionEffect.GetStrength: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TBandedSwirlTransitionEffect.GetFrequency: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Frequency']
else
Result := 0.0;
end;
function TBandedSwirlTransitionEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TBandedSwirlTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TBandedSwirlTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TBandedSwirlTransitionEffect.SetStrength(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Strength'] <> AValue then
begin
Filter.ValuesAsFloat['Strength'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlTransitionEffect.SetFrequency(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Frequency'] <> AValue then
begin
Filter.ValuesAsFloat['Frequency'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlTransitionEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
{ TSwipeTransitionEffect Implementation }
constructor TSwipeTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
FBack := TBitmap.Create(0, 0);
FBack.OnChange := BackChanged;
end;
destructor TSwipeTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
FreeAndNil(FBack);
inherited Destroy;
end;
function TSwipeTransitionEffect.GetMousePoint: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['MousePoint']
else
Result := TPointF.Zero;
end;
function TSwipeTransitionEffect.GetCornerPoint: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['CornerPoint']
else
Result := TPointF.Zero;
end;
function TSwipeTransitionEffect.GetDeep: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Deep']
else
Result := 0.0;
end;
procedure TSwipeTransitionEffect.SetMousePoint(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['MousePoint'] <> AValue then
begin
Filter.ValuesAsPoint['MousePoint'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwipeTransitionEffect.SetCornerPoint(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['CornerPoint'] <> AValue then
begin
Filter.ValuesAsPoint['CornerPoint'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwipeTransitionEffect.SetDeep(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Deep'] <> AValue then
begin
Filter.ValuesAsFloat['Deep'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwipeTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TSwipeTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TSwipeTransitionEffect.BackChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Back'] := FBack;
UpdateParentEffects;
end;
procedure TSwipeTransitionEffect.SetBack(const AValue: TBitmap);
begin
FBack.Assign(AValue);
end;
{ TSlideTransitionEffect Implementation }
constructor TSlideTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TSlideTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TSlideTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TSlideTransitionEffect.GetSlideAmount: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['SlideAmount']
else
Result := TPointF.Zero;
end;
procedure TSlideTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSlideTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TSlideTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TSlideTransitionEffect.SetSlideAmount(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['SlideAmount'] <> AValue then
begin
Filter.ValuesAsPoint['SlideAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TMagnifyTransitionEffect Implementation }
constructor TMagnifyTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TMagnifyTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TMagnifyTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TMagnifyTransitionEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TMagnifyTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TMagnifyTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TMagnifyTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TMagnifyTransitionEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
{ TLineTransitionEffect Implementation }
constructor TLineTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TLineTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TLineTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TLineTransitionEffect.GetOrigin: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Origin']
else
Result := TPointF.Zero;
end;
function TLineTransitionEffect.GetNormal: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Normal']
else
Result := TPointF.Zero;
end;
function TLineTransitionEffect.GetOffsetProp: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['OffsetProp']
else
Result := TPointF.Zero;
end;
function TLineTransitionEffect.GetFuzzyAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['FuzzyAmount']
else
Result := 0.0;
end;
procedure TLineTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TLineTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TLineTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TLineTransitionEffect.SetOrigin(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Origin'] <> AValue then
begin
Filter.ValuesAsPoint['Origin'] := AValue;
UpdateParentEffects;
end;
end;
procedure TLineTransitionEffect.SetNormal(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Normal'] <> AValue then
begin
Filter.ValuesAsPoint['Normal'] := AValue;
UpdateParentEffects;
end;
end;
procedure TLineTransitionEffect.SetOffsetProp(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['OffsetProp'] <> AValue then
begin
Filter.ValuesAsPoint['OffsetProp'] := AValue;
UpdateParentEffects;
end;
end;
procedure TLineTransitionEffect.SetFuzzyAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['FuzzyAmount'] <> AValue then
begin
Filter.ValuesAsFloat['FuzzyAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TRotateCrumpleTransitionEffect Implementation }
constructor TRotateCrumpleTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TRotateCrumpleTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TRotateCrumpleTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TRotateCrumpleTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TRotateCrumpleTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRotateCrumpleTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TRotateCrumpleTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TRotateCrumpleTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TRippleTransitionEffect Implementation }
constructor TRippleTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TRippleTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TRippleTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TRippleTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRippleTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TRippleTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TCircleTransitionEffect Implementation }
constructor TCircleTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TCircleTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TCircleTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TCircleTransitionEffect.GetFuzzyAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['FuzzyAmount']
else
Result := 0.0;
end;
function TCircleTransitionEffect.GetCircleSize: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['CircleSize']
else
Result := 0.0;
end;
function TCircleTransitionEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
procedure TCircleTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TCircleTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TCircleTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TCircleTransitionEffect.SetFuzzyAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['FuzzyAmount'] <> AValue then
begin
Filter.ValuesAsFloat['FuzzyAmount'] := AValue;
UpdateParentEffects;
end;
end;
procedure TCircleTransitionEffect.SetCircleSize(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['CircleSize'] <> AValue then
begin
Filter.ValuesAsFloat['CircleSize'] := AValue;
UpdateParentEffects;
end;
end;
procedure TCircleTransitionEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
{ TWiggleTransitionEffect Implementation }
constructor TWiggleTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TWiggleTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TWiggleTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TWiggleTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TWiggleTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWiggleTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TWiggleTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TWiggleTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TSaturateTransitionEffect Implementation }
constructor TSaturateTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TSaturateTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TSaturateTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TSaturateTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSaturateTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TSaturateTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TWaveTransitionEffect Implementation }
constructor TWaveTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TWaveTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TWaveTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TWaveTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWaveTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TWaveTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TFadeTransitionEffect Implementation }
constructor TFadeTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TFadeTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TFadeTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
procedure TFadeTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TFadeTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TFadeTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
{ TBlindTransitionEffect Implementation }
constructor TBlindTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TBlindTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TBlindTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TBlindTransitionEffect.GetNumberOfBlinds: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['NumberOfBlinds']
else
Result := 0.0;
end;
procedure TBlindTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBlindTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TBlindTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TBlindTransitionEffect.SetNumberOfBlinds(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['NumberOfBlinds'] <> AValue then
begin
Filter.ValuesAsFloat['NumberOfBlinds'] := AValue;
UpdateParentEffects;
end;
end;
{ TShapeTransitionEffect Implementation }
constructor TShapeTransitionEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TShapeTransitionEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
function TShapeTransitionEffect.GetProgress: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Progress']
else
Result := 0.0;
end;
function TShapeTransitionEffect.GetRandomSeed: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RandomSeed']
else
Result := 0.0;
end;
procedure TShapeTransitionEffect.SetProgress(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Progress'] <> AValue then
begin
Filter.ValuesAsFloat['Progress'] := AValue;
UpdateParentEffects;
end;
end;
procedure TShapeTransitionEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TShapeTransitionEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure TShapeTransitionEffect.SetRandomSeed(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RandomSeed'] <> AValue then
begin
Filter.ValuesAsFloat['RandomSeed'] := AValue;
UpdateParentEffects;
end;
end;
{ TPencilStrokeEffect Implementation }
constructor TPencilStrokeEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TPencilStrokeEffect.Destroy;
begin
inherited Destroy;
end;
function TPencilStrokeEffect.GetbrushSize: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['brushSize']
else
Result := 0.0;
end;
procedure TPencilStrokeEffect.SetbrushSize(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['brushSize'] <> AValue then
begin
Filter.ValuesAsFloat['brushSize'] := AValue;
UpdateParentEffects;
end;
end;
{ TSharpenEffect Implementation }
constructor TSharpenEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TSharpenEffect.Destroy;
begin
inherited Destroy;
end;
function TSharpenEffect.GetAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
procedure TSharpenEffect.SetAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Amount'] <> AValue then
begin
Filter.ValuesAsFloat['Amount'] := AValue;
UpdateParentEffects;
end;
end;
{ TEmbossEffect Implementation }
constructor TEmbossEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TEmbossEffect.Destroy;
begin
inherited Destroy;
end;
function TEmbossEffect.GetAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
function TEmbossEffect.GetWidth: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Width']
else
Result := 0.0;
end;
procedure TEmbossEffect.SetAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Amount'] <> AValue then
begin
Filter.ValuesAsFloat['Amount'] := AValue;
UpdateParentEffects;
end;
end;
procedure TEmbossEffect.SetWidth(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Width'] <> AValue then
begin
Filter.ValuesAsFloat['Width'] := AValue;
UpdateParentEffects;
end;
end;
{ TSepiaEffect Implementation }
constructor TSepiaEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TSepiaEffect.Destroy;
begin
inherited Destroy;
end;
function TSepiaEffect.GetAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Amount']
else
Result := 0.0;
end;
procedure TSepiaEffect.SetAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Amount'] <> AValue then
begin
Filter.ValuesAsFloat['Amount'] := AValue;
UpdateParentEffects;
end;
end;
{ TPaperSketchEffect Implementation }
constructor TPaperSketchEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TPaperSketchEffect.Destroy;
begin
inherited Destroy;
end;
function TPaperSketchEffect.GetbrushSize: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['brushSize']
else
Result := 0.0;
end;
procedure TPaperSketchEffect.SetbrushSize(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['brushSize'] <> AValue then
begin
Filter.ValuesAsFloat['brushSize'] := AValue;
UpdateParentEffects;
end;
end;
{ TPixelateEffect Implementation }
constructor TPixelateEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TPixelateEffect.Destroy;
begin
inherited Destroy;
end;
function TPixelateEffect.GetBlockCount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BlockCount']
else
Result := 0.0;
end;
procedure TPixelateEffect.SetBlockCount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BlockCount'] <> AValue then
begin
Filter.ValuesAsFloat['BlockCount'] := AValue;
UpdateParentEffects;
end;
end;
{ TToonEffect Implementation }
constructor TToonEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TToonEffect.Destroy;
begin
inherited Destroy;
end;
function TToonEffect.GetLevels: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Levels']
else
Result := 0.0;
end;
procedure TToonEffect.SetLevels(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Levels'] <> AValue then
begin
Filter.ValuesAsFloat['Levels'] := AValue;
UpdateParentEffects;
end;
end;
{ TWaveEffect Implementation }
constructor TWaveEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TWaveEffect.Destroy;
begin
inherited Destroy;
end;
function TWaveEffect.GetTime: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Time']
else
Result := 0.0;
end;
function TWaveEffect.GetWaveSize: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['WaveSize']
else
Result := 0.0;
end;
procedure TWaveEffect.SetTime(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Time'] <> AValue then
begin
Filter.ValuesAsFloat['Time'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWaveEffect.SetWaveSize(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['WaveSize'] <> AValue then
begin
Filter.ValuesAsFloat['WaveSize'] := AValue;
UpdateParentEffects;
end;
end;
{ TBandedSwirlEffect Implementation }
constructor TBandedSwirlEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TBandedSwirlEffect.Destroy;
begin
inherited Destroy;
end;
function TBandedSwirlEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TBandedSwirlEffect.GetBands: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Bands']
else
Result := 0.0;
end;
function TBandedSwirlEffect.GetStrength: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TBandedSwirlEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TBandedSwirlEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlEffect.SetBands(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Bands'] <> AValue then
begin
Filter.ValuesAsFloat['Bands'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlEffect.SetStrength(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Strength'] <> AValue then
begin
Filter.ValuesAsFloat['Strength'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandedSwirlEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TSmoothMagnifyEffect Implementation }
constructor TSmoothMagnifyEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TSmoothMagnifyEffect.Destroy;
begin
inherited Destroy;
end;
function TSmoothMagnifyEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TSmoothMagnifyEffect.GetInnerRadius: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['InnerRadius']
else
Result := 0.0;
end;
function TSmoothMagnifyEffect.GetOuterRadius: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['OuterRadius']
else
Result := 0.0;
end;
function TSmoothMagnifyEffect.GetMagnification: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Magnification']
else
Result := 0.0;
end;
function TSmoothMagnifyEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TSmoothMagnifyEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSmoothMagnifyEffect.SetInnerRadius(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['InnerRadius'] <> AValue then
begin
Filter.ValuesAsFloat['InnerRadius'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSmoothMagnifyEffect.SetOuterRadius(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['OuterRadius'] <> AValue then
begin
Filter.ValuesAsFloat['OuterRadius'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSmoothMagnifyEffect.SetMagnification(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Magnification'] <> AValue then
begin
Filter.ValuesAsFloat['Magnification'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSmoothMagnifyEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TWrapEffect Implementation }
constructor TWrapEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TWrapEffect.Destroy;
begin
inherited Destroy;
end;
function TWrapEffect.GetLeftStart: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['LeftStart']
else
Result := 0.0;
end;
function TWrapEffect.GetLeftControl1: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['LeftControl1']
else
Result := 0.0;
end;
function TWrapEffect.GetLeftControl2: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['LeftControl2']
else
Result := 0.0;
end;
function TWrapEffect.GetLeftEnd: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['LeftEnd']
else
Result := 0.0;
end;
function TWrapEffect.GetRightStart: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RightStart']
else
Result := 0.0;
end;
function TWrapEffect.GetRightControl1: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RightControl1']
else
Result := 0.0;
end;
function TWrapEffect.GetRightControl2: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RightControl2']
else
Result := 0.0;
end;
function TWrapEffect.GetRightEnd: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['RightEnd']
else
Result := 0.0;
end;
procedure TWrapEffect.SetLeftStart(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['LeftStart'] <> AValue then
begin
Filter.ValuesAsFloat['LeftStart'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetLeftControl1(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['LeftControl1'] <> AValue then
begin
Filter.ValuesAsFloat['LeftControl1'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetLeftControl2(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['LeftControl2'] <> AValue then
begin
Filter.ValuesAsFloat['LeftControl2'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetLeftEnd(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['LeftEnd'] <> AValue then
begin
Filter.ValuesAsFloat['LeftEnd'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetRightStart(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RightStart'] <> AValue then
begin
Filter.ValuesAsFloat['RightStart'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetRightControl1(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RightControl1'] <> AValue then
begin
Filter.ValuesAsFloat['RightControl1'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetRightControl2(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RightControl2'] <> AValue then
begin
Filter.ValuesAsFloat['RightControl2'] := AValue;
UpdateParentEffects;
end;
end;
procedure TWrapEffect.SetRightEnd(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['RightEnd'] <> AValue then
begin
Filter.ValuesAsFloat['RightEnd'] := AValue;
UpdateParentEffects;
end;
end;
{ TSwirlEffect Implementation }
constructor TSwirlEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TSwirlEffect.Destroy;
begin
inherited Destroy;
end;
function TSwirlEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TSwirlEffect.GetSpiralStrength: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['SpiralStrength']
else
Result := 0.0;
end;
function TSwirlEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TSwirlEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwirlEffect.SetSpiralStrength(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['SpiralStrength'] <> AValue then
begin
Filter.ValuesAsFloat['SpiralStrength'] := AValue;
UpdateParentEffects;
end;
end;
procedure TSwirlEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TBandsEffect Implementation }
constructor TBandsEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TBandsEffect.Destroy;
begin
inherited Destroy;
end;
function TBandsEffect.GetBandDensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BandDensity']
else
Result := 0.0;
end;
function TBandsEffect.GetBandIntensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BandIntensity']
else
Result := 0.0;
end;
procedure TBandsEffect.SetBandDensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BandDensity'] <> AValue then
begin
Filter.ValuesAsFloat['BandDensity'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBandsEffect.SetBandIntensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BandIntensity'] <> AValue then
begin
Filter.ValuesAsFloat['BandIntensity'] := AValue;
UpdateParentEffects;
end;
end;
{ TMagnifyEffect Implementation }
constructor TMagnifyEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TMagnifyEffect.Destroy;
begin
inherited Destroy;
end;
function TMagnifyEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TMagnifyEffect.GetRadius: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Radius']
else
Result := 0.0;
end;
function TMagnifyEffect.GetMagnification: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Magnification']
else
Result := 0.0;
end;
function TMagnifyEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TMagnifyEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TMagnifyEffect.SetRadius(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Radius'] <> AValue then
begin
Filter.ValuesAsFloat['Radius'] := AValue;
UpdateParentEffects;
end;
end;
procedure TMagnifyEffect.SetMagnification(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Magnification'] <> AValue then
begin
Filter.ValuesAsFloat['Magnification'] := AValue;
UpdateParentEffects;
end;
end;
procedure TMagnifyEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TPinchEffect Implementation }
constructor TPinchEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TPinchEffect.Destroy;
begin
inherited Destroy;
end;
function TPinchEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TPinchEffect.GetRadius: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Radius']
else
Result := 0.0;
end;
function TPinchEffect.GetStrength: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Strength']
else
Result := 0.0;
end;
function TPinchEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TPinchEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPinchEffect.SetRadius(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Radius'] <> AValue then
begin
Filter.ValuesAsFloat['Radius'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPinchEffect.SetStrength(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Strength'] <> AValue then
begin
Filter.ValuesAsFloat['Strength'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPinchEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TRippleEffect Implementation }
constructor TRippleEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TRippleEffect.Destroy;
begin
inherited Destroy;
end;
function TRippleEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TRippleEffect.GetAmplitude: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Amplitude']
else
Result := 0.0;
end;
function TRippleEffect.GetFrequency: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Frequency']
else
Result := 0.0;
end;
function TRippleEffect.GetPhase: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Phase']
else
Result := 0.0;
end;
function TRippleEffect.GetAspectRatio: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['AspectRatio']
else
Result := 0.0;
end;
procedure TRippleEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRippleEffect.SetAmplitude(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Amplitude'] <> AValue then
begin
Filter.ValuesAsFloat['Amplitude'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRippleEffect.SetFrequency(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Frequency'] <> AValue then
begin
Filter.ValuesAsFloat['Frequency'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRippleEffect.SetPhase(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Phase'] <> AValue then
begin
Filter.ValuesAsFloat['Phase'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRippleEffect.SetAspectRatio(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['AspectRatio'] <> AValue then
begin
Filter.ValuesAsFloat['AspectRatio'] := AValue;
UpdateParentEffects;
end;
end;
{ TPerspectiveTransformEffect Implementation }
constructor TPerspectiveTransformEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TPerspectiveTransformEffect.Destroy;
begin
inherited Destroy;
end;
function TPerspectiveTransformEffect.GetTopLeft: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['TopLeft']
else
Result := TPointF.Zero;
end;
function TPerspectiveTransformEffect.GetTopRight: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['TopRight']
else
Result := TPointF.Zero;
end;
function TPerspectiveTransformEffect.GetBottomRight: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['BottomRight']
else
Result := TPointF.Zero;
end;
function TPerspectiveTransformEffect.GetBottomLeft: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['BottomLeft']
else
Result := TPointF.Zero;
end;
procedure TPerspectiveTransformEffect.SetTopLeft(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['TopLeft'] <> AValue then
begin
Filter.ValuesAsPoint['TopLeft'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPerspectiveTransformEffect.SetTopRight(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['TopRight'] <> AValue then
begin
Filter.ValuesAsPoint['TopRight'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPerspectiveTransformEffect.SetBottomRight(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['BottomRight'] <> AValue then
begin
Filter.ValuesAsPoint['BottomRight'] := AValue;
UpdateParentEffects;
end;
end;
procedure TPerspectiveTransformEffect.SetBottomLeft(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['BottomLeft'] <> AValue then
begin
Filter.ValuesAsPoint['BottomLeft'] := AValue;
UpdateParentEffects;
end;
end;
{ TCropEffect Implementation }
constructor TCropEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TCropEffect.Destroy;
begin
inherited Destroy;
end;
function TCropEffect.GetLeftTop: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['LeftTop']
else
Result := TPointF.Zero;
end;
function TCropEffect.GetRightBottom: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['RightBottom']
else
Result := TPointF.Zero;
end;
procedure TCropEffect.SetLeftTop(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['LeftTop'] <> AValue then
begin
Filter.ValuesAsPoint['LeftTop'] := AValue;
UpdateParentEffects;
end;
end;
procedure TCropEffect.SetRightBottom(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['RightBottom'] <> AValue then
begin
Filter.ValuesAsPoint['RightBottom'] := AValue;
UpdateParentEffects;
end;
end;
{ TAffineTransformEffect Implementation }
constructor TAffineTransformEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TAffineTransformEffect.Destroy;
begin
inherited Destroy;
end;
function TAffineTransformEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TAffineTransformEffect.GetRotation: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Rotation']
else
Result := 0.0;
end;
function TAffineTransformEffect.GetScale: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Scale']
else
Result := 0.0;
end;
procedure TAffineTransformEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TAffineTransformEffect.SetRotation(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Rotation'] <> AValue then
begin
Filter.ValuesAsFloat['Rotation'] := AValue;
UpdateParentEffects;
end;
end;
procedure TAffineTransformEffect.SetScale(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Scale'] <> AValue then
begin
Filter.ValuesAsFloat['Scale'] := AValue;
UpdateParentEffects;
end;
end;
{ TTilerEffect Implementation }
constructor TTilerEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TTilerEffect.Destroy;
begin
inherited Destroy;
end;
function TTilerEffect.GetVerticalTileCount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['VerticalTileCount']
else
Result := 0.0;
end;
function TTilerEffect.GetHorizontalTileCount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['HorizontalTileCount']
else
Result := 0.0;
end;
function TTilerEffect.GetHorizontalOffset: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['HorizontalOffset']
else
Result := 0.0;
end;
function TTilerEffect.GetVerticalOffset: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['VerticalOffset']
else
Result := 0.0;
end;
procedure TTilerEffect.SetVerticalTileCount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['VerticalTileCount'] <> AValue then
begin
Filter.ValuesAsFloat['VerticalTileCount'] := AValue;
UpdateParentEffects;
end;
end;
procedure TTilerEffect.SetHorizontalTileCount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['HorizontalTileCount'] <> AValue then
begin
Filter.ValuesAsFloat['HorizontalTileCount'] := AValue;
UpdateParentEffects;
end;
end;
procedure TTilerEffect.SetHorizontalOffset(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['HorizontalOffset'] <> AValue then
begin
Filter.ValuesAsFloat['HorizontalOffset'] := AValue;
UpdateParentEffects;
end;
end;
procedure TTilerEffect.SetVerticalOffset(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['VerticalOffset'] <> AValue then
begin
Filter.ValuesAsFloat['VerticalOffset'] := AValue;
UpdateParentEffects;
end;
end;
{ TDirectionalBlurEffect Implementation }
constructor TDirectionalBlurEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TDirectionalBlurEffect.Destroy;
begin
inherited Destroy;
end;
function TDirectionalBlurEffect.GetAngle: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Angle']
else
Result := 0.0;
end;
function TDirectionalBlurEffect.GetBlurAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TDirectionalBlurEffect.SetAngle(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Angle'] <> AValue then
begin
Filter.ValuesAsFloat['Angle'] := AValue;
UpdateParentEffects;
end;
end;
procedure TDirectionalBlurEffect.SetBlurAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BlurAmount'] <> AValue then
begin
Filter.ValuesAsFloat['BlurAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TRadialBlurEffect Implementation }
constructor TRadialBlurEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TRadialBlurEffect.Destroy;
begin
inherited Destroy;
end;
function TRadialBlurEffect.GetCenter: TPointF;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsPoint['Center']
else
Result := TPointF.Zero;
end;
function TRadialBlurEffect.GetBlurAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TRadialBlurEffect.SetCenter(AValue: TPointF);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsPoint['Center'] <> AValue then
begin
Filter.ValuesAsPoint['Center'] := AValue;
UpdateParentEffects;
end;
end;
procedure TRadialBlurEffect.SetBlurAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BlurAmount'] <> AValue then
begin
Filter.ValuesAsFloat['BlurAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TGaussianBlurEffect Implementation }
constructor TGaussianBlurEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TGaussianBlurEffect.Destroy;
begin
inherited Destroy;
end;
function TGaussianBlurEffect.GetBlurAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TGaussianBlurEffect.SetBlurAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BlurAmount'] <> AValue then
begin
Filter.ValuesAsFloat['BlurAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TBoxBlurEffect Implementation }
constructor TBoxBlurEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TBoxBlurEffect.Destroy;
begin
inherited Destroy;
end;
function TBoxBlurEffect.GetBlurAmount: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BlurAmount']
else
Result := 0.0;
end;
procedure TBoxBlurEffect.SetBlurAmount(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BlurAmount'] <> AValue then
begin
Filter.ValuesAsFloat['BlurAmount'] := AValue;
UpdateParentEffects;
end;
end;
{ TMaskToAlphaEffect Implementation }
constructor TMaskToAlphaEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TMaskToAlphaEffect.Destroy;
begin
inherited Destroy;
end;
{ TColorKeyAlphaEffect Implementation }
constructor TColorKeyAlphaEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TColorKeyAlphaEffect.Destroy;
begin
inherited Destroy;
end;
function TColorKeyAlphaEffect.GetColorKey: TAlphaColor;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsColor['ColorKey']
else
Result := claNull;
end;
function TColorKeyAlphaEffect.GetTolerance: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Tolerance']
else
Result := 0.0;
end;
procedure TColorKeyAlphaEffect.SetColorKey(AValue: TAlphaColor);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsColor['ColorKey'] <> AValue then
begin
Filter.ValuesAsColor['ColorKey'] := AValue;
UpdateParentEffects;
end;
end;
procedure TColorKeyAlphaEffect.SetTolerance(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Tolerance'] <> AValue then
begin
Filter.ValuesAsFloat['Tolerance'] := AValue;
UpdateParentEffects;
end;
end;
{ TMonochromeEffect Implementation }
constructor TMonochromeEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TMonochromeEffect.Destroy;
begin
inherited Destroy;
end;
{ TInvertEffect Implementation }
constructor TInvertEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TInvertEffect.Destroy;
begin
inherited Destroy;
end;
{ TGloomEffect Implementation }
constructor TGloomEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TGloomEffect.Destroy;
begin
inherited Destroy;
end;
function TGloomEffect.GetGloomIntensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['GloomIntensity']
else
Result := 0.0;
end;
function TGloomEffect.GetBaseIntensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BaseIntensity']
else
Result := 0.0;
end;
function TGloomEffect.GetGloomSaturation: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['GloomSaturation']
else
Result := 0.0;
end;
function TGloomEffect.GetBaseSaturation: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BaseSaturation']
else
Result := 0.0;
end;
procedure TGloomEffect.SetGloomIntensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['GloomIntensity'] <> AValue then
begin
Filter.ValuesAsFloat['GloomIntensity'] := AValue;
UpdateParentEffects;
end;
end;
procedure TGloomEffect.SetBaseIntensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BaseIntensity'] <> AValue then
begin
Filter.ValuesAsFloat['BaseIntensity'] := AValue;
UpdateParentEffects;
end;
end;
procedure TGloomEffect.SetGloomSaturation(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['GloomSaturation'] <> AValue then
begin
Filter.ValuesAsFloat['GloomSaturation'] := AValue;
UpdateParentEffects;
end;
end;
procedure TGloomEffect.SetBaseSaturation(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BaseSaturation'] <> AValue then
begin
Filter.ValuesAsFloat['BaseSaturation'] := AValue;
UpdateParentEffects;
end;
end;
{ THueAdjustEffect Implementation }
constructor THueAdjustEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor THueAdjustEffect.Destroy;
begin
inherited Destroy;
end;
function THueAdjustEffect.GetHue: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Hue']
else
Result := 0.0;
end;
procedure THueAdjustEffect.SetHue(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Hue'] <> AValue then
begin
Filter.ValuesAsFloat['Hue'] := AValue;
UpdateParentEffects;
end;
end;
{ TBloomEffect Implementation }
constructor TBloomEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TBloomEffect.Destroy;
begin
inherited Destroy;
end;
function TBloomEffect.GetBloomIntensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BloomIntensity']
else
Result := 0.0;
end;
function TBloomEffect.GetBaseIntensity: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BaseIntensity']
else
Result := 0.0;
end;
function TBloomEffect.GetBloomSaturation: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BloomSaturation']
else
Result := 0.0;
end;
function TBloomEffect.GetBaseSaturation: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['BaseSaturation']
else
Result := 0.0;
end;
procedure TBloomEffect.SetBloomIntensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BloomIntensity'] <> AValue then
begin
Filter.ValuesAsFloat['BloomIntensity'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBloomEffect.SetBaseIntensity(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BaseIntensity'] <> AValue then
begin
Filter.ValuesAsFloat['BaseIntensity'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBloomEffect.SetBloomSaturation(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BloomSaturation'] <> AValue then
begin
Filter.ValuesAsFloat['BloomSaturation'] := AValue;
UpdateParentEffects;
end;
end;
procedure TBloomEffect.SetBaseSaturation(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['BaseSaturation'] <> AValue then
begin
Filter.ValuesAsFloat['BaseSaturation'] := AValue;
UpdateParentEffects;
end;
end;
{ TContrastEffect Implementation }
constructor TContrastEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TContrastEffect.Destroy;
begin
inherited Destroy;
end;
function TContrastEffect.GetBrightness: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Brightness']
else
Result := 0.0;
end;
function TContrastEffect.GetContrast: Single;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsFloat['Contrast']
else
Result := 0.0;
end;
procedure TContrastEffect.SetBrightness(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Brightness'] <> AValue then
begin
Filter.ValuesAsFloat['Brightness'] := AValue;
UpdateParentEffects;
end;
end;
procedure TContrastEffect.SetContrast(AValue: Single);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsFloat['Contrast'] <> AValue then
begin
Filter.ValuesAsFloat['Contrast'] := AValue;
UpdateParentEffects;
end;
end;
{ TFillEffect Implementation }
constructor TFillEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TFillEffect.Destroy;
begin
inherited Destroy;
end;
function TFillEffect.GetColor: TAlphaColor;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsColor['Color']
else
Result := claNull;
end;
procedure TFillEffect.SetColor(AValue: TAlphaColor);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsColor['Color'] <> AValue then
begin
Filter.ValuesAsColor['Color'] := AValue;
UpdateParentEffects;
end;
end;
{ TFillRGBEffect Implementation }
constructor TFillRGBEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
end;
destructor TFillRGBEffect.Destroy;
begin
inherited Destroy;
end;
function TFillRGBEffect.GetColor: TAlphaColor;
begin
if Assigned(Filter) then
Result := Filter.ValuesAsColor['Color']
else
Result := claNull;
end;
procedure TFillRGBEffect.SetColor(AValue: TAlphaColor);
begin
if not Assigned(Filter) then Exit;
if Filter.ValuesAsColor['Color'] <> AValue then
begin
Filter.ValuesAsColor['Color'] := AValue;
UpdateParentEffects;
end;
end;
{ TNormalBlendEffect Implementation }
constructor TNormalBlendEffect.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FTarget := TBitmap.Create(0, 0);
FTarget.OnChange := TargetChanged;
end;
destructor TNormalBlendEffect.Destroy;
begin
FreeAndNil(FTarget);
inherited Destroy;
end;
procedure TNormalBlendEffect.TargetChanged(Sender: TObject);
begin
if not Assigned(Filter) then Exit;
Filter.ValuesAsBitmap['Target'] := FTarget;
UpdateParentEffects;
end;
procedure TNormalBlendEffect.SetTarget(const AValue: TBitmap);
begin
FTarget.Assign(AValue);
end;
procedure Register;
begin
RegisterNoIcon([TPixelateTransitionEffect]);
RegisterNoIcon([TBrightTransitionEffect]);
RegisterNoIcon([TSwirlTransitionEffect]);
RegisterNoIcon([TDissolveTransitionEffect]);
RegisterNoIcon([TBloodTransitionEffect]);
RegisterNoIcon([TBlurTransitionEffect]);
RegisterNoIcon([TDropTransitionEffect]);
RegisterNoIcon([TCrumpleTransitionEffect]);
RegisterNoIcon([TWaterTransitionEffect]);
RegisterNoIcon([TBandedSwirlTransitionEffect]);
RegisterNoIcon([TSwipeTransitionEffect]);
RegisterNoIcon([TSlideTransitionEffect]);
RegisterNoIcon([TMagnifyTransitionEffect]);
RegisterNoIcon([TLineTransitionEffect]);
RegisterNoIcon([TRotateCrumpleTransitionEffect]);
RegisterNoIcon([TRippleTransitionEffect]);
RegisterNoIcon([TCircleTransitionEffect]);
RegisterNoIcon([TWiggleTransitionEffect]);
RegisterNoIcon([TSaturateTransitionEffect]);
RegisterNoIcon([TWaveTransitionEffect]);
RegisterNoIcon([TFadeTransitionEffect]);
RegisterNoIcon([TBlindTransitionEffect]);
RegisterNoIcon([TShapeTransitionEffect]);
RegisterNoIcon([TPencilStrokeEffect]);
RegisterNoIcon([TSharpenEffect]);
RegisterNoIcon([TEmbossEffect]);
RegisterNoIcon([TSepiaEffect]);
RegisterNoIcon([TPaperSketchEffect]);
RegisterNoIcon([TPixelateEffect]);
RegisterNoIcon([TToonEffect]);
RegisterNoIcon([TWaveEffect]);
RegisterNoIcon([TBandedSwirlEffect]);
RegisterNoIcon([TSmoothMagnifyEffect]);
RegisterNoIcon([TWrapEffect]);
RegisterNoIcon([TSwirlEffect]);
RegisterNoIcon([TBandsEffect]);
RegisterNoIcon([TMagnifyEffect]);
RegisterNoIcon([TPinchEffect]);
RegisterNoIcon([TRippleEffect]);
RegisterNoIcon([TPerspectiveTransformEffect]);
RegisterNoIcon([TCropEffect]);
RegisterNoIcon([TAffineTransformEffect]);
RegisterNoIcon([TTilerEffect]);
RegisterNoIcon([TDirectionalBlurEffect]);
RegisterNoIcon([TRadialBlurEffect]);
RegisterNoIcon([TGaussianBlurEffect]);
RegisterNoIcon([TBoxBlurEffect]);
RegisterNoIcon([TMaskToAlphaEffect]);
RegisterNoIcon([TColorKeyAlphaEffect]);
RegisterNoIcon([TMonochromeEffect]);
RegisterNoIcon([TInvertEffect]);
RegisterNoIcon([TGloomEffect]);
RegisterNoIcon([THueAdjustEffect]);
RegisterNoIcon([TBloomEffect]);
RegisterNoIcon([TContrastEffect]);
RegisterNoIcon([TFillEffect]);
RegisterNoIcon([TFillRGBEffect]);
RegisterNoIcon([TNormalBlendEffect]);
end;
initialization
StartClassGroup(TFmxObject);
ActivateClassGroup(TFmxObject);
RegisterClasses([TPixelateTransitionEffect]);
RegisterClasses([TBrightTransitionEffect]);
RegisterClasses([TSwirlTransitionEffect]);
RegisterClasses([TDissolveTransitionEffect]);
RegisterClasses([TBloodTransitionEffect]);
RegisterClasses([TBlurTransitionEffect]);
RegisterClasses([TDropTransitionEffect]);
RegisterClasses([TCrumpleTransitionEffect]);
RegisterClasses([TWaterTransitionEffect]);
RegisterClasses([TBandedSwirlTransitionEffect]);
RegisterClasses([TSwipeTransitionEffect]);
RegisterClasses([TSlideTransitionEffect]);
RegisterClasses([TMagnifyTransitionEffect]);
RegisterClasses([TLineTransitionEffect]);
RegisterClasses([TRotateCrumpleTransitionEffect]);
RegisterClasses([TRippleTransitionEffect]);
RegisterClasses([TCircleTransitionEffect]);
RegisterClasses([TWiggleTransitionEffect]);
RegisterClasses([TSaturateTransitionEffect]);
RegisterClasses([TWaveTransitionEffect]);
RegisterClasses([TFadeTransitionEffect]);
RegisterClasses([TBlindTransitionEffect]);
RegisterClasses([TShapeTransitionEffect]);
RegisterClasses([TPencilStrokeEffect]);
RegisterClasses([TSharpenEffect]);
RegisterClasses([TEmbossEffect]);
RegisterClasses([TSepiaEffect]);
RegisterClasses([TPaperSketchEffect]);
RegisterClasses([TPixelateEffect]);
RegisterClasses([TToonEffect]);
RegisterClasses([TWaveEffect]);
RegisterClasses([TBandedSwirlEffect]);
RegisterClasses([TSmoothMagnifyEffect]);
RegisterClasses([TWrapEffect]);
RegisterClasses([TSwirlEffect]);
RegisterClasses([TBandsEffect]);
RegisterClasses([TMagnifyEffect]);
RegisterClasses([TPinchEffect]);
RegisterClasses([TRippleEffect]);
RegisterClasses([TPerspectiveTransformEffect]);
RegisterClasses([TCropEffect]);
RegisterClasses([TAffineTransformEffect]);
RegisterClasses([TTilerEffect]);
RegisterClasses([TDirectionalBlurEffect]);
RegisterClasses([TRadialBlurEffect]);
RegisterClasses([TGaussianBlurEffect]);
RegisterClasses([TBoxBlurEffect]);
RegisterClasses([TMaskToAlphaEffect]);
RegisterClasses([TColorKeyAlphaEffect]);
RegisterClasses([TMonochromeEffect]);
RegisterClasses([TInvertEffect]);
RegisterClasses([TGloomEffect]);
RegisterClasses([THueAdjustEffect]);
RegisterClasses([TBloomEffect]);
RegisterClasses([TContrastEffect]);
RegisterClasses([TFillEffect]);
RegisterClasses([TFillRGBEffect]);
RegisterClasses([TNormalBlendEffect]);
end.
| 28.217275 | 223 | 0.72026 |
f14d8c2d45e8c906d966c9cb03d548b5b13a5b2c
| 320 |
pas
|
Pascal
|
src/OZDMUnit.pas
|
xackery/openzone
|
c9d4c91515ea10a206cefe3f104c730ad4abcc02
|
[
"MIT"
] | null | null | null |
src/OZDMUnit.pas
|
xackery/openzone
|
c9d4c91515ea10a206cefe3f104c730ad4abcc02
|
[
"MIT"
] | null | null | null |
src/OZDMUnit.pas
|
xackery/openzone
|
c9d4c91515ea10a206cefe3f104c730ad4abcc02
|
[
"MIT"
] | null | null | null |
unit OZDMUnit;
interface
uses
SysUtils, Classes, ClearTypeText;
type
TDataModule1 = class(TDataModule)
ClearTypeText: TClearTypeText;
private
{ Private declarations }
public
{ Public declarations }
end;
var
DataModule1: TDataModule1;
implementation
{$R *.dfm}
end.
| 12.8 | 36 | 0.6625 |
f1b760e888953e3838aad82ce4d6b5eb2f89c645
| 261 |
pas
|
Pascal
|
src/stwvTreinInfo.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | null | null | null |
src/stwvTreinInfo.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | 4 |
2015-01-27T21:45:53.000Z
|
2015-03-26T20:04:29.000Z
|
src/stwvTreinInfo.pas
|
dgoedkoop/stwsim
|
bb40b2850aa73cbd244ae3ea0679ac33f86a00ab
|
[
"FSFAP"
] | null | null | null |
unit stwvTreinInfo;
interface
type
TVertragingSoort = (vsSchatting, vsExact);
TvTreinInfo = record
Treinnummer: string;
Vertraging: integer;
Vertragingsoort: TVertragingSoort;
Vertragingplaats: string;
end;
implementation
end.
| 15.352941 | 44 | 0.720307 |
851e30460ca3d82ffac95e5536bff300ae5c3fc3
| 6,852 |
pas
|
Pascal
|
SMCoreTempDelphiReader.pas
|
opteris/CoreTempCheck
|
1cae255b23017074c34575e684861a0d3e73452d
|
[
"MIT"
] | null | null | null |
SMCoreTempDelphiReader.pas
|
opteris/CoreTempCheck
|
1cae255b23017074c34575e684861a0d3e73452d
|
[
"MIT"
] | null | null | null |
SMCoreTempDelphiReader.pas
|
opteris/CoreTempCheck
|
1cae255b23017074c34575e684861a0d3e73452d
|
[
"MIT"
] | null | null | null |
// Core Temp reader for Icinga
// Copyright (c) 2015 Michal Krowicki
// https://krowicki.pl
program SMCoreTempDelphiReader;
{$MODE Delphi}
{$APPTYPE CONSOLE}
uses
Windows,
SysUtils,
GetCoreTempInfoDelphi in 'GetCoreTempInfoDelphi.pas';
var
Data: CORE_TEMP_SHARED_DATA;
CPU, Core, Index: Cardinal;
Degree: Char;
OutputMsg, param, CPUPerfName, CorePerfName: String;
Temp: Single;
FreqMin, FreqMax, VoltMin, VoltMax, TempWarn, TempCrit, LoadWarn, LoadCrit, i, ExitStatus: Integer;
FreqMinStr, FreqMaxStr, VoltMinStr, VoltMaxStr, TempWarnStr, TempCritStr, LoadWarnStr, LoadCritStr: String;
const
STATUS_OK = 0;
STATUS_WARN = 1;
STATUS_CRIT = 2;
STATUS_UNKNOWN = 3;
function StringToOem(const Str: string): AnsiString;
begin
Result := AnsiString(Str);
if Length(Result) > 0 then
CharToOemA(PAnsiChar(Result), PAnsiChar(Result));
end;
function StringToCaseSelect
(Selector : string;
CaseList: array of string): Integer;
var cnt: integer;
begin
Result:=-1;
for cnt:=0 to Length(CaseList)-1 do
begin
if CompareText(Selector, CaseList[cnt]) = 0 then
begin
Result:=cnt;
Break;
end;
end;
end;
function GetParam(const Param: string): string;
var parpos: integer;
begin
parpos:=Pos(':',Param);
if(parpos > 1) then
Result:=LeftStr(param,parpos)
else
Result:=Param;
end;
function GetParamValue(const Param: string): string;
var parpos: integer;
begin
parpos:=Pos(':',Param);
if(parpos > 1) then
begin
// writeln('param="' + param + '" parpos="' + IntToStr(parpos) + '" ' + RightStr(param,Length(Param)-parpos));
Result:=RightStr(param,Length(Param)-parpos);
end
else
Result:='';
end;
{
STATUS_OK = 0;
STATUS_WARN = 1;
STATUS_CRIT = 2;
STATUS_UNKNOWN = 3;
}
begin
ExitStatus := STATUS_UNKNOWN;
try
if fnGetCoreTempInfo(Data) then
begin
FreqMin := 0;
FreqMax := 0;
VoltMin := 0;
VoltMax := 0;
TempWarn := 0;
TempCrit := 0;
LoadWarn := 0;
LoadCrit := 0;
for i := 0 to ParamCount do
begin
param :=ParamStr(i);
case StringToCaseSelect(GetParam(param),['-fmin:','-fmax:','-vmin:','-vmax:','-twarn:','-tcrit:','-lwarn:','-lcrit:']) of
0:FreqMin := StrToInt(GetParamValue(param));
1:FreqMax := StrToInt(GetParamValue(param));
2:VoltMin := StrToInt(GetParamValue(param));
3:VoltMax := StrToInt(GetParamValue(param));
4:TempWarn := StrToInt(GetParamValue(param));
5:TempCrit := StrToInt(GetParamValue(param));
6:LoadWarn := StrToInt(GetParamValue(param));
7:LoadCrit := StrToInt(GetParamValue(param));
end;
end;
if(FreqMin > 0) then FreqMinStr := IntToStr(FreqMin);
if(FreqMax > 0) then FreqMaxStr := IntToStr(FreqMax);
if(VoltMin > 0) then VoltMinStr := IntToStr(VoltMin);
if(VoltMax > 0) then VoltMaxStr := IntToStr(VoltMax);
if(TempWarn > 0) then TempWarnStr := IntToStr(TempWarn);
if(TempCrit > 0) then TempCritStr := IntToStr(TempCrit);
if(LoadWarn > 0) then LoadWarnStr := IntToStr(LoadWarn);
if(LoadCrit > 0) then LoadCritStr := IntToStr(LoadCrit);
OutputMsg := 'Processor ' + Data.sCPUName;
if Data.uiCPUCnt > 1 then
OutputMsg += IntToStr(Data.uiCPUCnt)+' CPUs, '
else
OutputMsg += IntToStr(Data.uiCPUCnt)+' CPU, ';
if (Data.uiCoreCnt > 1) then
OutputMsg += IntToStr(Data.uiCoreCnt) + ' cores, '
else
OutputMsg += IntToStr(Data.uiCoreCnt)+' core, ';
OutputMsg += 'speed ' + FloatToStrF(Data.fCPUSpeed, ffFixed, 7, 0) + 'MHz';
OutputMsg += ' (' + FloatToStrF(Data.fFSBSpeed, ffFixed, 7, 0) + '*' + FloatToStrF(Data.fMultipier, ffFixed, 7, 1) + '), ';
OutputMsg += 'VID ' + FloatToStrF(Data.fVID, ffFixed, 7, 2) + 'V';
if Data.ucFahrenheit then
Degree := 'F'
else
Degree := 'C';
for CPU := 0 to Data.uiCPUCnt - 1 do
begin
for Core := 0 to Data.uiCoreCnt - 1 do
begin
Index := (CPU * Data.uiCoreCnt) + Core;
if Data.ucDeltaToTjMax then
Temp := Data.uiTjMax[CPU] - Data.fTemp[Index]
else
Temp := Data.fTemp[Index];
// Writeln;
OutputMsg += ', CPU ' + IntToStr(CPU) + ' Core ' + IntToStr(Core) + ': ';
OutputMsg += 'Temperature = ' + FloatToStrF(Temp, ffFixed, 7, 0) + Degree + ' ';
OutputMsg += 'Load = ' + IntToStr(Data.uiLoad[Index]) + '%';
end;
end;
OutputMsg += '|';
for CPU := 0 to Data.uiCPUCnt - 1 do
begin
CPUPerfName := ('''CPU' + IntToStr(CPU));
OutputMsg += CPUPerfName + 'Freq''=' + StringReplace(FloatToStrF(Data.fCPUSpeed, ffFixed, 7, 0),',','.',[]) + 'MHz' + ';;;' + FreqMinStr + ';' + FreqMaxStr + ' ';
OutputMsg += CPUPerfName + 'Voltage''=' + StringReplace(FloatToStrF(Data.fVID, ffFixed, 7, 2),',','.',[]) + 'V' + ';;;' + VoltMinStr + ';' + VoltMaxStr + ' ';
for Core := 0 to Data.uiCoreCnt - 1 do
begin
Index := (CPU * Data.uiCoreCnt) + Core;
if Data.ucDeltaToTjMax then
Temp := Data.uiTjMax[CPU] - Data.fTemp[Index]
else
Temp := Data.fTemp[Index];
CorePerfName := (CPUPerfName + 'Core' + IntToStr(Core));
OutputMsg += CorePerfName + 'Temp''=' + FloatToStrF(Temp, ffFixed, 7, 0) + Degree + ';';
OutputMsg += TempWarnStr + ';' + TempCritStr + ';0;' + IntToStr(Data.uiTjMax[CPU]) + ' ';
OutputMsg += CorePerfName + 'Load''=' + IntToStr(Data.uiLoad[Index]) + '%' + ';';
OutputMsg += LoadWarnStr + ';' + LoadCritStr + ';0;100 ';
if (((TempCrit > 0) and (LoadCrit > 0)) and ((Round(Temp) >= TempCrit) or (Data.uiLoad[Index] >= LoadCrit))) then
ExitStatus := STATUS_CRIT
else if (((TempWarn > 0) and (LoadWarn > 0)) and ((Round(Temp) >= TempWarn) or (Data.uiLoad[Index] >= LoadWarn)) and (ExitStatus <> STATUS_CRIT)) then
ExitStatus := STATUS_WARN
else
ExitStatus := STATUS_OK;
end
end;
end
else
begin
OutputMsg:='Error: Core Temp''s shared memory could not be read';
OutputMsg+='Reason: ' + StringToOem(SysErrorMessage(GetLastError));
end;
except
on E: Exception do
begin
OutputMsg := E.Classname + ': '+ E.Message;
end;
end;
case ExitStatus of
STATUS_OK: Write('OK : ');
STATUS_WARN: Write('Warning : ');
STATUS_CRIT: Write('Critical : ');
STATUS_UNKNOWN: Write('Unknown : ');
end;
Writeln(OutputMsg);
System.ExitCode := ExitStatus;
end.
| 32.169014 | 170 | 0.580123 |
83774b66a11490013ad65ed6545d9ff56376edfe
| 329 |
pas
|
Pascal
|
Oxygene/All/SharedUI/SharedUI.Shared/AppDelegate.Cocoa.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 19 |
2016-04-09T12:40:27.000Z
|
2022-02-22T12:15:03.000Z
|
Oxygene/All/SharedUI/SharedUI.Shared/AppDelegate.Cocoa.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 3 |
2017-09-05T09:31:29.000Z
|
2019-09-11T04:49:27.000Z
|
Oxygene/All/SharedUI/SharedUI.Shared/AppDelegate.Cocoa.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 11 |
2016-12-29T19:30:39.000Z
|
2021-08-31T12:20:27.000Z
|
namespace SharedUI.Shared;
{$IF COCOA}
type
[NSApplicationMain, IBObject]
AppDelegate = public partial class(INSApplicationDelegate)
public
method applicationDidFinishLaunching(notification: NSNotification);
begin
start();
end;
//
// Add Cocoa-specific code here
//
end;
{$ENDIF}
end.
| 15.666667 | 71 | 0.683891 |
f1b5a1897be148212c3620ef7952b4a00fe298d2
| 2,926 |
dpr
|
Pascal
|
demos/Delphi_FPC/04 - Input/demo04.dpr
|
EliiahPro/quad-engine
|
9ed52cb9c76d3c87a86159a3636ac8228442e7af
|
[
"BSD-2-Clause"
] | 7 |
2020-11-18T20:32:03.000Z
|
2022-02-27T12:03:18.000Z
|
demos/Delphi_FPC/04 - Input/demo04.dpr
|
randydom/quad-engine
|
9ed52cb9c76d3c87a86159a3636ac8228442e7af
|
[
"BSD-2-Clause"
] | null | null | null |
demos/Delphi_FPC/04 - Input/demo04.dpr
|
randydom/quad-engine
|
9ed52cb9c76d3c87a86159a3636ac8228442e7af
|
[
"BSD-2-Clause"
] | 3 |
2020-11-19T08:54:37.000Z
|
2020-12-27T14:02:12.000Z
|
program demo04;
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
{$WEAKLINKRTTI ON}
{$SETPEFLAGS 1}
uses
QuadEngine, Vec2f, SysUtils, Windows;
var
QuadDevice: IQuadDevice;
QuadWindow: IQuadWindow;
QuadRender: IQuadRender;
QuadTimer: IQuadTimer;
QuadInput: IQuadInput;
procedure OnTimer(out delta: Double; Id: Cardinal); stdcall;
procedure DrawRect(APosition: TVec2f; AState: Boolean);
begin
if AState then
QuadRender.Rectangle(APosition * 15, APosition * 15 + TVec2f.Create(10, 10), $FFFF0000)
else
QuadRender.Rectangle(APosition * 15, APosition * 15 + TVec2f.Create(10, 10), $FFFFFFFF);
end;
var
MousePosition: TVec2f;
MouseVector: TVec2f;
MouseWheel: TVec2f;
begin
QuadInput.Update;
QuadRender.BeginRender;
QuadRender.Clear($FF000000);
DrawRect(TVec2f.Create(2, 1), QuadInput.IsKeyDown(ord('W')));
DrawRect(TVec2f.Create(2, 2), QuadInput.IsKeyDown(ord('S')));
DrawRect(TVec2f.Create(1, 2), QuadInput.IsKeyDown(ord('A')));
DrawRect(TVec2f.Create(3, 2), QuadInput.IsKeyDown(ord('D')));
DrawRect(TVec2f.Create(2, 4), QuadInput.IsKeyPress(ord('W')));
DrawRect(TVec2f.Create(2, 5), QuadInput.IsKeyPress(ord('S')));
DrawRect(TVec2f.Create(1, 5), QuadInput.IsKeyPress(ord('A')));
DrawRect(TVec2f.Create(3, 5), QuadInput.IsKeyPress(ord('D')));
DrawRect(TVec2f.Create(6, 1), QuadInput.IsMouseDown(mbLeft));
DrawRect(TVec2f.Create(7, 1), QuadInput.IsMouseDown(mbMiddle));
DrawRect(TVec2f.Create(8, 1), QuadInput.IsMouseDown(mbRight));
DrawRect(TVec2f.Create(9, 1), QuadInput.IsMouseDown(mbX1));
DrawRect(TVec2f.Create(10, 1), QuadInput.IsMouseDown(mbX2));
DrawRect(TVec2f.Create(6, 4), QuadInput.IsMouseClick(mbLeft));
DrawRect(TVec2f.Create(7, 4), QuadInput.IsMouseClick(mbMiddle));
DrawRect(TVec2f.Create(8, 4), QuadInput.IsMouseClick(mbRight));
DrawRect(TVec2f.Create(9, 4), QuadInput.IsMouseClick(mbX1));
DrawRect(TVec2f.Create(10, 4), QuadInput.IsMouseClick(mbX2));
QuadInput.GetMousePosition(MousePosition);
QuadRender.DrawCircle(MousePosition, 20, 18);
QuadInput.GetMouseVector(MouseVector);
QuadRender.DrawQuadLine(TVec2f.Create(400, 300), TVec2f.Create(400, 300) + MouseVector, 3, 1, $FFFFFFFF, $FFFFFFFF);
QuadInput.GetMouseWheel(MouseWheel);
QuadRender.DrawQuadLine(TVec2f.Create(100, 300), TVec2f.Create(100, 300) + MouseWheel, 7, 1, $FFFFFFFF, $FF00FF00);
QuadRender.EndRender;
end;
begin
QuadDevice := CreateQuadDevice;
QuadDevice.CreateWindow(QuadWindow);
QuadWindow.CreateInput(QuadInput);
QuadWindow.SetCaption('QuadEngine - Demo04 - Input');
QuadWindow.SetSize(800, 600);
QuadWindow.SetPosition(100, 100);
QuadDevice.CreateRender(QuadRender);
QuadRender.Initialize(QuadWindow.GetHandle, 800, 600, False);
QuadDevice.CreateTimerEx(QuadTimer, OnTimer, 16, True);
QuadWindow.Start;
end.
| 33.632184 | 119 | 0.711552 |
f1a7f304b8693a304ffcd6daf63641a4d68e840a
| 9,538 |
dfm
|
Pascal
|
junk/ac2004/Dmod.dfm
|
aspenryd/Car
|
1d812ab60825f0900ac161638e0d375894997204
|
[
"MIT"
] | 1 |
2018-07-22T13:13:16.000Z
|
2018-07-22T13:13:16.000Z
|
junk/ac2004/Dmod.dfm
|
aspenryd/Car
|
1d812ab60825f0900ac161638e0d375894997204
|
[
"MIT"
] | null | null | null |
junk/ac2004/Dmod.dfm
|
aspenryd/Car
|
1d812ab60825f0900ac161638e0d375894997204
|
[
"MIT"
] | 2 |
2018-03-29T13:57:55.000Z
|
2018-07-22T13:13:18.000Z
|
object Dmod2: TDmod2
OldCreateOrder = False
OnCreate = DataModuleCreate
Left = 208
Top = 131
Height = 480
Width = 805
object BetstT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Betst'
Left = 32
Top = 72
end
object CardsT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Cards'
Left = 96
Top = 72
end
object ReportsT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Reports'
Left = 32
Top = 304
end
object SignrT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Signr'
Left = 96
Top = 304
end
object PriceTabRowsT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
IndexFieldNames = 'PriceId'
MasterFields = 'PriceId'
MasterSource = PriceTabS
TableName = 'PriceTabRows'
Left = 288
Top = 184
object PriceTabRowsTPriceId: TIntegerField
FieldName = 'PriceId'
end
object PriceTabRowsTRowNum: TIntegerField
FieldName = 'RowNum'
end
object PriceTabRowsTMINDAG: TSmallintField
FieldName = 'MINDAG'
end
object PriceTabRowsTPRISDAG: TSmallintField
FieldName = 'PRISDAG'
end
object PriceTabRowsTKOST: TBCDField
FieldName = 'KOST'
Precision = 19
end
object PriceTabRowsTINKL_KM: TSmallintField
FieldName = 'INKL_KM'
end
object PriceTabRowsTOVERKM: TFloatField
FieldName = 'OVERKM'
end
object PriceTabRowsTXDYGN: TSmallintField
FieldName = 'XDYGN'
end
object PriceTabRowsTXINKLKM: TFloatField
FieldName = 'XINKLKM'
end
end
object PriceTabT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'PriceTab'
Left = 160
Top = 184
end
object ParamT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Param'
Left = 96
Top = 184
end
object ObjTypeT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'ObjType'
Left = 32
Top = 184
end
object DrivMT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'DrivM'
Left = 288
Top = 72
end
object CostsT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Costs'
Left = 224
Top = 72
end
object CompanyT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Company'
Left = 160
Top = 72
end
object TtypT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Ttyp'
Left = 160
Top = 304
end
object BetstS: TDataSource
DataSet = BetstT
OnStateChange = BetstSStateChange
Left = 32
Top = 120
end
object CardsS: TDataSource
DataSet = CardsT
OnStateChange = CardsSStateChange
Left = 96
Top = 120
end
object TtypS: TDataSource
DataSet = TtypT
OnStateChange = TtypSStateChange
Left = 160
Top = 352
end
object SignrS: TDataSource
DataSet = SignrT
OnStateChange = SignrSStateChange
Left = 96
Top = 352
end
object ReportsS: TDataSource
DataSet = ReportsT
OnStateChange = ReportsSStateChange
Left = 32
Top = 352
end
object PriceTabRowsS: TDataSource
DataSet = PriceTabRowsT
Left = 288
Top = 232
end
object PriceTabS: TDataSource
DataSet = PriceTabT
OnStateChange = PriceTabSStateChange
Left = 160
Top = 232
end
object ParamS: TDataSource
DataSet = ParamT
OnStateChange = ParamSStateChange
Left = 96
Top = 232
end
object ObjTypeS: TDataSource
DataSet = ObjTypeT
OnStateChange = ObjTypeSStateChange
Left = 32
Top = 232
end
object DrivMS: TDataSource
DataSet = DrivMT
OnStateChange = DrivMSStateChange
Left = 288
Top = 120
end
object CostsS: TDataSource
DataSet = CostsT
OnStateChange = CostsSStateChange
Left = 224
Top = 120
end
object CompanyS: TDataSource
DataSet = CompanyT
OnStateChange = CompanySStateChange
Left = 160
Top = 120
end
object Contr_BaseT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Contr_Base'
Left = 264
Top = 304
end
object Contr_SubT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
IndexFieldNames = 'ContrId'
TableName = 'Contr_Sub'
Left = 336
Top = 304
end
object Contr_ObjtT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
IndexFieldNames = 'ContrId'
TableName = 'Contr_ObjT'
Left = 408
Top = 304
end
object Contr_BaseS: TDataSource
DataSet = Contr_BaseT
Left = 258
Top = 350
end
object Contr_SubS: TDataSource
DataSet = Contr_SubT
Left = 336
Top = 352
end
object Contr_ObjS: TDataSource
DataSet = Contr_ObjtT
Left = 408
Top = 360
end
object Contr_SubCostT: TADOTable
Connection = Dmod1.ADOConnection1
IndexFieldNames = 'SubId'
TableName = 'Contr_SubCost'
Left = 480
Top = 304
end
object q1: TADOQuery
Connection = Dmod1.ADOConnection1
Parameters = <>
SQL.Strings = (
'SELECT Contr_Base.ContrId, Contr_Sub.SubName, Contr_ObjT.OId, Co' +
'ntr_ObjT.Ret_Time, Contr_SubCost.DTOTAL, Contr_Base.Status, Cont' +
'r_Sub.SubId, Contr_Sub.Payment'
'FROM (Contr_Base LEFT JOIN Contr_ObjT ON Contr_Base.ContrId = Co' +
'ntr_ObjT.ContrId) INNER JOIN (Contr_Sub LEFT JOIN Contr_SubCost ' +
'ON Contr_Sub.SubId = Contr_SubCost.SubId) ON Contr_Base.ContrId ' +
'= Contr_Sub.ContrId'
'WHERE (((Contr_Base.Status)=9));')
Left = 496
Top = 24
end
object D1: TDataSource
DataSet = q1
Left = 496
Top = 72
end
object KonteringT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'Kontering'
Left = 384
Top = 184
object KonteringTCounter: TAutoIncField
FieldName = 'Counter'
end
object KonteringTKonteringsid: TFloatField
FieldName = 'Konteringsid'
end
object KonteringTKonteringsnamn: TWideStringField
FieldName = 'Konteringsnamn'
end
object KonteringTKontonr: TFloatField
FieldName = 'Kontonr'
end
object KonteringTKStalleStyrning: TFloatField
FieldName = 'KStalleStyrning'
end
object KonteringTInternKontoNr: TFloatField
FieldName = 'InternKontoNr'
end
object KonteringTKoncernKontoNr: TFloatField
FieldName = 'KoncernKontoNr'
end
end
object KonteringS: TDataSource
DataSet = KonteringT
OnStateChange = KonteringSStateChange
Left = 384
Top = 232
end
object LoggTabellT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'LoggTabell'
Left = 456
Top = 184
object LoggTabellTLoggId: TAutoIncField
FieldName = 'LoggId'
end
object LoggTabellTLoggNr: TIntegerField
FieldName = 'LoggNr'
end
object LoggTabellTNrTyp: TIntegerField
FieldName = 'NrTyp'
end
object LoggTabellTNummer: TIntegerField
FieldName = 'Nummer'
end
object LoggTabellTBokf_dag: TDateField
FieldName = 'Bokf_dag'
end
end
object KnterRadT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'KnterRad'
Left = 528
Top = 192
object KnterRadTCounter: TAutoIncField
FieldName = 'Counter'
end
object KnterRadTNrTyp: TIntegerField
FieldName = 'NrTyp'
end
object KnterRadTNummer: TFloatField
FieldName = 'Nummer'
end
object KnterRadTKonto: TFloatField
FieldName = 'Konto'
end
object KnterRadTKStalle: TFloatField
FieldName = 'KStalle'
end
object KnterRadTDebet: TFloatField
FieldName = 'Debet'
end
object KnterRadTKredit: TFloatField
FieldName = 'Kredit'
end
end
object CustomerT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'Customer'
Left = 360
Top = 72
end
object Contr_SubCostRowT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'Contr_SubCostRow'
Left = 536
Top = 304
end
object Ekq1: TADOQuery
Connection = Dmod1.ADOConnection1
Parameters = <>
Left = 408
Top = 24
end
object Report_DateT: TADOTable
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
TableName = 'Report_Date'
Left = 32
Top = 24
end
object Report_DateS: TDataSource
DataSet = Report_DateT
Left = 88
Top = 16
end
object QKont: TADOQuery
Connection = Dmod1.ADOConnection1
CursorType = ctStatic
Parameters = <>
SQL.Strings = (
'')
Left = 304
Top = 16
end
object QAntBil: TADOQuery
Connection = Dmod1.ADOConnection1
Parameters = <>
SQL.Strings = (
'select * from Objects;')
Left = 176
Top = 24
end
object Q2: TADOQuery
Connection = Dmod1.ADOConnection1
Parameters = <>
Left = 488
Top = 128
end
object CustomerS: TDataSource
DataSet = CustomerT
OnStateChange = DrivMSStateChange
Left = 360
Top = 128
end
object ObjectT: TADOTable
Connection = Dmod1.ADOConnection1
TableName = 'Objects'
Left = 416
Top = 72
end
object ObjectS: TDataSource
DataSet = ObjectT
OnStateChange = DrivMSStateChange
Left = 416
Top = 128
end
end
| 23.038647 | 76 | 0.666282 |
f1eac4d5deb98a14a576b798b10229e4a902d58c
| 858 |
pas
|
Pascal
|
Source/Code Units/ATApp.Config.Keys.Consts.pas
|
AngelicTech/AppFramework_DX_MDI
|
fc14915e8862ad4a6060da127b8ec9c758633c5a
|
[
"CC0-1.0"
] | 1 |
2021-08-09T18:30:23.000Z
|
2021-08-09T18:30:23.000Z
|
Source/Code Units/ATApp.Config.Keys.Consts.pas
|
AngelicTech/AppFramework_DX_MDI
|
fc14915e8862ad4a6060da127b8ec9c758633c5a
|
[
"CC0-1.0"
] | null | null | null |
Source/Code Units/ATApp.Config.Keys.Consts.pas
|
AngelicTech/AppFramework_DX_MDI
|
fc14915e8862ad4a6060da127b8ec9c758633c5a
|
[
"CC0-1.0"
] | 1 |
2021-08-09T18:30:24.000Z
|
2021-08-09T18:30:24.000Z
|
unit ATApp.Config.Keys.Consts;
interface
const
cCfgKeyCount = 'Count';
cCfgKeyCurrentPath = 'CurrentPath';
cCfgKeyHeight = 'Height';
cCfgKeyInfoBarVisible = 'InfoBarVisible';
cCfgKeyLeft = 'Left';
cCfgKeyPinnedFile = 'PinnedFile%d';
cCfgKeyQATPosition = 'QATPosition';
cCfgKeyQATVisible = 'QATVisible';
cCfgKeyRecentFile = 'RecentFile%d';
cCfgKeySearchBarVisible = 'SearchBarVisible';
cCfgKeySkinName = 'SkinName';
cCfgKeySkinPalette = 'SkinPalette';
cCfgKeyState = 'State';
cCfgKeyStatusBarVisible = 'StatusBarVisible';
cCfgKeyTop = 'Top';
cCfgKeyTouchMode = 'TouchMode';
cCfgKeyViewMode = 'ViewMode';
cCfgKeyWidth = 'Width';
cCfgKeyWinUseDefault = 'WinUseDefault';
implementation
end.
| 29.586207 | 47 | 0.630536 |
f1b1d0c7f4e1db2c98de80ba9c6e856857284039
| 6,446 |
pas
|
Pascal
|
computer_graphics/3lab/3lab.pas
|
danilbushkov/university
|
9f2e22c4691a2c8156748f4feaab57cd53fa4c67
|
[
"MIT"
] | 1 |
2021-03-28T08:54:13.000Z
|
2021-03-28T08:54:13.000Z
|
computer_graphics/3lab/3lab.pas
|
danilbushkov/university
|
9f2e22c4691a2c8156748f4feaab57cd53fa4c67
|
[
"MIT"
] | null | null | null |
computer_graphics/3lab/3lab.pas
|
danilbushkov/university
|
9f2e22c4691a2c8156748f4feaab57cd53fa4c67
|
[
"MIT"
] | null | null | null |
program lab3;
uses graph,wincrt,math;
const
l=5;
angle=Pi/6;
type
tcrd=record
x,y:integer;
end;
TMatrix33=array[1..9] of real;
TCrds=array[1..l] of tcrd;
var g,h,c:integer;
ch:char;
poly:TCrds;
McompressionX,
MStretchingX,
MScalingUp,
MScalingDown,
MSymmetryX,
MSymmetryY,
MRotation,
MRotationR,
movingX,
movingY: TMatrix33;
//1 4 7
//2 5 8
//3 6 9
function createArr(
x1,x4,x7,
x2,x5,x8,
x3,x6,x9:real):TMatrix33;
var arr:TMatrix33;
begin
arr[1]:=x1;
arr[2]:=x2;
arr[3]:=x3;
arr[4]:=x4;
arr[5]:=x5;
arr[6]:=x6;
arr[7]:=x7;
arr[8]:=x8;
arr[9]:=x9;
Exit(arr);
end;
procedure initMatrix();
begin
movingX:=createArr(
1, 0, 0,
0, 1, 0,
10, 0, 0
);
movingY:=createArr(
1, 0, 0,
0, 1, 0,
0, 10, 0
);
MRotation:=createArr(
cos(angle), sin(angle) , 0,
-sin(angle), cos(angle), 0,
0, 0, 0
);
MRotationR:=createArr(
cos(-angle), sin(-angle) , 0,
-sin(-angle), cos(-angle), 0,
0, 0, 0
);
MSymmetryX:=createArr(
1, 0, 0,
0, -1, 0,
0, 0, 1
);
MSymmetryY:=createArr(
-1, 0, 0,
0, 1, 0,
0, 0, 1
);
MScalingUp:=createArr(
1.1, 0, 0,
0, 1.1, 0,
0, 0, 1
);
MScalingDown:=createArr(
0.9, 0, 0,
0, 0.9, 0,
0, 0, 1
);
MStretchingX:=createArr(
1.1, 0, 0,
0, 1, 0,
0, 0, 1
);
McompressionX:=createArr(
0.9, 0, 0,
0, 1, 0,
0, 0, 1
);
end;
procedure init();
begin
poly[1].x:=100;
poly[1].y:=100;
poly[2].x:=200;
poly[2].y:=150;
poly[3].x:=200;
poly[3].y:=400;
poly[4].x:=150;
poly[4].y:=400;
poly[5].x:=123;
poly[5].y:=123;
end;
procedure DrPoly();
var i:integer;
begin
MoveTo(poly[1].x,poly[1].y);
for i:=2 to l do
begin
lineto(poly[i].x,poly[i].y)
end;
lineto(poly[1].x,poly[1].y)
end;
function MultMatrix(crd:Tcrd;arr:TMatrix33):tcrd;
var crd2:Tcrd;
begin
crd2.x:=round(crd.x*arr[1]+crd.y*arr[2]+arr[3]);
crd2.y:=round(crd.x*arr[4]+crd.y*arr[5]+arr[6]);
Exit(crd2);
end;
procedure ChangeCrds(var arr:TCrds;matrix:TMatrix33);
var i:integer;
begin
for i:=1 to l do
begin
arr[i]:=MultMatrix(arr[i],matrix);
end;
end;
//перемещение
procedure movePolyX(right:boolean);
begin
if right then
begin
movingX[3]:=10;
end
else
begin
movingX[3]:=-10;
end;
ChangeCrds(poly,movingX);
ClearDevice;
DrPoly();
end;
procedure movePolyY(up:boolean);
begin
if up then
begin
movingY[6]:=-10;
end
else
begin
movingY[6]:=+10;
end;
ChangeCrds(poly,movingY);
ClearDevice;
DrPoly();
end;
procedure rotationLeft();
begin
MRotation[3]:=
-poly[1].x*cos(angle)+ poly[1].x +poly[1].y*sin(angle);
MRotation[6]:=-poly[1].x*sin(angle)-poly[1].y*cos(angle)+poly[1].y;
ChangeCrds(poly, MRotation);
ClearDevice;
DrPoly();
end;
procedure rotationRight();
begin
MRotationR[3]:=
-poly[1].x*cos(-angle)+ poly[1].x +poly[1].y*sin(-angle);
MRotationR[6]:=-poly[1].x*sin(-angle)-poly[1].y*cos(-angle)+poly[1].y;
ChangeCrds(poly, MRotationR);
ClearDevice;
DrPoly();
end;
procedure SymmetryX();
begin
MSymmetryX[6]:=2*poly[1].y;
ChangeCrds(poly, MSymmetryX);
ClearDevice;
DrPoly();
end;
procedure SymmetryY();
begin
MSymmetryY[3]:=2*poly[1].x;
ChangeCrds(poly, MSymmetryY);
ClearDevice;
DrPoly();
end;
procedure ScalingUp();
begin
if abs(poly[1].x-poly[2].x) < 1000 then
begin
MScalingUp[3]:=-poly[1].x*1.1+poly[1].x;
MScalingUp[6]:=-poly[1].y*1.1+poly[1].y;
ChangeCrds(poly, MScalingUp);
ClearDevice;
DrPoly();
end;
end;
procedure ScalingDown();
begin
if abs(poly[1].x-poly[2].x) > 30 then
begin
MScalingDown[3]:=-poly[1].x*0.9+poly[1].x;
MScalingDown[6]:=-poly[1].y*0.9+poly[1].y;
ChangeCrds(poly, MScalingDown);
ClearDevice;
DrPoly();
end;
end;
procedure StretchingX();
begin
MStretchingX[3]:=-poly[1].x*1.1+poly[1].x;
ChangeCrds(poly, MStretchingX);
ClearDevice;
DrPoly();
end;
procedure compressionX();
begin
if abs(poly[1].x-poly[2].x)>30 then
begin
McompressionX[3]:=-poly[1].x*0.9+poly[1].x;
ChangeCrds(poly, McompressionX);
ClearDevice;
DrPoly();
end;
end;
procedure ScalingRotationR();
begin
ScalingDown();
rotationRight();
end;
procedure ScalingRotationL();
begin
ScalingUp();
rotationLeft();
end;
procedure reset();
begin
init();
ClearDevice;
DrPoly();
end;
procedure move(ch:char);
begin
case ch of
#77://вправо
begin
movePolyX(true);
end;
#75:
begin
movePolyX(false);
end;
#72:
begin
movePolyY(true);
end;
#80:
begin
movePolyY(false);
end;
end;
end;
procedure action(ch:char);
begin
case ch of
#26://ctr+z
begin
rotationleft();
end;
#1://ctr+A
begin
rotationright();
end;
#24://Ctrl+X
begin
Symmetryx();
end;
#19://Ctrl+S
begin
SymmetryY();
end;
#3:
begin
ScalingUp();
end;
#4:
begin
ScalingDown();
end;
#18://Сtr+R
begin
Reset();
end;
#22://crt+V
begin
StretchingX();
end;
#6://crt+F
begin
compressionX();
end;
#2:
begin
ScalingRotationL();
end;
#7:
begin
ScalingRotationR();
end;
end;
end;
begin
g := detect;
initgraph(g,h,'');
init();
initMatrix();
setcolor(10);
DrPoly();
repeat
ch:=readkey();
if ch = #0 then
begin
ch:=readkey();
move(ch);
end;
action(ch);
until ch = #27;
CloseGraph;
end.
| 16.742857 | 74 | 0.498449 |
f16e10b0f8d8c3049db6cc288eb2e52d78f811f3
| 5,275 |
pas
|
Pascal
|
Graphics32/Source/GR32_ArrowHeads.pas
|
civilian7/SmartWork
|
732373b809c2602df03ddf2e4af334385cf42aeb
|
[
"MIT"
] | null | null | null |
Graphics32/Source/GR32_ArrowHeads.pas
|
civilian7/SmartWork
|
732373b809c2602df03ddf2e4af334385cf42aeb
|
[
"MIT"
] | null | null | null |
Graphics32/Source/GR32_ArrowHeads.pas
|
civilian7/SmartWork
|
732373b809c2602df03ddf2e4af334385cf42aeb
|
[
"MIT"
] | null | null | null |
unit GR32_ArrowHeads;
(* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1 or LGPL 2.1 with linking exception
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Alternatively, the contents of this file may be used under the terms of the
* Free Pascal modified version of the GNU Lesser General Public License
* Version 2.1 (the "FPC modified LGPL License"), in which case the provisions
* of this license are applicable instead of those above.
* Please see the file LICENSE.txt for additional information concerning this
* license.
*
* The Original Code is Vectorial Polygon Rasterizer for Graphics32
*
* The Initial Developer of the Original Code is
* Angus Johnson < http://www.angusj.com >
*
* Portions created by the Initial Developer are Copyright (C) 2012
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** *)
interface
uses
SysUtils, GR32, GR32_Polygons, GR32_VectorUtils, GR32_Geometry;
type
TArrowHeadAbstract = class
private
FSize: TFloat;
FTipPoint: TFloatPoint;
FBasePoint: TFloatPoint;
protected
function GetPointsInternal: TArrayOfFloatPoint; virtual; abstract;
public
constructor Create(size: TFloat); virtual;
function GetPoints(const Line: TArrayOfFloatPoint; AtEnd: Boolean): TArrayOfFloatPoint;
//Size: distance between arrow tip and arrow base
property Size: TFloat read FSize write FSize;
end;
TArrowHeadSimple = class(TArrowHeadAbstract)
protected
function GetPointsInternal: TArrayOfFloatPoint; override;
end;
TArrowHeadFourPt = class(TArrowHeadAbstract)
protected
function GetPointsInternal: TArrayOfFloatPoint; override;
end;
TArrowHeadCircle = class(TArrowHeadAbstract)
protected
function GetPointsInternal: TArrayOfFloatPoint; override;
end;
TArrowHeadDiamond = class(TArrowHeadAbstract)
protected
function GetPointsInternal: TArrayOfFloatPoint; override;
end;
resourcestring
RCStrInsufficientPointsInArray = 'Insufficient points in array';
implementation
constructor TArrowHeadAbstract.Create(Size: TFloat);
begin
FSize := Size;
end;
//------------------------------------------------------------------------------
function TArrowHeadAbstract.GetPoints(const Line: TArrayOfFloatPoint;
AtEnd: Boolean): TArrayOfFloatPoint;
var
HighI: Integer;
UnitVec: TFloatPoint;
begin
HighI := high(Line);
if HighI < 1 then
raise exception.create(RCStrInsufficientPointsInArray);
if AtEnd then
begin
FBasePoint := Line[HighI];
UnitVec := GetUnitVector(Line[HighI -1], Line[HighI]);
end else
begin
FBasePoint := Line[0];
UnitVec := GetUnitVector(Line[1], Line[0]);
end;
FTipPoint := OffsetPoint(FBasePoint, UnitVec.X * FSize, UnitVec.Y * FSize);
Result := GetPointsInternal;
end;
//------------------------------------------------------------------------------
function TArrowHeadSimple.GetPointsInternal: TArrayOfFloatPoint;
var
UnitNorm: TFloatPoint;
Sz: Single;
begin
SetLength(Result, 3);
UnitNorm := GetUnitNormal(FTipPoint, FBasePoint);
Sz := FSize * 0.5;
Result[0] := FTipPoint;
Result[1] := OffsetPoint(FBasePoint, UnitNorm.X *Sz, UnitNorm.Y *Sz);
Result[2] := OffsetPoint(FBasePoint, -UnitNorm.X *Sz, -UnitNorm.Y *Sz);
end;
//------------------------------------------------------------------------------
function TArrowHeadFourPt.GetPointsInternal: TArrayOfFloatPoint;
var
Angle: Double;
begin
SetLength(Result, 4);
Result[0] := FTipPoint;
Angle := GetAngleOfPt2FromPt1(FTipPoint, FBasePoint);
Result[1] := GetPointAtAngleFromPoint(FBasePoint, FSize * 0.5, Angle + CRad60);
Result[2] := FBasePoint;
Result[3] := GetPointAtAngleFromPoint(FBasePoint, FSize * 0.5, Angle - CRad60);
end;
//------------------------------------------------------------------------------
function TArrowHeadCircle.GetPointsInternal: TArrayOfFloatPoint;
var
MidPt: TFloatPoint;
begin
MidPt := Average(FTipPoint, FBasePoint);
Result := Circle(MidPt.X, MidPt.Y, FSize * 0.5, Round(FSize));
end;
//------------------------------------------------------------------------------
function TArrowHeadDiamond.GetPointsInternal: TArrayOfFloatPoint;
var
MidPt, UnitNorm: TFloatPoint;
Sz: Single;
begin
MidPt := Average(FTipPoint, FBasePoint);
UnitNorm := GetUnitNormal(FTipPoint, FBasePoint);
Sz := FSize / 3;
SetLength(Result, 4);
Result[0] := FTipPoint;
Result[1] := OffsetPoint(MidPt, UnitNorm.X * Sz, UnitNorm.Y * Sz);
Result[2] := FBasePoint;
Result[3] := OffsetPoint(MidPt, -UnitNorm.X * Sz, -UnitNorm.Y * Sz);
end;
//------------------------------------------------------------------------------
end.
| 32.164634 | 92 | 0.646635 |
f18476694e89dedab5c944708d3a33df7179c25b
| 4,401 |
pas
|
Pascal
|
toolkit2/frames/ftk_frame_home.pas
|
rhausam/fhirserver
|
d7e2fc59f9c55b1989367b4d3e2ad8a811e71af3
|
[
"BSD-3-Clause"
] | null | null | null |
toolkit2/frames/ftk_frame_home.pas
|
rhausam/fhirserver
|
d7e2fc59f9c55b1989367b4d3e2ad8a811e71af3
|
[
"BSD-3-Clause"
] | null | null | null |
toolkit2/frames/ftk_frame_home.pas
|
rhausam/fhirserver
|
d7e2fc59f9c55b1989367b4d3e2ad8a811e71af3
|
[
"BSD-3-Clause"
] | null | null | null |
unit ftk_frame_home;
{
Copyright (c) 2001-2021, Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
}
{$i fhir.inc}
interface
uses
Classes, SysUtils, Forms, Controls, StdCtrls, ComCtrls, ExtCtrls, Dialogs,
fsl_utilities, fsl_json,
fui_lcl_managers,
fhir_common, fhir_factory, fhir_client,
ftk_utilities, ftk_constants, ftk_context, HtmlView, ftk_store_temp,
ftk_worker_base;
type
TFrame = TBaseWorkerFrame;
THomePageFrame = class;
{ THomePageFrame }
THomePageFrame = class(TFrame)
HtmlViewer1: THtmlViewer;
lbMRU: TListBox;
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
procedure FrameResize(Sender: TObject);
procedure lbMRUDblClick(Sender: TObject);
procedure lbMRUShowHint(Sender: TObject; HintInfo: PHintInfo);
private
FTempStore: TFHIRToolkitTemporaryStorage;
FMru : TStringList;
procedure SetTempStore(AValue: TFHIRToolkitTemporaryStorage);
protected
procedure save(json : TJsonObject); override;
public
destructor Destroy; override;
procedure init(json : TJsonObject); override;
procedure saveStatus; override;
procedure getFocus; override;
property TempStore : TFHIRToolkitTemporaryStorage read FTempStore write SetTempStore;
end;
implementation
{$R *.lfm}
uses
frm_main;
const
HOME_PAGE =
'<html><body style="font-family: sans-serif">'+#13#10+
'<p>The FHIR Toolkit allows you to edit and validate all sorts of files that are useful when working with FHIR content.'+#13#10+
'In addition, you can connect to servers and explore them.</p>'+#13#10+
''+#13#10+
''+#13#10+
''+#13#10+
'</body></html>'+#13#10+
'';
{ THomePageFrame }
destructor THomePageFrame.Destroy;
begin
FMru.Free;
FTempStore.free;
inherited;
end;
procedure THomePageFrame.saveStatus;
begin
inherited;
end;
procedure THomePageFrame.getFocus;
var
s : String;
begin
FMRU.clear;
TempStore.getMRUListRaw(FMRU);
lbMRU.items.clear;
for s in FMru do
lbMRU.Items.add(s.Substring(s.IndexOf('|')+1));
end;
procedure THomePageFrame.init(json: TJsonObject);
begin
FMru := TStringList.create;
HtmlViewer1.LoadFromString(HOME_PAGE);
end;
procedure THomePageFrame.lbMRUDblClick(Sender: TObject);
var
s : string;
begin
s := FMru[lbMRU.ItemIndex];
s := s.Substring(0, s.IndexOf('|'));
MainToolkitForm.openFile(s);
end;
procedure THomePageFrame.FrameResize(Sender: TObject);
begin
panel1.width := width div 2;
end;
procedure THomePageFrame.lbMRUShowHint(Sender: TObject; HintInfo: PHintInfo);
begin
end;
procedure THomePageFrame.SetTempStore(AValue: TFHIRToolkitTemporaryStorage);
begin
FTempStore.Free;
FTempStore := AValue;
end;
procedure THomePageFrame.save(json: TJsonObject);
begin
json.str['home-page'] := 'true';
end;
end.
| 28.577922 | 133 | 0.730061 |
f115ca5e9be02bcdc696515deaa0d0aa1dba5bbc
| 244 |
pas
|
Pascal
|
CAT/tests/04. branches/4. case..of/caseof.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 19 |
2018-10-22T23:45:31.000Z
|
2021-05-16T00:06:49.000Z
|
CAT/tests/04. branches/4. case..of/caseof.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 1 |
2019-06-01T06:17:08.000Z
|
2019-12-28T10:27:42.000Z
|
CAT/tests/04. branches/4. case..of/caseof.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 6 |
2018-08-30T05:16:21.000Z
|
2021-05-12T20:25:43.000Z
|
unit Unit1;
interface
implementation
var
G: Int32;
procedure Test;
var
a: int32;
begin
a := 1;
case a of
0: G := 1;
1: G := 2;
else
G := 3;
end;
end;
initialization
Test();
finalization
assert(G = 2);
end.
| 8.133333 | 16 | 0.557377 |
6189790a02e659181c6e8e2249652efaef57d805
| 251,760 |
pas
|
Pascal
|
library/fhir4b/fhir4b_pathengine.pas
|
HealthIntersections/fhirserver
|
759bf1a270bca48b3ef97385074cfc0b37fae0dc
|
[
"BSD-3-Clause"
] | 5 |
2021-11-16T22:35:26.000Z
|
2022-02-16T08:40:37.000Z
|
library/fhir4b/fhir4b_pathengine.pas
|
HealthIntersections/fhirserver
|
759bf1a270bca48b3ef97385074cfc0b37fae0dc
|
[
"BSD-3-Clause"
] | 7 |
2021-11-01T06:27:37.000Z
|
2022-02-08T19:55:52.000Z
|
library/fhir4b/fhir4b_pathengine.pas
|
HealthIntersections/fhirserver
|
759bf1a270bca48b3ef97385074cfc0b37fae0dc
|
[
"BSD-3-Clause"
] | 2 |
2022-02-15T13:27:52.000Z
|
2022-02-16T08:40:48.000Z
|
unit fhir4b_pathengine;
{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
}
{$I fhir.inc}
{$I fhir4b.inc}
interface
uses
SysUtils, Classes, Math, {$IFDEF DELPHI} RegularExpressions, {$ENDIF} Generics.Collections, Character,
fsl_base, fsl_utilities, fsl_stream, fsl_fpc, fsl_xml, fsl_json,
fsl_ucum,
fhir_objects, fhir_factory, fhir_pathengine, fhir_uris,
fhir4b_pathnode, fhir4b_enums, fhir4b_types, fhir4b_resources, fhir4b_utilities, fhir4b_context, fhir4b_constants;
const
FHIR_TYPES_STRING : Array[0..8] of String = ('string', 'uri', 'code', 'oid', 'id', 'uuid', 'sid', 'markdown', 'base64Binary');
FHIR_TYPES_NUMERIC : Array[0..3] of String = ('integer', 'positiveInt', 'unsignedInt', 'decimal');
type
TFHIRConstant = class (TFHIRObject)
private
FValue : String;
protected
function sizeInBytesV(magic : integer) : cardinal; override;
public
constructor Create(value : String);
function fhirType : string; override;
function createPropertyValue(propName : string): TFHIRObject; override;
function getTypesForProperty(propName : string): String; override;
function setProperty(propName : string; propValue : TFHIRObject) : TFHIRObject; override;
function hasExtensions: boolean; override;
function getId : String; override;
procedure setIdValue(id : String); override;
function makeStringValue(v : String) : TFHIRObject; override;
function makeCodeValue(v : String) : TFHIRObject; override;
function makeIntValue(v : String) : TFHIRObject; override;
end;
TFHIRClassTypeInfo = class (TFHIRObject)
private
FInstance : TFHIRObject;
protected
procedure GetChildrenByName(name : string; list : TFHIRSelectionList); override;
function sizeInBytesV(magic : integer) : cardinal; override;
public
constructor Create(instance : TFHIRObject);
destructor Destroy; override;
function createPropertyValue(propName : string): TFHIRObject; override;
function getTypesForProperty(propName : string): String; override;
function setProperty(propName : string; propValue : TFHIRObject) : TFHIRObject; override;
function hasExtensions: boolean; override;
function fhirType : string; override;
function getId : String; override;
procedure setIdValue(id : String); override;
function getName : String;
function getNamespace : String;
function makeStringValue(v : String) : TFHIRObject; override;
function makeCodeValue(v : String) : TFHIRObject; override;
function makeIntValue(v : String) : TFHIRObject; override;
end;
TFHIRPathExecutionTypeContext = class (TFslObject)
private
FAppInfo : TFslObject;
FResourceType : String;
FContext : TFHIRTypeDetails;
protected
function sizeInBytesV(magic : integer) : cardinal; override;
public
constructor Create(appInfo : TFslObject; resourceType : String; context : TFHIRTypeDetails);
destructor Destroy; override;
function Link : TFHIRPathExecutionTypeContext; overload;
property appInfo : TFslObject read FappInfo;
property resourceType : String read FResourceType;
property context : TFHIRTypeDetails read FContext;
end;
TFHIRPathEngine = class;
TFHIRPathParser = class (TFslObject)
private
FExtensions : TFslList<TFHIRPathEngineExtension>;
function isKnownFunction(name : String) : boolean;
function parseExpression(lexer: TFHIRPathLexer; proximal : boolean): TFHIRPathExpressionNode;
procedure organisePrecedence(lexer : TFHIRPathLexer; var node: TFHIRPathExpressionNode);
procedure gatherPrecedence(lexer : TFHIRPathLexer; var start: TFHIRPathExpressionNode; ops: TFHIRPathOperationSet);
function newGroup(lexer : TFHIRPathLexer; next: TFHIRPathExpressionNode): TFHIRPathExpressionNode;
protected
procedure checkParameters(lexer : TFHIRPathLexer; location : TSourceLocation; exp : TFHIRPathExpressionNode);
procedure checkParamCount(lexer: TFHIRPathLexer; location : TSourceLocation; exp : TFHIRPathExpressionNode; count : integer); overload;
procedure checkParamCount(lexer: TFHIRPathLexer; location : TSourceLocation; exp : TFHIRPathExpressionNode; countMin, countMax : integer); overload;
function sizeInBytesV(magic : integer) : cardinal; override;
public
destructor Destroy; override;
// Parse a path for later use using execute
function parse(path : String) : TFHIRPathExpressionNode; overload;
function parse(path : String; var i : integer) : TFHIRPathExpressionNode; overload;
function parse(lexer : TFHIRPathLexer) : TFHIRPathExpressionNode; overload;
end;
TFHIRPathLexer4B = class (TFHIRPathLexer)
protected
function opCodes : TArray<String>; override;
public
function processConstant : TFHIRObject; overload; override;
end;
TFHIRResolveReferenceEvent = function (source : TFHIRPathEngine; appInfo : TFslObject; url : String) : TFHIRObject of object;
TFHIRResolveConstantEvent = function (source : TFHIRPathEngine; appInfo : TFslObject; name : String; beforeContext : boolean) : TFHIRObject of object;
TFHIRPathEngine = class (TFHIRPathEngineV)
private
worker : TFHIRWorkerContext;
FLog : TStringBuilder;
allTypes, primitiveTypes : TStringList;
FOnResolveConstant: TFHIRResolveConstantEvent;
FUcum : TUcumServiceInterface;
procedure log(name, value : String);
function dateAdd(d : TFhirObject; qty : TFhirQuantity; negate : boolean) : TFhirObject;
function execute(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode; atEntry : boolean) : TFHIRSelectionList; overload;
function execute(context : TFHIRPathExecutionContext; item : TFHIRObject; exp : TFHIRPathExpressionNode; atEntry : boolean) : TFHIRSelectionList; overload;
procedure debug(context : TFHIRPathExecutionContext; exp : TFHIRPathExpressionNode; op : boolean; input1, input2, outcome : TFHIRSelectionList);
// function replaceFixedConstant(context : TFHIRPathExecutionContext; const s : String) : TFHIRObject;
function evaluateFunction(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
function preOperate(left : TFHIRSelectionList; op : TFHIRPathOperation) : TFHIRSelectionList;
function operate(left : TFHIRSelectionList; op : TFHIRPathOperation; right : TFHIRSelectionList) : TFHIRSelectionList;
// function readConstant(context : TFHIRPathExecutionContext; constant : String) : TFHIRObject;
procedure ListAllChildren(item: TFHIRObject; results: TFHIRSelectionList; recurse: boolean);
procedure ListChildrenByName(focus: TFHIRObject; name : String; results: TFHIRSelectionList);
function childTypes(focus : TFHIRTypeDetails; mask : string) : TFHIRTypeDetails;
procedure checkParamTypes(funcId : TFHIRPathFunction; paramTypes : TFslList<TFHIRTypeDetails>; typeSet : array of TFHIRTypeDetails);
function executeType(ctxt: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode; atEntry : boolean) : TFHIRTypeDetails; overload;
function executeType(focus: String; exp: TFHIRPathExpressionNode; atEntry : boolean) : TFHIRTypeDetails; overload;
function evaluateFunctionType(context: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode): TFHIRTypeDetails;
function operateTypes(left : TFHIRTypeDetails; op : TFHIRPathOperation; right : TFHIRTypeDetails) : TFHIRTypeDetails;
function resolveConstantType(ctxt: TFHIRPathExecutionTypeContext; constant : TFHIRObject) : TFHIRTypeDetails; overload;
function resolveConstantType(ctxt: TFHIRPathExecutionTypeContext; s : String) : TFHIRTypeDetails; overload;
procedure ListChildTypesByName(type_, name : string; result : TFHIRTypeDetails);
function getElementDefinition(sd : TFHIRStructureDefinition; path : String; allowPM : boolean; var specifiedType : String) : TFHIRElementDefinition;
function getElementDefinitionByName(sd : TFHIRStructureDefinition; name : String) : TFHIRElementDefinition;
function hasDataType(ed : TFhirElementDefinition) : boolean;
function funcEmpty(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcItem(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcWhere(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAll(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcFirst(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcLast(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcTail(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcCount(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcLength(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcDistinct(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcNot(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcResolve(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcContains(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcMatches(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcStartsWith(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSubString(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcExtension(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcHasExtension(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcExists(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSubsetOf(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSupersetOf(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsDistinct(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSelect(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcRepeat(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAs(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIs(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSingle(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSkip(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcTake(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIif(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToInteger(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToDecimal(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToString(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcEndsWith(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcReplaceMatches(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcReplace(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcChildren(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcDescendants(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcMemberOf(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcTrace(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToday(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcNow(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAllFalse(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAnyFalse(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAllTrue(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAnyTrue(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcCombine(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcType(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcOfType(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcElementDefinition(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSlice(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcCheckModifiers(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcConformsTo(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcHasValue(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcHtmlChecks(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAggregate(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcUnion(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIntersect(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcExclude(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcLower(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcUpper(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToChars(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToBoolean(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToQuantity(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToDateTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcToTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsInteger(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsDecimal(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsString(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsBoolean(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsQuantity(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsDateTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsDate(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcIsTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcForHtml(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcEncode(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcDecode(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcEscape(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcUnescape(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcTrim(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSplit(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcJoin(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcAbs(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcCeiling(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcExp(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcFloor(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcLn(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcLog(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcPower(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcTruncate(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcRound(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function funcSqrt(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
function qtyToCanonical(q : TFHIRQuantity) : TUcumPair;
function pairToQty(p: TUcumPair): TFHIRQuantity;
function qtyToPair(q: TFHIRQuantity): TUcumPair;
function qtyEqual(left : TFHIRQuantity; right : TFHIRQuantity) : TEqualityTriState;
function qtyEquivalent(left, right: TFHIRQuantity): boolean;
function equal(left, right : TFHIRObject) : TEqualityTriState; overload;
function equivalent(left, right : TFHIRObject) : boolean; overload;
function asBoolFromDec(s: String): TEqualityTriState;
function asBoolFromInt(s: String): TEqualityTriState; protected
function asBool(item : TFHIRObject) : TEqualityTriState; overload;
function asBool(items : TFHIRSelectionList) : TEqualityTriState; overload;
function opEqual(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opNotEqual(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opLessThan(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opGreater(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opLessOrEqual(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opGreaterOrEqual(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opIn(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opContains(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opPlus(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opConcatenate(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opMinus(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opEquivalent(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opNotEquivalent(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opUnion(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opAnd(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opOr(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opXor(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opImplies(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opTimes(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opDivideBy(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opDiv(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opMod(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opIs(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function opAs(left, right : TFHIRSelectionList) : TFHIRSelectionList;
function contains(list: TFHIRSelectionList; item: TFHIRObject): boolean;
function isAbstractType(list: TFHIRElementDefinitionTypeList): boolean;
function resolveConstant(context : TFHIRPathExecutionContext; constant : TFHIRObject) : TFHIRObject; overload;
function resolveConstant(context : TFHIRPathExecutionContext; s : String) : TFHIRObject; overload;
function processDateConstant(appinfo : TFslObject; value : String) : TFHIRObject; overload;
procedure getClassInfoChildTypesByName(name: String; result: TFHIRTypeDetails);
procedure getSimpleTypeChildTypesByName(name: String; result: TFHIRTypeDetails);
protected
function funcCustom(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList; virtual;
function evaluateCustomFunctionType(context: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode): TFHIRTypeDetails; virtual;
function executeV(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNodeV; atEntry : boolean) : TFHIRSelectionList; overload; override;
function executeV(context : TFHIRPathExecutionContext; item : TFHIRObject; exp : TFHIRPathExpressionNodeV; atEntry : boolean) : TFHIRSelectionList; overload; override;
function sizeInBytesV(magic : integer) : cardinal; override;
public
constructor Create(context : TFHIRWorkerContext; ucum : TUcumServiceInterface);
destructor Destroy; override;
function link : TFHIRPathEngine; overload;
property OnResolveConstant : TFHIRResolveConstantEvent read FOnResolveConstant write FOnResolveConstant;
// Parse a path for later use using execute
function parse(path : String) : TFHIRPathExpressionNode; overload;
function parse(path : String; var i : integer) : TFHIRPathExpressionNode; overload;
function parseV(path : String) : TFHIRPathExpressionNodeV; overload; override;
// check that paths referred to in the expression are valid
function check(appInfo : TFslObject; resourceType, context, path : String; expr : TFHIRPathExpressionNode; xPathStartsWithValueRef : boolean) : TFHIRTypeDetails; overload;
function check(appInfo : TFslObject; resourceType, context, path : String; expr : TFHIRPathExpressionNodeV; xPathStartsWithValueRef : boolean) : TFHIRTypeDetailsV; overload; override;
// evaluate a path and return the matching elements
function evaluate(appInfo : TFslObject; base : TFHIRObject; path : String) : TFHIRSelectionList; overload; override;
function evaluate(appInfo : TFslObject; base : TFHIRObject; expr : TFHIRPathExpressionNodeV) : TFHIRSelectionList; overload; override;
function evaluate(appInfo : TFslObject; resource : TFHIRObject; base : TFHIRObject; path : String) : TFHIRSelectionList; overload; override;
function evaluate(appInfo : TFslObject; resource : TFHIRObject; base : TFHIRObject; expr : TFHIRPathExpressionNodeV) : TFHIRSelectionList; overload; override;
// evaluate a path and return true or false
function evaluateToBoolean(appInfo : TFslObject; resource : TFHIRObject; base : TFHIRObject; path : String) : boolean; overload; override;
function evaluateToBoolean(appInfo : TFslObject; resource : TFHIRObject; base : TFHIRObject; expr : TFHIRPathExpressionNodeV) : boolean; overload; override;
// evaluate a path and return a string describing the outcome
function evaluateToString(appInfo : TFslObject; base : TFHIRObject; path : String) : string; overload; override;
function evaluateToString(appInfo : TFslObject; base : TFHIRObject; expr : TFHIRPathExpressionNodeV) : string; overload; override;
// worker routine for converting a set of objects to a string representation
function convertToString(items : TFHIRSelectionList) : String; overload; override;
function convertToString(item : TFHIRObject) : String; overload;
// worker routine for converting a set of objects to a boolean representation
function convertToBoolean(items : TFHIRSelectionList) : boolean;
function UseLog : String;
property context : TFHIRWorkerContext read worker;
function parseQuantityString(s: String): TFHIRQuantity;
end;
TFHIRPathEngine4B = TFHIRPathEngine;
implementation
{ TFHIRConstant }
constructor TFHIRConstant.create(value: String);
begin
inherited create;
FValue := value;
end;
function TFHIRConstant.createPropertyValue(propName: string): TFHIRObject;
begin
raise EFHIRTodo.create('TFHIRConstant.createPropertyValue');
end;
function TFHIRConstant.fhirType: string;
begin
result := '%constant';
end;
function TFHIRConstant.getId: String;
begin
raise EFHIRTodo.create('TFHIRConstant.getId:');
end;
function TFHIRConstant.getTypesForProperty(propName : string): String;
begin
raise EFHIRTodo.create('TFHIRConstant.getTypesForProperty');
end;
function TFHIRConstant.hasExtensions: boolean;
begin
result := false;
end;
function TFHIRConstant.makeCodeValue(v: String): TFHIRObject;
begin
result := TFhirCode.Create(v);
end;
function TFHIRConstant.makeIntValue(v: String): TFHIRObject;
begin
result := TFhirInteger.Create(v);
end;
function TFHIRConstant.makeStringValue(v: String): TFHIRObject;
begin
result := TFhirString.Create(v);
end;
procedure TFHIRConstant.setIdValue(id: String);
begin
raise EFHIRTodo.create('TFHIRConstant.setIdValue');
end;
function TFHIRConstant.setProperty(propName: string; propValue: TFHIRObject) : TFHIRObject;
begin
raise EFHIRTodo.create('TFHIRConstant.setProperty');
end;
function TFHIRConstant.sizeInBytesV(magic : integer) : cardinal;
begin
result := inherited sizeInBytesV(magic);
inc(result, (FValue.length * sizeof(char)) + 12);
end;
{ TFHIRClassTypeInfo }
constructor TFHIRClassTypeInfo.create(instance: TFHIRObject);
begin
inherited create;
FInstance := instance;
end;
function TFHIRClassTypeInfo.createPropertyValue(propName: string): TFHIRObject;
begin
raise EFHIRTodo.create('TFHIRClassTypeInfo.createPropertyValue');
end;
destructor TFHIRClassTypeInfo.destroy;
begin
FInstance.Free;
inherited;
end;
function TFHIRClassTypeInfo.fhirType: string;
begin
result := 'ClassInfo';
end;
procedure TFHIRClassTypeInfo.GetChildrenByName(name: string; list: TFHIRSelectionList);
begin
if (name = 'name') then
list.add(TFHIRString.create(getName).noExtensions)
else if (name = 'namespace') then
list.add(TFHIRString.create(getNamespace).noExtensions)
else
inherited GetChildrenByName(name, list);
end;
function TFHIRClassTypeInfo.getNamespace: String;
begin
if (FInstance is TFHIRResource) then
result := 'FHIR'
else if not (FInstance is TFHIRElement) or (FInstance as TFHIRElement).DisallowExtensions then
result := 'System'
else
result := 'FHIR';
end;
function TFHIRClassTypeInfo.getTypesForProperty(propName : string): String;
begin
raise EFHIRTodo.create('TFHIRClassTypeInfo.getTypesForProperty');
end;
function TFHIRClassTypeInfo.hasExtensions: boolean;
begin
result := false;
end;
function TFHIRClassTypeInfo.getId: String;
begin
raise EFHIRTodo.create('TFHIRClassTypeInfo.getId:');
end;
function TFHIRClassTypeInfo.makeCodeValue(v: String): TFHIRObject;
begin
result := TFhirCode.Create(v);
end;
function TFHIRClassTypeInfo.makeIntValue(v: String): TFHIRObject;
begin
result := TFhirInteger.Create(v);
end;
function TFHIRClassTypeInfo.makeStringValue(v: String): TFHIRObject;
begin
result := TFhirString.Create(v);
end;
procedure TFHIRClassTypeInfo.setIdValue(id: String);
begin
raise EFHIRTodo.create('TFHIRClassTypeInfo.setIdValue');
end;
function TFHIRClassTypeInfo.setProperty(propName: string; propValue: TFHIRObject) : TFHIRObject;
begin
raise EFHIRTodo.create('TFHIRClassTypeInfo.setProperty');
end;
function TFHIRClassTypeInfo.getName: String;
begin
if (FInstance is TFHIRResource) then
result := FInstance.fhirType
else if not (FInstance is TFHIRElement) or (FInstance as TFHIRElement).DisallowExtensions then
result := capitalise(FInstance.fhirType)
else
result := FInstance.fhirType;
end;
function TFHIRClassTypeInfo.sizeInBytesV(magic : integer) : cardinal;
begin
result := inherited sizeInBytesV(magic);
inc(result, FInstance.sizeInBytes(magic));
end;
{ TFHIRPathParser }
function TFHIRPathParser.parse(lexer: TFHIRPathLexer): TFHIRPathExpressionNode;
var
msg : String;
begin
if lexer.done then
raise lexer.error('Path cannot be empty');
result := parseExpression(lexer, true);
try
if not result.check(msg, 0) then
raise EFHIRPath.create('Error "'+msg+'" parsing "'+lexer.Path);
result.Link;
finally
result.free;
end;
end;
function TFHIRPathParser.parse(path: String): TFHIRPathExpressionNode;
var
lexer : TFHIRPathLexer;
msg : String;
begin
lexer := TFHIRPathLexer4B.Create(fpV2, path);
try
if lexer.done then
raise lexer.error('Path cannot be empty');
result := parseExpression(lexer, true);
try
if not lexer.done then
raise lexer.error('Premature expression termination at unexpected token "'+lexer.current+'"');
if not result.check(msg, 0) then
raise EFHIRPath.create('Error parsing "'+path+'": '+msg);
result.Link;
finally
result.free;
end;
finally
lexer.Free;
end;
end;
procedure TFHIRPathParser.checkParamCount(lexer: TFHIRPathLexer; location : TSourceLocation; exp : TFHIRPathExpressionNode; count : integer);
begin
if (exp.Parameters.count <> count) then
raise lexer.error('The function "'+exp.name+'" requires '+inttostr(count)+' parameters', location);
end;
procedure TFHIRPathParser.checkParamCount(lexer: TFHIRPathLexer; location : TSourceLocation; exp : TFHIRPathExpressionNode; countMin, countMax : integer);
begin
if (exp.Parameters.count < countMin) or (exp.Parameters.count > countMax) then
lexer.error('The function "'+exp.name+'" requires between '+inttostr(countMin)+' and '+inttostr(countMax)+' parameters', location);
end;
procedure TFHIRPathParser.checkParameters(lexer: TFHIRPathLexer; location : TSourceLocation; exp: TFHIRPathExpressionNode);
begin
case exp.FunctionId of
pfEmpty: checkParamCount(lexer, location, exp, 0);
pfNot: checkParamCount(lexer, location, exp, 0);
pfExists: checkParamCount(lexer, location, exp, 0, 1); // 1 is allowed in cql, and should be allowed in fhir4b_pathengine as well
pfSubsetOf: checkParamCount(lexer, location, exp, 1);
pfSupersetOf: checkParamCount(lexer, location, exp, 1);
pfIsDistinct: checkParamCount(lexer, location, exp, 0);
pfDistinct: checkParamCount(lexer, location, exp, 0);
pfCount: checkParamCount(lexer, location, exp, 0);
pfWhere: checkParamCount(lexer, location, exp, 1);
pfSelect: checkParamCount(lexer, location, exp, 1);
pfAll: checkParamCount(lexer, location, exp, 0, 1);
pfRepeat: checkParamCount(lexer, location, exp, 1);
pfAggregate: checkParamCount(lexer, location, exp, 1, 2);
pfItem: checkParamCount(lexer, location, exp, 1);
pfAs: checkParamCount(lexer, location, exp, 1);
pfIs: checkParamCount(lexer, location, exp, 1);
pfSingle: checkParamCount(lexer, location, exp, 0);
pfFirst: checkParamCount(lexer, location, exp, 0);
pfLast: checkParamCount(lexer, location, exp, 0);
pfTail: checkParamCount(lexer, location, exp, 0);
pfSkip: checkParamCount(lexer, location, exp, 1);
pfTake: checkParamCount(lexer, location, exp, 1);
pfUnion: checkParamCount(lexer, location, exp, 1);
pfCombine: checkParamCount(lexer, location, exp, 1);
pfIntersect: checkParamCount(lexer, location, exp, 1);
pfExclude: checkParamCount(lexer, location, exp, 1);
pfIif: checkParamCount(lexer, location, exp, 2,3);
pfLower: checkParamCount(lexer, location, exp, 0);
pfUpper: checkParamCount(lexer, location, exp, 0);
pfToChars: checkParamCount(lexer, location, exp, 0);
pfSubstring: checkParamCount(lexer, location, exp, 1, 2);
pfStartsWith: checkParamCount(lexer, location, exp, 1);
pfEndsWith: checkParamCount(lexer, location, exp, 1);
pfMatches: checkParamCount(lexer, location, exp, 1);
pfReplaceMatches: checkParamCount(lexer, location, exp, 2);
pfContains: checkParamCount(lexer, location, exp, 1);
pfReplace: checkParamCount(lexer, location, exp, 2);
pfLength: checkParamCount(lexer, location, exp, 0);
pfChildren: checkParamCount(lexer, location, exp, 0);
pfDescendants: checkParamCount(lexer, location, exp, 0);
pfMemberOf: checkParamCount(lexer, location, exp, 1);
pfTrace: checkParamCount(lexer, location, exp, 1, 2);
pfToday: checkParamCount(lexer, location, exp, 0);
pfNow: checkParamCount(lexer, location, exp, 0);
pfResolve: checkParamCount(lexer, location, exp, 0);
pfExtension: checkParamCount(lexer, location, exp, 1);
pfHasExtension: checkParamCount(lexer, location, exp, 1);
pfAllFalse: checkParamCount(lexer, location, exp, 0);
pfAnyFalse: checkParamCount(lexer, location, exp, 0);
pfAllTrue: checkParamCount(lexer, location, exp, 0);
pfAnyTrue: checkParamCount(lexer, location, exp, 0);
pfType: checkParamCount(lexer, location, exp, 0);
pfOfType: checkParamCount(lexer, location, exp, 1);
pfElementDefinition: checkParamCount(lexer, location, exp, 0);
pfSlice: checkParamCount(lexer, location, exp, 2);
pfCheckModifiers: checkParamCount(lexer, location, exp, 1);
pfConformsTo: checkParamCount(lexer, location, exp, 1);
pfHasValue: checkParamCount(lexer, location, exp, 0);
pfHtmlChecks: checkParamCount(lexer, location, exp, 0);
pfToInteger: checkParamCount(lexer, location, exp, 0);
pfToDecimal: checkParamCount(lexer, location, exp, 0);
pfToString: checkParamCount(lexer, location, exp, 0);
pfToQuantity: checkParamCount(lexer, location, exp, 0);
pfToBoolean: checkParamCount(lexer, location, exp, 0);
pfToDateTime: checkParamCount(lexer, location, exp, 0);
pfToTime: checkParamCount(lexer, location, exp, 0);
pfAbs: checkParamCount(lexer, location, exp, 0);
pfCeiling: checkParamCount(lexer, location, exp, 0);
pfExp: checkParamCount(lexer, location, exp, 0);
pfFloor: checkParamCount(lexer, location, exp, 0);
pfLn: checkParamCount(lexer, location, exp, 0);
pfLog: checkParamCount(lexer, location, exp, 1);
pfPower: checkParamCount(lexer, location, exp, 1);
pfTruncate: checkParamCount(lexer, location, exp, 0);
pfRound: checkParamCount(lexer, location, exp, 0, 1);
pfSqrt: checkParamCount(lexer, location, exp, 0, 1);
pfConvertsToInteger: checkParamCount(lexer, location, exp, 0);
pfConvertsToDecimal: checkParamCount(lexer, location, exp, 0);
pfConvertsToString: checkParamCount(lexer, location, exp, 0);
pfConvertsToQuantity: checkParamCount(lexer, location, exp, 0);
pfConvertsToBoolean: checkParamCount(lexer, location, exp, 0);
pfConvertsToDateTime: checkParamCount(lexer, location, exp, 0);
pfConvertsToDate: checkParamCount(lexer, location, exp, 0);
pfConvertsToTime: checkParamCount(lexer, location, exp, 0);
pfForHtml : checkParamCount(lexer, location, exp, 0);
pfTrim : checkParamCount(lexer, location, exp, 0);
pfSplit : checkParamCount(lexer, location, exp, 1);
pfJoin : checkParamCount(lexer, location, exp, 1);
pfEncode, pfDecode, pfEscape, pfUnescape : checkParamCount(lexer, location, exp, 1);
pfCustom: ; // nothing
end;
end;
destructor TFHIRPathParser.Destroy;
begin
FExtensions.Free;
inherited;
end;
function TFHIRPathParser.parse(path: String; var i: integer): TFHIRPathExpressionNode;
var
lexer : TFHIRPathLexer;
msg : String;
begin
lexer := TFHIRPathLexer4B.Create(fpV2, path, i);
try
if lexer.done then
raise lexer.error('Path cannot be empty');
result := parseExpression(lexer, true);
try
if not result.check(msg, 0) then
raise EFHIRPath.create('Error parsing "'+path+'": '+msg);
result.Link;
finally
result.free;
end;
i := lexer.CurrentStart;
finally
lexer.Free;
end;
end;
function TFHIRPathParser.parseExpression(lexer : TFHIRPathLexer; proximal : boolean): TFHIRPathExpressionNode;
var
focus, item : TFHIRPathExpressionNode;
isString : boolean;
ucum, s, unit_ : String;
q : TFHIRQuantity;
wrapper : TFHIRPathExpressionNode;
begin
wrapper := nil;
result := TFHIRPathExpressionNode.Create(lexer.nextId);
try
result.SourceLocationStart := lexer.CurrentStartLocation;
lexer.checkArithmeticPrefixes;
// special: +/- represents a unary operation at this point, but cannot be a feature of the lexer, since that's not always true.
// so we back correct for both +/- and as part of a numeric constant below.
if StringArrayExistsSensitive(['-', '+'],lexer.Current) then
begin
wrapper := TFHIRPathExpressionNode.Create(lexer.nextId);
wrapper.kind := enkUnary;
wrapper.Operation := TFHIRPathOperation(StringArrayIndexOfSensitive(CODES_TFHIRPathOperation, lexer.take));
wrapper.Proximal := proximal;
end;
if lexer.isConstant then
begin
isString := lexer.isStringConstant;
if not isString and (lexer.current.StartsWith('-') or lexer.current.StartsWith('+')) then
begin
// the grammar says that this is a unary operation; it affects the correct processing order of the inner operations
wrapper := TFHIRPathExpressionNode.Create(lexer.nextId);
wrapper.kind := enkUnary;
wrapper.Operation := TFHIRPathOperation(StringArrayIndexOfSensitive(CODES_TFHIRPathOperation, lexer.current[1]));
wrapper.Proximal := proximal;
lexer.Current := lexer.Current.Substring(1);
end;
result.Constant := lexer.processConstant;
result.kind := enkConstant;
if (not isString and not lexer.done() and (result.constant <> nil)
and result.constant.hasType(['integer', 'decimal']) and
(lexer.isStringConstant() or lexer.hasToken(['year', 'years', 'month', 'months', 'week', 'weeks', 'day', 'days', 'hour', 'hours', 'minute', 'minutes', 'second', 'seconds', 'millisecond', 'milliseconds']))) then
begin
// it's a quantity
ucum := '';
unit_ := '';
if (lexer.hasToken(['year', 'years', 'month', 'months', 'week', 'weeks', 'day', 'days', 'hour', 'hours', 'minute', 'minutes', 'second', 'seconds', 'millisecond', 'milliseconds'])) then
begin
s := lexer.take();
unit_ := s;
if (s = 'year') or (s = 'years') then
// this is not a ucum year
else if (s = 'month') or (s = 'month') then
// this is not a ucum month
else if (s = 'week') or (s = 'weeks') then
ucum := 'wk'
else if (s = 'day') or (s = 'days') then
ucum := 'd'
else if (s = 'hour') or (s = 'hours') then
ucum := 'h'
else if (s = 'minute') or (s = 'minutes') then
ucum := 'min'
else if (s = 'second') or (s = 'seconds') then
ucum := 's'
else // (s = 'millisecond") || s = 'milliseconds"))
ucum := 'ms';
end
else
ucum := lexer.readConstant('units');
q := TFHIRQuantity.create;
try
q.value := result.constant.primitiveValue;
q.unit_ := unit_;
if (ucum <> '') then
begin
q.system := URI_UCUM;
q.code := ucum;
end;
result.constant := q.Link;
finally
q.Free;
end;
end;
result.SourceLocationEnd := lexer.CurrentLocation;
end
else if lexer.current = '(' then
begin
lexer.next;
result.kind := enkGroup;
result.group := parseExpression(lexer, true);
if lexer.current <> ')' then
raise lexer.error('Found '+lexer.current+' expecting a ")"');
result.SourceLocationEnd := lexer.CurrentLocation;
lexer.next;
end
else
begin
if not lexer.isToken and not lexer.current.startsWith('`') then
raise lexer.error('Found "'+lexer.current+'" expecting a token name');
result.Name := lexer.readIdentifier('Path Name');
result.SourceLocationEnd := lexer.CurrentLocation;
if not result.checkName then
raise lexer.error('Found '+lexer.current+' expecting a valid token name');
if (lexer.current = '(') then
begin
if StringArrayExistsSensitive(CODES_TFHIRPathFunctions, result.Name) then
result.FunctionId := TFHIRPathFunction(StringArrayIndexOfSensitive(CODES_TFHIRPathFunctions, result.Name))
else if result.Name = 'descendents' then
result.FunctionId := pfDescendants
else if isKnownFunction(result.name) then
result.FunctionId := pfCustom
else
raise lexer.error('The name '+result.Name+' is not a valid function name');
result.kind := enkFunction;
lexer.next;
while lexer.current <> ')' do
begin
result.Parameters.add(parseExpression(lexer, true));
if lexer.current = ',' then
lexer.next
else if lexer.current <> ')' then
raise lexer.error('The token '+lexer.current+' is not expected here - either a "," or a ")" expected');
end;
result.SourceLocationEnd := lexer.CurrentLocation;
lexer.next;
checkParameters(lexer, result.SourceLocationStart, result);
end;
end;
focus := result;
while (lexer.current = '[') do
begin
lexer.next();
item := TFHIRPathExpressionNode.Create(lexer.nextId);
item.Kind := enkFunction;
item.Functionid := pfItem;
item.Parameters.add(parseExpression(lexer, true));
if (lexer.current <> ']') then
raise lexer.error('The token '+lexer.Current+' is not expected here - a "]" expected');
lexer.next;
focus.inner := item;
focus := item;
end;
if lexer.current = '.' then
begin
lexer.next;
focus.Inner := parseExpression(lexer, false);
end;
result.Proximal := proximal;
if (proximal) then
begin
while lexer.isOp() do
begin
focus.Operation := TFHIRPathOperation(StringArrayIndexOfSensitive(CODES_TFHIRPathOperation, lexer.current));
focus.OpSourceLocationStart := lexer.CurrentStartLocation;
focus.OpSourceLocationEnd := lexer.CurrentLocation;
lexer.next;
focus.opNext := parseExpression(lexer, false);
focus := focus.OpNext;
end;
organisePrecedence(lexer, result);
end;
if wrapper <> nil then
begin
wrapper.OpNext := result;
result.Proximal := False;
result := wrapper.Link;
end
else
result.link;
finally
result.Free;
end;
end;
function TFHIRPathParser.newGroup(lexer : TFHIRPathLexer; next : TFHIRPathExpressionNode) : TFHIRPathExpressionNode;
begin
result := TFHIRPathExpressionNode.Create(lexer.nextId);
try
result.kind := enkGroup;
result.Group := next.Link;
result.Group.Proximal := true;
result.link;
finally
result.free;
end;
end;
procedure TFHIRPathParser.gatherPrecedence(lexer : TFHIRPathLexer; var start : TFHIRPathExpressionNode; ops : TFHIRPathOperationSet);
var
work : boolean;
focus, node, group : TFHIRPathExpressionNode;
begin
assert(start.Proximal);
// is there anything to do?
work := false;
focus := start.OpNext;
if start.Operation in ops then
while (focus <> nil) and (focus.operation <> popNull) do
begin
work := work or not (focus.Operation in Ops);
focus := focus.OpNext;
end
else
while (focus <> nil) and (focus.operation <> popNull) do
begin
work := work or (focus.Operation in Ops);
focus := focus.OpNext;
end;
if not work then
exit;
// entry point: tricky
if start.Operation in ops then
begin
group := newGroup(lexer, start);
group.proximal := true;
focus := start;
start.Free;
start := group;
end
else
begin
node := start;
focus := node.OpNext;
while not (focus.Operation in Ops) do
begin
node := focus;
focus := focus.OpNext;
end;
group := newGroup(lexer, focus);
node.OpNext := group;
end;
// now, at this point:
// group is the group we are adding to, it already has a .group property filled out.
// focus points at the group.group
repeat
// run until we find the end of the sequence
while (focus.Operation in ops) do
focus := focus.OpNext;
if (focus.Operation <> popNull) then
begin
group.Operation := focus.Operation;
group.OpNext := focus.OpNext.Link;
focus.Operation := popNull;
focus.OpNext := nil;
// now look for another sequence, and start it
node := group;
focus := group.OpNext;
if (focus <> nil) then
begin
while (focus <> nil) and not (focus.Operation in Ops) do
begin
node := focus;
focus := focus.OpNext;
end;
if (focus <> nil) { and (focus.Operation in Ops) - must be true } then
begin
group := newGroup(lexer, focus);
node.OpNext := group;
end;
end;
end;
until (focus = nil) or (focus.Operation = popNull);
end;
function TFHIRPathParser.isKnownFunction(name: String): boolean;
var
ext : TFHIRPathEngineExtension;
begin
result := false;
for ext in FExtensions do
if ext.isValidFunction(name) then
exit(true);
end;
procedure TFHIRPathParser.organisePrecedence(lexer : TFHIRPathLexer; var node : TFHIRPathExpressionNode);
begin
gatherPrecedence(lexer, node, [popTimes, popDivideBy, popDiv, popMod]);
gatherPrecedence(lexer, node, [popPlus, popMinus, popConcatenate]);
gatherPrecedence(lexer, node, [popUnion]);
gatherPrecedence(lexer, node, [popLessThan, popGreater, popLessOrEqual, popGreaterOrEqual]);
gatherPrecedence(lexer, node, [popIs]);
gatherPrecedence(lexer, node, [popEquals, popEquivalent, popNotEquals, popNotEquivalent]);
gatherPrecedence(lexer, node, [popAnd]);
gatherPrecedence(lexer, node, [popXor, popOr]);
// last: implies
end;
function TFHIRPathParser.sizeInBytesV(magic : integer) : cardinal;
begin
result := inherited sizeInBytesV(magic);
inc(result, FExtensions.sizeInBytes(magic));
end;
{ TFHIRPathEngine }
function TFHIRPathEngine.check(appInfo : TFslObject; resourceType, context, path : String; expr : TFHIRPathExpressionNode; xPathStartsWithValueRef : boolean) : TFHIRTypeDetails;
var
types : TFHIRTypeDetails;
ctxt : TFHIRPathExecutionTypeContext;
sd : TFHIRStructureDefinition;
ed : TFHIRElementDefinition;
td : TFhirElementDefinitionType;
t : String;
begin
if (xPathStartsWithValueRef and context.contains('.') and path.startsWith(context.substring(context.lastIndexOf('.')+1))) then
types := TFHIRTypeDetails.Create(csSINGLETON, [context.substring(0, context.lastIndexOf('.'))])
else if not context.contains('.') then
types := TFHIRTypeDetails.Create(csSINGLETON, [context])
else
begin
sd := worker.getStructure('http://hl7.org/fhir/StructureDefinition/'+context.Substring(0, context.IndexOf('.')));
try
if (sd = nil) then
raise EFHIRPathDefinitionCheck.Create('Unknown context '+context);
ed := getElementDefinition(sd, context, true, t);
if (ed = nil) then
raise EFHIRPathDefinitionCheck.Create('Unknown context element '+context);
if (t <> '') then
types := TFHIRTypeDetails.Create(csSINGLETON, [t])
else if (ed.type_List.Count = 0) or isAbstractType(ed.type_List) then
types := TFHIRTypeDetails.Create(csSINGLETON, [context])
else
begin
types := TFHIRTypeDetails.Create(csSINGLETON, []);
for td in ed.type_List do
types.addType(td.code);
end;
finally
sd.free;
end;
end;
try
ctxt := TFHIRPathExecutionTypeContext.create(appInfo, resourceType, types.Link);
try
result := executeType(ctxt, types, expr, true);
finally
ctxt.free;
end;
finally
types.Free;
end;
end;
function TFHIRPathEngine.convertToBoolean(items: TFHIRSelectionList): boolean;
begin
if (items = nil) then
result := false
else if (items.count = 1) and (items[0].value is TFHIRBoolean) then
result := TFHIRBoolean(items[0].value).value
else
result := items.count > 0;
end;
function TFHIRPathEngine.convertToString(item: TFHIRObject): String;
var
q : TFHIRQuantity;
u : String;
begin
if item = nil then
result := ''
else if item.isPrimitive then
result := item.primitiveValue
else if (item is TFHIRQuantity) then
begin
q := item as TFHIRQuantity;
if (StringArrayExistsSensitive(['year', 'years', 'month', 'months', 'week', 'weeks', 'day', 'days', 'hour', 'hours', 'minute', 'minutes', 'second', 'seconds', 'millisecond', 'milliseconds'], q.unit_)
and ((q.system ='') or (q.system = URI_UCUM))) then
exit(q.value+' '+q.unit_);
if (q.system = URI_UCUM) then
begin
u := ''''+q.code+'''';
result := q.value+' '+u;
end;
end
else if item is TFhirDataType then
result := gen(item as TFHIRDataType)
else
result := '';
end;
constructor TFHIRPathEngine.create(context: TFHIRWorkerContext; ucum : TUcumServiceInterface);
var
sd : TFhirStructureDefinition;
list : TFslList<TFHIRStructureDefinition>;
begin
inherited Create;
worker := context;
self.FUcum := ucum;
FLog := TStringBuilder.Create;
allTypes := TStringList.Create;
primitiveTypes := TStringList.Create;
if (worker <> nil) then
begin
list := TFslList<TFHIRStructureDefinition>.create;
try
worker.listStructures(list);
for sd in list do
if (sd.kind <> StructureDefinitionKindLogical) then
begin
{$IFNDEF FHIR2}
if (sd.derivation = TypeDerivationRuleSPECIALIZATION) then
allTypes.add(sd.id);
if (sd.derivation = TypeDerivationRuleSPECIALIZATION) and (sd.kind = StructureDefinitionKindPrimitiveType) then
primitiveTypes.add(sd.id);
{$ELSE}
raise EFHIRException.create('Debug this');
if (sd.constrainedType = DefinedTypesNull) then
allTypes.add(sd.id);
if (sd.constrainedType = DefinedTypesNull) and isPrimitive(sd) then
primitiveTypes.add(sd.id);
{$ENDIF}
end;
finally
list.Free;
end;
end;
end;
function TFHIRPathEngine.dateAdd(d: TFhirObject; qty: TFhirQuantity; negate: boolean): TFhirObject;
var
v : integer;
c : String;
begin
if negate then
v := 0 - TFslDecimal.Create(qty.value).Trunc.AsInteger
else
v := TFslDecimal.Create(qty.value).Trunc.AsInteger;
result := d.Clone;
try
c := qty.code;
if (c = '') then
c := qty.unit_;
if (c = 'years') or (c = 'year') then
result.dateValue := d.dateValue.add(v, dtuYear)
else if (c = 'a') then
raise EFHIRPath.create(format('Error in date arithmetic: attempt to add a definite quantity duration time unit %s', [c]))
else if (c = 'months') or (c = 'month') then
result.dateValue := d.dateValue.add(v, dtuMonth)
else if (c = 'mo') then
raise EFHIRPath.create(format('Error in date arithmetic: attempt to add a definite quantity duration time unit %s', [c]))
else if (c = 'weeks') or (c = 'week') or (c = 'wk') then
result.dateValue := d.dateValue.add(v * 7, dtuDay)
else if (c = 'days') or (c = 'day') or (c = 'd') then
result.dateValue := d.dateValue.add(v, dtuDay)
else if (c = 'hours') or (c = 'hour') or (c = 'h') then
result.dateValue := d.dateValue.add(v, dtuHour)
else if (c = 'minutes') or (c = 'minute') or (c = 'min') then
result.dateValue := d.dateValue.add(v, dtuMinute)
else if (c = 'seconds') or (c = 'second') or (c = 's') then
result.dateValue := d.dateValue.add(v, dtuSecond)
else if (c = 'millisecond') or (c = 'millisecond') or (c = 'ms') then
result.dateValue := d.dateValue.add(v, dtuMillisecond)
else
raise EFHIRPath.create(format('Error in date arithmetic: unrecognized time unit %s', [c]));
result.Link;
finally
result.Free;
end;
end;
procedure TFHIRPathEngine.debug(context : TFHIRPathExecutionContext; exp: TFHIRPathExpressionNode; op : boolean; input1, input2, outcome: TFHIRSelectionList);
var
pack : TFHIRPathDebugPackage;
begin
if assigned(Ondebug) then
begin
pack := TFHIRPathDebugPackage.Create;
try
if (input2 = nil) then
begin
pack.SourceStart := exp.SourceLocationStart;
pack.SourceEnd := exp.SourceLocationEnd;
end
else
begin
pack.SourceStart := exp.OpSourceLocationStart;
pack.SourceEnd := exp.OpSourceLocationEnd;
end;
pack.Expression := exp.Link;
pack.IsOperation := op;
pack.context := context.Link;
pack.input1 := input1.Link;
pack.input2 := input2.Link;
pack.outcome := outcome.Link;
Ondebug(self, pack);
finally
pack.Free;
end;
end
else
begin
// if op then
// if input2 <> nil then
// writeln(input1.ToString+' '+CODES_TFHIRPathOperation[exp.Operation]+' '+input2.ToString+' = ' + outcome.ToString)
// else
// writeln(input1.ToString+' '+CODES_TFHIRPathOperation[exp.Operation]+' (nil) = ' + outcome.ToString)
// else
// writeln('@'+exp.ToString+': '+input1.ToString+' -> '+outcome.ToString);
end;
end;
destructor TFHIRPathEngine.destroy;
begin
FLog.Free;
FUcum.Free;
worker.Free;
primitiveTypes.Free;
allTypes.Free;
inherited;
end;
function TFHIRPathEngine.convertToString(items: TFHIRSelectionList): String;
var
b : TStringBuilder;
first : boolean;
item : TFHIRSelection;
begin
b := TStringBuilder.Create;
try
first := true;
for item in items do
begin
if (first) then
first := false
else
b.Append(',');
b.Append(convertToString(item.value));
end;
result := b.ToString;
finally
b.Free;
end;
end;
function TFHIRPathEngine.evaluate(appInfo : TFslObject; base: TFHIRObject; path: String): TFHIRSelectionList;
var
exp : TFHIRPathExpressionNode;
list : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
FLog.clear;
exp := parse(path);
try
list := TFHIRSelectionList.Create(base.Link);
try
ctxt := TFHIRPathExecutionContext.Create(appInfo.Link, nil, base.Link);
try
result := execute(ctxt, list, exp, true);
finally
ctxt.free;
end;
finally
list.Free;
end;
finally
exp.free;
end;
end;
function TFHIRPathEngine.evaluate(appInfo : TFslObject; base: TFHIRObject; expr : TFHIRPathExpressionNodeV): TFHIRSelectionList;
var
list : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
FLog.clear;
list := TFHIRSelectionList.Create(base.Link);
try
ctxt := TFHIRPathExecutionContext.Create(appInfo.Link, nil, base.Link);
try
result := execute(ctxt, list, expr as TFHIRPathExpressionNode, true);
finally
ctxt.Free;
end;
finally
list.Free;
end;
end;
function TFHIRPathEngine.evaluate(appInfo : TFslObject; resource : TFHIRObject; base: TFHIRObject; path: String): TFHIRSelectionList;
var
exp : TFHIRPathExpressionNode;
list : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
FLog.clear;
exp := parse(path);
try
list := TFHIRSelectionList.Create(base.Link);
try
ctxt := TFHIRPathExecutionContext.Create(appInfo.Link, resource.Link, base.Link);
try
result := execute(ctxt, list, exp, true);
finally
ctxt.Free;
end;
finally
list.Free;
end;
finally
exp.free;
end;
end;
function removeTrailingZeros(s : String) : String;
var
i : integer;
done, dot : boolean;
begin
i := s.Length;
done := false;
dot := false;
while (i > 1) and not done do
begin
if s[i] = '.' then
begin
dec(i);
dot := true;
end
else if not dot and (s[i] = '0') then
dec(i)
else
done := true;
end;
result := copy(s, 1, i);
end;
function decEqual(left, right : String) : boolean;
begin
left := removeTrailingZeros(left);
right := removeTrailingZeros(right);
result := left = right;
end;
function boolToTriState(b : boolean): TEqualityTriState; inline;
begin
if b then
result := equalTrue
else
result := equalFalse;
end;
function triStateToBool(ts: TEqualityTriState; def : boolean): boolean; inline;
begin
case ts of
equalFalse: result := false;
equalTrue: result := true;
else // eqNull
result := def;
end;
end;
function TFHIRPathEngine.equal(left, right: TFHIRObject): TEqualityTriState;
begin
if (left is TFHIRQuantity) and (right is TFHIRQuantity) then
result := qtyEqual(left as TFHIRQuantity, right as TFHIRQuantity)
else if (left.dateValue.notNull) and (right.dateValue.notNull) then
result := left.dateValue.equalsUsingFhirPathRules(right.dateValue)
else if (left is TFHIRDecimal) or (right is TFHIRDecimal) then
result := boolToTriState(decEqual(left.primitiveValue, right.primitiveValue))
else if (left.isPrimitive and right.isPrimitive) then
result := boolToTriState(left.primitiveValue = right.primitiveValue)
else
result := boolToTriState(compareDeep(left, right, false));
end;
function equivalentNumber(l, r : String) : boolean;
var
dl, dr : TFslDecimal;
begin
// not that this should make any difference
l := l.ToLower.trim;
r := r.ToLower.trim;
if (l = '') and (r = '') then
result := true
else if (l = '') or (r = '') or not StringIsDecimal(l) or not StringIsDecimal(r) then
result := false
else
begin
dl := TFsldecimal.Create(l);
dr := TFsldecimal.Create(r);
result := dl.equivalent(dr);
end
end;
function TFHIRPathEngine.equivalent(left, right: TFHIRObject): boolean;
begin
if (left.hasType('integer') and right.hasType('integer')) then
result := triStateToBool(equal(left, right), false)
else if (left.hasType('boolean') and right.hasType('boolean')) then
result := triStateToBool(equal(left, right), false)
else if (left.hasType('Quantity') and right.hasType('Quantity')) then
result := qtyEquivalent(left as TFHIRQuantity, right as TFHIRQuantity)
else if (left.hasType(['integer', 'decimal']) and right.hasType(['integer', 'decimal'])) then
result := equivalentNumber(left.primitiveValue(), right.primitiveValue())
else if (left.dateValue.notNull) and (right.dateValue.notNull) then
begin
case left.dateValue.equalsUsingFhirPathRules(right.dateValue) of
equalNull: result := false;
equalFalse: result := false;
equalTrue: result := true;
else
result := false;
end;
end
else if (left.hasType(['string', 'id', 'code', 'uri']) and right.hasType(['string', 'id', 'code', 'uri'])) then
result := SameText(left.primitiveValue, right.primitiveValue)
else if (left.isPrimitive() and right.isPrimitive()) then
result := SameText(left.primitiveValue, right.primitiveValue)
else
result := objectsEquivalent(left, right);
end;
function TFHIRPathEngine.evaluate(appInfo : TFslObject; resource : TFHIRObject; base: TFHIRObject; expr : TFHIRPathExpressionNodeV): TFHIRSelectionList;
var
list : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
FLog.clear;
list := TFHIRSelectionList.Create(base.Link);
try
ctxt := TFHIRPathExecutionContext.Create(appInfo.Link, resource.Link, base.Link);
try
ctxt.This := base;
result := execute(ctxt, list, expr as TFHIRPathExpressionNode, true);
finally
ctxt.Free;
end;
finally
list.Free;
end;
end;
function TFHIRPathEngine.evaluateCustomFunctionType(context: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode): TFHIRTypeDetails;
begin
raise EFHIRPath.create('Unknown Function '+exp.name);
end;
function TFHIRPathEngine.executeV(context: TFHIRPathExecutionContext; item: TFHIRObject; exp: TFHIRPathExpressionNodeV; atEntry: boolean): TFHIRSelectionList;
begin
result := execute(context, item, exp as TFHIRPathExpressionNode, atEntry);
end;
function TFHIRPathEngine.executeV(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNodeV; atEntry: boolean): TFHIRSelectionList;
begin
result := execute(context, focus, exp as TFHIRPathExpressionNode, atEntry);
end;
function TFHIRPathEngine.evaluateToBoolean(appInfo : TFslObject; resource : TFHIRObject; base: TFHIRObject; path: String): boolean;
var
res : TFHIRSelectionList;
begin
res := evaluate(appInfo, resource, base, path);
try
result := convertToBoolean(res);
finally
res.Free;
end;
end;
function TFHIRPathEngine.evaluateToBoolean(appInfo: TFslObject; resource, base: TFHIRObject; expr: TFHIRPathExpressionNodeV): boolean;
var
res : TFHIRSelectionList;
begin
res := evaluate(appInfo, resource, base, expr);
try
result := convertToBoolean(res);
finally
res.Free;
end;
end;
function TFHIRPathEngine.evaluateToString(appInfo: TFslObject; base: TFHIRObject; expr: TFHIRPathExpressionNodeV): string;
var
res : TFHIRSelectionList;
begin
res := evaluate(appInfo, base, expr);
try
result := convertToString(res);
finally
res.Free;
end;
end;
function TFHIRPathEngine.evaluateToString(appInfo : TFslObject; base: TFHIRObject; path: String): string;
var
res : TFHIRSelectionList;
begin
res := evaluate(appInfo, base, path);
try
result := convertToString(res);
finally
res.Free;
end;
end;
function TFHIRPathEngine.execute(context : TFHIRPathExecutionContext; item : TFHIRObject; exp : TFHIRPathExpressionNode; atEntry : boolean): TFHIRSelectionList;
var
temp : TFHIRObject;
ok : boolean;
begin
result := TFHIRSelectionList.Create;
try
ok := false;
if (atEntry and (context.appInfo <> nil) and assigned(FOnResolveConstant)) then
begin
// we'll see if the name matches a constant known by the context.
temp := FOnResolveConstant(self, context.appInfo, exp.name, true);
if (temp <> nil) then
begin
result.add(temp);
ok := true;
end;
end;
if not ok then
begin
if atEntry and (exp.name <> '') and (CharInSet(exp.name[1], ['A'..'Z'])) then // special case for start up
begin
if (item.FhirType = exp.name) or StringArrayExistsSensitive(['Resource', 'DomainResource'], exp.name) then
result.Add(item.Link);
end
else
ListChildrenByName(item, exp.name, result);
if (atEntry and (context.appInfo <> nil) and assigned(FOnResolveConstant) and result.Empty) then
begin
// well, we didn't get a match on the name - we'll see if the name matches a constant known by the context.
// (if the name does match, and the user wants to get the constant value, they'll have to try harder...
temp := FOnResolveConstant(self, context.appInfo, exp.name, false);
if (temp <> nil) then
result.add(temp);
end;
end;
result.link;
finally
result.free;
end;
end;
procedure TFHIRPathEngine.ListAllChildren(item : TFHIRObject; results : TFHIRSelectionList; recurse : boolean);
var
pi : TFHIRPropertyIterator;
b : TFHIRObject;
s : String;
begin
s := item.fhirtype;
pi := item.createIterator(true, false);
try
while pi.More do
begin
if pi.Current.hasValue then
begin
for b in pi.Current.Values do
begin
results.Add(item.Link, pi.Current.Name, b.Link as TFHIRObject);
if (recurse) then
ListAllChildren(b as TFHIRObject, results, true);
end;
end;
pi.Next;
end;
finally
pi.free;
end;
end;
function TFHIRPathEngine.resolveConstantType(ctxt: TFHIRPathExecutionTypeContext; constant : TFHIRObject) : TFHIRTypeDetails;
begin
if (constant is TFHIRBoolean) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Boolean])
else if (constant is TFHIRInteger) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Integer])
else if (constant is TFHIRDecimal) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Decimal])
else if (constant is TFHIRQuantity) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Quantity])
else if (constant is TFHIRConstant) then
result := resolveConstantType(ctxt, (constant as TFHIRConstant).FValue)
else
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String]);
end;
function TFHIRPathEngine.resolveConstantType(ctxt: TFHIRPathExecutionTypeContext; s : String) : TFHIRTypeDetails;
begin
if (s.startsWith('@')) then
if (s.startsWith('@T')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Time])
else
result := TFHIRTypeDetails.create(csSINGLETON, [FP_DateTime])
else if (s.equals('%sct')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.equals('%loinc')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.equals('%ucum')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.equals('%resource')) then
begin
if (ctxt.resourceType = '') then
raise EFHIRPath.create('%resource cannot be used in this context');
result := TFHIRTypeDetails.create(csSINGLETON, [ctxt.resourceType]);
end else if (s.equals('%context')) then
result := ctxt.context.link
else if (s.equals('%map-codes')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.equals('%us-zip')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.startsWith('%`vs-')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.startsWith('%`cs-')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else if (s.startsWith('%`ext-')) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String])
else
raise EFHIRPath.create('Unknown fixed constant type for "'+s+'"');
end;
function TFHIRPathEngine.executeType(ctxt: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode; atEntry : boolean): TFHIRTypeDetails;
var
s : TFHIRProfiledType;
work, work2 : TFHIRTypeDetails;
next, last : TFHIRPathExpressionNode;
begin
result := TFHIRTypeDetails.Create(csNULL, []);
try
case exp.kind of
enkName:
if atEntry and (exp.Name = '$this') then
result.update(ctxt.context)
else if atEntry and (exp.Name = '$total') then
result.update(csUNORDERED, allTypes)
else
begin
for s in focus.types do
begin
work := executeType(s.uri, exp, atEntry);
try
result.update(work);
finally
work.Free;
end;
end;
if (result.hasNoTypes) then
raise EFHIRPath.create('The name '+exp.Name+' was not valid for any of the possible types: '+focus.describe());
end;
enkUnary :
begin
result.addType('integer');
result.addType('decimal');
result.addType('Quantity');
end;
enkFunction:
begin
work := evaluateFunctionType(ctxt, focus, exp);
try
result.update(work)
finally
work.Free;
end;
end;
enkConstant:
begin
work := resolveConstantType(ctxt, exp.Constant);
try
result.update(work)
finally
work.Free;
end;
end;
enkGroup:
begin
work := executeType(ctxt, focus, exp.Group, atEntry);
try
result.update(work)
finally
work.Free;
end;
end;
end;
exp.types := result.Link;
if (exp.Inner <> nil) then
begin
work := executeType(ctxt, result, exp.Inner, false);
result.Free;
result := work;
end;
if (exp.proximal and (exp.Operation <> popNull)) then
begin
next := exp.OpNext;
last := exp;
while (next <> nil) do
begin
if (last.Operation in [popIs, popAs]) then
work := TFHIRTypeDetails.create(csSINGLETON, next.name)
else
work := executeType(ctxt, focus, next, atEntry);
try
work2 := operateTypes(result, last.Operation, work);
result.Free;
result := work2;
finally
work.Free;
end;
last := next;
next := next.OpNext;
end;
exp.opTypes := result.Link;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAll(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
all: boolean;
begin
result := TFHIRSelectionList.Create();
try
if (exp.Parameters.count = 1) then
begin
all := true;
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
res := execute(context, pc, exp.Parameters[0], true);
try
if asBool(res) <> equalTrue then
begin
all := false;
break;
end;
finally
res.Free;
end;
end;
finally
pc.Free;
end;
result.add(TFhirBoolean.Create(all).noExtensions)
end
else // (exp.getParameters().size() == 0)
begin
all := true;
for item in focus do
begin
if asBool(item.value) <> equalTrue then
begin
all := false;
break;
end;
end;
result.add(TFhirBoolean.Create(all).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAs(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
tn : String;
b : TFHIRSelection;
begin
if exp.Parameters[0].Inner = nil then
tn := 'FHIR.'+exp.Parameters[0].name
else
tn := exp.Parameters[0].name+'.'+exp.Parameters[0].Inner.name;
result := TFHIRSelectionList.Create;
try
for b in focus do
if tn.StartsWith('System.') then
begin
if (b.value is TFhirElement) and (b.value as TFhirElement).DisallowExtensions then
if (b.value.hasType(tn.Substring(7))) then
result.add(b.Link);
end
else if (tn.StartsWith('FHIR.')) then
if (b.value.hasType(tn.Substring(5))) then
result.add(b.Link);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcChildren(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
begin
result := TFHIRSelectionList.Create;
try
for item in focus do
listAllChildren(item.value, result, false);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcContains(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
res : TFHIRSelectionList;
sw : String;
begin
result := TFHIRSelectionList.Create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
sw := convertToString(res);
finally
res.free;
end;
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions)
else if sw = '' then
result.add(TFHIRBoolean.create(true).noExtensions)
else
result.add(TFHIRBoolean.create(convertToString(focus[0].value).contains(sw)).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcCount(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create(TFhirInteger.Create(inttostr(focus.Count)).noExtensions);
end;
function TFHIRPathEngine.funcDecode(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
cnt, param : String;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
param := nl[0].value.primitiveValue;
if (focus.count = 1) then
begin
cnt := focus[0].value.primitiveValue;
if (param = 'hex') then
cnt := TEncoding.UTF8.GetString(DecodeHexadecimal(cnt))
else if (param = 'base64') then
cnt := TEncoding.UTF8.GetString(DecodeBase64(cnt))
else if (param = 'urlbase64') then
cnt := TEncoding.UTF8.GetString(DecodeBase64Url(cnt))
else
raise EFHIRPath.Create('Unrecognised decode parameter "'+param+'"');
result := TFHIRSelectionList.Create(TFHIRString.Create(cnt));
end
else
result := TFHIRSelectionList.Create();
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcDescendants(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
begin
result := TFHIRSelectionList.Create;
try
for item in focus do
listAllChildren(item.value, result, true);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcDistinct(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
i, j : integer;
found : boolean;
eq : TEqualityTriState;
begin
if (focus.count <= 1) then
exit(focus.Link);
result := TFHIRSelectionList.Create;
try
for i := 0 to focus.count - 1 do
begin
found := false;
for j := i+1 to focus.count - 1 do
begin
eq := equal(focus[j].value, focus[i].value);
if (eq = equalNull) then
begin
result.Clear;
exit;
end
else if eq = equalTrue then
begin
found := true;
break;
end;
end;
if (not found) then
result.add(focus[i].Link);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcEmpty(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create(TFhirBoolean.Create(focus.Count = 0).noExtensions);
end;
function TFHIRPathEngine.funcEncode(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
cnt, param : String;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
param := nl[0].value.primitiveValue;
if (focus.count = 1) then
begin
cnt := focus[0].value.primitiveValue;
if (param = 'hex') then
cnt := String(EncodeHexadecimal(TEncoding.UTF8.GetBytes(cnt)))
else if (param = 'base64') then
cnt := String(EncodeBase64(TEncoding.UTF8.GetBytes(cnt)))
else if (param = 'urlbase64') then
cnt := String(EncodeBase64Url(TEncoding.UTF8.GetBytes(cnt)))
else
raise EFHIRPath.Create('Unrecognised encode parameter "'+param+'"');
result := TFHIRSelectionList.Create(TFHIRString.Create(cnt));
end
else
result := TFHIRSelectionList.Create();
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcEndsWith(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
res : TFHIRSelectionList;
sw : String;
begin
result := TFHIRSelectionList.Create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
sw := convertToString(res);
finally
res.free;
end;
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions)
else if (sw = '') then
result.add(TFHIRBoolean.create(true).noExtensions)
else
result.add(TFHIRBoolean.create(convertToString(focus[0].value).endsWith(sw)).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcEscape(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
cnt, param : String;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
param := nl[0].value.primitiveValue;
if (focus.count = 1) then
begin
cnt := focus[0].value.primitiveValue;
if (param = 'html') then
cnt := FormatTextToHTML(cnt)
else if (param = 'json') then
cnt := JSONString(cnt)
else if (param = 'xml') then
cnt := FormatTextToXML(cnt, xmlText)
else
raise EFHIRPath.Create('Unrecognised escape parameter "'+param+'"');
result := TFHIRSelectionList.Create(TFHIRString.Create(cnt));
end
else
result := TFHIRSelectionList.Create();
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcFirst(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
if focus.Count > 0 then
result.Add(focus[0].Link);
end;
function TFHIRPathEngine.funcFloor(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for floor has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Floor.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Floor.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for abs.floor: expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcForHtml(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
b : TFslStringBuilder;
first : boolean;
item : TFHIRSelection;
begin
first := true;
b := TFslStringBuilder.Create;
try
for item in focus do
begin
if first then first := false else b.Append(', ');
if item.value is TFhirDataType then
b.Append(FormatTextToHTML(gen(item.value as TFhirDataType)))
else
b.Append('??');
end;
result := TFHIRSelectionList.Create(TFhirString.Create(b.AsString));
finally
b.Free;
end;
end;
function TFHIRPathEngine.funcHasExtension(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item, ex : TFHIRSelection;
vl : TFHIRSelectionList;
url : String;
n1, ext : TFHIRSelectionList;
begin
n1 := nil;
result := TFHIRSelectionList.Create;
try
n1 := execute(context, focus, exp.Parameters[0], true);
url := n1[0].value.primitiveValue;
for item in focus do
begin
ext := TFHIRSelectionList.Create;
try
ListChildrenByName(item.value, 'extension', ext);
ListChildrenByName(item.value, 'modifierExtension', ext);
for ex in ext do
begin
vl := TFHIRSelectionList.Create;
try
ListChildrenByName(ex.value, 'url', vl);
result.Add(TFhirBoolean.Create(convertToString(vl) = url).noExtensions);
finally
vl.Free;
end;
end;
finally
ext.Free;
end;
end;
result.Link;
finally
n1.free;
result.Free;
end;
end;
function TFHIRPathEngine.funcHasValue(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
result.add(TFHIRBoolean.create(focus[0].value.hasPrimitiveValue).noExtensions)
else
result.add(TFHIRBoolean.create(false).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcHtmlChecks(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
result.add(TFHIRBoolean.create(true).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIif(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
n1 : TFHIRSelectionList;
v : TEqualityTriState;
begin
n1 := execute(context, focus, exp.Parameters[0], true);
try
v := asBool(n1);
if (v = equalTrue) then
result := execute(context, focus, exp.parameters[1], true)
else if (exp.parameters.count < 3) then
result := TFHIRSelectionList.Create
else
result := execute(context, focus, exp.parameters[2], true);
finally
n1.free;
end;
end;
function TFHIRPathEngine.funcIs(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
ns, n : string;
texp : TFHIRPathExpressionNode;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 0) or (focus.count > 1) then
result.add(TFHIRBoolean.create(false).noExtensions)
else
begin
ns := '';
n := '';
texp := exp.Parameters[0];
if (texp.Kind <> enkName) then
raise EFHIRPath.create('Unsupported Expression type for Parameter on Is');
if (texp.inner <> nil) then
begin
if (texp.Kind <> enkName) then
raise EFHIRPath.create('Unsupported Expression type for Parameter on Is');
ns := texp.Name;
n := texp.inner.Name;
end
else if (StringArrayExistsSensitive(['Boolean', 'Integer', 'Decimal', 'String', 'DateTime', 'Date', 'Time', 'SimpleTypeInfo', 'ClassInfo'], texp.name)) then
begin
ns := 'System';
n := texp.name;
end
else
begin
ns := 'FHIR';
n := texp.name;
end;
if (ns = 'System') then
begin
if (focus[0].value is TFHIRResource) then
result.add(TFHIRBoolean.create(false).noExtensions)
else if (not (focus[0].value is TFHIRElement) or (focus[0].value as TFHIRElement).DisallowExtensions) then
if (focus[0].value.fhirType = 'date') and (n = 'DateTime') then
result.add(TFHIRBoolean.create(true).noExtensions)
else
result.add(TFHIRBoolean.create(n = capitalise(focus[0].value.fhirType)).noExtensions)
else
result.add(TFHIRBoolean.create(false).noExtensions);
end
else if (ns = 'FHIR') then
result.add(TFHIRBoolean.create(n = focus[0].value.fhirType).noExtensions)
else
result.add(TFHIRBoolean.create(false).noExtensions);
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.funcIsDistinct( context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
distinct : boolean;
i , j : integer;
eq : TEqualityTriState;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
result.add(TFHIRBoolean.create(true).noExtensions)
else if (focus.count > 1) then
begin
distinct := true;
for i := 0 to focus.count - 1 do
for j := i+1 to focus.count - 1 do
begin
eq := equal(focus[j].value, focus[i].value);
if (eq = equalNull) then
begin
result.Clear;
exit;
end
else if (eq = equalTrue) then
begin
distinct := false;
break;
end;
end;
result.add(TFHIRBoolean.create(distinct).noExtensions);
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.funcItem(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
s : String;
res : TFHIRSelectionList;
i : integer;
begin
res := execute(context, focus, exp.Parameters[0], true);
try
s := convertToString(res);
finally
res.Free;
end;
result := TFHIRSelectionList.Create;
if StringIsInteger16(s) then
begin
i := StrToInt(s);
if focus.oneBased then
dec(i);
if (focus.Count > i) then
result.Add(focus[i].Link);
end;
end;
function TFHIRPathEngine.funcJoin(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
param : String;
b : TFslStringBuilder;
o : TFHIRSelection;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
b := TFslStringBuilder.Create;
try
param := nl[0].value.primitiveValue;
for o in focus do
begin
b.seperator(param);
b.append(o.value.primitiveValue);
end;
result := TFHIRSelectionList.Create(TFhirString.Create(b.ToString));
finally
b.Free;
end;
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcLast(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
if focus.Count > 0 then
result.Add(focus[focus.Count - 1].Link);
end;
function TFHIRPathEngine.funcLength(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
s : String;
begin
result := TFHIRSelectionList.Create();
try
if (focus.count = 1) then
begin
s := convertToString(focus[0].value);
result.add(TFHIRInteger.create(inttostr(s.length)).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcLn(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for ln() has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Ln.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Ln.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for ln.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcTrace(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
n1, n2 : TFHIRSelectionList;
name : String;
begin
n1 := execute(context, focus, exp.Parameters[0], true);
try
name := n1[0].value.primitiveValue;
if exp.Parameters.Count = 2 then
begin
n2 := execute(context, focus, exp.Parameters[1], true);
try
log(name, convertToString(n2));
finally
n2.Free;
end;
end
else
log(name, convertToString(focus));
result := focus.Link;
finally
n1.Free;
end;
end;
function TFHIRPathEngine.funcTrim(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
if focus.Count = 1 then
result := TFHIRSelectionList.Create(TFhirString.Create(focus[0].value.primitiveValue.trim))
else
result := TFHIRSelectionList.Create();
end;
function TFHIRPathEngine.funcTruncate(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for truncate has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Trunc.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Trunc.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for truncate.focus: expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcMatches(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
res : TFHIRSelectionList;
s, p : String;
reg : TRegEx;
begin
result := TFHIRSelectionList.Create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
p := convertToString(res);
finally
res.free;
end;
reg := TRegEx.Create(p, [roCompiled]);
for item in focus do
begin
s := convertToString(item.value);
if (reg.isMatch(s)) then
result.Add(item.Link);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcMemberOf(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
raise EFHIRPathTodo.create('TFHIRPathEngine.funcMemberOf');
end;
function TFHIRPathEngine.funcNot(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
eq : TEqualityTriState;
begin
result := TFHIRSelectionList.Create;
try
eq := asBool(focus);
case eq of
equalFalse: result.add(TFhirBoolean.Create(true).noExtensions);
equalTrue: result.add(TFhirBoolean.Create(false).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcNow(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create(TFhirDateTime.Create(TFslDateTime.makeLocal).noExtensions);
end;
function TFHIRPathEngine.funcRepeat(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
current, added, pc, work : TFHIRSelectionList;
item : TFHIRSelection;
ctxt : TFHIRPathExecutionContext;
more : boolean;
begin
result := TFHIRSelectionList.Create;
current := TFHIRSelectionList.Create;
added := TFHIRSelectionList.Create;
try
current.AddAll(focus);
more := true;
while (more) do
begin
added.clear;
pc := TFHIRSelectionList.Create;
try
for item in current do
begin
pc.clear();
pc.add(item.link);
ctxt := context.changeThis(item.value);
try
work := execute(ctxt, pc, exp.parameters[0], true);
try
added.addAll(work);
finally
work.Free;
end;
finally
ctxt.Free;
end;
end;
finally
pc.free;
end;
more := added.Count > 0;
result.addAll(added);
current.clear();
current.addAll(added);
end;
result.Link;
finally
current.Free;
added.Free;
result.Free;
end;
end;
function TFHIRPathEngine.funcReplace(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
raise EFHIRPathTodo.create('TFHIRPathEngine.funcReplace');
end;
function TFHIRPathEngine.funcReplaceMatches( context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
raise EFHIRPathTodo.create('TFHIRPathEngine.funcReplaceMatches(');
end;
function TFHIRPathEngine.funcResolve(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
s, id : String;
p : TFHIRProperty;
res, c : TFHIRObject;
begin
result := TFHIRSelectionList.Create();
try
for item in focus do
begin
s := '';
if (item.value.fhirType = 'Reference') then
begin
p := item.value.getPropertyValue('reference');
try
if (p.hasValue) then
s := convertToString(p.Values[0]);
finally
p.free;
end;
end
else
s := convertToString(item.value);
res := nil;
if (s <> '') then
begin
if (s.startsWith('#') and (context.resource <> nil)) then
begin
id := s.substring(1);
p := context.resource.getPropertyValue('contained');
try
for c in p.Values do
begin
if (id = c.getId) then
begin
res := c;
break;
end;
end
finally
p.Free;
end;
end
else
begin
if not assigned(FOnResolveReference) then
raise EFHIRPath.create('resolve() - resolution services for '+exp.name+' not implemented yet');
res := FOnResolveReference(self, context.appInfo, s);
end;
if (res <> nil) then
result.add(res);
end;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcRound(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
n : TFHIRSelectionList;
p : integer;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for round() has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if exp.Parameters.Count = 0 then
p := 0
else
begin
n := execute(context, focus, exp.parameters[0], true);
try
if not StringIsInteger32(n[0].value.primitiveValue) then
raise EFHIRPath.Create('Error: the parameter round('+n[0].value.primitiveValue+') is not an integer');
p := StrToIntDef(n[0].value.primitiveValue, 0);
finally
n.Free;
end;
end;
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Round(p).AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Round(p).AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for round.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcSelect(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
pc, work : TFHIRSelectionList;
item : TFHIRSelection;
ctxt : TFHIRPathExecutionContext;
begin
result := TFHIRSelectionList.Create;
try
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.clear();
pc.add(item.link);
ctxt := context.changeThis(item.value);
try
work := execute(ctxt, pc, exp.parameters[0], true);
try
result.addAll(work);
finally
work.Free;
end;
finally
ctxt.Free;
end;
end;
finally
pc.free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcSingle(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
if (focus.count <> 1) then
raise EFHIRPath.create(StringFormat('Single() : checking for 1 item but found %d items', [focus.count]));
result := focus.link;
end;
function TFHIRPathEngine.funcSkip(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
bl : TFHIRSelectionList;
i, i1 : integer;
begin
bl := execute(context, focus, exp.Parameters[0], true);
try
result := TFHIRSelectionList.Create;
i1 := StrToInt(bl[0].value.primitiveValue);
for i := i1 to focus.count - 1 do
result.add(focus[i].Link);
finally
bl.free;
end;
end;
function TFHIRPathEngine.funcStartsWith(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
res : TFHIRSelectionList;
sw : String;
begin
result := TFHIRSelectionList.Create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
sw := convertToString(res);
finally
res.free;
end;
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions)
else if (sw = '') then
result.add(TFHIRBoolean.create(true).noExtensions)
else
result.add(TFHIRBoolean.create(convertToString(focus[0].value).startsWith(sw)).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcSubsetOf(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
target : TFHIRSelectionList;
valid, found : boolean;
item, t : TFHIRSelection;
eq : TEqualityTriState;
begin
target := execute(context, focus, exp.Parameters[0], true);
try
valid := true;
for item in focus do
begin
found := false;
for t in target do
begin
eq := equal(item.value, t.value);
if (eq = equalNull) then
exit(TFHIRSelectionList.Create)
else if (eq = equalTrue) then
begin
found := true;
break;
end;
end;
if (not found) then
begin
valid := false;
break;
end;
end;
result := TFHIRSelectionList.Create(TFHIRBoolean.create(valid).noExtensions);
finally
target.free;
end;
end;
function TFHIRPathEngine.funcSubString(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
s, sw : String;
n1, n2 : TFHIRSelectionList;
i1, i2 : integer;
begin
n1 := nil;
n2 := nil;
i2 := 0;
result := TFHIRSelectionList.Create;
try
n1 := execute(context, focus, exp.Parameters[0], true);
i1 := StrToInt(n1[0].value.primitiveValue);
if (exp.ParameterCount = 2) then
begin
n2 := execute(context, focus, exp.Parameters[1], true);
i2 := StrToInt(n2[0].value.primitiveValue);
end;
if focus.count = 1 then
begin
sw := convertToString(focus[0].value);
if (i1 >= 0) and (i1 < sw.length) then
begin
if n2 <> nil then
s := sw.Substring(i1, i2)
else
s := sw.Substring(i1);
if (s <> '') then
result.Add(TFhirString.Create(s).noExtensions);
end;
end;
result.Link;
finally
n1.free;
n2.free;
result.Free;
end;
end;
function TFHIRPathEngine.funcExists(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
empty : boolean;
f : TFHIRSelection;
pc, res : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
result := TFHIRSelectionList.Create;
try
empty := true;
pc := TFHIRSelectionList.create;
try
for f in focus do
begin
if (exp.parameters.Count = 1) then
begin
pc.clear();
pc.add(f.Link);
ctxt := context.changeThis(f.value);
try
res := execute(ctxt, pc, exp.Parameters[0], true);
try
if asBool(res) = equalTrue then
empty := false;
finally
res.Free;
end;
finally
ctxt.Free;
end;
end
else
empty := false;
end;
finally
pc.Free;
end;
result.add(TFHIRBoolean.create(not empty).noExtensions);
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.funcExp(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for exp() has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Exp.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Exp.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for exp.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcSupersetOf( context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
target : TFHIRSelectionList;
valid, found : boolean;
item, t : TFHIRSelection;
eq : TEqualityTriState;
begin
target := execute(context, focus, exp.Parameters[0], true);
try
valid := true;
for item in target do
begin
found := false;
for t in focus do
begin
eq := equal(item.value, t.value);
if (eq = equalNull) then
exit(TFHIRSelectionList.Create)
else if (eq = equalTrue) then
begin
found := true;
break;
end;
end;
if (not found) then
begin
valid := false;
break;
end;
end;
result := TFHIRSelectionList.Create(TFHIRBoolean.create(valid).noExtensions);
finally
target.free;
end;
end;
function TFHIRPathEngine.funcExtension(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item, ex : TFHIRSelection;
vl : TFHIRSelectionList;
url : String;
n1, ext : TFHIRSelectionList;
begin
n1 := nil;
result := TFHIRSelectionList.Create;
try
n1 := execute(context, focus, exp.Parameters[0], true);
url := n1[0].value.primitiveValue;
for item in focus do
begin
ext := TFHIRSelectionList.Create;
try
ListChildrenByName(item.value, 'extension', ext);
ListChildrenByName(item.value, 'modifierExtension', ext);
for ex in ext do
begin
vl := TFHIRSelectionList.Create;
try
ListChildrenByName(ex.value, 'url', vl);
if convertToString(vl) = url then
result.Add(ex.Link);
finally
vl.Free;
end;
end;
finally
ext.Free;
end;
end;
result.Link;
finally
n1.free;
result.Free;
end;
end;
function TFHIRPathEngine.funcTail(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
i : integer;
begin
result := TFHIRSelectionList.Create;
for i := 1 to focus.Count -1 do
result.Add(focus[i].Link);
end;
function TFHIRPathEngine.funcTake(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
n1 : TFHIRSelectionList;
i, i1 : integer;
begin
n1 := execute(context, focus, exp.Parameters[0], true);
try
i1 := strtoint(n1[0].value.primitiveValue());
result := TFHIRSelectionList.Create;
for i := 0 to integerMin(focus.Count, i1) -1 do
result.Add(focus[i].Link);
finally
n1.free;
end;
end;
function TFHIRPathEngine.funcToday(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create(TFhirDate.Create(TFslDateTime.makeToday).noExtensions);
end;
function TFHIRPathEngine.funcToDecimal(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
s : string;
begin
s := convertToString(focus);
result := TFHIRSelectionList.Create;
if (StringIsDecimal(s)) then
result.add(TFHIRDecimal.Create(s).noExtensions)
else if ('true' = s) then
result.add(TFHIRDecimal.Create('1').noExtensions())
else if ('false' = s) then
result.add(TFHIRDecimal.Create('0').noExtensions());
end;
function TFHIRPathEngine.funcToInteger(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
s : string;
begin
s := convertToString(focus);
result := TFHIRSelectionList.Create;
if (StringIsInteger32(s)) then
result.add(TFHIRInteger.Create(s).noExtensions)
else if ('true' = s) then
result.add(TFHIRInteger.Create('1').noExtensions())
else if ('false' = s) then
result.add(TFHIRInteger.Create('0').noExtensions());
end;
function TFHIRPathEngine.funcToString(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
result.add(TFHIRString.Create(convertToString(focus)).noExtensions);
end;
function TFHIRPathEngine.funcWhere(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
ctxt : TFHIRPathExecutionContext;
begin
result := TFHIRSelectionList.Create;
try
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
ctxt := context.changeThis(item.value);
try
res := execute(ctxt, pc, exp.Parameters[0], true);
try
if asBool(res) = equalTrue then
result.Add(item.Link);
finally
res.Free;
end;
finally
ctxt.Free;
end;
end;
finally
pc.Free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAllFalse(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
all : boolean;
begin
result := TFHIRSelectionList.Create();
try
if (exp.Parameters.count = 1) then
begin
all := true;
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
res := execute(context, pc, exp.Parameters[0], true);
try
if asBool(res) <> equalFalse then
begin
all := false;
break;
end;
finally
res.Free;
end;
end;
finally
pc.Free;
end;
result.add(TFhirBoolean.Create(all).noExtensions);
end
else // (exp.getParameters().size() == 0)
begin
all := true;
for item in focus do
begin
if asBool(item.value) <> equalFalse then
begin
all := false;
break;
end;
end;
result.add(TFhirBoolean.Create(all).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAnyFalse(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
any : boolean;
begin
result := TFHIRSelectionList.Create();
try
if (exp.Parameters.count = 1) then
begin
any := false;
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
res := execute(context, pc, exp.Parameters[0], true);
try
if asBool(res) <> equalFalse then
begin
any := true;
break;
end;
finally
res.Free;
end;
end;
finally
pc.Free;
end;
result.add(TFhirBoolean.Create(any).noExtensions);
end
else // (exp.getParameters().size() == 0)
begin
any := false;
for item in focus do
begin
if asBool(item.value) = equalFalse then
begin
any := true;
break;
end;
end;
result.add(TFhirBoolean.Create(any).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAllTrue(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
all : boolean;
begin
result := TFHIRSelectionList.Create();
try
if (exp.Parameters.count = 1) then
begin
all := true;
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
res := execute(context, pc, exp.Parameters[0], true);
try
if asBool(res) <> equalTrue then
begin
all := false;
break;
end;
finally
res.Free;
end;
end;
finally
pc.Free;
end;
result.add(TFhirBoolean.Create(all).noExtensions);
end
else // (exp.getParameters().size() == 0)
begin
all := true;
for item in focus do
begin
if asBool(item.value) <> equalTrue then
begin
all := false;
break;
end;
end;
result.add(TFhirBoolean.Create(all).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAnyTrue(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
pc, res : TFHIRSelectionList;
any : boolean;
begin
result := TFHIRSelectionList.Create();
try
if (exp.Parameters.count = 1) then
begin
any := false;
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
pc.Clear;
pc.Add(item.Link);
res := execute(context, pc, exp.Parameters[0], true);
try
if asBool(res) = equalTrue then
begin
any := true;
break;
end;
finally
res.Free;
end;
end;
finally
pc.Free;
end;
result.add(TFhirBoolean.Create(any).noExtensions);
end
else // (exp.getParameters().size() == 0)
begin
any := false;
for item in focus do
begin
if asBool(item.value) = equalFalse then
begin
any := true;
break;
end;
end;
result.add(TFhirBoolean.Create(any).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcCombine(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
res : TFHIRSelectionList;
begin
result := TFHIRSelectionList.create;
try
for item in focus do
result.add(item.link);
res := execute(context, focus, exp.Parameters[0], true);
try
for item in res do
result.add(item.link);
finally
res.free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcType(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
begin
result := TFHIRSelectionList.create;
for item in focus do
result.add(TFHIRClassTypeInfo.create(item.value.Link));
end;
function TFHIRPathEngine.funcOfType(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := funcAs(context, focus, exp);
end;
function TFHIRPathEngine.funcPower(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
n : TFHIRSelectionList;
d, e : TFslDecimal;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for exp() has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
n := execute(context, focus, exp.parameters[0], true);
try
e := TFslDecimal.Create(n[0].value.primitiveValue);
if (base.hasType(FHIR_TYPES_NUMERIC)) then
begin
d := TFslDecimal.Create(base.primitiveValue).Power(e);
if not d.IsUndefined then
result.add(TFhirDecimal.Create(d.AsString))
end
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
d := TFslDecimal.Create(qty.value).Power(e);
if not d.IsUndefined then
begin
qty.value := d.AsString;
result.add(qty.Link);
end;
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for exp.focus. expecting integer, decimal or quantity');
finally
n.Free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcElementDefinition(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
raise EFHIRTodo.create('TFHIRPathEngine.funcElementDefinition');
end;
function TFHIRPathEngine.funcSlice(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
raise EFHIRTodo.create('TFHIRPathEngine.funcSlice');
end;
function TFHIRPathEngine.funcSplit(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
param, s : String;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
param := nl[0].value.primitiveValue;
result := TFHIRSelectionList.Create();
try
if focus.Count = 1 then
for s in focus[0].value.primitiveValue.Split([param]) do
result.add(TFhirString.Create(s));
result.Link;
finally
result.Free;
end;
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcSqrt(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
d : TFslDecimal;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for ln() has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
begin
d := TFslDecimal.Create(base.primitiveValue).Sqrt;
if not d.IsUndefined then
result.add(TFhirDecimal.Create(d))
end
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Sqrt.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for ln.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcCeiling(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for floor has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Ceiling.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Trunc.Add(1).AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for abs.floor: expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcCheckModifiers(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
n1, me, u : TFHIRSelectionList;
item, e, b : TFHIRSelection;
urlm, urlt : String;
found, ok : boolean;
begin
result := nil;
n1 := execute(context, focus, exp.Parameters[0], true);
try
for item in focus do
begin
me := TFHIRSelectionList.Create;
try
ListChildrenByName(item.value, 'modifierExtension', me);
ok := true;
for e in me do
begin
u := TFHIRSelectionList.Create;
try
ListChildrenByName(e.value, 'url', u);
urlm := convertToString(u);
found := false;
for b in n1 do
begin
urlt := b.toString;
found := urlm = urlt;
end;
if not found then
ok := false;
finally
u.Free;
end;
end;
result := TFHIRSelectionList.Create();
result.add(TFhirBoolean.Create(ok).noExtensions);
finally
me.Free;
end;
end;
finally
n1.Free;
end;
end;
function TFHIRPathEngine.funcConformsTo(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
raise EFHIRTodo.create('TFHIRPathEngine.funcConformsTo');
end;
function TFHIRPathEngine.funcAbs(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for abs has more than one value');
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Abs.AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Abs.AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for abs.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcAggregate(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
total, work, pc : TFHIRSelectionList;
item : TFHIRSelection;
c : TFHIRPathExecutionContext;
begin
if (exp.ParameterCount > 1) then
total := execute(context, focus, exp.Parameters[1], true)
else
total := TFHIRSelectionList.Create;
try
pc := TFHIRSelectionList.Create;
try
for item in focus do
begin
c := context.changeThis(item.value);
try
c.total := total.Link;
work := execute(c, pc, exp.Parameters[0], true);
try
total.Free;
total := work.Link;
finally
work.Free;
end;
finally
c.Free;
end;
end;
finally
pc.Free;
end;
result := total.Link;
finally
total.Free;
end;
end;
function TFHIRPathEngine.funcUnescape(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
nl : TFHIRSelectionList;
cnt, param : String;
begin
nl := execute(context, focus, exp.Parameters[0], true);
try
param := nl[0].value.primitiveValue;
if (focus.count = 1) then
begin
cnt := focus[0].value.primitiveValue;
if (param = 'html') then
cnt := DecodeXML(cnt)
else if (param = 'json') then
cnt := UnJSONString(cnt)
else if (param = 'xml') then
cnt := DecodeXML(cnt)
else
raise EFHIRPath.Create('Unrecognised escape parameter "'+param+'"');
result := TFHIRSelectionList.Create(TFHIRString.Create(cnt));
end
else
result := TFHIRSelectionList.Create();
finally
nl.Free;
end;
end;
function TFHIRPathEngine.funcUnion(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
res : TFHIRSelectionList;
begin
result := TFHIRSelectionList.create;
try
for item in focus do
if not contains(result, item.value) then
result.add(item.link);
res := execute(context, focus, exp.Parameters[0], true);
try
for item in res do
if not contains(result, item.value) then
result.add(item.link);
finally
res.free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIntersect(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
res : TFHIRSelectionList;
begin
result := TFHIRSelectionList.create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
for item in focus do
if not contains(result, item.value) and contains(res, item.value) then
result.add(item.link);
finally
res.free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcExclude(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
item : TFHIRSelection;
res : TFHIRSelectionList;
begin
result := TFHIRSelectionList.create;
try
res := execute(context, focus, exp.Parameters[0], true);
try
for item in focus do
if not contains(res, item.value) then
result.add(item.link);
finally
res.free;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcLog(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
base : TFHIRObject;
qty : TFHIRQuantity;
n : TFHIRSelectionList;
p : integer;
begin
if (focus.count <> 1) then
raise EFHIRPath.Create('Error evaluating FHIRPath expression: focus for ln() has more than one value');
if exp.Parameters.Count = 0 then
p := 10
else
begin
n := execute(context, focus, exp.parameters[0], true);
try
if StringIsInteger32(n[0].value.primitiveValue) then
p := StrToIntDef(n[0].value.primitiveValue, 10)
else if StringIsDecimal(n[0].value.primitiveValue) then
p := trunc(StrToFloat(n[0].value.primitiveValue))
else
raise EFHIRPath.Create('Error: the parameter round('+n[0].value.primitiveValue+') is not an integer');
finally
n.Free;
end;
end;
base := focus[0].Value;
result := TFHIRSelectionList.Create;
try
if (base.hasType(FHIR_TYPES_NUMERIC)) then
result.add(TFhirDecimal.Create(TFslDecimal.Create(base.primitiveValue).Log(p).AsString))
else if (base.hasType('Quantity')) then
begin
qty := (base as TFhirQuantity).Clone;
try
qty.value := TFslDecimal.Create(qty.value).Log(p).AsString;
result.add(qty.Link);
finally
qty.Free;
end;
end
else
raise EFHIRPath.Create('Error evaluating FHIRPath expression: The parameter type '+base.fhirType+' is not legal for ln.focus. expecting integer, decimal or quantity');
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcLower(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
sw : String;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
begin
sw := convertToString(focus[0].value);
if sw <> '' then
result.add(TFHIRString.create(sw.ToLower).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcUpper(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
sw : String;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
begin
sw := convertToString(focus[0].value);
if sw <> '' then
result.add(TFHIRString.create(sw.ToUpper).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcToChars(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
c : char;
sw : String;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
begin
sw := convertToString(focus[0].value);
for c in sw do
result.add(TFHIRString.create(c).noExtensions);
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcToBoolean(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
s : string;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
begin
if (focus[0].value is TFHIRBoolean) then
result.add(focus[0].value)
else if (focus[0].value is TFHIRInteger) then
begin
case StrToInt((focus[0].value as TFHIRInteger).value) of
0: result.add(TFHIRBoolean.create(false).noExtensions());
1: result.add(TFHIRBoolean.create(true).noExtensions());
else
end;
end
else if (focus[0].value is TFHIRDecimal) then
begin
s := removeTrailingZeros(TFHIRDecimal(focus[0].value).value);
if (s = '0') then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (s = '1') then
result.add(TFHIRBoolean.create(true).noExtensions());
end
else if (focus[0].value is TFHIRString) then
if SameText('true', focus[0].value.primitiveValue) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if SameText('false', focus[0].value.primitiveValue) then
result.add(TFHIRBoolean.create(false).noExtensions());
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcToQuantity(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
q : TFHIRQuantity;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count = 1) then
begin
if (focus[0].value is TFHIRQuantity) then
result.add(focus[0].link)
else if (focus[0].value is TFHIRString) then
begin
q := parseQuantityString(focus[0].value.primitiveValue);
if (q <> nil) then
result.add(q.noExtensions());
end
else if (focus[0].value is TFHIRInteger) then
result.add(TFHIRQuantity.fromUcum(focus[0].value.primitiveValue, '1').noExtensions())
else if (focus[0].value is TFHIRDecimal) then
result.add(TFHIRQuantity.fromUcum(focus[0].value.primitiveValue, '1').noExtensions());
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcToDateTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
raise EFHIRTodo.create('TFHIRPathEngine.funcToDateTime');
end;
function TFHIRPathEngine.funcToTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
raise EFHIRTodo.create('TFHIRPathEngine.funcToTime');
end;
function TFHIRPathEngine.funcIsInteger(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRInteger) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRBoolean) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(StringIsInteger32(convertToString(focus[0].value))).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsDecimal(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRInteger) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRBoolean) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRDecimal) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(StringIsDecimal(convertToString(focus[0].value))).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsString(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if not (focus[0].value is TFHIRDateTime) and not (focus[0].value is TFHIRTime) then
result.add(TFHIRBoolean.create(true).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsBoolean(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRInteger) and (StrToIntDef((focus[0].value as TFHIRInteger).value, -1) >= 0) and (StrToIntDef((focus[0].value as TFHIRInteger).value, -1) <= 1) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRBoolean) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRDecimal) then
result.add(TFHIRBoolean.create(StringArrayExistsSensitive(['0', '1'], removeTrailingZeros(focus[0].value.primitiveValue))).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(StringArrayExistsInSensitive(['true', 'false'], convertToString(focus[0].value))).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.parse(path: String; var i: integer): TFHIRPathExpressionNode;
var
parser : TFHIRPathParser;
begin
parser := TFHIRPathParser.Create;
try
parser.FExtensions := FExtensions.Link;
result := parser.parse(path, i);
finally
parser.Free;
end;
end;
function TFHIRPathEngine.parseQuantityString(s : String) : TFHIRQuantity;
var
v : String;
begin
result := nil;
if (s <> '') then
begin
s := s.trim();
if (s.contains(' ')) then
begin
v := s.substring(0, s.indexOf(' ')).trim();
s := s.substring(s.indexOf(' ')).trim();
if (StringIsDecimal(v)) then
begin
if (s.startsWith('''') and s.endsWith('''')) then
result := TFHIRQuantity.fromUcum(v, s.substring(1, s.length-2))
else if (s = 'year') or (s = 'years') then
result := TFHIRQuantity.fromUcum(v, 'a')
else if (s = 'month') or (s = 'month') then
result := TFHIRQuantity.fromUcum(v, 'mo')
else if (s = 'week') or (s = 'weeks') then
result := TFHIRQuantity.fromUcum(v, 'wk')
else if (s = 'day') or (s = 'days') then
result := TFHIRQuantity.fromUcum(v, 'd')
else if (s = 'hour') or (s = 'hours') then
result := TFHIRQuantity.fromUcum(v, 'h')
else if (s = 'minute') or (s = 'minutes') then
result := TFHIRQuantity.fromUcum(v, 'min')
else if (s = 'second') or (s = 'seconds') then
result := TFHIRQuantity.fromUcum(v, 's')
else if (s = 'millisecond') or (s = 'milliseconds') then
result := TFHIRQuantity.fromUcum(v, 'ms')
end;
end
else if (StringIsDecimal(s)) then
begin
result := TFHIRQuantity.fromUcum(s, '1');
end;
end;
end;
function TFHIRPathEngine.parseV(path: String): TFHIRPathExpressionNodeV;
begin
result := parse(path);
end;
function TFHIRPathEngine.funcIsQuantity(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
var
q : TFhirQuantity;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRInteger) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRDecimal) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRQuantity) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRBoolean) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
begin
q := parseQuantityString(focus[0].value.primitiveValue());
result.add(TFHIRBoolean.create(q <> nil).noExtensions());
end
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsDate(context: TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRDateTime) or (focus[0].value is TFHIRDate) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(TRegEx.isMatch(convertToString(focus[0].value),
'([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?'
)).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsDateTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRDateTime) or (focus[0].value is TFHIRDate) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(TRegEx.isMatch(convertToString(focus[0].value),
'([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?)?)?'
)).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.funcIsTime(context : TFHIRPathExecutionContext; focus : TFHIRSelectionList; exp : TFHIRPathExpressionNode) : TFHIRSelectionList;
begin
result := TFHIRSelectionList.Create;
try
if (focus.count <> 1) then
result.add(TFHIRBoolean.create(false).noExtensions())
else if (focus[0].value is TFHIRTime) then
result.add(TFHIRBoolean.create(true).noExtensions())
else if (focus[0].value is TFHIRString) then
result.add(TFHIRBoolean.create(TRegEx.IsMatch(convertToString(focus[0].value),
'(T)?([01][0-9]|2[0-3])(:[0-5][0-9](:([0-5][0-9]|60))?)?(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?')).noExtensions())
else
result.add(TFHIRBoolean.create(false).noExtensions());
result.Link;
finally
result.Free;
end;
end;
function isBoolean(list : TFHIRSelectionList; b : boolean) : boolean;
begin
result := (list.count = 1) and (list[0].value is TFHIRBoolean) and (TFHIRBoolean(list[0].value).value = b);
end;
function TFHIRPathEngine.preOperate(left: TFHIRSelectionList; op: TFHIRPathOperation): TFHIRSelectionList;
begin
result := nil;
if left.Count <> 0 then
begin
case op of
popAnd: if isBoolean(left, false) then
result := TFHIRSelectionList.Create(TFHIRBoolean.Create(false).noExtensions);
popOr: if isBoolean(left, true) then
result := TFHIRSelectionList.Create(TFHIRBoolean.Create(true).noExtensions);
popImplies: if (asBool(left) = equalFalse) then
result := TFHIRSelectionList.Create(TFHIRBoolean.Create(true).noExtensions);
end;
end;
end;
function TFHIRPathEngine.operate(left: TFHIRSelectionList; op: TFHIRPathOperation; right: TFHIRSelectionList): TFHIRSelectionList;
begin
case op of
popNull: raise EFHIRPath.create('An internal error has occurred');
popEquals: result := opequal(left, right);
popEquivalent: result := opEquivalent(left, right);
popNotEquals: result := opNotequal(left, right);
popNotEquivalent: result := opNotEquivalent(left, right);
popLessThan: result := opLessThan(left, right);
popGreater: result := opGreater(left, right);
popLessOrEqual: result := opLessOrEqual(left, right);
popGreaterOrEqual: result := opGreaterOrEqual(left, right);
popUnion: result := opUnion(left, right);
popIn: result := opIn(left, right);
popContains: result := opContains(left, right);
popOr: result := opOr(left, right);
popAnd: result := opAnd(left, right);
popXor: result := opXor(left, right);
popImplies: result := opImplies(left, right);
popPlus: result := opPlus(left, right);
popConcatenate: result := opConcatenate(left, right);
popTimes: result := opTimes(left, right);
popMinus: result := opMinus(left, right);
popDivideBy: result := opDivideBy(left, right);
popDiv: result := opDiv(left, right);
popMod: result := opMod(left, right);
popIs: result := opIs(left, right);
popAs: result := opAs(left, right);
popCustom : raise EFHIRPath.create('An internal error has occurred (custom operation not implemented)');
else
raise EFHIRPath.create('An internal error has occurred (operation not implemented)');
end;
end;
function TFHIRPathEngine.operateTypes(left: TFHIRTypeDetails; op: TFHIRPathOperation; right: TFHIRTypeDetails): TFHIRTypeDetails;
begin
case op of
popEquals: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popEquivalent: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popNotEquals: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popNotEquivalent: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popLessThan: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popGreater: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popLessOrEqual: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popGreaterOrEqual: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popIs: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popAs: result := TFHIRTypeDetails.createList(csSINGLETON, right.Types);
popUnion: result := left.union(right);
popOr: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popAnd: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popXor: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popImplies : result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popTimes: begin
result := TFHIRTypeDetails.create(csSINGLETON, []);
if (left.hasType(context, 'integer')) and (right.hasType(context, 'integer')) then
result.addType(FP_integer)
else if (left.hasType(context, ['integer', 'decimal'])) and (right.hasType(context, ['integer', 'decimal'])) then
result.addType(FP_decimal);
end;
popDivideBy: begin
result := TFHIRTypeDetails.create(csSINGLETON, []);
if (left.hasType(context, 'integer')) and (right.hasType(context, 'integer')) then
result.addType(FP_decimal)
else if (left.hasType(context, ['integer', 'decimal'])) and (right.hasType(context, ['integer', 'decimal'])) then
result.addType(FP_decimal)
end;
popPlus: begin
result := TFHIRTypeDetails.create(csSINGLETON, []);
if (left.hasType(context, 'integer')) and (right.hasType(context, 'integer')) then
result.addType(FP_integer)
else if (left.hasType(context, ['integer', 'decimal'])) and (right.hasType(context, ['integer', 'decimal'])) then
result.addType(FP_decimal)
else if (left.hasType(context, ['string', 'id', 'code', 'uri'])) and (right.hasType(context, ['string', 'id', 'code', 'uri'])) then
result.addType(FP_string);
end;
popConcatenate : result := TFHIRTypeDetails.create(csSINGLETON, ['string']);
popMinus: begin
result := TFHIRTypeDetails.create(csSINGLETON, []);
if (left.hasType(context, 'integer')) and (right.hasType(context, 'integer')) then
result.addType(FP_integer)
else if (left.hasType(context, ['integer', 'decimal'])) and (right.hasType(context, ['integer', 'decimal'])) then
result.addType(FP_decimal)
else if (left.hasType(context, ['Quantity'])) and (right.hasType(context, ['Quantity'])) then
result.addType(FP_Quantity)
else if (left.hasType(context, ['date' ,'dateTime', 'instant'])) then
begin
if (right.hasType(context, ['Quantity'])) then
result.addType(left.type_)
else
raise EFHIRPath.create(format('Error in date arithmetic: Unable to subtract type {0} from {1}', [right.type_, left.type_]));
end;
end;
popDiv, popMod: begin
result := TFHIRTypeDetails.create(csSINGLETON, []);
if (left.hasType(context, 'integer')) and (right.hasType(context, 'integer')) then
result.addType(FP_integer)
else if (left.hasType(context, ['integer', 'decimal'])) and (right.hasType(context, ['integer', 'decimal'])) then
result.addType(FP_Decimal);
end;
popIn: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
popContains: result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
// todo: add memberOf
popCustom : raise EFHIRPath.create('An internal error has occurred (operation not implemented)');
else
raise EFHIRPathTodo.create('TFHIRPathEngine.operateTypes');
end;
end;
function TFHIRPathEngine.opAnd(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TEqualityTriState;
begin
l := asBool(left);
r := asBool(right);
result := TFHIRSelectionList.Create;
try
case l of
equalNull : if r = equalFalse then
result.Add(TFhirBoolean.Create(false).noExtensions);
equalFalse : result.Add(TFhirBoolean.Create(false).noExtensions);
equalTrue : case r of
equalFalse : result.Add(TFhirBoolean.Create(false).noExtensions);
equalTrue : result.Add(TFhirBoolean.Create(true).noExtensions);
end;
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.opAs(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
tn : String;
b : TFHIRSelection;
begin
tn := convertToString(right);
result := TFHIRSelectionList.Create;
try
for b in left do
if (b.value.hasType(tn)) then
result.add(b.Link);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opContains(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
ans, f : boolean;
l, r : TFHIRSelection;
eq : TEqualityTriState;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
ans := true;
for r in right do
begin
f := false;
for l in left do
begin
eq := equal(l.value, r.value);
if eq = equalNull then
exit(TFHIRSelectionList.Create)
else if eq = equalTrue then
begin
f := true;
break;
end;
end;
if not f then
begin
ans := false;
break;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(ans).noExtensions);
end;
function TFHIRPathEngine.opDiv(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1, d2, d3 : TFslDecimal;
pl, pr : TUcumPair;
begin
if (left.count = 0) then
raise EFHIRPath.create('Error performing div: left operand has no value');
if (left.count > 1) then
raise EFHIRPath.create('Error performing div: left operand has more than one value');
if (not left[0].value.isPrimitive()) and not left[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing div: left operand has the wrong type (%s)', [left[0].value.fhirType]));
if (right.count = 0) then
raise EFHIRPath.create('Error performing div: right operand has no value');
if (right.count > 1) then
raise EFHIRPath.create('Error performing div: right operand has more than one value');
if (not right[0].value.isPrimitive()) and not right[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing div: right operand has the wrong type (%s)', [right[0].value.fhirType]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType('integer')) and (r.hasType('integer')) then
begin
if r.primitiveValue() <> '0' then
result.add(TFHIRInteger.create(inttostr(strtoInt(l.primitiveValue()) div strtoInt(r.primitiveValue()))).noExtensions)
end
else if (l.hasType(['quantity'])) and (r.hasType(['quantity'])) and (FUcum <> nil) and FUcum.isConfigured then
begin
pl := qtyToPair(l as TFHIRQuantity);
try
pr := qtyToPair(r as TFHIRQuantity);
try
try
// todo
// p := FUcum.divideBy(pl, pr);
// try
// result.add(pairToQty(p));
// finally
// p.Free;
// end;
except
end;
finally
pr.Free;
end;
finally
pl.Free;
end;
end
else if (l.hasType(['integer', 'decimal'])) and (r.hasType(['integer', 'decimal'])) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.divInt(d2);
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else
raise EFHIRPath.create(StringFormat('Error performing div: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opDivideBy(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1, d2, d3 : TFslDecimal;
pl, pr, p : TUcumPair;
begin
if (left.count = 0) then
raise EFHIRPath.create('Error performing /: left operand has no value');
if (left.count > 1) then
raise EFHIRPath.create('Error performing /: left operand has more than one value');
if (not left[0].value.isPrimitive()) and not left[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing -: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count = 0) then
raise EFHIRPath.create('Error performing /: right operand has no value');
if (right.count > 1) then
raise EFHIRPath.create('Error performing /: right operand has more than one value');
if (not right[0].value.isPrimitive()) and not right[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing /: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType(['integer', 'decimal'])) and (r.hasType(['integer', 'decimal'])) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.divide(d2);
if not d3.IsUndefined then
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else if (l.hasType(['Quantity'])) and (r.hasType(['Quantity'])) and (FUcum <> nil) and FUcum.isConfigured then
begin
pl := qtyToPair(l as TFHIRQuantity);
try
pr := qtyToPair(r as TFHIRQuantity);
try
try
p := FUcum.divideBy(pl, pr);
try
result.add(pairToQty(p));
finally
p.Free;
end;
except
end;
finally
pr.Free;
end;
finally
pl.Free;
end;
end
else
raise EFHIRPath.create(StringFormat('Error performing /: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.opequal(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
res : boolean;
i : integer;
eq : TEqualityTriState;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create)
else if left.count <> right.count then
res := false
else
begin
res := true;
for i := 0 to left.count - 1 do
begin
eq := equal(left[i].value, right[i].value);
if (eq = equalNull) then
exit(TFHIRSelectionList.Create)
else if eq = equalFalse then
begin
res := false;
break;
end;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(res).noExtensions);
end;
function TFHIRPathEngine.opEquivalent(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
res, found : boolean;
i, j : integer;
begin
if left.count <> right.count then
res := false
else
begin
res := true;
for i := 0 to left.count - 1 do
begin
found := false;
for j := 0 to right.count - 1 do
begin
if equivalent(left[i].value, right[j].value) then
begin
found := true;
break;
end;
end;
if (not found) then
begin
res := false;
break;
end;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(res).noExtensions);
end;
function TFHIRPathEngine.opGreater(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
lUnit, rUnit : TFHIRSelectionList;
dl, dr : TFHIRSelectionList;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
result := TFHIRSelectionList.create;
try
if (Left.Count = 1) and (right.count = 1) and (left[0].value.isPrimitive) and (right[0].value.isPrimitive) then
begin
l := left[0].value as TFHIRObject;
r := right[0].value as TFHIRObject;
if (l.hasType(FHIR_TYPES_STRING) and r.hasType(FHIR_TYPES_STRING)) then
result.Add(TFhirBoolean.Create(l.primitiveValue > r.primitiveValue).noExtensions)
else if l.hasType(['decimal', 'integer']) and r.hasType(['decimal', 'integer']) then
result.Add(TFhirBoolean.Create(StrToFloat(l.primitiveValue) > StrToFloat(r.primitiveValue)).noExtensions)
else if l.hasType(['date', 'dateTime', 'instant']) and r.hasType(['date', 'dateTime', 'instant']) then
begin
case l.dateValue.compareUsingFHIRPathRules(r.dateValue, false) of
compNull : ; // nothing
compLess : result.add(TFhirBoolean.Create(false).noExtensions);
compEqual : result.add(TFhirBoolean.Create(false).noExtensions);
compGreater : result.add(TFhirBoolean.Create(true).noExtensions);
end;
end
else if l.hasType('time') and r.hasType('time') then
begin
case TFslDateTime.compareTimeStrings(l.primitiveValue, r.primitiveValue) of
compLess: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
end;
end
else
raise EFHIRPath.Create('Unable to compare values of type '+l.fhirType+' and '+r.fhirType);
end
else if (Left.Count = 1) and (right.count = 1) and left[0].value.hasType('Quantity') and right[0].value.hasType('Quantity') then
begin
lUnit := TFHIRSelectionList.create;
rUnit := TFHIRSelectionList.create;
try
ListChildrenByName(left[0].value, 'code', lUnit);
ListChildrenByName(right[0].value, 'code', rUnit);
if (TFHIRSelectionList.compareDeep(lUnit, rUnit, true)) then
begin
lUnit.Clear;
rUnit.Clear;
ListChildrenByName(left[0].value, 'value', lUnit);
ListChildrenByName(right[0].value, 'value', rUnit);
result := opGreater(lUnit, rUnit);
end
else if (FUcum <> Nil) and FUcum.isConfigured then
begin
dl := TFHIRSelectionList.Create;
dr := TFHIRSelectionList.Create;
try
dl.add(TFhirDecimal.create(qtyToCanonical(left[0].value as TFhirQuantity).Value));
dr.add(TFhirDecimal.create(qtyToCanonical(right[0].value as TFhirQuantity).Value));
result := opGreater(dl, dr);
finally
dl.Free;
dr.Free;
end;
end
else
raise EFHIRPath.create('Canonical Comparison isn''t available');
finally
lUnit.Free;
rUnit.Free;
end;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opGreaterOrEqual(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
lUnit, rUnit : TFHIRSelectionList;
dl, dr : TFHIRSelectionList;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
result := TFHIRSelectionList.create;
try
if (Left.Count = 1) and (right.count = 1) and (left[0].value.isPrimitive) and (right[0].value.isPrimitive) then
begin
l := left[0].value as TFHIRObject;
r := right[0].value as TFHIRObject;
if (l.hasType(FHIR_TYPES_STRING) and r.hasType(FHIR_TYPES_STRING)) then
result.Add(TFhirBoolean.Create(l.primitiveValue >= r.primitiveValue).noExtensions)
else if l.hasType(['decimal', 'integer']) and r.hasType(['decimal', 'integer']) then
result.Add(TFhirBoolean.Create(StrToFloat(l.primitiveValue) >= StrToFloat(r.primitiveValue)).noExtensions)
else if l.hasType(['date', 'dateTime', 'instant']) and r.hasType(['date', 'dateTime', 'instant']) then
case l.dateValue.compareUsingFHIRPathRules(r.dateValue, false) of
compNull : ; // nothing
compLess : result.add(TFhirBoolean.Create(false).noExtensions);
compEqual : result.add(TFhirBoolean.Create(true).noExtensions);
compGreater : result.add(TFhirBoolean.Create(true).noExtensions);
end
else if l.hasType('time') and r.hasType('time') then
begin
case TFslDateTime.compareTimeStrings(l.primitiveValue, r.primitiveValue) of
compLess: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
end;
end
else
raise EFHIRPath.Create('Unable to compare values of type '+l.fhirType+' and '+r.fhirType);
end
else if (Left.Count = 1) and (right.count = 1) and left[0].value.hasType('Quantity') and right[0].value.hasType('Quantity') then
begin
lUnit := TFHIRSelectionList.create;
rUnit := TFHIRSelectionList.create;
try
ListChildrenByName(left[0].value, 'unit', lUnit);
ListChildrenByName(right[0].value, 'unit', rUnit);
if (TFHIRSelectionList.compareDeep(lUnit, rUnit, true)) then
begin
lUnit.Clear;
rUnit.Clear;
ListChildrenByName(left[0].value, 'value', lUnit);
ListChildrenByName(right[0].value, 'value', rUnit);
result := opGreaterOrEqual(lUnit, rUnit);
end
else if (FUcum <> Nil) and FUcum.isConfigured then
begin
dl := TFHIRSelectionList.Create;
dr := TFHIRSelectionList.Create;
try
dl.add(TFhirDecimal.create(qtyToCanonical(left[0].value as TFhirQuantity).Value));
dr.add(TFhirDecimal.create(qtyToCanonical(right[0].value as TFhirQuantity).Value));
result := opGreaterOrEqual(dl, dr);
finally
dl.Free;
dr.Free;
end;
end
else
raise EFHIRPath.create('Canonical Comparison isn''t available');
finally
lUnit.Free;
rUnit.Free;
end;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opIn(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
ans, f : boolean;
l, r : TFHIRSelection;
eq : TEqualityTriState;
begin
if (left.count = 0) then
exit(TFHIRSelectionList.Create);
if (right.count = 0) then
exit(TFHIRSelectionList.Create(TFHIRBoolean.create(false)));
ans := true;
for l in left do
begin
f := false;
for r in right do
begin
eq := equal(l.value, r.value);
if (eq = equalNull) then
exit(TFHIRSelectionList.Create)
else if eq = equalTrue then
begin
f := true;
break;
end;
end;
if not f then
begin
ans := false;
break;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(ans).noExtensions);
end;
function TFHIRPathEngine.opIs(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
tn : string;
begin
result := TFHIRSelectionList.Create;
try
if not ((left.count = 0) or (left.count > 1)) then
begin
tn := convertToString(right);
if not (left[0].value is TFHIRElement) or (left[0].value as TFHIRElement).DisallowExtensions then
result.add(TFHIRBoolean.create((capitalise(left[0].value.fhirType) = tn) or ('System.'+capitalise(left[0].value.fhirType) = tn)).noExtensions)
else
result.add(TFHIRBoolean.create(left[0].value.hasType(tn)).noExtensions);
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.opLessOrEqual(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
lUnit, rUnit : TFHIRSelectionList;
dl, dr : TFHIRSelectionList;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
result := TFHIRSelectionList.create;
try
if (Left.Count = 1) and (right.count = 1) and (left[0].value.isPrimitive) and (right[0].value.isPrimitive) then
begin
l := left[0].value;
r := right[0].value;
if (l.hasType(FHIR_TYPES_STRING) and r.hasType(FHIR_TYPES_STRING)) then
result.Add(TFhirBoolean.Create(l.primitiveValue <= r.primitiveValue).noExtensions)
else if l.hasType(['decimal', 'integer', 'unsignedInt', 'positiveInt']) and r.hasType(['decimal', 'integer', 'unsignedInt', 'positiveInt']) then
result.Add(TFhirBoolean.Create(StrToFloat(l.primitiveValue) <= StrToFloat(r.primitiveValue)).noExtensions)
else if l.hasType(['date', 'dateTime', 'instant']) and r.hasType(['date', 'dateTime', 'instant']) then
case l.dateValue.UTC.compareTimes(r.dateValue.UTC, compNull) of
compLess: result.Add(TFhirBoolean.Create(true).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(true).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(false).noExtensions);
end
else if l.hasType('time') and r.hasType('time') then
begin
case TFslDateTime.compareTimeStrings(l.primitiveValue, r.primitiveValue) of
compLess: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
end;
end
else
raise EFHIRPath.Create('Unable to compare values of type '+l.fhirType+' and '+r.fhirType);
end
else if (Left.Count = 1) and (right.count = 1) and left[0].value.hasType('Quantity') and right[0].value.hasType('Quantity') then
begin
lUnit := TFHIRSelectionList.create;
rUnit := TFHIRSelectionList.create;
try
ListChildrenByName(left[0].value, 'unit', lUnit);
ListChildrenByName(right[0].value, 'unit', rUnit);
if (TFHIRSelectionList.compareDeep(lUnit, rUnit, true)) then
begin
lUnit.Clear;
rUnit.Clear;
ListChildrenByName(left[0].value, 'value', lUnit);
ListChildrenByName(right[0].value, 'value', rUnit);
result := opLessOrEqual(lUnit, rUnit);
end
else if (FUcum <> Nil) and FUcum.isConfigured then
begin
dl := TFHIRSelectionList.Create;
dr := TFHIRSelectionList.Create;
try
dl.add(TFhirDecimal.create(qtyToCanonical(left[0].value as TFhirQuantity).value));
dr.add(TFhirDecimal.create(qtyToCanonical(right[0].value as TFhirQuantity).Value));
result := opLessOrEqual(dl, dr);
finally
dl.Free;
dr.Free;
end;
end
else
raise EFHIRPath.create('Canonical Comparison isn''t available');
finally
lUnit.Free;
rUnit.Free;
end;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opLessThan(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
lUnit, rUnit : TFHIRSelectionList;
dl, dr : TFHIRSelectionList;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
result := TFHIRSelectionList.create;
try
if (Left.Count = 1) and (right.count = 1) and (left[0].value.isPrimitive) and (right[0].value.isPrimitive) then
begin
l := left[0].value as TFHIRObject;
r := right[0].value as TFHIRObject;
if (l.hasType(FHIR_TYPES_STRING) and r.hasType(FHIR_TYPES_STRING)) then
result.Add(TFhirBoolean.Create(l.primitiveValue < r.primitiveValue).noExtensions)
else if l.hasType(['decimal', 'integer']) and r.hasType(['decimal', 'integer']) then
result.Add(TFhirBoolean.Create(StrToFloat(l.primitiveValue) < StrToFloat(r.primitiveValue)).noExtensions)
else if l.hasType(['date', 'dateTime', 'instant']) and r.hasType(['date', 'dateTime', 'instant']) then
begin
case l.dateValue.UTC.compareTimes(r.dateValue.UTC, compNull) of
compLess: result.Add(TFhirBoolean.Create(true).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(false).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(false).noExtensions);
end;
end
else if l.hasType('time') and r.hasType('time') then
begin
case TFslDateTime.compareTimeStrings(l.primitiveValue, r.primitiveValue) of
compLess: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, true)).noExtensions);
compEqual: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
compGreater: result.Add(TFhirBoolean.Create(l.dateValue.before(r.dateValue, false)).noExtensions);
end;
end
else
raise EFHIRPath.Create('Unable to compare values of type '+l.fhirType+' and '+r.fhirType);
end
else if (Left.Count = 1) and (right.count = 1) and left[0].value.hasType('Quantity') and right[0].value.hasType('Quantity') then
begin
lUnit := TFHIRSelectionList.create;
rUnit := TFHIRSelectionList.create;
try
ListChildrenByName(left[0].value, 'code', lUnit);
ListChildrenByName(right[0].value, 'code', rUnit);
if (TFHIRSelectionList.compareDeep(lUnit, rUnit, true)) then
begin
lUnit.Clear;
rUnit.Clear;
ListChildrenByName(left[0].value, 'value', lUnit);
ListChildrenByName(right[0].value, 'value', rUnit);
result := opLessThan(lUnit, rUnit);
end
else if (FUcum <> Nil) and FUcum.isConfigured then
begin
dl := TFHIRSelectionList.Create;
dr := TFHIRSelectionList.Create;
try
dl.add(TFhirDecimal.create(qtyToCanonical(left[0].value as TFhirQuantity).Value));
dr.add(TFhirDecimal.create(qtyToCanonical(right[0].value as TFhirQuantity).Value));
result := opLessThan(dl, dr);
finally
dl.Free;
dr.Free;
end;
end
else
raise EFHIRPath.create('Canonical Comparison isn''t available');
finally
lUnit.Free;
rUnit.Free;
end;
end;
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opMinus(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1,d2,d3 : TFslDecimal;
s : String;
qty, qty2 : TFHIRQuantity;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
if (left.count > 1) then
raise EFHIRPath.create('Error performing -: left operand has more than one value');
if (not left[0].value.isPrimitive() and not left[0].hasType('Quantity')) then
raise EFHIRPath.create(StringFormat('Error performing -: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count > 1) then
raise EFHIRPath.create('Error performing -: right operand has more than one value');
if (not right[0].value.isPrimitive() and not ((left[0].value.isDateTime() or ('0' = left[0].value.primitiveValue) or left[0].value.hasType('Quantity')) and right[0].value.hasType('Quantity'))) then
raise EFHIRPath.create(StringFormat('Error performing -: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType('integer')) and (r.hasType('integer')) then
result.add(TFHIRInteger.create(inttostr(strToInt(l.primitiveValue()) - strToInt(r.primitiveValue()))).noExtensions)
else if (l.hasType('decimal') or l.hasType('integer')) and (r.hasType('decimal') or r.hasType('integer')) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.Subtract(d2);
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else if (l.hasType(['decimal', 'integer', 'Quantity']) and r.hasType('Quantity')) then
begin
s := l.primitiveValue();
if ('0' = s) then
begin
qty := r as TFHIRQuantity;
qty2 := qty.clone;
try
qty2.value := TFslDecimal.Create(qty.value).Abs.AsString;
result.add(qty2.link);
finally
qty2.free;
end;
end;
end
else if (l.isDateTime() and r.hasType('Quantity')) then
result.add(dateAdd(l, r as TFHIRQuantity, true))
else
raise EFHIRPath.create(StringFormat('Error performing -: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opMod(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1, d2, d3 : TFslDecimal;
begin
if (left.count = 0) then
raise EFHIRPath.create('Error performing mod: left operand has no value');
if (left.count > 1) then
raise EFHIRPath.create('Error performing mod: left operand has more than one value');
if (not left[0].value.isPrimitive()) then
raise EFHIRPath.create(StringFormat('Error performing mod: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count = 0) then
raise EFHIRPath.create('Error performing mod: right operand has no value');
if (right.count > 1) then
raise EFHIRPath.create('Error performing mod: right operand has more than one value');
if (not right[0].value.isPrimitive()) then
raise EFHIRPath.create(StringFormat('Error performing mod: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType('integer')) and (r.hasType('integer')) then
begin
if r.primitiveValue() <> '0' then
result.add(TFHIRInteger.create(inttostr(strToInt(l.primitiveValue()) mod strToInt(r.primitiveValue()))).noExtensions)
end
else if (l.hasType(['integer', 'decimal'])) and (r.hasType(['integer', 'decimal'])) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.Modulo(d2);
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else
raise EFHIRPath.create(StringFormat('Error performing mod: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opNotequal(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
res : boolean;
i : integer;
eq : TEqualityTriState;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create)
else if left.count <> right.count then
res := true
else
begin
res := false;
for i := 0 to left.count - 1 do
begin
eq := equal(left[i].value, right[i].value);
if eq = equalNull then
exit(TFHIRSelectionList.Create)
else if eq = equalFalse then
begin
res := true;
break;
end;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(res).noExtensions);
end;
function TFHIRPathEngine.opNotEquivalent(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
res, found : boolean;
i, j : integer;
begin
if left.count <> right.count then
res := false
else
begin
res := true;
for i := 0 to left.count - 1 do
begin
found := false;
for j := 0 to right.count - 1 do
begin
if equivalent(left[i].value, right[j].value) then
begin
found := true;
break;
end;
end;
if (not found) then
begin
res := false;
break;
end;
end;
end;
result := TFHIRSelectionList.Create;
result.Add(TFhirBoolean.Create(not res).noExtensions);
end;
function TFHIRPathEngine.opOr(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TEqualityTriState;
begin
l := asBool(left);
r := asBool(right);
result := TFHIRSelectionList.Create;
try
case l of
equalNull : if r = equalTrue then
result.Add(TFhirBoolean.Create(true).noExtensions);
equalFalse : case r of
equalFalse : result.Add(TFhirBoolean.Create(false).noExtensions);
equalTrue : result.Add(TFhirBoolean.Create(true).noExtensions);
end;
equalTrue : result.Add(TFhirBoolean.Create(true).noExtensions);
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.opConcatenate(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : String;
begin
if (left.count > 1) then
raise EFHIRPath.create('Error performing &: left operand has more than one value');
if (left.Count = 1) and (not left[0].value.hasType(FHIR_TYPES_STRING)) then
raise EFHIRPath.create(StringFormat('Error performing &: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count > 1) then
raise EFHIRPath.create('Error performing &: right operand has more than one value');
if (right.Count = 1) and (not right[0].value.hasType(FHIR_TYPES_STRING)) then
raise EFHIRPath.create(StringFormat('Error performing &: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
if left.Count = 0 then
l := ''
else
l := left[0].value.primitiveValue();
if right.Count = 0 then
r := ''
else
r := right[0].value.primitiveValue();
result.add(TFHIRString.create(l + r).noExtensions);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opPlus(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1,d2,d3 : TFslDecimal;
begin
if (left.count = 0) or (right.count = 0) then
exit(TFHIRSelectionList.Create);
if (left.count > 1) then
raise EFHIRPath.create('Error performing +: left operand has more than one value');
if (not left[0].value.isPrimitive()) then
raise EFHIRPath.create(StringFormat('Error performing +: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count > 1) then
raise EFHIRPath.create('Error performing +: right operand has more than one value');
if (not right[0].value.isPrimitive() and not ((left[0].value.isDateTime() or ('0' = left[0].value.primitiveValue) or left[0].value.hasType('Quantity')) and right[0].value.hasType('Quantity'))) then
raise EFHIRPath.create(StringFormat('Error performing +: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType(['string', 'id', 'code', 'uri'])) and (r.hasType(['string', 'id', 'code', 'uri'])) then
result.add(TFHIRString.create(l.primitiveValue() + r.primitiveValue()).noExtensions)
else if (l.hasType('integer')) and (r.hasType('integer')) then
result.add(TFHIRInteger.create(inttostr(strToInt(l.primitiveValue()) + strToInt(r.primitiveValue()))).noExtensions)
else if (l.hasType(['integer', 'decimal'])) and (r.hasType(['integer', 'decimal'])) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.Add(d2);
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else if (l.isDateTime) and (r.hasType('Quantity')) then
result.add(dateAdd(l, r as TFHIRQuantity, false))
else
raise EFHIRPath.create(StringFormat('Error performing +: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opTimes(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TFHIRObject;
d1, d2, d3 : TFslDecimal;
p, pl, pr : TUcumPair;
begin
if (left.count = 0) then
raise EFHIRPath.create('Error performing *: left operand has no value');
if (left.count > 1) then
raise EFHIRPath.create('Error performing *: left operand has more than one value');
if (not left[0].value.isPrimitive()) and not left[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing +: left operand has the wrong type (%s)', [left[0].value.fhirType()]));
if (right.count = 0) then
raise EFHIRPath.create('Error performing *: right operand has no value');
if (right.count > 1) then
raise EFHIRPath.create('Error performing *: right operand has more than one value');
if (not right[0].value.isPrimitive()) and not right[0].value.hasType('Quantity') then
raise EFHIRPath.create(StringFormat('Error performing *: right operand has the wrong type (%s)', [right[0].value.fhirType()]));
result := TFHIRSelectionList.Create();
try
l := left[0].value;
r := right[0].value;
if (l.hasType('integer')) and (r.hasType('integer')) then
result.add(TFHIRInteger.create(inttostr(strToInt(l.primitiveValue()) * strToInt(r.primitiveValue()))).noExtensions)
else if (l.hasType(['Quantity'])) and (r.hasType(['Quantity'])) and (FUcum <> nil) and FUcum.isConfigured then
begin
pl := qtyToPair(l as TFHIRQuantity);
try
pr := qtyToPair(r as TFHIRQuantity);
try
try
p := FUcum.multiply(pl, pr);
try
result.add(pairToQty(p));
finally
p.Free;
end;
except
end;
finally
pr.Free;
end;
finally
pl.Free;
end;
end
else if (l.hasType(['integer', 'decimal'])) and (r.hasType(['integer', 'decimal'])) then
begin
d1 := TFslDecimal.valueOf(l.primitiveValue());
d2 := TFslDecimal.valueOf(r.primitiveValue());
d3 := d1.Multiply(d2);
result.add(TFHIRDecimal.create(d3.asDecimal).noExtensions);
end
else
raise EFHIRPath.create(StringFormat('Error performing /: left and right operand have incompatible or illegal types (%s, %s)', [left[0].value.fhirType(), right[0].value.fhirType()]));
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.contains(list : TFHIRSelectionList; item : TFHIRObject) : boolean;
var
test : TFHIRSelection;
begin
result := false;
for test in list do
if equal(test.value, item) = equalTrue then
exit(true);
end;
function TFHIRPathEngine.opUnion(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
item : TFHIRSelection;
begin
result := TFHIRSelectionList.create;
try
for item in left do
if not contains(result, item.value) then
result.add(item.link);
for item in right do
if not contains(result, item.value) then
result.add(item.link);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.opXor(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
l, r : TEqualityTriState;
begin
l := asBool(left);
r := asBool(right);
result := TFHIRSelectionList.Create;
try
case l of
equalNull : ;
equalFalse : case r of
equalFalse : result.Add(TFhirBoolean.Create(false).noExtensions);
equalTrue : result.Add(TFhirBoolean.Create(true).noExtensions);
end;
equalTrue : case r of
equalFalse : result.Add(TFhirBoolean.Create(true).noExtensions);
equalTrue : result.Add(TFhirBoolean.Create(false).noExtensions);
end;
end;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.opImplies(left, right: TFHIRSelectionList): TFHIRSelectionList;
var
eq : TEqualityTriState;
begin
result := TFHIRSelectionList.Create;
try
eq := asBool(left);
if (eq = equalFalse) then
result.Add(TFhirBoolean.Create(true).noExtensions)
else if (right.count = 0) then
// nothing
else
case asBool(right) of
equalTrue: result.Add(TFhirBoolean.Create(true).noExtensions);
equalFalse: if (eq = equalTrue) then
result.Add(TFhirBoolean.Create(false).noExtensions);
end;
result.Link;
finally
result.free;
end;
end;
function TFHIRPathEngine.resolveConstant(context : TFHIRPathExecutionContext; constant : TFHIRObject) : TFHIRObject;
var
c : TFHIRConstant;
begin
if (not (constant is TFHIRConstant)) then
exit(constant.link);
c := constant as TFHIRConstant;
if (c.FValue.startsWith('%')) then
result := resolveConstant(context, c.FValue)
else if (c.FValue.startsWith('@')) then
result := processDateConstant(context.appInfo, c.FValue.substring(1))
else
raise EFHIRPath.create('Invaild FHIR Constant '+c.FValue);
end;
function TFHIRPathEngine.processDateConstant(appinfo : TFslObject; value : String) : TFHIRObject;
var
i : integer;
v : string;
begin
if (value.startsWith('T')) then
exit(TFHIRTime.create(value.substring(1)).noExtensions());
v := value;
if (v.length > 10) then
begin
i := v.substring(10).indexOf('-');
if (i = -1) then
i := v.substring(10).indexOf('+');
if (i = -1) then
i := v.substring(10).indexOf('Z');
if (i > -1) then
v := v.substring(0, 10+i);
end;
if (v.length > 10) then
result := TFHIRDateTime.create(TFslDateTime.fromXML(value)).noExtensions()
else
result := TFHIRDate.create(TFslDateTime.fromXML(value)).noExtensions();
end;
function TFHIRPathEngine.qtyEqual(left, right: TFHIRQuantity): TEqualityTriState;
var
dl, dr : TUcumPair;
begin
if (FUcum <> nil) and FUcum.isConfigured then
begin
dl := qtyToCanonical(left);
try
dr := qtyToCanonical(right);
try
if (dl <> nil) and (dr <> nil) and (dl.UnitCode = dr.UnitCode) then
if (dl.Value.Equals(dr.Value)) then
exit(equalTrue)
else
exit(equalFalse);
finally
dr.free;
end;
finally
dl.free;
end;
end;
if (left.code <> right.code) then
result := equalNull
else if compareDeep(left, right, false) then
result := equalTrue
else
result := equalFalse;
end;
function TFHIRPathEngine.qtyToCanonical(q: TFHIRQuantity): TUcumPair;
var
p, c : TUcumPair;
begin
if (URI_UCUM <> q.system) or (FUcum = nil) or not (FUcum.isConfigured) then
exit(nil);
try
if q.code = '' then
p := TUcumPair.Create(TFslDecimal.ValueOf(q.value), '1')
else
p := TUcumPair.Create(TFslDecimal.ValueOf(q.value), q.code);
try
c := FUcum.getCanonicalForm(p);
try
result := c.link;
finally
c.Free;
end;
finally
p.free;
end;
except
result := nil;
end;
end;
function TFHIRPathEngine.pairToQty(p : TUcumPair) : TFHIRQuantity;
begin
result := TFHIRQuantity.Create;
try
result.value := p.value.AsString;
result.system := URI_UCUM;
result.code := p.UnitCode;
result.noExtensions;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.qtyToPair(q : TFHIRQuantity) : TUcumPair;
begin
if (URI_UCUM <> q.system) then
exit(nil);
result := TUcumPair.Create;
try
result.value := TFslDecimal.ValueOf(q.value);
result.Unitcode := q.code;
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.qtyEquivalent(left, right: TFHIRQuantity): boolean;
var
dl, dr : TFhirDecimal;
ul, ur : TUcumPair;
begin
if (FUcum <> nil) and FUcum.isConfigured then
begin
ul := qtyToCanonical(left);
try
ur := qtyToCanonical(right);
try
if (ul <> nil) and (ur <> nil) and (ul.UnitCode = ur.UnitCode) then
exit(ul.value.equivalent(ur.value));
finally
ur.free;
end;
finally
ul.free;
end;
end;
result := false;
if (left.system = right.system) and (left.code = right.code) then
begin
dl := TFhirDecimal.Create(left.value);
try
dr := TFhirDecimal.Create(left.value);
try
result := equivalent(dl, dr);
finally
dr.Free;
end;
finally
dl.Free;
end;
end;
end;
function TFHIRPathEngine.resolveConstant(context : TFHIRPathExecutionContext; s : String) : TFHIRObject;
var
ext : TFHIRPathEngineExtension;
begin
if (s = '%sct') then
result := TFHIRString.create(URI_SNOMED).noExtensions()
else if (s = '%loinc') then
result := TFHIRString.create(URI_LOINC).noExtensions()
else if (s = '%ucum') then
result := TFHIRString.create(URI_UCUM).noExtensions()
else if (s = '%resource') then
begin
if (context.resource = nil) then
raise EFHIRPath.create('Cannot use %resource in this context');
result := context.resource.Link;
end
else if (s = '%context') then
result := context.context.link
else if (s = '%us-zip') then
result := TFHIRString.create('[0-9]{5}(-[0-9]{4}){0,1}').noExtensions()
else if (s.startsWith('%`vs-')) then
result := TFHIRString.create('http://hl7.org/fhir/ValueSet/'+s.substring(5, s.length-6)).noExtensions()
else if (s.startsWith('%`cs-')) then
result := TFHIRString.create('http://hl7.org/fhir/'+s.substring(5, s.length-1)).noExtensions()
else if (s.startsWith('%`ext-')) then
result := TFHIRString.create('http://hl7.org/fhir/StructureDefinition/'+s.substring(6, s.length-7)).noExtensions()
else
begin
for ext in FExtensions do
begin
if ext.resolveConstant(context, s, result) then
exit;
end;
raise EFHIRPath.create('Unknown fixed constant "'+s+'"')
end;
end;
function TFHIRPathEngine.execute(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode; atEntry : boolean): TFHIRSelectionList;
var
work, work2 : TFHIRSelectionList;
item, base : TFHIRSelection;
outcome : TFHIRSelectionList;
next, last : TFHIRPathExpressionNode;
begin
work := TFHIRSelectionList.Create;
try
case exp.kind of
enkUnary:
work.add(TFhirInteger.Create('0'));
enkName:
if atEntry and (exp.name = '$this') then
work.add(context.this.Link)
else if atEntry and (exp.name = '$total') then
work.addAll(context.total)
else
for item in focus do
begin
outcome := execute(context, item.value, exp, atEntry);
try
if work.oneBased <> outcome.OneBased then
if work.count = 0 then
work.oneBased := outcome.OneBased
else
raise EFHIRPath.Create('Cannot mix 0-bazed and 1-based selections');
for base in outcome do
if (base.value <> nil) then
work.Add(base.Link);
finally
outcome.Free;
end;
end;
enkFunction:
begin
work2 := evaluateFunction(context, focus, exp);
try
work.addAll(work2);
finally
work2.Free;
end;
end;
enkConstant:
begin
item := TFHIRSelection.Create(resolveConstant(context, exp.constant));
if (item.value <> nil) then
work.Add(item)
else
item.free;
end;
enkGroup:
begin
work2 := execute(context, focus, exp.group, atEntry);
try
work.addAll(work2);
finally
work2.Free;
end;
end;
end;
Debug(context, exp, false, focus, nil, work);
if (exp.Inner <> nil) then
begin
result := execute(context, work, exp.Inner, false);
work.Free;
work := result;
end;
if (exp.proximal and (exp.Operation <> popNull)) then
begin
next := exp.OpNext;
last := exp;
while (next <> nil) do
begin
// and and or - may be able to avoid executing the right side
work2 := preOperate(work, last.Operation);
if work2 <> nil then
begin
Debug(context, exp, true, work, nil, work2);
work.Free;
work := work2;
end
else
begin
if (last.Operation in [popIs, popAs]) then
begin
if next.Inner <> nil then
work2 := TFHIRSelectionList.Create(TFHIRString.Create(next.name+'.'+next.inner.name).noExtensions)
else
work2 := TFHIRSelectionList.Create(TFHIRString.Create(next.name).noExtensions)
end
else
work2 := execute(context, focus, next, true);
try
result := operate(work, last.Operation, work2);
try
Debug(context, exp, true, work, work2, result);
finally
work.Free;
work := result;
end;
finally
work2.Free;
end;
end;
last := next;
next := next.OpNext;
end;
end;
result := work.Link;
finally
work.Free;
end;
end;
function TFHIRPathEngine.executeType(focus: String; exp: TFHIRPathExpressionNode; atEntry : boolean): TFHIRTypeDetails;
begin
if (atEntry and exp.Name[1].IsUpper) and (focus = TFHIRProfiledType.ns(exp.Name)) then
result := TFHIRTypeDetails.create(csSINGLETON, [focus])
else
begin
result := TFHIRTypeDetails.create(csNULL, []);
try
ListChildTypesByName(focus, exp.name, result);
result.Link;
finally
result.Free;
end;
end;
end;
function TFHIRPathEngine.evaluateFunction(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
begin
case exp.FunctionId of
pfEmpty : result := funcEmpty(context, focus, exp);
pfNot : result := funcNot(context, focus, exp);
pfExists : result := funcExists(context, focus, exp);
pfSubsetOf : result := funcSubsetOf(context, focus, exp);
pfSupersetOf : result := funcSupersetOf(context, focus, exp);
pfIsDistinct : result := funcIsDistinct(context, focus, exp);
pfDistinct : result := funcDistinct(context, focus, exp);
pfCount : result := funcCount(context, focus, exp);
pfWhere : result := funcWhere(context, focus, exp);
pfSelect : result := funcSelect(context, focus, exp);
pfAll : result := funcAll(context, focus, exp);
pfRepeat : result := funcRepeat(context, focus, exp);
pfAggregate : result := funcAggregate(context, focus, exp);
pfItem : result := funcItem(context, focus, exp);
pfAs : result := funcAs(context, focus, exp);
pfOfType : result := funcOfType(context, focus, exp);
pfType : result := funcType(context, focus, exp);
pfIs : result := funcIs(context, focus, exp);
pfSingle : result := funcSingle(context, focus, exp);
pfFirst : result := funcFirst(context, focus, exp);
pfLast : result := funcLast(context, focus, exp);
pfTail : result := funcTail(context, focus, exp);
pfSkip : result := funcSkip(context, focus, exp);
pfTake : result := funcTake(context, focus, exp);
pfUnion : result := funcUnion(context, focus, exp);
pfCombine : result := funcCombine(context, focus, exp);
pfIntersect : result := funcIntersect(context, focus, exp);
pfExclude : result := funcExclude(context, focus, exp);
pfIif : result := funcIif(context, focus, exp);
pfLower : result := funcLower(context, focus, exp);
pfUpper : result := funcUpper(context, focus, exp);
pfToChars : result := funcToChars(context, focus, exp);
pfSubstring : result := funcSubstring(context, focus, exp);
pfStartsWith : result := funcStartsWith(context, focus, exp);
pfEndsWith : result := funcEndsWith(context, focus, exp);
pfMatches : result := funcMatches(context, focus, exp);
pfReplaceMatches : result := funcReplaceMatches(context, focus, exp);
pfContains : result := funcContains(context, focus, exp);
pfReplace : result := funcReplace(context, focus, exp);
pfLength : result := funcLength(context, focus, exp);
pfChildren : result := funcChildren(context, focus, exp);
pfDescendants : result := funcDescendants(context, focus, exp);
pfMemberOf : result := funcMemberOf(context, focus, exp);
pfTrace : result := funcTrace(context, focus, exp);
pfToday : result := funcToday(context, focus, exp);
pfNow : result := funcNow(context, focus, exp);
pfResolve: result := funcResolve(context, focus, exp);
pfExtension: result := funcExtension(context, focus, exp);
pfHasExtension: result := funcHasExtension(context, focus, exp);
pfAllFalse: result := funcAllFalse(context, focus, exp);
pfAnyFalse: result := funcAnyFalse(context, focus, exp);
pfAllTrue: result := funcAllTrue(context, focus, exp);
pfAnyTrue: result := funcAnyTrue(context, focus, exp);
pfElementDefinition: result := funcElementDefinition(context, focus, exp);
pfSlice: result := funcSlice(context, focus, exp);
pfCheckModifiers: result := funcCheckModifiers(context, focus, exp);
pfConformsTo: result := funcConformsTo(context, focus, exp);
pfHasValue : result := funcHasValue(context, focus, exp);
pfHtmlChecks : result := funcHtmlChecks(context, focus, exp);
pfToInteger : result := funcToInteger(context, focus, exp);
pfToDecimal : result := funcToDecimal(context, focus, exp);
pfToString : result := funcToString(context, focus, exp);
pfToBoolean : result := funcToBoolean(context, focus, exp);
pfToQuantity : result := funcToQuantity(context, focus, exp);
pfToDateTime : result := funcToDateTime(context, focus, exp);
pfToTime : result := funcToTime(context, focus, exp);
pfAbs : result := funcAbs(context, focus, exp);
pfCeiling : result := funcCeiling(context, focus, exp);
pfExp : result := funcExp(context, focus, exp);
pfFloor : result := funcFloor(context, focus, exp);
pfLn : result := funcLn(context, focus, exp);
pfLog : result := funcLog(context, focus, exp);
pfPower : result := funcPower(context, focus, exp);
pfTruncate : result := funcTruncate(context, focus, exp);
pfRound : result := funcRound(context, focus, exp);
pfSqrt : result := funcSqrt(context, focus, exp);
pfConvertsToInteger : result := funcIsInteger(context, focus, exp);
pfConvertsToDecimal : result := funcIsDecimal(context, focus, exp);
pfConvertsToString : result := funcIsString(context, focus, exp);
pfConvertsToBoolean : result := funcIsBoolean(context, focus, exp);
pfConvertsToQuantity : result := funcIsQuantity(context, focus, exp);
pfConvertsToDateTime : result := funcIsDateTime(context, focus, exp);
pfConvertsToDate : result := funcIsDate(context, focus, exp);
pfConvertsToTime : result := funcIsTime(context, focus, exp);
pfForHtml : result := funcForHtml(context, focus, exp);
pfEncode : result := funcEncode(context, focus, exp);
pfDecode : result := funcDecode(context, focus, exp);
pfEscape : result := funcEscape(context, focus, exp);
pfUnescape : result := funcUnescape(context, focus, exp);
pfTrim : result := funcTrim(context, focus, exp);
pfSplit : result := funcSplit(context, focus, exp);
pfJoin : result := funcJoin(context, focus, exp);
pfCustom : result := funcCustom(context, focus, exp);
else
raise EFHIRPath.create('Unknown Function '+exp.name);
end;
end;
function TFHIRPathEngine.funcCustom(context : TFHIRPathExecutionContext; focus: TFHIRSelectionList; exp: TFHIRPathExpressionNode): TFHIRSelectionList;
var
ext : TFHIRPathEngineExtension;
item : TFHIRSelection;
work : TFHIRSelectionList;
couldHaveBeen, done : boolean;
plist : TFslList<TFHIRPathExpressionNodeV>;
p : TFHIRPathExpressionNodeV;
begin
result := TFHIRSelectionList.Create;
try
couldHaveBeen := false;
done := false;
for ext in FExtensions do
begin
couldHaveBeen := couldHaveBeen or ext.isValidFunction(exp.name);
if ext.functionApplies(context, focus, exp.name) then
begin
done := true;
plist := TFslList<TFHIRPathExpressionNodeV>.create;
try
for p in exp.parameters do
plist.add(p.link);
for item in focus do
begin
work := ext.execute(context, item.value, exp.name, plist, self);
try
result.addAll(work);
finally
work.Free;
end;
end;
finally
plist.free;
end;
break;
end;
end;
if not done and (not couldHaveBeen or (focus.Count > 0)) then
raise EFHIRPath.create('Unknown Function '+exp.name);
result.Link;
finally
result.Free;
end;
end;
function TFHIRPathEngine.asBool(items: TFHIRSelectionList): TEqualityTriState;
begin
if items.Count = 0 then
result := equalNull
else if (items.Count = 1) and (items[0].value.isBooleanPrimitive) then
result := asBool(items[0].value)
else if items.Count = 1 then
result := equalTrue
else
raise EFHIRPath.Create('Unable to evaluate as a boolean: '+convertToString(items));
end;
function TFHIRPathEngine.asBoolFromInt(s : String): TEqualityTriState;
begin
case StrToIntDef(s, -1) of
0: result := equalFalse;
1: result := equalTrue;
else
result := equalNull;
end
end;
function TFHIRPathEngine.asBoolFromDec(s : String): TEqualityTriState;
var
d : TFslDecimal;
begin
result := equalNull;
try
d := TFslDecimal.Create(s);
if d.IsZero then
result := equalFalse
else if d.IsOne then
result := equalTrue
except
end;
end;
function TFHIRPathEngine.asBool(item: TFHIRObject): TEqualityTriState;
begin
if (item is TFhirBoolean) then
result := boolToTriState((item as TFhirBoolean).value)
else if (item is TFhirInteger) then
result := asBoolFromInt((item as TFhirInteger).value)
else if (item is TFhirDecimal) then
result := asBoolFromDec((item as TFhirInteger).value)
else if StringArrayExistsSensitive(FHIR_TYPES_STRING, item.fhirType) then
begin
if StringArrayExistsSensitive(['true', 't', 'yes', 'y'], item.primitiveValue) then
result := equalFalse
else if StringArrayExistsSensitive(['false', 'f', 'no', 'n'], item.primitiveValue) then
result := equalTrue
else if StringIsInteger32(item.primitiveValue) then
result := asBoolFromInt(item.primitiveValue)
else if StringIsDecimal(item.primitiveValue) then
result := asBoolFromDec(item.primitiveValue)
else
result := equalNull;
end
else
result := equalNull;
end;
function TFHIRPathEngine.check(appInfo: TFslObject; resourceType, context, path: String; expr: TFHIRPathExpressionNodeV; xPathStartsWithValueRef: boolean): TFHIRTypeDetailsV;
begin
result := nil;
end;
procedure TFHIRPathEngine.checkParamTypes(funcId : TFHIRPathFunction; paramTypes : TFslList<TFHIRTypeDetails>; typeSet : array of TFHIRTypeDetails);
var
i : integer;
pt, actual : TFHIRTypeDetails;
a : TFHIRProfiledType;
sd : TFhirStructureDefinition;
ok : boolean;
begin
try
i := 0;
for pt in typeSet do
begin
if (i = paramTypes.count) then
exit;
actual := paramTypes[i];
inc(i);
for a in actual.types do
begin
if (not pt.hasType(context, a.uri)) then
begin
ok := false;
sd := context.fetchStructureDefinition(a.uri);
while not ok and (sd <> nil) do
begin
ok := pt.hasType(context, sd.type_);
sd := context.fetchStructureDefinition(sd.baseDefinition);
end;
if (not ok) then
raise EFHIRPath.create('The parameter type "'+a.uri+'" is not legal for '+CODES_TFHIRPathFunctions[funcId]+' parameter '+Integer.toString(i)+', expecting '+pt.describe());
end;
end;
end;
finally
for pt in typeSet do
pt.Free;
end;
end;
function TFHIRPathEngine.childTypes(focus : TFHIRTypeDetails; mask : string) : TFHIRTypeDetails;
var
f : TFHIRProfiledType;
begin
result := TFHIRTypeDetails.create(csUNORDERED, []);
try
for f in focus.types do
ListChildTypesByName(f.uri, mask, result);
result.link;
finally
result.free;
end;
end;
function TFHIRPathEngine.evaluateFunctionType(context: TFHIRPathExecutionTypeContext; focus: TFHIRTypeDetails; exp: TFHIRPathExpressionNode): TFHIRTypeDetails;
var
expr : TFHIRPathExpressionNode;
paramTypes : TFslList<TFHIRTypeDetails>;
nc : TFHIRPathExecutionTypeContext;
s, c : boolean;
pt : TFHIRProfiledType;
begin
paramTypes := TFslList<TFHIRTypeDetails>.create;
try
if (exp.FunctionId in [pfIs, pfAs, pfOfType]) then
paramTypes.add(TFHIRTypeDetails.create(csSINGLETON, [FP_string]))
else
begin
if (exp.FunctionId in [pfWhere, pfSelect, pfRepeat]) then
nc := TFHIRPathExecutionTypeContext.Create(context.appInfo.Link, context.FResourceType, focus.Link)
else
nc := context.Link;
try
for expr in exp.Parameters do
paramTypes.add(executeType(nc, focus, expr, true));
finally
nc.Free;
end;
end;
case exp.FunctionId of
pfEmpty :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfNot :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfExists :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfSubsetOf :
begin
checkParamTypes(exp.FunctionId, paramTypes, [focus.link]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfSupersetOf :
begin
checkParamTypes(exp.FunctionId, paramTypes, [focus.link]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfIsDistinct :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfDistinct :
result := focus.Link;
pfCount :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_integer]);
pfWhere :
result := focus.Link;
pfSelect :
result := TFHIRTypeDetails.createList(focus.CollectionStatus, allTypes);
pfAll :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfRepeat :
result := TFHIRTypeDetails.createList(focus.CollectionStatus, allTypes);
pfAggregate :
result := TFHIRTypeDetails.createList(focus.CollectionStatus, allTypes);
pfItem :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_integer])]);
result := focus.Link;
end;
pfOfType :
begin
checkParamTypes(exp.FunctionId, paramTypes, TFHIRTypeDetails.create(csSINGLETON, [FP_String]));
result := TFHIRTypeDetails.create(csSINGLETON, [exp.Parameters[0].name]);
end;
pfType :
begin
s := false;
c := false;
for pt in focus.types do
begin
s := s or pt.isSystemType();
c := c or not pt.isSystemType();
end;
if (s and c) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_SimpleTypeInfo, FP_ClassInfo])
else if (s) then
result := TFHIRTypeDetails.create(csSINGLETON, [FP_SimpleTypeInfo])
else
result := TFHIRTypeDetails.create(csSINGLETON, [FP_ClassInfo]);
end;
pfAs :
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, exp.Parameters[0].Name);
end;
pfIs :
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfSingle :
result := focus.toSingleton();
pfFirst :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
result := focus.toSingleton();
end;
pfLast :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
result := focus.toSingleton();
end;
pfTail :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
result := focus.Link;
end;
pfSkip :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_integer])]);
result := focus.Link;
end;
pfTake :
begin
if (focus.CollectionStatus = csUNORDERED) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on ordered collections');
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_integer])]);
result := focus.Link;
end;
pfUnion :
result := focus.union(paramTypes[0]);
pfCombine :
result := focus.union(paramTypes[0]);
pfIntersect :
result := focus.intersect(paramTypes[0]);
pfExclude :
result := focus.link;
pfIif :
begin
result := TFHIRTypeDetails.create(csNull, []);
result.update(paramTypes[0]);
if (paramTypes.count > 1) then
result.update(paramTypes[1]);
end;
pfLower :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfUpper :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfToChars :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfSubstring :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_Integer]), TFHIRTypeDetails.create(csSINGLETON, [FP_integer])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfStartsWith :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfEndsWith :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfMatches :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfReplaceMatches :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string]), TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfContains :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfReplace :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'id'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, id'+' not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string]), TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfLength :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_integer]);
end;
pfChildren :
result := childTypes(focus, '*');
pfDescendants :
result := childTypes(focus, '**');
pfMemberOf :
begin
if (not focus.hasType(self.context, ['string', 'code', 'uri', 'Coding', 'CodeableConcept'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on string, code, uri, Coding, CodeableConcept not '+focus.describe);
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfTrace :
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := focus.Link;
end;
pfToday :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_DateTime]);
pfNow :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_dateTime]);
pfResolve :
begin
if (not focus.hasType(self.context, ['uri', 'Reference'])) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on uri, Reference not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, ['DomainResource']);
end;
pfExtension :
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, ['Extension']);
end;
pfHasExtension :
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfAllFalse:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfAnyFalse:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfAllTrue:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfAnyTrue:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfElementDefinition:
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, ['ElementDefinition']);
end;
pfSlice:
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string, FP_string])]);
result := focus.Link;
end;
pfCheckModifiers:
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csUNORDERED, [FP_string])]);
result := focus.Link;
end;
pfConformsTo:
begin
checkParamTypes(exp.FunctionId, paramTypes, [TFHIRTypeDetails.create(csSINGLETON, [FP_string])]);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
end;
pfHasValue:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfHtmlChecks:
result := TFHIRTypeDetails.create(csSINGLETON, [FP_boolean]);
pfToInteger :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_integer]);
end;
pfToDecimal :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_decimal]);
end;
pfToString :
begin
if (not focus.hasType(self.context, primitiveTypes) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_string]);
end;
pfToQuantity :
begin
if (not focus.hasType(self.context, primitiveTypes) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Quantity]);
end;
pfToBoolean :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Boolean]);
end;
pfToDateTime :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_DateTime]);
end;
pfToTime :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Time]);
end;
pfAbs :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfCeiling :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfExp :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfFloor :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfLn :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfLog :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfPower :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfTruncate :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfRound :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfSqrt :
begin
if (not focus.hasType(self.context, FHIR_TYPES_NUMERIC) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+CommaText(FHIR_TYPES_NUMERIC)+' and Quantity not '+focus.describe);
result := TFHIRTypeDetails.createList(csSINGLETON, focus.types);
end;
pfConvertsToString, pfConvertsToQuantity :
begin
if (not focus.hasType(self.context, primitiveTypes) and not focus.hasType(self.context, 'Quantity')) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Boolean]);
end;
pfConvertsToInteger, pfConvertsToDecimal, pfConvertsToDateTime, pfConvertsToDate, pfConvertsToTime, pfConvertsToBoolean :
begin
if (not focus.hasType(self.context, primitiveTypes)) then
raise EFHIRPath.create('The function "'+CODES_TFHIRPathFunctions[exp.FunctionId]+'()" can only be used on '+primitiveTypes.CommaText+' not '+focus.describe);
result := TFHIRTypeDetails.create(csSINGLETON, [FP_Boolean]);
end;
pfForHtml, pfEncode, pfDecode, pfEscape, pfUnescape, pfTrim :
begin
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String]);
end;
pfSplit :
result := TFHIRTypeDetails.create(csORDERED, [FP_String]);
pfJoin :
result := TFHIRTypeDetails.create(csSINGLETON, [FP_String]);
pfCustom :
result := evaluateCustomFunctionType(context, focus, exp);
else
raise EFHIRPath.create('not Implemented yet?');
end;
finally
paramTypes.Free;
end;
end;
function processDateConstant(s : String) : TFHIRDataType;
var
v : String;
i : integer;
begin
if (s.startsWith('T')) then
exit(TFHIRTime.create(s.substring(1)).noExtensions as TFHIRDataType);
v := s;
if (v.length > 10) then
begin
i := v.substring(10).indexOf('-');
if (i = -1) then
i := v.substring(10).indexOf('+');
if (i = -1) then
i := v.substring(10).indexOf('Z');
if i = -1 then
v := s
else
v := v.substring(0, 10+i);
end;
if (v.length > 10) then
result := TFHIRDateTime.create(TFslDateTime.fromXML(s)).noExtensions as TFHIRDataType
else
result := TFHIRDate.create(TFslDateTime.fromXML(s)).noExtensions as TFHIRDataType;
end;
//function TFHIRPathEngine.readConstant(context : TFHIRPathExecutionContext; constant: String): TFHIRObject;
//begin
// if (constant = 'true') then
// result := TFhirBoolean.Create(true).noExtensions
// else if (constant = 'false') then
// result := TFhirBoolean.Create(false).noExtensions
// else if (constant = '{}') then
// result := nil
// else if StringIsInteger32(constant) then
// result := TFhirInteger.Create(constant).noExtensions
// else if StringIsDecimal(constant) then
// result := TFhirDecimal.Create(constant).noExtensions
// else if constant.StartsWith('''') then
// result := TFhirString.Create(TFHIRPathLexer.processConstant(constant)).noExtensions
// else if constant.StartsWith('%') then
// result := replaceFixedConstant(context, constant)
// else if constant.StartsWith('@') then
// result := processDateConstant(nil, constant.Substring(1))
// else
// result := TFhirString.Create(constant).noExtensions;
//end;
//
//function TFHIRPathEngine.replaceFixedConstant(context : TFHIRPathExecutionContext; const s: String): TFHIRObject;
//begin
// if s = '%sct' then
// result := TFhirString.Create(URI_SNOMED).noExtensions
// else if s = '%loinc' then
// result := TFhirString.Create(URI_LOINC).noExtensions
// else if s = '%ucum' then
// result := TFhirString.Create(URI_UCUM).noExtensions
// else if s = '%resource' then
// begin
// if (context.resource = nil) then
// raise EFHIRPath.create('%resource cannot be used in this context');
// result := context.resource.link;
// end
// else if s = '%us-zip' then
// result := TFhirString.Create('[0-9]{5}(-[0-9]{4}){0,1}"').noExtensions
// else if s.StartsWith('%"vs-') then
// result := TFhirString.Create('http://hl7.org/fhir/ValueSet/'+s.Substring(5, s.length-6)).noExtensions
// else if s.StartsWith('%"cs-') then
// result := TFhirString.Create('http://hl7.org/fhir/'+s.Substring(5, s.length-6)).noExtensions
// else if s.StartsWith('%"ext-') then
// result := TFhirString.Create('http://hl7.org/fhir/StructureDefinition/'+s.Substring(6, s.length-7)).noExtensions
// else
// raise EFHIRPath.create('Unknown fixed constant '+s);
//end;
//
function TFHIRPathEngine.UseLog: String;
begin
if (FLog <> nil) and (FLog.Length > 0) then
begin
result := ' ('+FLog.ToString+')';
FLog.Clear;
end
else
result := '';
end;
function TFHIRPathEngine.parse(path: String): TFHIRPathExpressionNode;
var
parser : TFHIRPathParser;
begin
parser := TFHIRPathParser.Create;
try
parser.FExtensions := FExtensions.Link;
result := parser.parse(path);
finally
parser.Free;
end;
end;
procedure TFHIRPathEngine.ListChildrenByName(focus: TFHIRObject; name: String; results: TFHIRSelectionList);
begin
focus.ListChildrenByName(name, results);
end;
procedure TFHIRPathEngine.getClassInfoChildTypesByName(name: String; result : TFHIRTypeDetails);
begin
if (name = 'namespace') then
result.addType(FP_String);
if (name = 'name') then
result.addType(FP_String);
end;
procedure TFHIRPathEngine.getSimpleTypeChildTypesByName(name: String; result : TFHIRTypeDetails);
begin
if (name = 'namespace') then
result.addType(FP_String);
if (name = 'name') then
result.addType(FP_String);
end;
procedure TFHIRPathEngine.ListChildTypesByName(type_, name : String; result : TFHIRTypeDetails);
var
url, tail, specifiedType, path, tn, r, rn : String;
sd, dt, sdi : TFhirStructureDefinition;
sdl : TFslList<TFhirStructureDefinition>;
m, ed : TFhirElementDefinition;
t : TFhirElementDefinitionType;
rt : TFslStringSet;
begin
if (type_ = '') then
raise EFHIRPath.create('No type provided in BuildToolPathEvaluator.ListChildTypesByName');
if (type_ = 'http://hl7.org/fhir/StructureDefinition/xhtml') then
exit;
if (type_ = 'Custom') or (type_ = 'http://hl7.org/fhir/StructureDefinition/Custom') then
exit;
if (type_.StartsWith('http://hl7.org/fhirpath/System.')) then
exit;
if (type_ = FP_SimpleTypeInfo) then
getSimpleTypeChildTypesByName(name, result)
else if (type_ = FP_ClassInfo) then
getClassInfoChildTypesByName(name, result)
else
begin
if (type_.startsWith('http:')) then
begin
if (type_.contains('#')) then
url := type_.substring(0, type_.indexOf('#'))
else
url := type_;
end
else
begin
if (type_.contains('.')) then
begin
url := TFHIRProfiledType.ns(type_.substring(0, type_.indexOf('.')));
type_ := url+'#'+type_;
end
else
url := TFHIRProfiledType.ns(type_);
end;
sd := worker.fetchStructureDefinition(url);
if (sd = nil) then
raise EFHIRPath.create('Unknown type '+type_); // this really is an error, because we can only get to here if the internal infrastrucgture is wrong
m := nil;
sdl := TFslList<TFhirStructureDefinition>.create;
try
if (type_.contains('#')) then
m := getElementDefinition(sd, type_.substring(type_.indexOf('#')+1), true, specifiedType);
if ((m <> nil) and hasDataType(m)) then
begin
if specifiedType <> '' then
begin
dt := worker.fetchStructureDefinition('http://hl7.org/fhir/StructureDefinition/'+specifiedType);
if (dt = nil) then
raise EFHIRPath.create('unknown data type '+specifiedType);
sdl.add(dt);
end
else
for t in m.type_List do
begin
dt := worker.fetchStructureDefinition('http://hl7.org/fhir/StructureDefinition/'+t.Code) as TFhirStructureDefinition;
if (dt = nil) then
raise EFHIRPath.create('unknown data type '+t.code);
sdl.add(dt);
end;
end
else
begin
sdl.add(sd.Link);
if (type_.contains('#')) then
begin
tail := type_.substring(type_.indexOf('#')+1);
tail := tail.substring(tail.indexOf('.'));
end;
end;
for sdi in sdl do
begin
path := sdi.snapshot.elementList[0].path+tail+'.';
if (name = '**') then
begin
assert(result.CollectionStatus = csUNORDERED);
for ed in sdi.snapshot.elementList do
begin
if (ed.path.startsWith(path)) then
for t in ed.type_List do
begin
if (t.code = 'Element') or (t.code = 'BackboneElement') then
tn := ed.path
else
tn := t.code;
if (tn = 'Resource') then
begin
rt := worker.getResourceNames();
try
for rn in rt do
begin
if (not result.hasType(context, rn)) then
begin
result.addType(rn);
listChildTypesByName(rn, '**', result);
end;
end;
finally
rt.free;
end;
end
else if (not result.hasType(context, tn)) and (tn <> '') then
begin
result.addType(tn);
ListChildTypesByName(tn, '**', result);
end;
end;
end;
end
else if (name.equals('*')) then
begin
for ed in sdi.snapshot.elementList do
begin
if (ed.path.startsWith(path) and not ed.path.substring(path.length).contains('.')) then
for t in ed.type_List do
if (t.code = 'Element') or (t.code = 'BackboneElement') then
result.addType(ed.path)
else if (t.code = 'Resource') then
begin
rt := worker.getResourceNames;
try
for r in rt do
result.addType(r)
finally
rt.Free;
end;
end
else
result.addType(t.code);
end;
end
else
begin
path := sdi.snapshot.elementList[0].path+tail+'.'+name;
ed := getElementDefinition(sdi, path, false, specifiedType);
if (ed <> nil) then
begin
if (specifiedType <> '') then
result.addType(specifiedType)
else
begin
for t in ed.type_list do
begin
if (t.code = '') then
break; // raise EFHIRPath.create('Illegal reference to primitive value attribute @ '+path);
if (t.code = 'Element') or (t.code = 'BackboneElement') then
result.addType(path)
else if (t.code = 'Resource') then
begin
rt := worker.getResourceNames;
try
for r in rt do
result.addType(r)
finally
rt.Free;
end;
end
else
result.addType(t.code);
end;
end;
end;
end;
end;
finally
sdl.Free;
sd.Free;
end;
end;
end;
procedure TFHIRPathEngine.log(name, value: String);
begin
if (Flog.length > 0) then
Flog.append('; ');
Flog.append(name);
Flog.append(': ');
Flog.append(value);
end;
function hasType(ed : TFhirElementDefinition; s : String) : boolean;
var
t : TFhirElementDefinitionType;
begin
result := false;
for t in ed.type_List do
if (s.equals(t.code)) then
exit(true);
end;
function TFHIRPathEngine.isAbstractType(list : TFHIRElementDefinitionTypeList) : boolean;
var
s : string;
begin
if list.count <> 1 then
exit(false);
s := list[0].code;
result := (s = 'Element') or (s = 'BackboneElement') or (s = 'Resource') or (s = 'DomainResource');
end;
function TFHIRPathEngine.link: TFHIRPathEngine;
begin
result := TFHIRPathEngine(inherited Link);
end;
function TFHIRPathEngine.getElementDefinition(sd : TFHIRStructureDefinition; path : String; allowPM : boolean; var specifiedType : String) : TFHIRElementDefinition;
var
ed, m : TFhirElementDefinition;
begin
specifiedType := '';
result := nil;
for ed in sd.snapshot.elementList do
begin
if (ed.path.equals(path)) then
begin
if (ed.ContentReference <> '') then
exit(getElementDefinitionByName(sd, ed.ContentReference))
else
exit(ed);
end;
if (ed.path.endsWith('[x]')) and (path.startsWith(ed.path.substring(0, ed.path.length-3)) and (path.length = ed.path.Length - 3)) then
begin
specifiedType := path.Substring(ed.path.length-3);
exit(ed);
end;
if (allowPM and ed.path.endsWith('[x]')) and (path.startsWith(ed.path.substring(0, ed.path.length-3)) and (path.length >= ed.path.Length + 2)) then
begin
specifiedType := path.Substring(ed.path.length-3);
if isPrimitiveType(specifiedType.ToLower) then
specifiedType := specifiedType.ToLower;
exit(ed);
end;
if (ed.path.contains('.') and path.startsWith(ed.path+'.') and (ed.type_list.count > 0) and not isAbstractType(ed.type_list)) then
begin
// now we walk into the type.
if (ed.type_list.count > 1) then // if there's more than one type, the test above would fail this
raise EFHIRException.create('Internal typing issue....');
sd := worker.getStructure('http://hl7.org/fhir/StructureDefinition/'+ed.type_List[0].code);
try
if (sd = nil) then
raise EDefinitionException.create('Unknown type '+ed.type_List[0].code);
result := getElementDefinition(sd, sd.id+path.Substring(ed.path.Length), true, specifiedType);
finally
sd.Free;
end;
end;
if ((ed.ContentReference <> '') and path.startsWith(ed.path+'.')) then
begin
m := getElementDefinitionByName(sd, ed.ContentReference);
exit(getElementDefinition(sd, m.path+path.substring(ed.path.length), true, specifiedType));
end;
end;
end;
function TFHIRPathEngine.hasDataType(ed : TFhirElementDefinition) : boolean;
begin
result := (ed.type_List.Count > 0) and not ((ed.type_list[0].code = 'Element') or (ed.type_list[0].code = 'BackboneElement'));
end;
function TFHIRPathEngine.getElementDefinitionByName(sd : TFHIRStructureDefinition; name : String) : TFHIRElementDefinition;
var
ed : TFhirElementDefinition;
begin
for ed in sd.snapshot.elementList do
{$IFNDEF FHIR2}
if (name.equals('#'+ed.id)) then
{$ELSE}
if (name.equal(ed.Name)) then
{$ENDIF}
exit(ed);
result := nil;
end;
function TFHIRPathEngine.sizeInBytesV(magic : integer) : cardinal;
begin
result := inherited sizeInBytesV(magic);
inc(result, worker.sizeInBytes(magic));
inc(result, allTypes.sizeInBytes(magic));
inc(result, primitiveTypes.sizeInBytes(magic));
inc(result, FUcum.sizeInBytes(magic));
end;
{ TFHIRPathExecutionTypeContext }
constructor TFHIRPathExecutionTypeContext.Create(appInfo: TFslObject; resourceType : String; context : TFHIRTypeDetails);
begin
inherited Create;
FAppInfo := appInfo;
FResourceType := resourceType;
FContext := context;
end;
destructor TFHIRPathExecutionTypeContext.Destroy;
begin
FAppInfo.Free;
FContext.Free;
inherited;
end;
function TFHIRPathExecutionTypeContext.Link: TFHIRPathExecutionTypeContext;
begin
result := TFHIRPathExecutionTypeContext(inherited link);
end;
function TFHIRPathExecutionTypeContext.sizeInBytesV(magic : integer) : cardinal;
begin
result := inherited sizeInBytesV(magic);
inc(result, FAppInfo.sizeInBytes(magic));
inc(result, (FResourceType.length * sizeof(char)) + 12);
inc(result, FContext.sizeInBytes(magic));
end;
{ TFHIRPathLexer4B }
function TFHIRPathLexer4B.opCodes: TArray<String>;
var
i : integer;
s : string;
begin
setLength(result, length(CODES_TFHIRPathOperation));
for i := 0 to length(CODES_TFHIRPathOperation) - 1 do
begin
s := CODES_TFHIRPathOperation[TFHIRPathOperation(i)];
result[i] := s;
s := '';
end;
end;
function TFHIRPathLexer4B.processConstant : TFHIRObject;
begin
if (isStringConstant()) then
result := TFHIRString.create(TFHIRPathLexer.processConstant(take())).noExtensions()
else if (StringIsInteger32(current)) then
result := TFHIRInteger.create(take).noExtensions()
else if (StringIsDecimal(current)) then
result := TFHIRDecimal.create(take).noExtensions()
else if (StringArrayExistsSensitive(['true', 'false'], current)) then
result := TFHIRBoolean.create(take = 'true').noExtensions()
else if (current = '{}') then
begin
take;
result := nil;
end
else if (current.startsWith('%') or current.startsWith('@')) then
result := TFHIRConstant.create(take)
else
raise error('Invalid Constant '+current);
end;
end.
| 37.264654 | 219 | 0.659489 |
f1a6c0c74f2e705c678862468be7c1f3dfa11186
| 1,469 |
pas
|
Pascal
|
Voynich.Seleniun/Classes/UActionHandler.pas
|
IcaroSousa/VoynichWebDriver
|
fc90ad7070a09c4699e2c1295a51abda6cbc1d2d
|
[
"MIT"
] | null | null | null |
Voynich.Seleniun/Classes/UActionHandler.pas
|
IcaroSousa/VoynichWebDriver
|
fc90ad7070a09c4699e2c1295a51abda6cbc1d2d
|
[
"MIT"
] | null | null | null |
Voynich.Seleniun/Classes/UActionHandler.pas
|
IcaroSousa/VoynichWebDriver
|
fc90ad7070a09c4699e2c1295a51abda6cbc1d2d
|
[
"MIT"
] | null | null | null |
unit UActionHandler;
interface
Uses UActionHandlerInterface,
UFormHandlerInterface,
UFieldBase,
Spring.Collections,
System.Rtti,
System.Classes,
System.SysUtils;
Type
TActionHandler = class(TFieldBase, IActionHandler)
private
protected
Function FindMethod(pFormHandler: IFormHandler; pFormName, pElementName, pActionName: string): TRttiMethod;
public
Procedure Perform(pFormHandler: IFormHandler; pFormName, pElementName, pActionName: string; pParams: TArray<TValue> = nil);
end;
implementation
{ TActionHandler }
function TActionHandler.FindMethod(pFormHandler: IFormHandler; pFormName, pElementName, pActionName: string): TRttiMethod;
var
_Form: TRttiType;
_Method: TRttiMethod;
begin
_Form := pFormHandler.FindRttiTypeForm(pFormName);
_Method := FindElementField(_Form, pElementName, pActionName) as TRttiMethod;
if not Assigned(_Method) then
raise Exception.Create(Format('Method/Action -> %s cannot be found at -> %s!', [pActionName, pFormName]));
Result := _Method;
end;
procedure TActionHandler.Perform(pFormHandler: IFormHandler; pFormName, pElementName, pActionName: string; pParams: TArray<TValue> = nil);
var
_ComponentInstance: TComponent;
_Method: TRttiMethod;
begin
_Method := FindMethod(pFormHandler, pFormName, pElementName, pActionName);
_ComponentInstance := pFormHandler.FindComponentInstanceInForm(pFormName, pElementName);
_Method.Invoke(_ComponentInstance, pParams);
end;
end.
| 26.709091 | 138 | 0.780803 |
f1067e6cac397726b94340e3b5bac34e62d4388b
| 1,130 |
dfm
|
Pascal
|
ProjetoFinal_LibraryYourself/LibraryYourself/View/uFrLogin.dfm
|
BrendaCopatti/LibraryYourself
|
31adf578441bd39b7478a4d4037596bd548bf17f
|
[
"MIT"
] | null | null | null |
ProjetoFinal_LibraryYourself/LibraryYourself/View/uFrLogin.dfm
|
BrendaCopatti/LibraryYourself
|
31adf578441bd39b7478a4d4037596bd548bf17f
|
[
"MIT"
] | null | null | null |
ProjetoFinal_LibraryYourself/LibraryYourself/View/uFrLogin.dfm
|
BrendaCopatti/LibraryYourself
|
31adf578441bd39b7478a4d4037596bd548bf17f
|
[
"MIT"
] | null | null | null |
object frLogin: TfrLogin
Left = 0
Top = 0
Caption = 'Library Yourself'
ClientHeight = 204
ClientWidth = 288
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poDesktopCenter
PixelsPerInch = 96
TextHeight = 13
object edtCPF: TLabeledEdit
Left = 24
Top = 48
Width = 241
Height = 21
EditLabel.Width = 19
EditLabel.Height = 13
EditLabel.Caption = 'CPF'
ParentShowHint = False
ShowHint = False
TabOrder = 0
end
object edtSenha: TLabeledEdit
Left = 24
Top = 88
Width = 241
Height = 21
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Senha'
ParentShowHint = False
PasswordChar = '*'
ShowHint = False
TabOrder = 1
end
object btnEntrar: TButton
Left = 104
Top = 152
Width = 75
Height = 25
Caption = 'Entrar'
TabOrder = 2
OnClick = btnEntrarClick
end
object fdqLogin: TFDQuery
Connection = dmAcessaBanco.fdcLYS
Left = 232
Top = 128
end
end
| 19.824561 | 37 | 0.638938 |
83b017769392d908f46d8eea09962909e2f94018
| 38,143 |
pas
|
Pascal
|
ldapsend.pas
|
Makhaon/SynHTTP
|
699c1102a1b9a44df9f362f72e53aa33f2fd818e
|
[
"MIT"
] | 4 |
2021-10-09T09:28:49.000Z
|
2021-10-10T02:32:23.000Z
|
ldapsend.pas
|
Makhaon/SynHTTP
|
699c1102a1b9a44df9f362f72e53aa33f2fd818e
|
[
"MIT"
] | null | null | null |
ldapsend.pas
|
Makhaon/SynHTTP
|
699c1102a1b9a44df9f362f72e53aa33f2fd818e
|
[
"MIT"
] | 2 |
2021-10-09T15:37:30.000Z
|
2022-01-15T03:35:53.000Z
|
{==============================================================================|
| Project : Ararat Synapse | 001.007.001 |
|==============================================================================|
| Content: LDAP client |
|==============================================================================|
| Copyright (c)1999-2014, Lukas Gebauer |
| All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the following conditions are met: |
| |
| Redistributions of source code must retain the above copyright notice, this |
| list of conditions and the following disclaimer. |
| |
| Redistributions in binary form must reproduce the above copyright notice, |
| this list of conditions and the following disclaimer in the documentation |
| and/or other materials provided with the distribution. |
| |
| Neither the name of Lukas Gebauer nor the names of its contributors may |
| be used to endorse or promote products derived from this software without |
| specific prior written permission. |
| |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR |
| ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| DAMAGE. |
|==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2003-2014. |
| All Rights Reserved. |
|==============================================================================|
| Contributor(s): |
|==============================================================================|
| History: see HISTORY.HTM from distribution package |
| (Found at URL: http://www.ararat.cz/synapse/) |
|==============================================================================}
{:@abstract(LDAP client)
Used RFC: RFC-2251, RFC-2254, RFC-2696, RFC-2829, RFC-2830
}
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
{$H+}
{$IFDEF UNICODE}
{$WARN IMPLICIT_STRING_CAST OFF}
{$WARN IMPLICIT_STRING_CAST_LOSS OFF}
{$ENDIF}
unit ldapsend;
interface
uses
SysUtils, Classes,
blcksock, synautil, asn1util, synacode;
const
cLDAPProtocol = '389';
LDAP_ASN1_BIND_REQUEST = $60;
LDAP_ASN1_BIND_RESPONSE = $61;
LDAP_ASN1_UNBIND_REQUEST = $42;
LDAP_ASN1_SEARCH_REQUEST = $63;
LDAP_ASN1_SEARCH_ENTRY = $64;
LDAP_ASN1_SEARCH_DONE = $65;
LDAP_ASN1_SEARCH_REFERENCE = $73;
LDAP_ASN1_MODIFY_REQUEST = $66;
LDAP_ASN1_MODIFY_RESPONSE = $67;
LDAP_ASN1_ADD_REQUEST = $68;
LDAP_ASN1_ADD_RESPONSE = $69;
LDAP_ASN1_DEL_REQUEST = $4A;
LDAP_ASN1_DEL_RESPONSE = $6B;
LDAP_ASN1_MODIFYDN_REQUEST = $6C;
LDAP_ASN1_MODIFYDN_RESPONSE = $6D;
LDAP_ASN1_COMPARE_REQUEST = $6E;
LDAP_ASN1_COMPARE_RESPONSE = $6F;
LDAP_ASN1_ABANDON_REQUEST = $70;
LDAP_ASN1_EXT_REQUEST = $77;
LDAP_ASN1_EXT_RESPONSE = $78;
LDAP_ASN1_CONTROLS = $A0;
type
{:@abstract(LDAP attribute with list of their values)
This class holding name of LDAP attribute and list of their values. This is
descendant of TStringList class enhanced by some new properties.}
TLDAPAttribute = class(TStringList)
private
FAttributeName: AnsiString;
FIsBinary: Boolean;
protected
function Get(Index: integer): string; override;
procedure Put(Index: integer; const Value: string); override;
procedure SetAttributeName(Value: AnsiString);
public
function Add(const S: string): Integer; override;
published
{:Name of LDAP attribute.}
property AttributeName: AnsiString read FAttributeName Write SetAttributeName;
{:Return @true when attribute contains binary data.}
property IsBinary: Boolean read FIsBinary;
end;
{:@abstract(List of @link(TLDAPAttribute))
This object can hold list of TLDAPAttribute objects.}
TLDAPAttributeList = class(TObject)
private
FAttributeList: TList;
function GetAttribute(Index: integer): TLDAPAttribute;
public
constructor Create;
destructor Destroy; override;
{:Clear list.}
procedure Clear;
{:Return count of TLDAPAttribute objects in list.}
function Count: integer;
{:Add new TLDAPAttribute object to list.}
function Add: TLDAPAttribute;
{:Delete one TLDAPAttribute object from list.}
procedure Del(Index: integer);
{:Find and return attribute with requested name. Returns nil if not found.}
function Find(AttributeName: AnsiString): TLDAPAttribute;
{:Find and return attribute value with requested name. Returns empty string if not found.}
function Get(AttributeName: AnsiString): string;
{:List of TLDAPAttribute objects.}
property Items[Index: Integer]: TLDAPAttribute read GetAttribute; default;
end;
{:@abstract(LDAP result object)
This object can hold LDAP object. (their name and all their attributes with
values)}
TLDAPResult = class(TObject)
private
FObjectName: AnsiString;
FAttributes: TLDAPAttributeList;
public
constructor Create;
destructor Destroy; override;
{:Name of this LDAP object.}
property ObjectName: AnsiString read FObjectName write FObjectName;
{:Here is list of object attributes.}
property Attributes: TLDAPAttributeList read FAttributes;
end;
{:@abstract(List of LDAP result objects)
This object can hold list of LDAP objects. (for example result of LDAP SEARCH.)}
TLDAPResultList = class(TObject)
private
FResultList: TList;
function GetResult(Index: integer): TLDAPResult;
public
constructor Create;
destructor Destroy; override;
{:Clear all TLDAPResult objects in list.}
procedure Clear;
{:Return count of TLDAPResult objects in list.}
function Count: integer;
{:Create and add new TLDAPResult object to list.}
function Add: TLDAPResult;
{:List of TLDAPResult objects.}
property Items[Index: Integer]: TLDAPResult read GetResult; default;
end;
{:Define possible operations for LDAP MODIFY operations.}
TLDAPModifyOp = (
MO_Add,
MO_Delete,
MO_Replace
);
{:Specify possible values for search scope.}
TLDAPSearchScope = (
SS_BaseObject,
SS_SingleLevel,
SS_WholeSubtree
);
{:Specify possible values about alias dereferencing.}
TLDAPSearchAliases = (
SA_NeverDeref,
SA_InSearching,
SA_FindingBaseObj,
SA_Always
);
{:@abstract(Implementation of LDAP client)
(version 2 and 3)
Note: Are you missing properties for setting Username and Password? Look to
parent @link(TSynaClient) object!
Are you missing properties for specify server address and port? Look to
parent @link(TSynaClient) too!}
TLDAPSend = class(TSynaClient)
private
FSock: TTCPBlockSocket;
FResultCode: Integer;
FResultString: AnsiString;
FFullResult: AnsiString;
FAutoTLS: Boolean;
FFullSSL: Boolean;
FSeq: integer;
FResponseCode: integer;
FResponseDN: AnsiString;
FReferals: TStringList;
FVersion: integer;
FSearchScope: TLDAPSearchScope;
FSearchAliases: TLDAPSearchAliases;
FSearchSizeLimit: integer;
FSearchTimeLimit: integer;
FSearchPageSize: integer;
FSearchCookie: AnsiString;
FSearchResult: TLDAPResultList;
FExtName: AnsiString;
FExtValue: AnsiString;
function Connect: Boolean;
function BuildPacket(const Value: AnsiString): AnsiString;
function ReceiveResponse: AnsiString;
function DecodeResponse(const Value: AnsiString): AnsiString;
function LdapSasl(Value: AnsiString): AnsiString;
function TranslateFilter(Value: AnsiString): AnsiString;
function GetErrorString(Value: integer): AnsiString;
public
constructor Create;
destructor Destroy; override;
{:Try to connect to LDAP server and start secure channel, when it is required.}
function Login: Boolean;
{:Try to bind to LDAP server with @link(TSynaClient.Username) and
@link(TSynaClient.Password). If this is empty strings, then it do annonymous
Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous
mode.
This method using plaintext transport of password! It is not secure!}
function Bind: Boolean;
{:Try to bind to LDAP server with @link(TSynaClient.Username) and
@link(TSynaClient.Password). If this is empty strings, then it do annonymous
Bind. When you not call Bind on LDAPv3, then is automaticly used anonymous
mode.
This method using SASL with DIGEST-MD5 method for secure transfer of your
password.}
function BindSasl: Boolean;
{:Close connection to LDAP server.}
function Logout: Boolean;
{:Modify content of LDAP attribute on this object.}
function Modify(obj: AnsiString; Op: TLDAPModifyOp; const Value: TLDAPAttribute): Boolean;
{:Add list of attributes to specified object.}
function Add(obj: AnsiString; const Value: TLDAPAttributeList): Boolean;
{:Delete this LDAP object from server.}
function Delete(obj: AnsiString): Boolean;
{:Modify object name of this LDAP object.}
function ModifyDN(obj, newRDN, newSuperior: AnsiString; DeleteoldRDN: Boolean): Boolean;
{:Try to compare Attribute value with this LDAP object.}
function Compare(obj, AttributeValue: AnsiString): Boolean;
{:Search LDAP base for LDAP objects by Filter.}
function Search(obj: AnsiString; TypesOnly: Boolean; Filter: AnsiString;
const Attributes: TStrings): Boolean;
{:Call any LDAPv3 extended command.}
function Extended(const Name, Value: AnsiString): Boolean;
{:Try to start SSL/TLS connection to LDAP server.}
function StartTLS: Boolean;
published
{:Specify version of used LDAP protocol. Default value is 3.}
property Version: integer read FVersion Write FVersion;
{:Result code of last LDAP operation.}
property ResultCode: Integer read FResultCode;
{:Human readable description of result code of last LDAP operation.}
property ResultString: AnsiString read FResultString;
{:Binary string with full last response of LDAP server. This string is
encoded by ASN.1 BER encoding! You need this only for debugging.}
property FullResult: AnsiString read FFullResult;
{:If @true, then try to start TSL mode in Login procedure.}
property AutoTLS: Boolean read FAutoTLS Write FAutoTLS;
{:If @true, then use connection to LDAP server through SSL/TLS tunnel.}
property FullSSL: Boolean read FFullSSL Write FFullSSL;
{:Sequence number of last LDAp command. It is incremented by any LDAP command.}
property Seq: integer read FSeq;
{:Specify what search scope is used in search command.}
property SearchScope: TLDAPSearchScope read FSearchScope Write FSearchScope;
{:Specify how to handle aliases in search command.}
property SearchAliases: TLDAPSearchAliases read FSearchAliases Write FSearchAliases;
{:Specify result size limit in search command. Value 0 means without limit.}
property SearchSizeLimit: integer read FSearchSizeLimit Write FSearchSizeLimit;
{:Specify search time limit in search command (seconds). Value 0 means
without limit.}
property SearchTimeLimit: integer read FSearchTimeLimit Write FSearchTimeLimit;
{:Specify number of results to return per search request. Value 0 means
no paging.}
property SearchPageSize: integer read FSearchPageSize Write FSearchPageSize;
{:Cookie returned by paged search results. Use an empty string for the first
search request.}
property SearchCookie: AnsiString read FSearchCookie Write FSearchCookie;
{:Here is result of search command.}
property SearchResult: TLDAPResultList read FSearchResult;
{:On each LDAP operation can LDAP server return some referals URLs. Here is
their list.}
property Referals: TStringList read FReferals;
{:When you call @link(Extended) operation, then here is result Name returned
by server.}
property ExtName: AnsiString read FExtName;
{:When you call @link(Extended) operation, then here is result Value returned
by server.}
property ExtValue: AnsiString read FExtValue;
{:TCP socket used by all LDAP operations.}
property Sock: TTCPBlockSocket read FSock;
end;
{:Dump result of LDAP SEARCH into human readable form. Good for debugging.}
function LDAPResultDump(const Value: TLDAPResultList): string;
implementation
{==============================================================================}
function TLDAPAttribute.Add(const S: string): Integer;
begin
Result := inherited Add('');
Put(Result,S);
end;
function StrToHex(const s: string):string;
var
i: Integer;
begin
for i := Low(s) to High(s) do
Result := Result + Ord(s[i]).ToHexString + ' ';
end;
function TLDAPAttribute.Get(Index: integer): string;
begin
Result := inherited Get(Index);
if FIsbinary then
Result := StrToHex(Result);
end;
procedure TLDAPAttribute.Put(Index: integer; const Value: string);
var
s: AnsiString;
begin
s := Value;
if FIsbinary then
s := EncodeBase64(Value)
else
s :=UnquoteStr(s, '"');
inherited Put(Index, s);
end;
procedure TLDAPAttribute.SetAttributeName(Value: AnsiString);
begin
FAttributeName := Value;
FIsBinary := (Pos(';binary', Lowercase(value)) > 0) or (FAttributeName = 'objectGUID') or (FAttributeName = 'objectSid');
end;
{==============================================================================}
constructor TLDAPAttributeList.Create;
begin
inherited Create;
FAttributeList := TList.Create;
end;
destructor TLDAPAttributeList.Destroy;
begin
Clear;
FAttributeList.Free;
inherited Destroy;
end;
procedure TLDAPAttributeList.Clear;
var
n: integer;
x: TLDAPAttribute;
begin
for n := Count - 1 downto 0 do
begin
x := GetAttribute(n);
if Assigned(x) then
x.Free;
end;
FAttributeList.Clear;
end;
function TLDAPAttributeList.Count: integer;
begin
Result := FAttributeList.Count;
end;
function TLDAPAttributeList.Get(AttributeName: AnsiString): string;
var
x: TLDAPAttribute;
begin
Result := '';
x := self.Find(AttributeName);
if x <> nil then
if x.Count > 0 then
Result := x[0];
end;
function TLDAPAttributeList.GetAttribute(Index: integer): TLDAPAttribute;
begin
Result := nil;
if Index < Count then
Result := TLDAPAttribute(FAttributeList[Index]);
end;
function TLDAPAttributeList.Add: TLDAPAttribute;
begin
Result := TLDAPAttribute.Create;
FAttributeList.Add(Result);
end;
procedure TLDAPAttributeList.Del(Index: integer);
var
x: TLDAPAttribute;
begin
x := GetAttribute(Index);
if Assigned(x) then
x.free;
FAttributeList.Delete(Index);
end;
function TLDAPAttributeList.Find(AttributeName: AnsiString): TLDAPAttribute;
var
n: integer;
x: TLDAPAttribute;
begin
Result := nil;
AttributeName := lowercase(AttributeName);
for n := 0 to Count - 1 do
begin
x := GetAttribute(n);
if Assigned(x) then
if lowercase(x.AttributeName) = Attributename then
begin
result := x;
break;
end;
end;
end;
{==============================================================================}
constructor TLDAPResult.Create;
begin
inherited Create;
FAttributes := TLDAPAttributeList.Create;
end;
destructor TLDAPResult.Destroy;
begin
FAttributes.Free;
inherited Destroy;
end;
{==============================================================================}
constructor TLDAPResultList.Create;
begin
inherited Create;
FResultList := TList.Create;
end;
destructor TLDAPResultList.Destroy;
begin
Clear;
FResultList.Free;
inherited Destroy;
end;
procedure TLDAPResultList.Clear;
var
n: integer;
x: TLDAPResult;
begin
for n := Count - 1 downto 0 do
begin
x := GetResult(n);
if Assigned(x) then
x.Free;
end;
FResultList.Clear;
end;
function TLDAPResultList.Count: integer;
begin
Result := FResultList.Count;
end;
function TLDAPResultList.GetResult(Index: integer): TLDAPResult;
begin
Result := nil;
if Index < Count then
Result := TLDAPResult(FResultList[Index]);
end;
function TLDAPResultList.Add: TLDAPResult;
begin
Result := TLDAPResult.Create;
FResultList.Add(Result);
end;
{==============================================================================}
constructor TLDAPSend.Create;
begin
inherited Create;
FReferals := TStringList.Create;
FFullResult := '';
FSock := TTCPBlockSocket.Create;
FSock.Owner := self;
FTimeout := 60000;
FTargetPort := cLDAPProtocol;
FAutoTLS := False;
FFullSSL := False;
FSeq := 0;
FVersion := 3;
FSearchScope := SS_WholeSubtree;
FSearchAliases := SA_Always;
FSearchSizeLimit := 0;
FSearchTimeLimit := 0;
FSearchPageSize := 0;
FSearchCookie := '';
FSearchResult := TLDAPResultList.Create;
end;
destructor TLDAPSend.Destroy;
begin
FSock.Free;
FSearchResult.Free;
FReferals.Free;
inherited Destroy;
end;
function TLDAPSend.GetErrorString(Value: integer): AnsiString;
begin
case Value of
0:
Result := 'Success';
1:
Result := 'Operations error';
2:
Result := 'Protocol error';
3:
Result := 'Time limit Exceeded';
4:
Result := 'Size limit Exceeded';
5:
Result := 'Compare FALSE';
6:
Result := 'Compare TRUE';
7:
Result := 'Auth method not supported';
8:
Result := 'Strong auth required';
9:
Result := '-- reserved --';
10:
Result := 'Referal';
11:
Result := 'Admin limit exceeded';
12:
Result := 'Unavailable critical extension';
13:
Result := 'Confidentality required';
14:
Result := 'Sasl bind in progress';
16:
Result := 'No such attribute';
17:
Result := 'Undefined attribute type';
18:
Result := 'Inappropriate matching';
19:
Result := 'Constraint violation';
20:
Result := 'Attribute or value exists';
21:
Result := 'Invalid attribute syntax';
32:
Result := 'No such object';
33:
Result := 'Alias problem';
34:
Result := 'Invalid DN syntax';
36:
Result := 'Alias dereferencing problem';
48:
Result := 'Inappropriate authentication';
49:
Result := 'Invalid credentials';
50:
Result := 'Insufficient access rights';
51:
Result := 'Busy';
52:
Result := 'Unavailable';
53:
Result := 'Unwilling to perform';
54:
Result := 'Loop detect';
64:
Result := 'Naming violation';
65:
Result := 'Object class violation';
66:
Result := 'Not allowed on non leaf';
67:
Result := 'Not allowed on RDN';
68:
Result := 'Entry already exists';
69:
Result := 'Object class mods prohibited';
71:
Result := 'Affects multiple DSAs';
80:
Result := 'Other';
else
Result := '--unknown--';
end;
end;
function TLDAPSend.Connect: Boolean;
begin
// Do not call this function! It is calling by LOGIN method!
FSock.CloseSocket;
FSock.LineBuffer := '';
FSeq := 0;
FSock.Bind(FIPInterface, cAnyPort);
if FSock.LastError = 0 then
FSock.Connect(FTargetHost, FTargetPort);
if FSock.LastError = 0 then
if FFullSSL then
FSock.SSLDoConnect;
Result := FSock.LastError = 0;
end;
function TLDAPSend.BuildPacket(const Value: AnsiString): AnsiString;
begin
Inc(FSeq);
Result := ASNObject(ASNObject(ASNEncInt(FSeq), ASN1_INT) + Value, ASN1_SEQ);
end;
function TLDAPSend.ReceiveResponse: AnsiString;
var
x: Byte;
i,j: integer;
begin
Result := '';
FFullResult := '';
x := FSock.RecvByte(FTimeout);
if x <> ASN1_SEQ then
Exit;
Result := AnsiChar(x);
x := FSock.RecvByte(FTimeout);
Result := Result + AnsiChar(x);
if x < $80 then
i := 0
else
i := x and $7F;
if i > 0 then
Result := Result + FSock.RecvBufferStr(i, Ftimeout);
if FSock.LastError <> 0 then
begin
Result := '';
Exit;
end;
//get length of LDAP packet
j := 2;
i := ASNDecLen(j, Result);
//retreive rest of LDAP packet
if i > 0 then
Result := Result + FSock.RecvBufferStr(i, Ftimeout);
if FSock.LastError <> 0 then
begin
Result := '';
Exit;
end;
FFullResult := Result;
end;
function TLDAPSend.DecodeResponse(const Value: AnsiString): AnsiString;
var
i, x: integer;
Svt: Integer;
s, t: AnsiString;
begin
Result := '';
FResultCode := -1;
FResultstring := '';
FResponseCode := -1;
FResponseDN := '';
FReferals.Clear;
i := 1;
ASNItem(i, Value, Svt);
x := StrToIntDef(ASNItem(i, Value, Svt), 0);
if (svt <> ASN1_INT) or (x <> FSeq) then
Exit;
s := ASNItem(i, Value, Svt);
FResponseCode := svt;
if FResponseCode in [LDAP_ASN1_BIND_RESPONSE, LDAP_ASN1_SEARCH_DONE,
LDAP_ASN1_MODIFY_RESPONSE, LDAP_ASN1_ADD_RESPONSE, LDAP_ASN1_DEL_RESPONSE,
LDAP_ASN1_MODIFYDN_RESPONSE, LDAP_ASN1_COMPARE_RESPONSE,
LDAP_ASN1_EXT_RESPONSE] then
begin
FResultCode := StrToIntDef(ASNItem(i, Value, Svt), -1);
FResponseDN := ASNItem(i, Value, Svt);
FResultString := ASNItem(i, Value, Svt);
if FResultString = '' then
FResultString := GetErrorString(FResultCode);
if FResultCode = 10 then
begin
s := ASNItem(i, Value, Svt);
if svt = $A3 then
begin
x := 1;
while x < Length(s) do
begin
t := ASNItem(x, s, Svt);
FReferals.Add(t);
end;
end;
end;
end;
Result := Copy(Value, i, Length(Value) - i + 1);
end;
function TLDAPSend.LdapSasl(Value: AnsiString): AnsiString;
var
nonce, cnonce, nc, realm, qop, uri, response: AnsiString;
s: AnsiString;
a1, a2: AnsiString;
l: TStringList;
n: integer;
begin
l := TStringList.Create;
try
nonce := '';
realm := '';
l.CommaText := Value;
n := IndexByBegin('nonce=', l);
if n >= 0 then
nonce := UnQuoteStr(Trim(SeparateRight(l[n], 'nonce=')), '"');
n := IndexByBegin('realm=', l);
if n >= 0 then
realm := UnQuoteStr(Trim(SeparateRight(l[n], 'realm=')), '"');
cnonce := IntToHex(GetTick, 8);
nc := '00000001';
qop := 'auth';
uri := 'ldap/' + FSock.ResolveIpToName(FSock.GetRemoteSinIP);
a1 := md5(FUsername + ':' + realm + ':' + FPassword)
+ ':' + nonce + ':' + cnonce;
a2 := 'AUTHENTICATE:' + uri;
s := strtohex(md5(a1))+':' + nonce + ':' + nc + ':' + cnonce + ':'
+ qop +':'+strtohex(md5(a2));
response := strtohex(md5(s));
Result := 'username="' + Fusername + '",realm="' + realm + '",nonce="';
Result := Result + nonce + '",cnonce="' + cnonce + '",nc=' + nc + ',qop=';
Result := Result + qop + ',digest-uri="' + uri + '",response=' + response;
finally
l.Free;
end;
end;
function TLDAPSend.TranslateFilter(Value: AnsiString): AnsiString;
var
x: integer;
s, t, l: AnsiString;
r: string;
c: Ansichar;
attr, rule: AnsiString;
dn: Boolean;
begin
Result := '';
if Value = '' then
Exit;
s := Value;
if Value[1] = '(' then
begin
x := RPos(')', Value);
s := Copy(Value, 2, x - 2);
end;
if s = '' then
Exit;
case s[1] of
'!':
// NOT rule (recursive call)
begin
Result := ASNOBject(TranslateFilter(GetBetween('(', ')', s)), $A2);
end;
'&':
// AND rule (recursive call)
begin
repeat
t := GetBetween('(', ')', s);
s := Trim(SeparateRight(s, t));
if s <> '' then
if s[1] = ')' then
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(s, 1, 1);
Result := Result + TranslateFilter(t);
until s = '';
Result := ASNOBject(Result, $A0);
end;
'|':
// OR rule (recursive call)
begin
repeat
t := GetBetween('(', ')', s);
s := Trim(SeparateRight(s, t));
if s <> '' then
if s[1] = ')' then
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(s, 1, 1);
Result := Result + TranslateFilter(t);
until s = '';
Result := ASNOBject(Result, $A1);
end;
else
begin
l := Trim(SeparateLeft(s, '='));
r := Trim(SeparateRight(s, '='));
if l <> '' then
begin
c := l[Length(l)];
case c of
':':
// Extensible match
begin
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(l, Length(l), 1);
dn := False;
attr := '';
rule := '';
if Pos(':dn', l) > 0 then
begin
dn := True;
l := ReplaceString(l, ':dn', '');
end;
attr := Trim(SeparateLeft(l, ':'));
rule := Trim(SeparateRight(l, ':'));
if rule = l then
rule := '';
if rule <> '' then
Result := ASNObject(rule, $81);
if attr <> '' then
Result := Result + ASNObject(attr, $82);
Result := Result + ASNObject(DecodeTriplet(r, '\'), $83);
if dn then
Result := Result + ASNObject(AsnEncInt($ff), $84)
else
Result := Result + ASNObject(AsnEncInt(0), $84);
Result := ASNOBject(Result, $a9);
end;
'~':
// Approx match
begin
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(l, Length(l), 1);
Result := ASNOBject(l, ASN1_OCTSTR)
+ ASNOBject(DecodeTriplet(r, '\'), ASN1_OCTSTR);
Result := ASNOBject(Result, $a8);
end;
'>':
// Greater or equal match
begin
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(l, Length(l), 1);
Result := ASNOBject(l, ASN1_OCTSTR)
+ ASNOBject(DecodeTriplet(r, '\'), ASN1_OCTSTR);
Result := ASNOBject(Result, $a5);
end;
'<':
// Less or equal match
begin
{$IFDEF CIL}Borland.Delphi.{$ENDIF}System.Delete(l, Length(l), 1);
Result := ASNOBject(l, ASN1_OCTSTR)
+ ASNOBject(DecodeTriplet(r, '\'), ASN1_OCTSTR);
Result := ASNOBject(Result, $a6);
end;
else
// present
if r = '*' then
Result := ASNOBject(l, $87)
else
if Pos('*', r) > 0 then
// substrings
begin
s := Fetch(r, '*');
if s <> '' then
Result := ASNOBject(DecodeTriplet(s, '\'), $80);
while r <> '' do
begin
if Pos('*', r) <= 0 then
break;
s := Fetch(r, '*');
Result := Result + ASNOBject(DecodeTriplet(s, '\'), $81);
end;
if r <> '' then
Result := Result + ASNOBject(DecodeTriplet(r, '\'), $82);
Result := ASNOBject(l, ASN1_OCTSTR)
+ ASNOBject(Result, ASN1_SEQ);
Result := ASNOBject(Result, $a4);
end
else
begin
// Equality match
Result := ASNOBject(l, ASN1_OCTSTR)
+ ASNOBject(DecodeTriplet(r, '\'), ASN1_OCTSTR);
Result := ASNOBject(Result, $a3);
end;
end;
end;
end;
end;
end;
function TLDAPSend.Login: Boolean;
begin
Result := False;
if not Connect then
Exit;
Result := True;
if FAutoTLS then
Result := StartTLS;
end;
function TLDAPSend.Bind: Boolean;
var
s: AnsiString;
begin
s := ASNObject(ASNEncInt(FVersion), ASN1_INT)
+ ASNObject(FUsername, ASN1_OCTSTR)
+ ASNObject(FPassword, $80);
s := ASNObject(s, LDAP_ASN1_BIND_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.BindSasl: Boolean;
var
s, t: AnsiString;
x, xt: integer;
digreq: AnsiString;
begin
Result := False;
if FPassword = '' then
Result := Bind
else
begin
digreq := ASNObject(ASNEncInt(FVersion), ASN1_INT)
+ ASNObject('', ASN1_OCTSTR)
+ ASNObject(ASNObject('DIGEST-MD5', ASN1_OCTSTR), $A3);
digreq := ASNObject(digreq, LDAP_ASN1_BIND_REQUEST);
Fsock.SendString(BuildPacket(digreq));
s := ReceiveResponse;
t := DecodeResponse(s);
if FResultCode = 14 then
begin
s := t;
x := 1;
t := ASNItem(x, s, xt);
s := ASNObject(ASNEncInt(FVersion), ASN1_INT)
+ ASNObject('', ASN1_OCTSTR)
+ ASNObject(ASNObject('DIGEST-MD5', ASN1_OCTSTR)
+ ASNObject(LdapSasl(t), ASN1_OCTSTR), $A3);
s := ASNObject(s, LDAP_ASN1_BIND_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
if FResultCode = 14 then
begin
Fsock.SendString(BuildPacket(digreq));
s := ReceiveResponse;
DecodeResponse(s);
end;
Result := FResultCode = 0;
end;
end;
end;
function TLDAPSend.Logout: Boolean;
begin
Fsock.SendString(BuildPacket(ASNObject('', LDAP_ASN1_UNBIND_REQUEST)));
FSock.CloseSocket;
Result := True;
end;
function TLDAPSend.Modify(obj: AnsiString; Op: TLDAPModifyOp; const Value: TLDAPAttribute): Boolean;
var
s: AnsiString;
n: integer;
begin
s := '';
for n := 0 to Value.Count -1 do
s := s + ASNObject(Value[n], ASN1_OCTSTR);
s := ASNObject(Value.AttributeName, ASN1_OCTSTR) + ASNObject(s, ASN1_SETOF);
s := ASNObject(ASNEncInt(Ord(Op)), ASN1_ENUM) + ASNObject(s, ASN1_SEQ);
s := ASNObject(s, ASN1_SEQ);
s := ASNObject(obj, ASN1_OCTSTR) + ASNObject(s, ASN1_SEQ);
s := ASNObject(s, LDAP_ASN1_MODIFY_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.Add(obj: AnsiString; const Value: TLDAPAttributeList): Boolean;
var
s, t: AnsiString;
n, m: integer;
begin
s := '';
for n := 0 to Value.Count - 1 do
begin
t := '';
for m := 0 to Value[n].Count - 1 do
t := t + ASNObject(Value[n][m], ASN1_OCTSTR);
t := ASNObject(Value[n].AttributeName, ASN1_OCTSTR)
+ ASNObject(t, ASN1_SETOF);
s := s + ASNObject(t, ASN1_SEQ);
end;
s := ASNObject(obj, ASN1_OCTSTR) + ASNObject(s, ASN1_SEQ);
s := ASNObject(s, LDAP_ASN1_ADD_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.Delete(obj: AnsiString): Boolean;
var
s: AnsiString;
begin
s := ASNObject(obj, LDAP_ASN1_DEL_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.ModifyDN(obj, newRDN, newSuperior: AnsiString; DeleteOldRDN: Boolean): Boolean;
var
s: AnsiString;
begin
s := ASNObject(obj, ASN1_OCTSTR) + ASNObject(newRDN, ASN1_OCTSTR);
if DeleteOldRDN then
s := s + ASNObject(ASNEncInt($ff), ASN1_BOOL)
else
s := s + ASNObject(ASNEncInt(0), ASN1_BOOL);
if newSuperior <> '' then
s := s + ASNObject(newSuperior, $80);
s := ASNObject(s, LDAP_ASN1_MODIFYDN_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.Compare(obj, AttributeValue: AnsiString): Boolean;
var
s: AnsiString;
begin
s := ASNObject(Trim(SeparateLeft(AttributeValue, '=')), ASN1_OCTSTR)
+ ASNObject(Trim(SeparateRight(AttributeValue, '=')), ASN1_OCTSTR);
s := ASNObject(obj, ASN1_OCTSTR) + ASNObject(s, ASN1_SEQ);
s := ASNObject(s, LDAP_ASN1_COMPARE_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
DecodeResponse(s);
Result := FResultCode = 0;
end;
function TLDAPSend.Search(obj: AnsiString; TypesOnly: Boolean; Filter: AnsiString;
const Attributes: TStrings): Boolean;
var
s, t, u, c: AnsiString;
n, i, x: integer;
r: TLDAPResult;
a: TLDAPAttribute;
begin
FSearchResult.Clear;
FReferals.Clear;
s := ASNObject(obj, ASN1_OCTSTR);
s := s + ASNObject(ASNEncInt(Ord(FSearchScope)), ASN1_ENUM);
s := s + ASNObject(ASNEncInt(Ord(FSearchAliases)), ASN1_ENUM);
s := s + ASNObject(ASNEncInt(FSearchSizeLimit), ASN1_INT);
s := s + ASNObject(ASNEncInt(FSearchTimeLimit), ASN1_INT);
if TypesOnly then
s := s + ASNObject(ASNEncInt($ff), ASN1_BOOL)
else
s := s + ASNObject(ASNEncInt(0), ASN1_BOOL);
if Filter = '' then
Filter := '(objectclass=*)';
t := TranslateFilter(Filter);
if t = '' then
s := s + ASNObject('', ASN1_NULL)
else
s := s + t;
t := '';
for n := 0 to Attributes.Count - 1 do
t := t + ASNObject(Attributes[n], ASN1_OCTSTR);
s := s + ASNObject(t, ASN1_SEQ);
s := ASNObject(s, LDAP_ASN1_SEARCH_REQUEST);
if FSearchPageSize > 0 then
begin
c := ASNObject('1.2.840.113556.1.4.319', ASN1_OCTSTR); // controlType: pagedResultsControl
c := c + ASNObject(ASNEncInt(0), ASN1_BOOL); // criticality: FALSE
t := ASNObject(ASNEncInt(FSearchPageSize), ASN1_INT); // page size
t := t + ASNObject(FSearchCookie, ASN1_OCTSTR); // search cookie
t := ASNObject(t, ASN1_SEQ); // wrap with SEQUENCE
c := c + ASNObject(t, ASN1_OCTSTR); // add searchControlValue as OCTET STRING
c := ASNObject(c, ASN1_SEQ); // wrap with SEQUENCE
s := s + ASNObject(c, LDAP_ASN1_CONTROLS); // append Controls to SearchRequest
end;
Fsock.SendString(BuildPacket(s));
repeat
s := ReceiveResponse;
t := DecodeResponse(s);
if FResponseCode = LDAP_ASN1_SEARCH_ENTRY then
begin
//dekoduj zaznam
r := FSearchResult.Add;
n := 1;
r.ObjectName := ASNItem(n, t, x);
ASNItem(n, t, x);
if x = ASN1_SEQ then
begin
while n < Length(t) do
begin
s := ASNItem(n, t, x);
if x = ASN1_SEQ then
begin
i := n + Length(s);
a := r.Attributes.Add;
u := ASNItem(n, t, x);
a.AttributeName := u;
ASNItem(n, t, x);
if x = ASN1_SETOF then
while n < i do
begin
u := ASNItem(n, t, x);
a.Add(u);
end;
end;
end;
end;
end;
if FResponseCode = LDAP_ASN1_SEARCH_REFERENCE then
begin
n := 1;
while n < Length(t) do
FReferals.Add(ASNItem(n, t, x));
end;
until FResponseCode = LDAP_ASN1_SEARCH_DONE;
n := 1;
ASNItem(n, t, x);
if x = LDAP_ASN1_CONTROLS then
begin
ASNItem(n, t, x);
if x = ASN1_SEQ then
begin
s := ASNItem(n, t, x);
if s = '1.2.840.113556.1.4.319' then
begin
s := ASNItem(n, t, x); // searchControlValue
n := 1;
ASNItem(n, s, x);
if x = ASN1_SEQ then
begin
ASNItem(n, s, x); // total number of result records, if known, otherwise 0
FSearchCookie := ASNItem(n, s, x); // active search cookie, empty when done
end;
end;
end;
end;
Result := FResultCode = 0;
end;
function TLDAPSend.Extended(const Name, Value: AnsiString): Boolean;
var
s, t: AnsiString;
x, xt: integer;
begin
s := ASNObject(Name, $80);
if Value <> '' then
s := s + ASNObject(Value, $81);
s := ASNObject(s, LDAP_ASN1_EXT_REQUEST);
Fsock.SendString(BuildPacket(s));
s := ReceiveResponse;
t := DecodeResponse(s);
Result := FResultCode = 0;
if Result then
begin
x := 1;
FExtName := ASNItem(x, t, xt);
FExtValue := ASNItem(x, t, xt);
end;
end;
function TLDAPSend.StartTLS: Boolean;
begin
Result := Extended('1.3.6.1.4.1.1466.20037', '');
if Result then
begin
Fsock.SSLDoConnect;
Result := FSock.LastError = 0;
end;
end;
{==============================================================================}
function LDAPResultDump(const Value: TLDAPResultList): string;
var
n, m, o: integer;
r: TLDAPResult;
a: TLDAPAttribute;
begin
Result := 'Results: ' + IntToStr(Value.Count) + CRLF +CRLF;
for n := 0 to Value.Count - 1 do
begin
Result := Result + 'Result: ' + IntToStr(n) + CRLF;
r := Value[n];
Result := Result + ' Object: ' + r.ObjectName + CRLF;
for m := 0 to r.Attributes.Count - 1 do
begin
a := r.Attributes[m];
Result := Result + ' Attribute: ' + a.AttributeName + CRLF;
for o := 0 to a.Count - 1 do
Result := Result + ' ' + a[o] + CRLF;
end;
end;
end;
end.
| 30.057526 | 124 | 0.605799 |
8597564a553bfd60415282d57cd08acf7256b127
| 17,733 |
pas
|
Pascal
|
Czech-SMS-Sender/PNG/PNGZLIB.pas
|
Vacko/Czech-SMS-Sender
|
a638fb01b0ca21a7d885b19e3950759ce178a77b
|
[
"MIT"
] | 1 |
2018-12-29T11:11:38.000Z
|
2018-12-29T11:11:38.000Z
|
Czech-SMS-Sender/PNG/PNGZLIB.pas
|
Vacko/Czech-SMS-Sender
|
a638fb01b0ca21a7d885b19e3950759ce178a77b
|
[
"MIT"
] | null | null | null |
Czech-SMS-Sender/PNG/PNGZLIB.pas
|
Vacko/Czech-SMS-Sender
|
a638fb01b0ca21a7d885b19e3950759ce178a77b
|
[
"MIT"
] | null | null | null |
unit PNGZLIB;
{ Delphi 3 compatibility by Paul TOTH <tothpaul@free.fr> }
interface
uses
Sysutils, Classes;
const
ZLIB_VERSION = '1.1.3';
type
TZAlloc = function (opaque: Pointer; items, size: Integer): Pointer;
TZFree = procedure (opaque, block: Pointer);
TZCompressionLevel = (zcNone, zcFastest, zcDefault, zcMax);
{** TZStreamRec ***********************************************************}
TZStreamRec = packed record
next_in : PChar; // next input byte
avail_in : Longint; // number of bytes available at next_in
total_in : Longint; // total nb of input bytes read so far
next_out : PChar; // next output byte should be put here
avail_out: Longint; // remaining free space at next_out
total_out: Longint; // total nb of bytes output so far
msg : PChar; // last error message, NULL if no error
state : Pointer; // not visible by applications
zalloc : TZAlloc; // used to allocate the internal state
zfree : TZFree; // used to free the internal state
opaque : Pointer; // private data object passed to zalloc and zfree
data_type: Integer; // best guess about the data type: ascii or binary
adler : Longint; // adler32 value of the uncompressed data
reserved : Longint; // reserved for future use
end;
{** TCustomZStream ********************************************************}
TCustomZStream = class(TStream)
private
FStream : TStream;
FStreamPos : Integer;
FOnProgress: TNotifyEvent;
FZStream : TZStreamRec;
FBuffer : Array [Word] of Char;
protected
constructor Create(stream: TStream);
procedure DoProgress; dynamic;
property OnProgress: TNotifyEvent read FOnProgress write FOnProgress;
end;
{** TZCompressionStream ***************************************************}
TZCompressionStream = class(TCustomZStream)
private
function GetCompressionRate: Single;
public
constructor Create(dest: TStream; compressionLevel: TZCompressionLevel {Paul= zcDefault{});
destructor Destroy; override;
function Read(var buffer; count: Longint): Longint; override;
function Write(const buffer; count: Longint): Longint; override;
function Seek(offset: Longint; origin: Word): Longint; override;
property CompressionRate: Single read GetCompressionRate;
property OnProgress;
end;
{** TZDecompressionStream *************************************************}
TZDecompressionStream = class(TCustomZStream)
public
constructor Create(source: TStream);
destructor Destroy; override;
function Read(var buffer; count: Longint): Longint; override;
function Write(const buffer; count: Longint): Longint; override;
function Seek(offset: Longint; origin: Word): Longint; override;
property OnProgress;
end;
{** zlib public routines ****************************************************}
{*****************************************************************************
* ZCompress *
* *
* pre-conditions *
* inBuffer = pointer to uncompressed data *
* inSize = size of inBuffer (bytes) *
* outBuffer = pointer (unallocated) *
* level = compression level *
* *
* post-conditions *
* outBuffer = pointer to compressed data (allocated) *
* outSize = size of outBuffer (bytes) *
*****************************************************************************}
procedure ZCompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer;
level: TZCompressionLevel { Paul = zcDefault});
{*****************************************************************************
* ZDecompress *
* *
* pre-conditions *
* inBuffer = pointer to compressed data *
* inSize = size of inBuffer (bytes) *
* outBuffer = pointer (unallocated) *
* outEstimate = estimated size of uncompressed data (bytes) *
* *
* post-conditions *
* outBuffer = pointer to decompressed data (allocated) *
* outSize = size of outBuffer (bytes) *
*****************************************************************************}
procedure ZDecompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer; outEstimate: Integer {Paul = 0});
{** string routines *********************************************************}
function ZCompressStr(const s: String; level: TZCompressionLevel {Paul= zcDefault}): String;
function ZDecompressStr(const s: String): String;
type
EZLibError = class(Exception);
EZCompressionError = class(EZLibError);
EZDecompressionError = class(EZLibError);
implementation
{** link zlib code **********************************************************}
{$L deflate.obj}
{$L inflate.obj}
{$L infblock.obj}
{$L inftrees.obj}
{$L infcodes.obj}
{$L infutil.obj}
{$L inffast.obj}
{$L trees.obj}
{$L adler32.obj}
{*****************************************************************************
* note: do not reorder the above -- doing so will result in external *
* functions being undefined *
*****************************************************************************}
const
{** flush constants *******************************************************}
Z_NO_FLUSH = 0;
Z_PARTIAL_FLUSH = 1;
Z_SYNC_FLUSH = 2;
Z_FULL_FLUSH = 3;
Z_FINISH = 4;
{** return codes **********************************************************}
Z_OK = 0;
Z_STREAM_END = 1;
Z_NEED_DICT = 2;
Z_ERRNO = (-1);
Z_STREAM_ERROR = (-2);
Z_DATA_ERROR = (-3);
Z_MEM_ERROR = (-4);
Z_BUF_ERROR = (-5);
Z_VERSION_ERROR = (-6);
{** compression levels ****************************************************}
Z_NO_COMPRESSION = 0;
Z_BEST_SPEED = 1;
Z_BEST_COMPRESSION = 9;
Z_DEFAULT_COMPRESSION = (-1);
{** compression strategies ************************************************}
Z_FILTERED = 1;
Z_HUFFMAN_ONLY = 2;
Z_DEFAULT_STRATEGY = 0;
{** data types ************************************************************}
Z_BINARY = 0;
Z_ASCII = 1;
Z_UNKNOWN = 2;
{** compression methods ***************************************************}
Z_DEFLATED = 8;
{** return code messages **************************************************}
_z_errmsg: array[0..9] of PChar = (
'need dictionary', // Z_NEED_DICT (2)
'stream end', // Z_STREAM_END (1)
'', // Z_OK (0)
'file error', // Z_ERRNO (-1)
'stream error', // Z_STREAM_ERROR (-2)
'data error', // Z_DATA_ERROR (-3)
'insufficient memory', // Z_MEM_ERROR (-4)
'buffer error', // Z_BUF_ERROR (-5)
'incompatible version', // Z_VERSION_ERROR (-6)
''
);
ZLevels: array [TZCompressionLevel] of Shortint = (
Z_NO_COMPRESSION,
Z_BEST_SPEED,
Z_DEFAULT_COMPRESSION,
Z_BEST_COMPRESSION
);
SZInvalid = 'Invalid ZStream operation!';
{** deflate routines ********************************************************}
function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar;
recsize: Integer): Integer; external;
function deflate(var strm: TZStreamRec; flush: Integer): Integer;
external;
function deflateEnd(var strm: TZStreamRec): Integer; external;
{** inflate routines ********************************************************}
function inflateInit_(var strm: TZStreamRec; version: PChar;
recsize: Integer): Integer; external;
function inflate(var strm: TZStreamRec; flush: Integer): Integer;
external;
function inflateEnd(var strm: TZStreamRec): Integer; external;
function inflateReset(var strm: TZStreamRec): Integer; external;
{** zlib function implementations *******************************************}
function zcalloc(opaque: Pointer; items, size: Integer): Pointer;
begin
GetMem(result,items * size);
end;
procedure zcfree(opaque, block: Pointer);
begin
FreeMem(block);
end;
{** c function implementations **********************************************}
procedure _memset(p: Pointer; b: Byte; count: Integer); cdecl;
begin
FillChar(p^,count,b);
end;
procedure _memcpy(dest, source: Pointer; count: Integer); cdecl;
begin
Move(source^,dest^,count);
end;
{** custom zlib routines ****************************************************}
function DeflateInit(var stream: TZStreamRec; level: Integer): Integer;
begin
result := DeflateInit_(stream,level,ZLIB_VERSION,SizeOf(TZStreamRec));
end;
// function DeflateInit2(var stream: TZStreamRec; level, method, windowBits,
// memLevel, strategy: Integer): Integer;
// begin
// result := DeflateInit2_(stream,level,method,windowBits,memLevel,
// strategy,ZLIB_VERSION,SizeOf(TZStreamRec));
// end;
function InflateInit(var stream: TZStreamRec): Integer;
begin
result := InflateInit_(stream,ZLIB_VERSION,SizeOf(TZStreamRec));
end;
// function InflateInit2(var stream: TZStreamRec; windowBits: Integer): Integer;
// begin
// result := InflateInit2_(stream,windowBits,ZLIB_VERSION,SizeOf(TZStreamRec));
// end;
{****************************************************************************}
function ZCompressCheck(code: Integer): Integer;
begin
result := code;
if code < 0 then
begin
raise EZCompressionError.Create(_z_errmsg[2 - code]);
end;
end;
function ZDecompressCheck(code: Integer): Integer;
begin
Result := code;
if code < 0 then
begin
raise EZDecompressionError.Create(_z_errmsg[2 - code]);
end;
end;
procedure ZCompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer;
level: TZCompressionLevel);
const
delta = 256;
var
zstream: TZStreamRec;
begin
FillChar(zstream,SizeOf(TZStreamRec),0);
outSize := ((inSize + (inSize div 10) + 12) + 255) and not 255;
GetMem(outBuffer,outSize);
try
zstream.next_in := inBuffer;
zstream.avail_in := inSize;
zstream.next_out := outBuffer;
zstream.avail_out := outSize;
ZCompressCheck(DeflateInit(zstream,ZLevels[level]));
try
while ZCompressCheck(deflate(zstream,Z_FINISH)) <> Z_STREAM_END do
begin
Inc(outSize,delta);
ReallocMem(outBuffer,outSize);
zstream.next_out := PChar(Integer(outBuffer) + zstream.total_out);
zstream.avail_out := delta;
end;
finally
ZCompressCheck(deflateEnd(zstream));
end;
ReallocMem(outBuffer,zstream.total_out);
outSize := zstream.total_out;
except
FreeMem(outBuffer);
raise;
end;
end;
procedure ZDecompress(const inBuffer: Pointer; inSize: Integer;
out outBuffer: Pointer; out outSize: Integer; outEstimate: Integer);
var
zstream: TZStreamRec;
delta : Integer;
begin
FillChar(zstream,SizeOf(TZStreamRec),0);
delta := (inSize + 255) and not 255;
if outEstimate = 0 then outSize := delta
else outSize := outEstimate;
GetMem(outBuffer,outSize);
try
zstream.next_in := inBuffer;
zstream.avail_in := inSize;
zstream.next_out := outBuffer;
zstream.avail_out := outSize;
ZDecompressCheck(InflateInit(zstream));
try
while ZDecompressCheck(inflate(zstream,Z_NO_FLUSH)) <> Z_STREAM_END do
begin
Inc(outSize,delta);
ReallocMem(outBuffer,outSize);
zstream.next_out := PChar(Integer(outBuffer) + zstream.total_out);
zstream.avail_out := delta;
end;
finally
ZDecompressCheck(inflateEnd(zstream));
end;
ReallocMem(outBuffer,zstream.total_out);
outSize := zstream.total_out;
except
FreeMem(outBuffer);
raise;
end;
end;
function ZCompressStr(const s: String; level: TZCompressionLevel): String;
var
buffer: Pointer;
size : Integer;
begin
ZCompress(PChar(s),Length(s),buffer,size,level);
SetLength(result,size);
Move(buffer^,result[1],size);
FreeMem(buffer);
end;
function ZDecompressStr(const s: String): String;
var
buffer: Pointer;
size : Integer;
begin
ZDecompress(PChar(s),Length(s),buffer,size,0);
SetLength(result,size);
Move(buffer^,result[1],size);
FreeMem(buffer);
end;
{** TCustomZStream **********************************************************}
constructor TCustomZStream.Create(stream: TStream);
begin
inherited Create;
FStream := stream;
FStreamPos := stream.Position;
end;
procedure TCustomZStream.DoProgress;
begin
if Assigned(FOnProgress) then FOnProgress(Self);
end;
{** TZCompressionStream *****************************************************}
constructor TZCompressionStream.Create(dest: TStream;
compressionLevel: TZCompressionLevel);
begin
inherited Create(dest);
FZStream.next_out := FBuffer;
FZStream.avail_out := SizeOf(FBuffer);
ZCompressCheck(DeflateInit(FZStream,ZLevels[compressionLevel]));
end;
destructor TZCompressionStream.Destroy;
begin
FZStream.next_in := Nil;
FZStream.avail_in := 0;
try
if FStream.Position <> FStreamPos then FStream.Position := FStreamPos;
while ZCompressCheck(deflate(FZStream,Z_FINISH)) <> Z_STREAM_END do
begin
FStream.WriteBuffer(FBuffer,SizeOf(FBuffer) - FZStream.avail_out);
FZStream.next_out := FBuffer;
FZStream.avail_out := SizeOf(FBuffer);
end;
if FZStream.avail_out < SizeOf(FBuffer) then
begin
FStream.WriteBuffer(FBuffer,SizeOf(FBuffer) - FZStream.avail_out);
end;
finally
deflateEnd(FZStream);
end;
inherited Destroy;
end;
function TZCompressionStream.Read(var buffer; count: Longint): Longint;
begin
raise EZCompressionError.Create(SZInvalid);
end;
function TZCompressionStream.Write(const buffer; count: Longint): Longint;
begin
FZStream.next_in := @buffer;
FZStream.avail_in := count;
if FStream.Position <> FStreamPos then FStream.Position := FStreamPos;
while FZStream.avail_in > 0 do
begin
ZCompressCheck(deflate(FZStream,Z_NO_FLUSH));
if FZStream.avail_out = 0 then
begin
FStream.WriteBuffer(FBuffer,SizeOf(FBuffer));
FZStream.next_out := FBuffer;
FZStream.avail_out := SizeOf(FBuffer);
FStreamPos := FStream.Position;
DoProgress;
end;
end;
result := Count;
end;
function TZCompressionStream.Seek(offset: Longint; origin: Word): Longint;
begin
if (offset = 0) and (origin = soFromCurrent) then
begin
result := FZStream.total_in;
end
else raise EZCompressionError.Create(SZInvalid);
end;
function TZCompressionStream.GetCompressionRate: Single;
begin
if FZStream.total_in = 0 then result := 0
else result := (1.0 - (FZStream.total_out / FZStream.total_in)) * 100.0;
end;
{** TZDecompressionStream ***************************************************}
constructor TZDecompressionStream.Create(source: TStream);
begin
inherited Create(source);
FZStream.next_in := FBuffer;
FZStream.avail_in := 0;
ZDecompressCheck(InflateInit(FZStream));
end;
destructor TZDecompressionStream.Destroy;
begin
inflateEnd(FZStream);
inherited Destroy;
end;
function TZDecompressionStream.Read(var buffer; count: Longint): Longint;
begin
FZStream.next_out := @buffer;
FZStream.avail_out := count;
if FStream.Position <> FStreamPos then FStream.Position := FStreamPos;
while FZStream.avail_out > 0 do
begin
if FZStream.avail_in = 0 then
begin
FZStream.avail_in := FStream.Read(FBuffer,SizeOf(FBuffer));
if FZStream.avail_in = 0 then
begin
result := count - FZStream.avail_out;
Exit;
end;
FZStream.next_in := FBuffer;
FStreamPos := FStream.Position;
DoProgress;
end;
ZDecompressCheck(inflate(FZStream,Z_NO_FLUSH));
end;
result := Count;
end;
function TZDecompressionStream.Write(const Buffer; Count: Longint): Longint;
begin
raise EZDecompressionError.Create(SZInvalid);
end;
function TZDecompressionStream.Seek(Offset: Longint; Origin: Word): Longint;
var
buf: Array [0..4095] of Char;
i : Integer;
begin
if (offset = 0) and (origin = soFromBeginning) then
begin
ZDecompressCheck(inflateReset(FZStream));
FZStream.next_in := FBuffer;
FZStream.avail_in := 0;
FStream.Position := 0;
FStreamPos := 0;
end
else if ((offset >= 0) and (origin = soFromCurrent)) or
(((offset - FZStream.total_out) > 0) and (origin = soFromBeginning)) then
begin
if origin = soFromBeginning then Dec(offset,FZStream.total_out);
if offset > 0 then
begin
for i := 1 to offset div SizeOf(buf) do ReadBuffer(buf,SizeOf(buf));
ReadBuffer(buf,offset mod SizeOf(buf));
end;
end
else raise EZDecompressionError.Create(SZInvalid);
result := FZStream.total_out;
end;
end.
| 28.555556 | 95 | 0.578357 |
f19617fb26e8c1df70beaac0ad023dd9d3edf204
| 47,850 |
pas
|
Pascal
|
hedgewars/uGears.pas
|
wandi34/hw
|
b436a41ca1928ac42888194e1b2012948d44fdd0
|
[
"Apache-2.0"
] | null | null | null |
hedgewars/uGears.pas
|
wandi34/hw
|
b436a41ca1928ac42888194e1b2012948d44fdd0
|
[
"Apache-2.0"
] | null | null | null |
hedgewars/uGears.pas
|
wandi34/hw
|
b436a41ca1928ac42888194e1b2012948d44fdd0
|
[
"Apache-2.0"
] | null | null | null |
(*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*)
{$INCLUDE "options.inc"}
unit uGears;
(*
* This unit defines the behavior of gears.
*
* Gears are "things"/"objects" that may be visible to the player or not,
* but always have an effect on the course of the game.
*
* E.g.: weapons, hedgehogs, etc.
*
* Note: The visual appearance of gears is defined in the unit "uGearsRender".
*
* Note: Gears that do not have an effect on the game but are just visual
* effects are called "Visual Gears" and defined in the respective unit!
*)
interface
uses uConsts, uFloat, uTypes, uChat, uCollisions;
procedure initModule;
procedure freeModule;
function SpawnCustomCrateAt(x, y: LongInt; crate: TCrateType; content, cnt: Longword): PGear;
function SpawnFakeCrateAt(x, y: LongInt; crate: TCrateType; explode: boolean; poison: boolean ): PGear;
procedure ProcessGears;
procedure EndTurnCleanup;
procedure DrawGears;
procedure DrawGearsGui;
procedure DrawFinger;
procedure FreeGearsList;
procedure AddMiscGears;
procedure AssignHHCoords;
procedure RandomizeHHAnim;
procedure StartSuddenDeath;
function GearByUID(uid : Longword) : PGear;
function IsClockRunning() : boolean;
implementation
uses uStore, uSound, uTeams, uRandom, uIO, uLandGraphics,
{$IFDEF USE_TOUCH_INTERFACE}uTouch,{$ENDIF}
uLocale, uAmmos, uStats, uVisualGears, uScript, uVariables,
uCommands, uUtils, uTextures, uRenderUtils, uGearsRender, uCaptions,
uGearsHedgehog, uGearsUtils, uGearsList, uGearsHandlersRope
, uVisualGearsList, uGearsHandlersMess, uAI;
var skipFlag: boolean;
var delay: LongWord;
delay2: LongWord;
step: (stInit, stDelay1, stChDmg, stSweep, stTurnStats, stChWin1,
stTurnReact, stDelay2, stChWin2, stWater, stChWin3,
stChKing, stSuddenDeath, stDelay3, stHealth, stSpawn, stDelay4,
stNTurn);
NewTurnTick: LongWord;
const delayInit = 50;
delaySDStart = 1600;
delaySDWarning = 1000;
delayDamageTagFull = 1500;
delayDamageTagShort = 500;
delayTurnReact = 800;
delayFinal = 100;
function CheckNoDamage: boolean; // returns TRUE in case of no damaged hhs
var Gear: PGear;
dmg: LongInt;
begin
CheckNoDamage:= true;
Gear:= GearsList;
while Gear <> nil do
begin
if (Gear^.Kind = gtHedgehog) and (((GameFlags and gfInfAttack) = 0) or ((Gear^.dX.QWordValue < _0_000004.QWordValue)
and (Gear^.dY.QWordValue < _0_000004.QWordValue))) then
begin
if (not isInMultiShoot) then
inc(Gear^.Damage, Gear^.Karma);
if (Gear^.Damage <> 0) and ((Gear^.Hedgehog^.Effects[heInvulnerable] = 0)) then
begin
CheckNoDamage:= false;
dmg:= Gear^.Damage;
if (Gear^.Health < dmg) then
begin
Gear^.Active:= true;
Gear^.Health:= 0
end
else
dec(Gear^.Health, dmg);
(*
This doesn't fit well w/ the new loser sprite which is cringing from an attack.
if (Gear^.Hedgehog^.Team = CurrentTeam) and (Gear^.Damage <> Gear^.Karma)
and (not Gear^.Hedgehog^.King) and (Gear^.Hedgehog^.Effects[hePoisoned] = 0) and (not SuddenDeathDmg) then
Gear^.State:= Gear^.State or gstLoser;
*)
spawnHealthTagForHH(Gear, dmg);
RenderHealth(Gear^.Hedgehog^);
RecountTeamHealth(Gear^.Hedgehog^.Team);
end
else if ((GameFlags and gfKing) <> 0) and (not Gear^.Hedgehog^.Team^.hasKing) then
begin
Gear^.Active:= true;
Gear^.Health:= 0;
RenderHealth(Gear^.Hedgehog^);
RecountTeamHealth(Gear^.Hedgehog^.Team);
end;
if (not isInMultiShoot) then
Gear^.Karma:= 0;
Gear^.Damage:= 0
end;
Gear:= Gear^.NextGear
end;
end;
function DoDelay: boolean;
begin
if delay <= 0 then
delay:= 1
else
dec(delay);
DoDelay:= delay = 0;
end;
function CheckMinionsDie: boolean;
var Gear: PGear;
begin
CheckMinionsDie:= false;
if (GameFlags and gfKing) = 0 then
exit;
Gear:= GearsList;
while Gear <> nil do
begin
if (Gear^.Kind = gtHedgehog) and (not Gear^.Hedgehog^.King) and (not Gear^.Hedgehog^.Team^.hasKing) then
begin
CheckMinionsDie:= true;
exit;
end;
Gear:= Gear^.NextGear;
end;
end;
procedure HealthMachine;
var Gear: PGear;
team: PTeam;
i: LongWord;
flag: Boolean;
tmp: LongWord;
begin
Gear:= GearsList;
while Gear <> nil do
begin
if Gear^.Kind = gtHedgehog then
begin
tmp:= 0;
// Deal poison damage (when not frozen)
if (Gear^.Hedgehog^.Effects[hePoisoned] <> 0) and (Gear^.Hedgehog^.Effects[heFrozen] = 0) then
begin
inc(tmp, ModifyDamage(Gear^.Hedgehog^.Effects[hePoisoned], Gear));
if (GameFlags and gfResetHealth) <> 0 then
dec(Gear^.Hedgehog^.InitialHealth);
end;
// Apply SD health decrease as soon as SD starts
if (TotalRoundsPre > cSuddenDTurns - 1) then
begin
inc(tmp, cHealthDecrease);
if (GameFlags and gfResetHealth) <> 0 then
dec(Gear^.Hedgehog^.InitialHealth, cHealthDecrease)
end;
// Reduce king health when he is alone in team
if Gear^.Hedgehog^.King then
begin
flag:= false;
team:= Gear^.Hedgehog^.Team;
for i:= 0 to Pred(team^.HedgehogsNumber) do
if (team^.Hedgehogs[i].Gear <> nil) and (not team^.Hedgehogs[i].King)
and (team^.Hedgehogs[i].Gear^.Health > team^.Hedgehogs[i].Gear^.Damage) then
flag:= true;
if not flag then
begin
inc(tmp, 5);
if (GameFlags and gfResetHealth) <> 0 then
dec(Gear^.Hedgehog^.InitialHealth, 5)
end
end;
// Initial health must never be below 1 because hog might be resurrected
if Gear^.Hedgehog^.InitialHealth < 1 then
Gear^.Hedgehog^.InitialHealth:= 1;
// Set real damage
if tmp > 0 then
begin
// SD damage never reduces health below 1
tmp:= min(tmp, max(0, Gear^.Health - 1 - Gear^.Damage));
inc(Gear^.Damage, tmp);
if tmp > 0 then
// Make hedgehog moan on damage
HHHurt(Gear^.Hedgehog, dsPoison, tmp);
end
end;
Gear:= Gear^.NextGear
end;
end;
procedure ProcessGears;
var t, tmpGear: PGear;
i, j, AliveCount: LongInt;
s: ansistring;
prevtime: LongWord;
stirFallers: boolean;
begin
stirFallers:= false;
prevtime:= TurnTimeLeft;
ScriptCall('onGameTick');
if GameTicks mod 20 = 0 then ScriptCall('onGameTick20');
if GameTicks = NewTurnTick then
begin
ScriptCall('onNewTurn');
{$IFDEF USE_TOUCH_INTERFACE}
uTouch.NewTurnBeginning();
{$ENDIF}
end;
PrvInactive:= AllInactive;
AllInactive:= true;
if (StepSoundTimer > 0) and (StepSoundChannel < 0) then
StepSoundChannel:= LoopSound(sndSteps)
else if (StepSoundTimer = 0) and (StepSoundChannel > -1) then
begin
StopSoundChan(StepSoundChannel);
StepSoundChannel:= -1
end;
if StepSoundTimer > 0 then
dec(StepSoundTimer, 1);
t:= GearsList;
while t <> nil do
begin
curHandledGear:= t;
t:= curHandledGear^.NextGear;
if (GameTicks and $1FFF = 0) and (curHandledGear^.Kind = gtCase) and (curHandledGear^.Pos <> posCaseHealth) then
stirFallers := true;
if curHandledGear^.Message and gmDelete <> 0 then
DeleteGear(curHandledGear)
else
begin
if curHandledGear^.Message and gmRemoveFromList <> 0 then
begin
RemoveGearFromList(curHandledGear);
// since I can't think of any good reason this would ever be separate from a remove from list, going to keep it inside this block
if curHandledGear^.Message and gmAddToList <> 0 then InsertGearToList(curHandledGear);
curHandledGear^.Message:= curHandledGear^.Message and (not (gmRemoveFromList or gmAddToList))
end;
if curHandledGear^.Active then
begin
if (not cOnlyStats) and curHandledGear^.RenderTimer then
begin
// Mine timer
if (curHandledGear^.Kind in [gtMine, gtSMine, gtAirMine]) then
begin
if curHandledGear^.Tex = nil then
if (curHandledGear^.Karma = 1) and (not (GameType in [gmtDemo, gmtRecord])) then
// Secret mine timer
curHandledGear^.Tex:= RenderStringTex(trmsg[sidUnknownGearValue], $ff808080, fntSmall)
else
begin
// Display mine timer with up to 1 decimal point of precision (rounded down)
i:= curHandledGear^.Timer div 1000;
j:= (curHandledGear^.Timer mod 1000) div 100;
if j = 0 then
curHandledGear^.Tex:= RenderStringTex(ansistring(inttostr(i)), $ff808080, fntSmall)
else
curHandledGear^.Tex:= RenderStringTex(ansistring(inttostr(i) + lDecimalSeparator + inttostr(j)), $ff808080, fntSmall);
end
end
// Timer of other gears
else if ((curHandledGear^.Timer > 500) and ((curHandledGear^.Timer mod 1000) = 0)) then
begin
// Display time in seconds as whole number, rounded up
FreeAndNilTexture(curHandledGear^.Tex);
curHandledGear^.Tex:= RenderStringTex(ansistring(inttostr(curHandledGear^.Timer div 1000)), cWhiteColor, fntSmall);
end;
end;
curHandledGear^.doStep(curHandledGear);
end
end
end;
if stirFallers then
begin
t := GearsList;
while t <> nil do
begin
if (t^.Kind = gtGenericFaller) and (t^.Tag = 1) then
begin
t^.Active:= true;
t^.X:= int2hwFloat(GetRandom(rightX-leftX)+leftX);
t^.Y:= int2hwFloat(GetRandom(LAND_HEIGHT-topY)+topY);
t^.dX:= _90-(GetRandomf*_360);
t^.dY:= _90-(GetRandomf*_360)
end;
t := t^.NextGear
end
end;
curHandledGear:= nil;
if AllInactive then
case step of
stInit:
begin
if (not bBetweenTurns) and (not isInMultiShoot) then
ScriptCall('onEndTurn');
delay:= delayInit;
inc(step)
end;
stDelay1:
begin
if DoDelay() then
inc(step);
end;
stChDmg:
if CheckNoDamage then
inc(step)
else
begin
if (not bBetweenTurns) and (not isInMultiShoot) then
delay:= delayDamageTagShort
else
delay:= delayDamageTagFull;
step:= stDelay1;
end;
stSweep:
if SweepDirty then
begin
SetAllToActive;
step:= stChDmg
end
else
inc(step);
stTurnStats:
begin
if (not bBetweenTurns) and (not isInMultiShoot) then
uStats.TurnStats;
inc(step)
end;
stChWin1:
begin
CheckForWin();
inc(step)
end;
stTurnReact:
begin
if (not bBetweenTurns) and (not isInMultiShoot) then
begin
uStats.TurnReaction;
uStats.TurnStatsReset;
delay:= delayTurnReact;
inc(step)
end
else
inc(step, 2);
end;
stDelay2:
if DoDelay() then
inc(step);
stChWin2:
begin
CheckForWin();
inc(step)
end;
stWater:
if (not bBetweenTurns) and (not isInMultiShoot) then
begin
// Start Sudden Death water rise in the 2nd round of Sudden Death
if TotalRoundsPre = cSuddenDTurns + 1 then
bWaterRising:= true;
if bWaterRising and (cWaterRise > 0) then
begin
bDuringWaterRise:= true;
AddGear(0, 0, gtWaterUp, 0, _0, _0, 0)^.Tag:= cWaterRise;
end;
inc(step)
end
else // since we are not raising the water, another win-check isn't needed
inc(step,2);
stChWin3:
begin
CheckForWin;
bDuringWaterRise:= false;
inc(step)
end;
stChKing:
begin
if (not isInMultiShoot) and (CheckMinionsDie) then
step:= stChDmg
else
inc(step);
end;
stSuddenDeath:
begin
if ((cWaterRise <> 0) or (cHealthDecrease <> 0)) and (not (isInMultiShoot or bBetweenTurns)) then
begin
// Start Sudden Death
if (TotalRoundsPre = cSuddenDTurns) and (not SuddenDeath) then
begin
StartSuddenDeath();
delay:= delaySDStart;
inc(step);
end
// Show Sudden Death warning message
else if (TotalRoundsPre < cSuddenDTurns) and ((LastSuddenDWarn = -2) or (LastSuddenDWarn <> TotalRoundsPre)) then
begin
i:= cSuddenDTurns - TotalRoundsPre;
s:= ansistring(inttostr(i));
// X rounds before SD. X = 1, 2, 3, 5, 7, 10, 15, 20, 25, 50, 100, ...
if (i > 0) and ((i <= 3) or (i = 7) or ((i mod 50 = 0) or ((i <= 25) and (i mod 5 = 0)))) then
begin
if i = 1 then
AddCaption(trmsg[sidRoundSD], capcolDefault, capgrpGameState)
else
AddCaption(FormatA(trmsg[sidRoundsSD], s), capcolDefault, capgrpGameState);
delay:= delaySDWarning;
inc(step);
LastSuddenDWarn:= TotalRoundsPre;
end
else
inc(step, 2);
end
else
inc(step, 2);
end
else
inc(step, 2);
end;
stDelay3:
if DoDelay() then
inc(step);
stHealth:
begin
if bBetweenTurns
or isInMultiShoot
or (TotalRoundsReal = -1) then
inc(step)
else
begin
bBetweenTurns:= true;
HealthMachine;
step:= stChDmg
end;
end;
stSpawn:
begin
if (not isInMultiShoot) then
begin
tmpGear:= SpawnBoxOfSmth;
if tmpGear <> nil then
ScriptCall('onCaseDrop', tmpGear^.uid)
else
ScriptCall('onCaseDrop');
delay:= delayFinal;
inc(step);
end
else
inc(step, 2)
end;
stDelay4:
if DoDelay() then
inc(step);
stNTurn:
begin
if isInMultiShoot then
isInMultiShoot:= false
else
begin
// delayed till after 0.9.12
// reset to default zoom
//ZoomValue:= ZoomDefault;
with CurrentHedgehog^ do
if (Gear <> nil)
and ((Gear^.State and gstAttacked) = 0)
and (MultiShootAttacks > 0) then
OnUsedAmmo(CurrentHedgehog^);
EndTurnCleanup;
FreeActionsList; // could send -left, -right and similar commands, so should be called before /nextturn
ParseCommand('/nextturn', true);
SwitchHedgehog;
AfterSwitchHedgehog;
bBetweenTurns:= false;
NewTurnTick:= GameTicks + 1
end;
step:= Low(step)
end;
end
else if ((GameFlags and gfInfAttack) <> 0) then
begin
if delay2 = 0 then
delay2:= cInactDelay * 50
else
begin
dec(delay2);
if ((delay2 mod cInactDelay) = 0) and (CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)
and (not CurrentHedgehog^.Unplaced)
and (not PlacingHogs) then
begin
if (CurrentHedgehog^.Gear^.State and gstAttacked <> 0)
and (Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0) then
begin
CurrentHedgehog^.Gear^.State:= CurrentHedgehog^.Gear^.State or gstChooseTarget;
isCursorVisible := true
end;
CurrentHedgehog^.Gear^.State:= CurrentHedgehog^.Gear^.State and (not gstAttacked);
end;
if delay2 = 0 then
begin
if (CurrentHedgehog^.Gear <> nil) and (CurrentHedgehog^.Gear^.State and gstAttacked = 0)
and (CurAmmoGear = nil) then
SweepDirty;
if (CurrentHedgehog^.Gear = nil) or (CurrentHedgehog^.Gear^.State and gstHHDriven = 0) or (CurrentHedgehog^.Gear^.Damage = 0) then
CheckNoDamage;
AliveCount:= 0; // shorter version of check for win to allow typical step activity to proceed
for i:= 0 to Pred(ClansCount) do
if ClansArray[i]^.ClanHealth > 0 then
inc(AliveCount);
if (AliveCount <= 1) and ((GameFlags and gfOneClanMode) = 0) then
begin
step:= stChDmg;
if TagTurnTimeLeft = 0 then
TagTurnTimeLeft:= TurnTimeLeft;
GameOver:= true;
TurnTimeLeft:= 0
end
end
end
end;
if TurnTimeLeft > 0 then
if IsClockRunning() then
begin
if (cHedgehogTurnTime > TurnTimeLeft)
and (CurrentHedgehog^.Gear <> nil)
and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0)
and (not isGetAwayTime) and (ReadyTimeLeft = 0) then
if (TurnTimeLeft = 5000) and (cHedgehogTurnTime >= 10000) then
PlaySoundV(sndHurry, CurrentTeam^.voicepack)
else if TurnTimeLeft = 4000 then
PlaySound(sndCountdown4)
else if TurnTimeLeft = 3000 then
PlaySound(sndCountdown3)
else if TurnTimeLeft = 2000 then
PlaySound(sndCountdown2)
else if TurnTimeLeft = 1000 then
PlaySound(sndCountdown1);
if ReadyTimeLeft > 0 then
begin
if (ReadyTimeLeft = 2000) and (LastVoice.snd = sndNone) and (not PlacingHogs) and (not CinematicScript) then
AddVoice(sndComeonthen, CurrentTeam^.voicepack);
dec(ReadyTimeLeft)
end
else
dec(TurnTimeLeft)
end;
if (TurnTimeLeft = 0) and (ReadyTimeLeft = 0) then
inc(TimeNotInTurn)
else
TimeNotInTurn:= 0;
if skipFlag then
begin
if TagTurnTimeLeft = 0 then
TagTurnTimeLeft:= TurnTimeLeft;
TurnTimeLeft:= 0;
skipFlag:= false;
inc(CurrentHedgehog^.Team^.stats.TurnSkips);
end;
if ((GameTicks and $FFFF) = $FFFF) then
begin
if (not CurrentTeam^.ExtDriven) then
begin
SendIPC(_S'#');
AddFileLog('hiTicks increment message sent')
end;
if (not CurrentTeam^.ExtDriven) or CurrentTeam^.hasGone then
begin
AddFileLog('hiTicks increment (current team is local or gone)');
inc(hiTicks) // we do not recieve a message for this
end
end;
AddRandomness(CheckSum);
TurnClockActive:= prevtime <> TurnTimeLeft;
inc(GameTicks);
if (OuchTauntTimer > 0) then
dec(OuchTauntTimer);
end;
//Purpose, to reset all transient attributes toggled by a utility and clean up various gears and effects at end of turn
//If any of these are set as permanent toggles in the frontend, that needs to be checked and skipped here.
procedure EndTurnCleanup;
var i: LongInt;
t: PGear;
begin
SpeechText:= ''; // in case it has not been consumed
if (GameFlags and gfLowGravity) = 0 then
begin
cGravity:= cMaxWindSpeed * 2;
cGravityf:= 0.00025 * 2;
cLowGravity:= false
end;
if (GameFlags and gfVampiric) = 0 then
cVampiric:= false;
cDamageModifier:= _1;
if (GameFlags and gfLaserSight) = 0 then
begin
cLaserSighting:= false;
cLaserSightingSniper:= false
end;
// have to sweep *all* current team hedgehogs since it is theoretically possible if you have enough invulnerabilities and switch turns to make your entire team invulnerable
if (CurrentTeam <> nil) then
with CurrentTeam^ do
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
begin
if (Gear <> nil) then
begin
if (GameFlags and gfInvulnerable) = 0 then
Gear^.Hedgehog^.Effects[heInvulnerable]:= 0;
if (Gear^.Hedgehog^.Effects[heArtillery] = 2) then
Gear^.Hedgehog^.Effects[heArtillery]:= 0;
end;
end;
t:= GearsList;
while t <> nil do
begin
t^.PortalCounter:= 0;
if ((GameFlags and gfResetHealth) <> 0) and (t^.Kind = gtHedgehog) and (t^.Health < t^.Hedgehog^.InitialHealth) then
begin
i:= t^.Hedgehog^.InitialHealth - t^.Health;
t^.Health:= t^.Hedgehog^.InitialHealth;
if i > 0 then
HHHeal(t^.Hedgehog, i, false, $00FF0040);
RenderHealth(t^.Hedgehog^);
end;
t:= t^.NextGear
end;
if ((GameFlags and gfResetWeps) <> 0) and (not PlacingHogs) and (not PlacingKings) then
ResetWeapons;
if (GameFlags and gfResetHealth) <> 0 then
for i:= 0 to Pred(TeamsCount) do
RecountTeamHealth(TeamsArray[i])
end;
procedure DrawGears;
var Gear: PGear;
x, y: LongInt;
begin
Gear:= GearsList;
while Gear <> nil do
begin
if (Gear^.State and gstInvisible = 0) and (Gear^.Message and gmRemoveFromList = 0) then
begin
x:= hwRound(Gear^.X) + WorldDx;
y:= hwRound(Gear^.Y) + WorldDy;
RenderGear(Gear, x, y);
end;
Gear:= Gear^.NextGear
end;
if SpeechHogNumber > 0 then
DrawHHOrder();
end;
// Draw gear timers and other GUI overlays
procedure DrawGearsGui;
var Gear: PGear;
x, y: LongInt;
begin
Gear:= GearsList;
while Gear <> nil do
begin
x:= hwRound(Gear^.X) + WorldDx;
y:= hwRound(Gear^.Y) + WorldDy;
if Gear^.Kind = gtAirMine then
RenderAirMineGuiExtras(Gear, x, y);
RenderGearHealth(Gear, x, y);
RenderGearTimer(Gear, x, y);
if Gear^.Kind = gtHedgehog then
RenderHHGuiExtras(Gear, x, y);
Gear:= Gear^.NextGear
end;
end;
procedure DrawFinger;
var Gear: PGear;
x, y: LongInt;
begin
if ((CurrentHedgehog <> nil) and (CurrentHedgehog^.Gear <> nil)) then
begin
Gear:= CurrentHedgehog^.Gear;
x:= hwRound(Gear^.X) + WorldDx;
y:= hwRound(Gear^.Y) + WorldDy;
RenderFinger(Gear, x, y);
end;
end;
procedure FreeGearsList;
var t, tt: PGear;
begin
tt:= GearsList;
GearsList:= nil;
while tt <> nil do
begin
FreeAndNilTexture(tt^.Tex);
t:= tt;
tt:= tt^.NextGear;
Dispose(t)
end;
end;
procedure AddMiscGears;
var p,i,j,t,h,unplaced: Longword;
rx, ry: LongInt;
rdx, rdy: hwFloat;
Gear: PGear;
begin
AddGear(0, 0, gtATStartGame, 0, _0, _0, 2000);
i:= 0;
unplaced:= 0;
while (i < cLandMines) and (unplaced < 4) do
begin
Gear:= AddGear(0, 0, gtMine, 0, _0, _0, 0);
FindPlace(Gear, false, 0, LAND_WIDTH);
if Gear = nil then
inc(unplaced)
else
unplaced:= 0;
inc(i)
end;
i:= 0;
unplaced:= 0;
while (i < cExplosives) and (unplaced < 4) do
begin
Gear:= AddGear(0, 0, gtExplosives, 0, _0, _0, 0);
FindPlace(Gear, false, 0, LAND_WIDTH);
if Gear = nil then
inc(unplaced)
else
begin
unplaced:= 0;
AddCI(Gear)
end;
inc(i)
end;
i:= 0;
j:= 0;
p:= 0; // 0: good position, 1: bad position.
unplaced:= 0;
if cAirMines > 0 then
Gear:= AddGear(0, 0, gtAirMine, 0, _0, _0, 0);
while (i < cAirMines) and (j < 1000*cAirMines) do
begin
p:= 0;
if (hasBorder) or (WorldEdge = weBounce) then
rx:= leftX+GetRandom(rightX-leftX-16)+8
else
rx:= leftX+GetRandom(rightX-leftX+400)-200;
if hasBorder then
ry:= topY+GetRandom(LAND_HEIGHT-topY-16)+8
else
ry:= topY+GetRandom(LAND_HEIGHT-topY+400)-200;
Gear^.X:= int2hwFloat(CalcWorldWrap(rx,Gear^.Radius));
Gear^.Y:= int2hwFloat(ry);
if CheckLandValue(rx, ry, $FFFF) and
(TestCollisionYwithGear(Gear,-1) = 0) and
(TestCollisionXwithGear(Gear, 1) = 0) and
(TestCollisionXwithGear(Gear,-1) = 0) and
(TestCollisionYwithGear(Gear, 1) = 0) then
begin
t:= 0;
while (t < TeamsCount) and (p = 0) do
begin
h:= 0;
with TeamsArray[t]^ do
while (h <= cMaxHHIndex) and (p = 0) do
begin
if (Hedgehogs[h].Gear <> nil) then
begin
rdx:=Gear^.X-Hedgehogs[h].Gear^.X;
rdy:=Gear^.Y-Hedgehogs[h].Gear^.Y;
if (Gear^.Angle < $FFFFFFFF) and
((rdx.Round+rdy.Round < Gear^.Angle) and
(hwRound(hwSqr(rdx) + hwSqr(rdy)) < sqr(Gear^.Angle))) then
begin
p:= 1
end
end;
inc(h)
end;
inc(t)
end;
if p = 0 then
begin
inc(i);
AddFileLog('Placed Air Mine @ (' + inttostr(rx) + ',' + inttostr(ry) + ')');
if i < cAirMines then
Gear:= AddGear(0, 0, gtAirMine, 0, _0, _0, 0)
end
end
else
p:= 1;
inc(j)
end;
if p <> 0 then DeleteGear(Gear);
i:= 0;
unplaced:= 0;
while (i < cSentries) and (unplaced < 4) do
begin
Gear:= AddGear(0, 0, gtSentry, 0, _0, _0, 0);
FindPlace(Gear, false, 0, LAND_WIDTH);
if Gear = nil then
inc(unplaced)
else
unplaced:= 0;
inc(i)
end;
if (GameFlags and gfLowGravity) <> 0 then
begin
cGravity:= cMaxWindSpeed;
cGravityf:= 0.00025;
cLowGravity:= true
end;
if (GameFlags and gfVampiric) <> 0 then
cVampiric:= true;
Gear:= GearsList;
if (GameFlags and gfInvulnerable) <> 0 then
for p:= 0 to Pred(ClansCount) do
with ClansArray[p]^ do
for j:= 0 to Pred(TeamsNumber) do
with Teams[j]^ do
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
Effects[heInvulnerable]:= 1;
if (GameFlags and gfLaserSight) <> 0 then
cLaserSighting:= true;
for i:= (LAND_WIDTH*LAND_HEIGHT) div 524288+2 downto 0 do
begin
rx:= GetRandom(rightX-leftX)+leftX;
ry:= GetRandom(LAND_HEIGHT-topY)+topY;
rdx:= _90-(GetRandomf*_360);
rdy:= _90-(GetRandomf*_360);
Gear:= AddGear(rx, ry, gtGenericFaller, gstInvisible, rdx, rdy, $FFFFFFFF);
// This allows this generic faller to be displaced randomly by events
Gear^.Tag:= 1;
end;
snowRight:= max(LAND_WIDTH,4096)+512;
snowLeft:= -(snowRight-LAND_WIDTH);
if (not hasBorder) and cSnow then
for i:= vobCount * Longword(max(LAND_WIDTH,4096)) div 2048 downto 1 do
begin
rx:=GetRandom(snowRight - snowLeft);
ry:=GetRandom(750);
AddGear(rx + snowLeft, LongInt(LAND_HEIGHT) + ry - 1300, gtFlake, 0, _0, _0, 0)
end
end;
// sort clans horizontally (bubble-sort, because why not)
procedure SortHHsByClan();
var n, newn, i, j, k, p: LongInt;
ar, clar: array[0..Pred(cMaxHHs)] of PHedgehog;
Count, clCount: Longword;
tmpX, tmpY: hwFloat;
hh1, hh2: PHedgehog;
begin
Count:= 0;
// add hedgehogs to the array in clan order
for p:= 0 to (ClansCount - 1) do
with SpawnClansArray[p]^ do
begin
// count hogs in this clan
clCount:= 0;
for j:= 0 to Pred(TeamsNumber) do
with Teams[j]^ do
for i:= 0 to cMaxHHIndex do
if Hedgehogs[i].Gear <> nil then
begin
clar[clCount]:= @Hedgehogs[i];
inc(clCount);
end;
// shuffle all hogs of this clan
for i:= 0 to clCount - 1 do
begin
j:= GetRandom(clCount);
k:= GetRandom(clCount);
if clar[j] <> clar[k] then
begin
hh1:= clar[j];
clar[j]:= clar[k];
clar[k]:= hh1;
end;
end;
// add clan's hog to sorting array
for i:= 0 to clCount - 1 do
begin
ar[Count]:= clar[i];
inc(Count);
end;
end;
// bubble-sort hog array
n:= Count - 1;
repeat
newn:= 0;
for i:= 1 to n do
begin
hh1:= ar[i-1];
hh2:= ar[i];
if hwRound(hh1^.Gear^.X) > hwRound(hh2^.Gear^.X) then
begin
tmpX:= hh1^.Gear^.X;
tmpY:= hh1^.Gear^.Y;
hh1^.Gear^.X:= hh2^.Gear^.X;
hh1^.Gear^.Y:= hh2^.Gear^.Y;
hh2^.Gear^.X:= tmpX;
hh2^.Gear^.Y:= tmpY;
newn:= i;
end;
end;
n:= newn;
until n = 0;
end;
procedure AssignHHCoords;
var i, t, p, j, x, y: LongInt;
ar: array[0..Pred(cMaxHHs)] of PHedgehog;
Count: Longword;
divide, sectionDivide: boolean;
begin
if (GameFlags and gfPlaceHog) <> 0 then
PlacingHogs:= true
else if (GameFlags and gfKing) <> 0 then
PlacingKings:= true;
divide:= ((GameFlags and gfDivideTeams) <> 0);
(* sectionDivide will determine the mode of hog distribution
*
* On generated maps or maps not designed with divided mode in mind,
* using spawning sections can be problematic, because some sections may
* contain too little land surface for sensible spawning.
*
* if sectionDivide is true, the map will be sliced into equal-width sections
* and one team spawned in each
* if false, the hogs will be spawned normally and sorted by teams after
*
*)
// TODO: there might be a smarter way to decide if dividing clans into equal-width map sections makes sense
// e.g. by checking if there is enough spawn area in each section
sectionDivide:= divide and ((cMapGen = mgForts) or (ClansCount = 2));
// divide the map into equal-width sections and put each clan in one of them
if sectionDivide then
begin
t:= leftX;
for p:= 0 to (ClansCount - 1) do
begin
with SpawnClansArray[p]^ do
for j:= 0 to Pred(TeamsNumber) do
with Teams[j]^ do
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
if (Gear <> nil) and (Gear^.X.QWordValue = 0) then
begin
if PlacingHogs then
Unplaced:= true
else
FindPlace(Gear, false, t, t + playWidth div ClansCount, true);// could make Gear == nil;
if PlacingKings and King then
UnplacedKing:= true;
if Gear <> nil then
begin
Gear^.Pos:= GetRandom(49);
// unless the world is wrapping, make outter teams face to map center
if (WorldEdge <> weWrap) and ((p = 0) or (p = ClansCount - 1)) then
Gear^.dX.isNegative:= (p <> 0)
else
Gear^.dX.isNegative:= (GetRandom(2) = 1);
end
end;
inc(t, playWidth div ClansCount);
end
end
else // mix hedgehogs
begin
Count:= 0;
for p:= 0 to Pred(TeamsCount) do
with TeamsArray[p]^ do
begin
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
if (Gear <> nil) and (Gear^.X.QWordValue = 0) then
begin
ar[Count]:= @Hedgehogs[i];
inc(Count)
end;
end;
while (Count > 0) do
begin
i:= GetRandom(Count);
if PlacingHogs then
ar[i]^.Unplaced:= true
else
FindPlace(ar[i]^.Gear, false, leftX, rightX, true);
if PlacingKings and ar[i]^.King then
ar[i]^.UnplacedKing:= true;
if ar[i]^.Gear <> nil then
begin
ar[i]^.Gear^.dX.isNegative:= hwRound(ar[i]^.Gear^.X) > leftX + playWidth div 2;
end;
ar[i]:= ar[Count - 1];
dec(Count)
end
end;
for p:= 0 to Pred(TeamsCount) do
with TeamsArray[p]^ do
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
if (Gear <> nil) and (Gear^.State and gsttmpFlag <> 0) then
begin
DrawExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 50);
AddFileLog('Carved a hole for hog at coordinates (' + inttostr(hwRound(Gear^.X)) + ',' + inttostr(hwRound(Gear^.Y)) + ')')
end;
// place flowers after in case holes overlap (we shrink search distance if we are failing to place)
for p:= 0 to Pred(TeamsCount) do
with TeamsArray[p]^ do
for i:= 0 to cMaxHHIndex do
with Hedgehogs[i] do
if (Gear <> nil) and (Gear^.State and gsttmpFlag <> 0) then
begin
// Get flower position
x:= hwRound(Gear^.X) - SpritesData[sprTargetBee].Width div 2;
y:= hwRound(Gear^.Y) - SpritesData[sprTargetBee].Height div 2;
// Calculate offset from map boundaries and border
if hasBorder then
x:= max(min(x, RightX - SpritesData[sprTargetBee].Width - cBorderWidth), LeftX + cBorderWidth)
else
x:= max(min(x, RightX - SpritesData[sprTargetBee].Width), LeftX);
y:= max(y, TopY);
// Place flower
ForcePlaceOnLand(x, y, sprTargetBee, 0, lfBasic, $FFFFFFFF, false, false, false);
// Place hog
Gear^.Y:= int2hwFloat(hwRound(Gear^.Y) - (SpritesData[sprTargetBee].Height div 2) - Gear^.Radius);
AddCI(Gear);
Gear^.State:= Gear^.State and (not gsttmpFlag);
AddFileLog('Placed flower for hog at coordinates (' + inttostr(x) + ',' + inttostr(y) + ')')
end;
// divided teams: sort the hedgehogs from left to right by clan and shuffle clan members
if divide and (not sectionDivide) then
SortHHsByClan();
end;
// Set random pos for all hogs so their animations have different starting points
procedure RandomizeHHAnim;
var i, j, p: LongInt;
begin
for p:= 0 to (ClansCount - 1) do
with SpawnClansArray[p]^ do
for j:= 0 to Pred(TeamsNumber) do
with Teams[j]^ do
for i:= 0 to cMaxHHIndex do
if (Hedgehogs[i].Gear <> nil) then
Hedgehogs[i].Gear^.Pos:= GetRandom(19);
end;
{procedure AmmoFlameWork(Ammo: PGear);
var t: PGear;
begin
t:= GearsList;
while t <> nil do
begin
if (t^.Kind = gtHedgehog) and (t^.Y < Ammo^.Y) then
if not (hwSqr(Ammo^.X - t^.X) + hwSqr(Ammo^.Y - t^.Y - int2hwFloat(cHHRadius)) * 2 > _2) then
begin
ApplyDamage(t, 5);
t^.dX:= t^.dX + (t^.X - Ammo^.X) * _0_02;
t^.dY:= - _0_25;
t^.Active:= true;
DeleteCI(t);
FollowGear:= t
end;
t:= t^.NextGear
end;
end;}
function SpawnCustomCrateAt(x, y: LongInt; crate: TCrateType; content, cnt: Longword): PGear;
var gear: PGear;
begin
gear := AddGear(x, y, gtCase, 0, _0, _0, 0);
if(FinishedTurnsTotal > -1) then
FollowGear:= gear;
cCaseFactor := 0;
if (crate <> HealthCrate) and (content > ord(High(TAmmoType))) then
content := ord(High(TAmmoType));
gear^.Power:= cnt;
case crate of
HealthCrate:
begin
gear^.Pos := posCaseHealth;
gear^.RenderHealth:= true;
// health crate is smaller than the other crates
gear^.Radius := cCaseHealthRadius;
gear^.Health := content;
if(FinishedTurnsTotal > -1) then
AddCaption(GetEventString(eidNewHealthPack), capcolDefault, capgrpAmmoInfo);
end;
AmmoCrate:
begin
gear^.Pos := posCaseAmmo;
gear^.AmmoType := TAmmoType(content);
if(FinishedTurnsTotal > -1) then
AddCaption(GetEventString(eidNewAmmoPack), capcolDefault, capgrpAmmoInfo);
end;
UtilityCrate:
begin
gear^.Pos := posCaseUtility;
gear^.AmmoType := TAmmoType(content);
if(FinishedTurnsTotal > -1) then
AddCaption(GetEventString(eidNewUtilityPack), capColDefault, capgrpAmmoInfo);
end;
end;
if ( (x = 0) and (y = 0) ) then
FindPlace(gear, true, 0, LAND_WIDTH);
SpawnCustomCrateAt := gear;
end;
function SpawnFakeCrateAt(x, y: LongInt; crate: TCrateType; explode: boolean; poison: boolean): PGear;
var gear: PGear;
begin
gear := AddGear(x, y, gtCase, 0, _0, _0, 0);
if(FinishedTurnsTotal > -1) then
FollowGear:= gear;
cCaseFactor := 0;
gear^.Pos := posCaseDummy;
if explode then
gear^.Pos := gear^.Pos + posCaseExplode;
if poison then
gear^.Pos := gear^.Pos + posCasePoison;
case crate of
HealthCrate:
begin
gear^.Pos := gear^.Pos + posCaseHealth;
gear^.RenderHealth:= true;
gear^.Karma:= 2;
// health crate is smaller than the other crates
gear^.Radius := cCaseHealthRadius;
if(FinishedTurnsTotal > -1) then
AddCaption(GetEventString(eidNewHealthPack), capcolDefault, capgrpAmmoInfo);
end;
AmmoCrate:
begin
gear^.Pos := gear^.Pos + posCaseAmmo;
if(FinishedTurnstotal > -1) then
AddCaption(GetEventString(eidNewAmmoPack), capcolDefault, capgrpAmmoInfo);
end;
UtilityCrate:
begin
gear^.Pos := gear^.Pos + posCaseUtility;
if(FinishedTurnsTotal > -1) then
AddCaption(GetEventString(eidNewUtilityPack), capcolDefault, capgrpAmmoInfo);
end;
end;
if ( (x = 0) and (y = 0) ) then
FindPlace(gear, true, 0, LAND_WIDTH);
SpawnFakeCrateAt := gear;
end;
procedure StartSuddenDeath();
begin
if SuddenDeath then
exit;
SuddenDeath:= true;
SuddenDeathActive:= true;
// Special effects (only w/ health decrease)
if cHealthDecrease <> 0 then
begin
SuddenDeathDmg:= true;
// White screen flash
ScreenFade:= sfFromWhite;
ScreenFadeValue:= sfMax;
ScreenFadeSpeed:= 1;
// Clouds, flakes, sky tint
ChangeToSDClouds;
ChangeToSDFlakes;
SetSkyColor(SDSkyColor.r * (SDTint.r/255) / 255, SDSkyColor.g * (SDTint.g/255) / 255, SDSkyColor.b * (SDTint.b/255) / 255);
end;
// Disable tardis
Ammoz[amTardis].SkipTurns:= 9999;
Ammoz[amTardis].Probability:= 0;
AddCaption(trmsg[sidSuddenDeath], capcolDefault, capgrpGameState);
ScriptCall('onSuddenDeath');
playSound(sndSuddenDeath);
StopMusic;
if SDMusicFN <> '' then
PlayMusic
end;
function GearByUID(uid : Longword) : PGear;
var gear: PGear;
begin
GearByUID:= nil;
if uid = 0 then exit;
if (lastGearByUID <> nil) and (lastGearByUID^.uid = uid) then
begin
GearByUID:= lastGearByUID;
exit
end;
gear:= GearsList;
while gear <> nil do
begin
if gear^.uid = uid then
begin
lastGearByUID:= gear;
GearByUID:= gear;
exit
end;
gear:= gear^.NextGear
end
end;
function IsClockRunning() : boolean;
begin
IsClockRunning :=
(CurrentHedgehog^.Gear <> nil)
and (((CurrentHedgehog^.Gear^.State and gstAttacking) = 0)
or (Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_DoesntStopTimerWhileAttacking <> 0)
or ((GameFlags and gfInfAttack) <> 0) and (Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_DoesntStopTimerWhileAttackingInInfAttackMode <> 0)
or (CurrentHedgehog^.CurAmmoType = amSniperRifle))
and (not(isInMultiShoot and ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_DoesntStopTimerInMultiShoot) <> 0)))
and (not LuaClockPaused);
end;
procedure chSkip(var s: shortstring);
begin
s:= s; // avoid compiler hint
if not isExternalSource then
SendIPC(_S',');
uStats.Skipped;
skipFlag:= true;
ScriptCall('onSkipTurn');
end;
procedure chHogSay(var s: shortstring);
var Gear: PVisualGear;
text: shortstring;
hh: PHedgehog;
i, x, t, h: byte;
c, j: LongInt;
begin
hh:= nil;
i:= 0;
t:= 0;
x:= byte(s[1]); // speech type
if x < 4 then
begin
t:= byte(s[2]); // team
if Length(s) > 2 then
h:= byte(s[3]) // target hog
else
h:= 0
end;
// allow targetting a hog by specifying a number as the first portion of the text
if (x < 4) and (h > byte('0')) and (h < byte('9')) then
i:= h - 48;
if i <> 0 then
text:= copy(s, 4, Length(s) - 1)
else if x < 4 then
text:= copy(s, 3, Length(s) - 1)
else text:= copy(s, 2, Length(s) - 1);
if text = '' then text:= '...';
if (x < 4) and (TeamsArray[t] <> nil) then
begin
// if team matches current hedgehog team, default to current hedgehog
if (i = 0) and (CurrentHedgehog <> nil) and (CurrentHedgehog^.Team = TeamsArray[t]) and (not CurrentHedgehog^.Unplaced) then
hh:= CurrentHedgehog
else
begin
// otherwise use the first living hog or the hog amongs the remaining ones indicated by i
j:= 0;
c:= 0;
while (j <= cMaxHHIndex) and (hh = nil) do
begin
if (TeamsArray[t]^.Hedgehogs[j].Gear <> nil) and (not TeamsArray[t]^.Hedgehogs[j].Unplaced) then
begin
inc(c);
if (i=0) or (i=c) then
hh:= @TeamsArray[t]^.Hedgehogs[j]
end;
inc(j)
end
end;
if hh <> nil then
begin
Gear:= AddVisualGear(0, 0, vgtSpeechBubble);
if Gear <> nil then
begin
Gear^.Hedgehog:= hh;
Gear^.Text:= text;
Gear^.FrameTicks:= x
end;
AddChatString(#9+Format(shortstring(trmsg[sidChatHog]), HH^.Name, text));
end
end
else if (x >= 4) then
begin
SpeechType:= x-3;
SpeechText:= text
end;
end;
procedure initModule;
const handlers: array[TGearType] of TGearStepProcedure = (
@doStepFlame,
@doStepHedgehog,
@doStepMine,
@doStepCase,
@doStepAirMine,
@doStepCase,
@doStepBomb,
@doStepShell,
@doStepGrave,
@doStepBee,
@doStepShotgunShot,
@doStepPickHammer,
@doStepRope,
@doStepDEagleShot,
@doStepDynamite,
@doStepBomb,
@doStepCluster,
@doStepShover,
@doStepFirePunch,
@doStepActionTimer,
@doStepActionTimer,
@doStepParachute,
@doStepAirAttack,
@doStepAirBomb,
@doStepBlowTorch,
@doStepGirder,
@doStepTeleport,
@doStepSwitcher,
@doStepTarget,
@doStepMortar,
@doStepWhip,
@doStepKamikaze,
@doStepCake,
@doStepSeduction,
@doStepBomb,
@doStepCluster,
@doStepBomb,
@doStepWaterUp,
@doStepDrill,
@doStepBallgun,
@doStepBomb,
@doStepRCPlane,
@doStepSniperRifleShot,
@doStepJetpack,
@doStepMolotov,
@doStepBirdy,
@doStepEggWork,
@doStepPortalShot,
@doStepPiano,
@doStepBomb,
@doStepSineGunShot,
@doStepFlamethrower,
@doStepSMine,
@doStepPoisonCloud,
@doStepHammer,
@doStepHammerHit,
@doStepResurrector,
@doStepNapalmBomb,
@doStepSnowball,
@doStepSnowflake,
@doStepLandGun,
@doStepTardis,
@doStepIceGun,
@doStepAddAmmo,
@doStepGenericFaller,
@doStepKnife,
@doStepCreeper,
@doStepMinigun,
@doStepMinigunBullet,
@doStepSentry);
begin
doStepHandlers:= handlers;
RegisterVariable('skip', @chSkip, false);
RegisterVariable('hogsay', @chHogSay, true );
CurAmmoGear:= nil;
GearsList:= nil;
curHandledGear:= nil;
KilledHHs:= 0;
SuddenDeath:= false;
SuddenDeathDmg:= false;
SpeechType:= 1;
skipFlag:= false;
AllInactive:= false;
PrvInactive:= false;
//typed const
delay:= 0;
delay2:= 0;
step:= stDelay1;
upd:= 0;
NewTurnTick:= $FFFFFFFF;
end;
procedure freeModule;
begin
FreeGearsList();
end;
end.
| 31.584158 | 176 | 0.545914 |
831cbae1288ce68a205e1725527c5206c2600801
| 1,111 |
pas
|
Pascal
|
CAT/tests/13. custom tests/algorithms/sorting/sort_quick_1.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 19 |
2018-10-22T23:45:31.000Z
|
2021-05-16T00:06:49.000Z
|
CAT/tests/13. custom tests/algorithms/sorting/sort_quick_1.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 1 |
2019-06-01T06:17:08.000Z
|
2019-12-28T10:27:42.000Z
|
CAT/tests/13. custom tests/algorithms/sorting/sort_quick_1.pas
|
SkliarOleksandr/NextPascal
|
4dc26abba6613f64c0e6b5864b3348711eb9617a
|
[
"Apache-2.0"
] | 6 |
2018-08-30T05:16:21.000Z
|
2021-05-12T20:25:43.000Z
|
unit sort_quick_1;
interface
implementation
type TIntArray = array of int32;
var A: TIntArray;
function Compare(L, R: Int32): Int32;
begin
if L < R then
Result := -1
else if L > R then
Result := 1
else
Result := 0;
end;
procedure QuickSort(Values: TIntArray; L, R: Int32);
var
I, J: Int32;
pivot, temp: Int32;
begin
if (Length(Values) = 0) or ((R - L) <= 0) then
Exit;
repeat
I := L;
J := R;
pivot := Values[L + (R - L) shr 1];
repeat
while Compare(Values[I], pivot) < 0 do
Inc(I);
while Compare(Values[J], pivot) > 0 do
Dec(J);
if I <= J then
begin
if I <> J then
begin
temp := Values[I];
Values[I] := Values[J];
Values[J] := temp;
end;
Inc(I);
Dec(J);
end;
until I > J;
if L < J then
QuickSort(Values, L, J);
L := I;
until I >= R;
end;
procedure Test;
begin
A := [4, 7, 1, 6, 2, 0, 3, 5, 9, 8];
QuickSort(A, Low(A), High(A));
end;
initialization
Test();
finalization
Assert(A[0] = 0);
Assert(A[9] = 9);
end.
| 16.833333 | 52 | 0.514851 |
f12020d66f889ac563a1e9d986c450c7834a164f
| 5,061 |
pas
|
Pascal
|
misc/0073.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | 11 |
2015-12-12T05:13:15.000Z
|
2020-10-14T13:32:08.000Z
|
misc/0073.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | null | null | null |
misc/0073.pas
|
nickelsworth/swag
|
7c21c0da2291fc249b9dc5cfe121a7672a4ffc08
|
[
"BSD-2-Clause"
] | 8 |
2017-05-05T05:24:01.000Z
|
2021-07-03T20:30:09.000Z
|
{
pigeons@JSP.UMontreal.CA (Pigeon Steven)
> Hey, I have a friend who is taking a Pascal class at another col-
>lege and he asked me to make a query of you all. Basically, he has to
>do the "eight queens" on a chessboard (with none of them interfering
>vertically, horizontally, or diagonally with each other) problem in
>Pascal. The program has to use stacks. Its input is the number of
>queens (the dimensions of the chessboard are that number x that number).
>The output is that it can't be done with that number of queens or a
>grid of the queens and either empty spaces or dashes. I was wondering
>if any of you had any similar programs in old code lying around, and if
>so if you could send it to me. My friend says it's a pretty classic
>problem for programmers, so I figured I'd ask. Oh, and in case some of
>you think that I am this "friend", the only Pascal course here at Brown
>(cs15) has already done its job with stacks, and it wasn't this. Btw,
>speaking of cs here, it's Object-Oriented; my friend's program needs to
>be done procedureally (straight-line), not in OOPas. I thank you all
>for your indulgence in allowing me to post this. Please don't flame me,
>as I am only trying to help out a friend. If there is a more appropriate
>place for me to post this, please tell me (I am going to post this to
>cs groups if possible). Oh, and as I don't get around here often, I
>would appreciate it much if any and all replies were sent to the address
>below. Thanx,
>
Here's a programm that does that. It's a little bit strange, but I put
extra code so the board would not be passed as a parameter (since Turbo
Profiler said :"Hey, 75% of your run time goes in copy of the board").
The file is name REINES5.PAS (litterally QUEENS5.PAS) and it's limited
(so to say) to 64x64 boards (with 64 queens on it). It is fast enough.
}
program Probleme_des_reines;
const max = 64;
libre = 8;
reine = 8;
const colname:string =
'abcdefghijklmnopqrstuvwxyz'+
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'+
'αßΓτΣσµΦΘΩδ';
type echiquier = array[1..max,1..max] of byte;
var sol,recursions:longint;
top:word;
Reines,Attaques:echiquier;
function min(a,b:integer):integer;
begin
if a<b
then min:=a
else min:=b;
end;
procedure mark(x,y:integer);
var t,g,i:integer;
begin
for t:=y+1 to top do inc(attaques[x,t]);
t:=x+1;
g:=y+1;
for i:=1 to min(top-t,top-g)+1 do
begin
inc(attaques[t,g]);
inc(t);
inc(g);
end;
t:=x-1;
g:=y+1;
if t>0 then
for i:=1 to min(top-g+1,t) do
begin
inc(attaques[t,g]);
dec(t);
inc(g);
end;
Reines[x,y]:=reine;
end;
procedure unmark(x,y:integer);
var t,g,i:integer;
begin
for t:=y+1 to top do dec(attaques[x,t]);
t:=x+1;
g:=y+1;
for i:=1 to min(top-t,top-g)+1 do
begin
dec(attaques[t,g]);
inc(t);
inc(g);
end;
t:=x-1;
g:=y+1;
if t>0 then
for i:=1 to min(top-g+1,t) do
begin
dec(attaques[t,g]);
dec(t);
inc(g);
end;
Reines[x,y]:=libre;
end;
procedure traduit;
var t,g:integer;
begin
write(sol:4,'. ');
for t:=1 to top do
for g:=1 to top do
if Reines[g,t]=reine then write(colname[t],g,' ');
writeln(' ',recursions);
end;
function find(level,j:integer):integer;
begin
inc(j);
while (attaques[j,level]<>libre) and (j<top) do inc(j);
if (attaques[j,level]=libre)
then find:=j
else find:=0;
end;
procedure recurse(level:integer);
var t:integer;
begin
inc(recursions);
t:=0;
repeat
t:=find(level,t);
if t<>0
then begin
if level=top
then begin
inc(sol);
Reines[t,level]:=reine;
traduit;
Reines[t,level]:=libre;
end
else begin
mark(t,level);
recurse(level+1);
unmark(t,level);
end;
end
until (t=0) or (t=top);
end;
function fact(n:real):real;
begin
if n<=1 then fact:=1
else fact:=n*fact(n-1);
end;
var a:echiquier;
i:integer;
begin
sol:=0;
val(paramstr(1),top,i);
if top>max
then begin
writeln('! ',Top,' a ete remis a ',max,' (max)');
top:=max;
end;
if top<1 then top:=1;
writeln;
writeln(' Le probleme des ',top,' reines FAST (c) 1992-1993 Steven Pigeon');
writeln;
recursions:=0;
fillchar(attaques,sizeof(attaques),libre);
fillchar(Reines,sizeof(Reines),libre);
recurse(1);
writeln;
writeln(' Solutions: ',sol);
writeln(' Recursions: ',recursions,' (au lieu de ',fact(top):0:0,')');
end.
| 24.808824 | 79 | 0.57538 |
f1000e4cfcd6bf28141cdee70d50c9fe897755c1
| 1,914 |
dfm
|
Pascal
|
Chapter12/04_ParksLinuxDaemon/udmParksDB.dfm
|
atkins126/Fearless-Cross-Platform-Development-with-Delphi
|
1fc47e085c82bfa51f0bf2792f22bedc18a72756
|
[
"MIT"
] | null | null | null |
Chapter12/04_ParksLinuxDaemon/udmParksDB.dfm
|
atkins126/Fearless-Cross-Platform-Development-with-Delphi
|
1fc47e085c82bfa51f0bf2792f22bedc18a72756
|
[
"MIT"
] | null | null | null |
Chapter12/04_ParksLinuxDaemon/udmParksDB.dfm
|
atkins126/Fearless-Cross-Platform-Development-with-Delphi
|
1fc47e085c82bfa51f0bf2792f22bedc18a72756
|
[
"MIT"
] | null | null | null |
object dmParksDB: TdmParksDB
OldCreateOrder = False
OnDestroy = DataModuleDestroy
Height = 240
Width = 337
object FDParkConnection: TFDConnection
Params.Strings = (
'Server=192.168.1.15'
'Port=3051'
'User_Name=sysdba'
'Password=masterkey'
'Database=s:\databases\MyParks.ib'
'DriverID=IB')
FetchOptions.AssignedValues = [evUnidirectional]
FetchOptions.Unidirectional = True
ResourceOptions.AssignedValues = [rvStoreItems]
ResourceOptions.StoreItems = []
TxOptions.ReadOnly = True
LoginPrompt = False
Left = 120
Top = 80
end
object qryParkLookup: TFDQuery
Connection = FDParkConnection
SQL.Strings = (
'select PARK_ID, PARK_NAME, LONGITUDE, LATITUDE'
'from Parks'
' where :long between (LONGITUDE - 0.002) and (LONGITUDE + 0.002' +
')'
' and :lat between (LATITUDE - 0.002) and (LATITUDE + 0.002)'
'')
Left = 120
Top = 144
ParamData = <
item
Name = 'LONG'
DataType = ftSingle
ParamType = ptInput
Value = -122.796997070312500000
end
item
Name = 'LAT'
DataType = ftSingle
ParamType = ptInput
Value = 45.590000152587890000
end>
object qryParkLookupPARK_ID: TIntegerField
FieldName = 'PARK_ID'
Origin = 'PARK_ID'
end
object qryParkLookupPARK_NAME: TStringField
FieldName = 'PARK_NAME'
Origin = 'PARK_NAME'
Required = True
Size = 50
end
object qryParkLookupLONGITUDE: TFMTBCDField
FieldName = 'LONGITUDE'
Origin = 'LONGITUDE'
Precision = 9
Size = 6
end
object qryParkLookupLATITUDE: TFMTBCDField
FieldName = 'LATITUDE'
Origin = 'LATITUDE'
Precision = 9
Size = 6
end
end
object FDPhysIBDriverLink: TFDPhysIBDriverLink
Left = 56
Top = 40
end
end
| 25.184211 | 76 | 0.619645 |
f1256a25e0f0c3bb0614ed604f95e6176ee1dafb
| 1,711 |
pas
|
Pascal
|
Source/uvm.pas
|
TCDG/Scammer-ToolBox
|
186320d149ca6eb2195a57c65fbdea2aa63bf37c
|
[
"BSD-3-Clause"
] | 11 |
2016-09-08T20:31:35.000Z
|
2021-04-11T10:34:26.000Z
|
Source/uvm.pas
|
TCDG/Scammer-ToolBox
|
186320d149ca6eb2195a57c65fbdea2aa63bf37c
|
[
"BSD-3-Clause"
] | null | null | null |
Source/uvm.pas
|
TCDG/Scammer-ToolBox
|
186320d149ca6eb2195a57c65fbdea2aa63bf37c
|
[
"BSD-3-Clause"
] | 9 |
2016-09-08T18:57:17.000Z
|
2020-02-08T08:19:38.000Z
|
unit uvm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Imaging.jpeg,
Vcl.StdCtrls, Vcl.ComCtrls, ShellAPI, WinInet, Vcl.Imaging.pngimage;
type
Tfrmvm = class(TForm)
img1: TImage;
lbl1: TLabel;
btn1: TButton;
redt1: TRichEdit;
lbl2: TLabel;
btn2: TButton;
lbl3: TLabel;
btn3: TButton;
lblstatus: TLabel;
img2: TImage;
procedure btn2Click(Sender: TObject);
procedure btn1Click(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmvm: Tfrmvm;
implementation
{$R *.dfm}
procedure Tfrmvm.btn1Click(Sender: TObject);
var
vm : string;
begin
vm := 'http://www.vmware.com/products/workstation/workstation-evaluation.html';
ShellExecute(Application.Handle, PChar('open'), PChar(vm), nil, nil, SW_SHOW);
end;
procedure Tfrmvm.btn2Click(Sender: TObject);
var
msvm : string;
begin
msvm := 'https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/';
ShellExecute(Application.Handle, PChar('open'), PChar(msvm), nil, nil, SW_SHOW);
end;
procedure Tfrmvm.FormActivate(Sender: TObject);
var
bconnected : Boolean;
origin : Cardinal;
begin
bconnected := InternetGetConnectedState(@origin,0);
if bconnected = True then
begin
lblstatus.Caption := 'Online';
lblstatus.Font.Color := clLime;
end
else
begin
lblstatus.Caption := 'Offline!';
lblstatus.Font.Color := clLime;
btn1.Enabled := False;
btn2.Enabled := False;
btn3.Enabled := False;
end;
end;
end.
| 22.220779 | 98 | 0.688486 |
8346ffe6f8db1b51225ea12c27e15aae01ec63cb
| 1,193 |
pas
|
Pascal
|
src/FFIntro.pas
|
tereshenkovav/HoE
|
a73675fcb03367aa5d70d25c2b57a7d7baf0aeca
|
[
"CC0-1.0"
] | 6 |
2019-08-15T06:36:56.000Z
|
2021-06-19T15:11:46.000Z
|
src/FFIntro.pas
|
tereshenkovav/HoE
|
a73675fcb03367aa5d70d25c2b57a7d7baf0aeca
|
[
"CC0-1.0"
] | null | null | null |
src/FFIntro.pas
|
tereshenkovav/HoE
|
a73675fcb03367aa5d70d25c2b57a7d7baf0aeca
|
[
"CC0-1.0"
] | 2 |
2019-08-16T09:32:39.000Z
|
2021-11-16T05:34:51.000Z
|
unit FFIntro;
interface
procedure GoIntro() ;
implementation
uses TAVHGEUtils, SpriteEffects, Effects, ObjModule, HGE, FFStartMenu ;
var SRIntro:TSpriteRender ;
tleft:Single ;
function FrameFuncIntro():Boolean ;
var mx,my:Single ;
i:Integer ;
dt:Single ;
begin
Result:=False ;
dt:=mHGE.Timer_GetDelta ;
if mHGE.Input_KeyDown(HGEK_ESCAPE)or
mHGE.Input_KeyDown(HGEK_SPACE) or
mHGE.Input_KeyDown(HGEK_LBUTTON) then begin
GoStartMenu() ;
Exit ;
end ;
SEPool.Update(dt) ;
tleft:=tleft-dt ;
if tleft<=0 then begin
GoStartMenu() ;
Exit ;
end;
end ;
function RenderFuncIntro():Boolean ;
begin
mHGE.Gfx_BeginScene;
mHGE.Gfx_Clear($00000000);
SRIntro.Render ;
mHGE.Gfx_EndScene;
end;
procedure GoIntro() ;
begin
if SRIntro=nil then
SRIntro:=TSpriteRender.Create(LoadSizedSprite(mHGE,'intro.png'),0,0);
SRIntro.transp:=100 ;
SEPool.DelAllEffects ;
SEPool.AddEffect(TSETransparentLinear.Create(SRIntro,100,0,2000));
mHGE.System_SetState(HGE_FRAMEFUNC,FrameFuncIntro);
mHGE.System_SetState(HGE_RENDERFUNC,RenderFuncIntro);
tleft:=6 ;
end;
end.
| 18.353846 | 74 | 0.680637 |
f1f4a70645c3585f6b8d91e7469fbc2e4198a09a
| 221 |
dpr
|
Pascal
|
RavenTest/RavenTest.dpr
|
thachngopl/Raven-Pascal
|
4ad2e0da0e8497d03755ce7553209366df8d79ed
|
[
"BSD-2-Clause"
] | 10 |
2018-05-18T07:30:48.000Z
|
2022-03-22T19:07:57.000Z
|
RavenTest/RavenTest.dpr
|
thachngopl/Raven-Pascal
|
4ad2e0da0e8497d03755ce7553209366df8d79ed
|
[
"BSD-2-Clause"
] | 3 |
2016-10-28T07:33:14.000Z
|
2018-05-13T15:29:54.000Z
|
RavenTest/RavenTest.dpr
|
thachngopl/Raven-Pascal
|
4ad2e0da0e8497d03755ce7553209366df8d79ed
|
[
"BSD-2-Clause"
] | 2 |
2017-12-15T07:00:47.000Z
|
2018-04-08T19:53:48.000Z
|
program RavenTest;
uses
Vcl.Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
| 14.733333 | 40 | 0.719457 |
61c8916e847ac2b5ceb6bd53640348c201f5ac63
| 3,679 |
pas
|
Pascal
|
Oxygene/Island/GUI/Basic Windows GUI App/Program.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 19 |
2016-04-09T12:40:27.000Z
|
2022-02-22T12:15:03.000Z
|
Oxygene/Island/GUI/Basic Windows GUI App/Program.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 3 |
2017-09-05T09:31:29.000Z
|
2019-09-11T04:49:27.000Z
|
Oxygene/Island/GUI/Basic Windows GUI App/Program.pas
|
remobjects/ElementsSamples
|
744647f59424c18ccb06c0c776b2dcafdabb0513
|
[
"MIT"
] | 11 |
2016-12-29T19:30:39.000Z
|
2021-08-31T12:20:27.000Z
|
namespace BasicWindowsApp;
uses
rtl;
type
Program = class
public
class var szTitle: LPCWSTR := 'RemObjects Elements — Island Windows Sample';
class var szWindowClass: LPCWSTR := 'IslandWindowsSample';
class var fButton: HWND;
[CallingConvention(CallingConvention.Stdcall)]
class method WndProc(hWnd: HWND; message: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT;
begin
case message of
WM_COMMAND:
if (wParam = BN_CLICKED) and (lParam = rtl.LPARAM(fButton)) then begin
MessageBox(hWnd, 'You clicked, hello there!', szTitle, 0);
end;
WM_CLOSE:
PostQuitMessage(0);
end;
result := DefWindowProc(hWnd, message, wParam, lParam);
end;
class method Main(args: array of String): Int32;
begin
//
// Set up and Register the Windows Class
//
var lWindowClass: WNDCLASSEX;
lWindowClass.cbSize := sizeOf(WNDCLASSEX);
lWindowClass.style := CS_HREDRAW or CS_VREDRAW;
lWindowClass.lpfnWndProc := @WndProc;
lWindowClass.cbClsExtra := 0;
lWindowClass.cbWndExtra := 0;
lWindowClass.hInstance := rtl.GetModuleHandleW(nil);
lWindowClass.hIcon := LoadIcon(lWindowClass.hInstance, LPCWSTR(IDI_APPLICATION));
lWindowClass.hCursor := LoadCursor(nil, LPCWSTR(IDC_ARROW));
lWindowClass.hbrBackground := HBRUSH(COLOR_WINDOW + 1);
lWindowClass.lpszMenuName := nil;
lWindowClass.lpszClassName := szWindowClass;
if RegisterClassEx(@lWindowClass) = 0 then begin
MessageBox(nil, 'Call to RegisterClassEx failed', szTitle, 0);
exit 0;
end;
//
// Create the Window
//
var lWindow := CreateWindowExW(0,
szWindowClass,
szTitle,
WS_OVERLAPPED or WS_CAPTION or WS_SYSMENU,
CW_USEDEFAULT,
CW_USEDEFAULT,
400, 300,
nil,
nil,
lWindowClass.hInstance,
nil);
if lWindow = nil then begin
MessageBox(nil, 'Call to CreateWindowExW failed', szTitle, 0);
exit 0;
end;
//
// Add a button to it
//
fButton := CreateWindowEx(0,
'BUTTON', // Predefined class; Unicode assumed
'Click Me', // Button text
WS_TABSTOP or WS_VISIBLE or WS_CHILD or BS_DEFPUSHBUTTON, // Styles
130, // x position
70, // y position
100, // Button width
25, // Button height
lWindow, // Parent window
nil, // No menu.
lWindowClass.hInstance,
nil); // Pointer not needed.
//
// Show the Window
//
ShowWindow(lWindow, SW_SHOW);
UpdateWindow(lWindow);
//
// Finally, run the main Windows message loop
//
var lMsg: MSG;
while GetMessage(@lMsg, nil, 0, 0) do begin
TranslateMessage(@lMsg);
DispatchMessage(@lMsg);
end;
result := Integer(lMsg.wParam);
end;
end;
end.
| 32.848214 | 100 | 0.489263 |
f1037bb1b39eee90157ee2deaecf96eb9e35ba3a
| 7,167 |
pas
|
Pascal
|
samples/BenchMark.pas
|
atkins126/ZapMQ-Delphi-Wrapper
|
cb18de9d162032c60a2dd08699dc248c4a644fa9
|
[
"MIT"
] | 5 |
2021-02-18T11:55:28.000Z
|
2021-05-17T16:29:57.000Z
|
samples/BenchMark.pas
|
atkins126/ZapMQ-Delphi-Wrapper
|
cb18de9d162032c60a2dd08699dc248c4a644fa9
|
[
"MIT"
] | null | null | null |
samples/BenchMark.pas
|
atkins126/ZapMQ-Delphi-Wrapper
|
cb18de9d162032c60a2dd08699dc248c4a644fa9
|
[
"MIT"
] | 2 |
2021-02-19T05:13:18.000Z
|
2021-03-05T08:40:14.000Z
|
unit BenchMark;
interface
uses
System.Classes, SyncObjs, ZapMQ.Wrapper, ZapMQ.Message.JSON, BenchMarkResults,
JSON;
type
TBenchMark = class(TThread)
private
FEvent : TEvent;
FZapMQWrapper : TZapMQWrapper;
FBenchMark : TBenchMarkResults;
FCycles: integer;
FStartedTime : TDateTime;
FFinishedTime : TDateTime;
FQueues: integer;
FTTL: Cardinal;
procedure BenchMarkExpired(const pMessage : TZapJSONMessage);
procedure BenchMarkHandlerRPC(pMessage: TJSONObject; var pProcessing : boolean);
procedure Print;
function GetTotalMessagesExpired : integer;
function GetTotalMessagesRecived : integer;
function GetTotalMessagesOk : integer;
function GetLatency : integer;
function GetConnectLatency : integer;
procedure SetCycles(const Value: integer);
procedure SetQueues(const Value: integer);
procedure SetTTL(const Value: Cardinal);
public
property SyncEvent : TEvent read FEvent write FEvent;
property Cycles : integer read FCycles write SetCycles;
property Queues : integer read FQueues write SetQueues;
property TTL : Cardinal read FTTL write SetTTL;
procedure Execute; override;
procedure Stop;
constructor Create(const pHost : string; const pPort : integer); overload;
destructor Destroy; override;
end;
implementation
uses
System.SysUtils, System.DateUtils, uMain;
{ TBenchMark }
procedure TBenchMark.BenchMarkHandlerRPC(pMessage: TJSONObject; var pProcessing : boolean);
var
Cycle, Queue : integer;
Resultb : TBenchMarkResult;
Body : TJSONObject;
begin
Body := pMessage.GetValue<TJSONObject>('Body');
Cycle := Body.GetValue<integer>('Cycle');
Queue := Body.GetValue<integer>('Queue');
Resultb := FBenchMark.FindResult(Cycle, Queue);
if Assigned(Resultb) then
begin
Resultb.Expired := False;
Resultb.Arrived := Now;
Resultb.Latency := MilliSecondsBetween(Resultb.Arrived, Resultb.Sended);
Resultb.Checked := True;
end;
pProcessing := False;
end;
constructor TBenchMark.Create(const pHost : string; const pPort : integer);
begin
inherited Create(True);
FEvent := TEvent.Create(nil, True, False, '');
FZapMQWrapper := TZapMQWrapper.Create(pHost, pPort);
FZapMQWrapper.OnRPCExpired := BenchMarkExpired;
FBenchMark := TBenchMarkResults.Create;
end;
destructor TBenchMark.Destroy;
begin
FZapMQWrapper.Free;
FBenchMark.Free;
FEvent.Free;
inherited;
end;
procedure TBenchMark.Execute;
var
I, J : integer;
JSON : TJSONObject;
Resultb : TBenchMarkResult;
begin
inherited;
while not Terminated do
begin
FStartedTime := Now;
for J := 1 to Cycles do
begin
for I := 1 to Queues do
begin
JSON := TJSONObject.Create;
JSON.AddPair('Cycle', J.ToString);
JSON.AddPair('Queue', I.ToString);
try
Resultb := TBenchMarkResult.Create;
Resultb.Created := Now;
Resultb.Checked := False;
if FZapMQWrapper.SendRPCMessage('BenchMark' + I.ToString, JSON, BenchMarkHandlerRPC, FTTL) then
begin
Resultb.Latency := 0;
Resultb.Expired := False;
Resultb.Cycle := J;
Resultb.Queue := I;
Resultb.Sended := Now;
Resultb.ConnectLatency := MilliSecondsBetween(Now, Resultb.Created);
FBenchMark.Results.Add(Resultb);
end;
finally
JSON.Free;
end;
end;
end;
while GetTotalMessagesRecived < (Cycles * Queues) do ;
FFinishedTime := Now;
Synchronize(TThread.Current, procedure
begin
Print;
FBenchMark.Results.Clear;
end);
FEvent.ResetEvent;
FEvent.WaitFor(INFINITE);
end;
end;
function TBenchMark.GetConnectLatency: integer;
var
TotalLatency : Cardinal;
ResultB : TBenchMarkResult;
begin
TotalLatency := 0;
Result := 0;
for ResultB in FBenchMark.Results do
begin
if not ResultB.Expired then
TotalLatency := TotalLatency + Resultb.ConnectLatency;
end;
if FBenchMark.Results.Count > 0 then
begin
Result := Trunc(TotalLatency / GetTotalMessagesRecived);
end;
end;
function TBenchMark.GetLatency: integer;
var
TotalLatency : Cardinal;
ResultB : TBenchMarkResult;
begin
TotalLatency := 0;
Result := 0;
for ResultB in FBenchMark.Results do
begin
if not ResultB.Expired then
TotalLatency := TotalLatency + Resultb.Latency;
end;
if FBenchMark.Results.Count > 0 then
begin
Result := Trunc(TotalLatency / GetTotalMessagesRecived);
end;
end;
function TBenchMark.GetTotalMessagesExpired: integer;
var
ResultB : TBenchMarkResult;
begin
Result := 0;
for ResultB in FBenchMark.Results do
begin
if ResultB.Expired then
Inc(Result);
end;
end;
function TBenchMark.GetTotalMessagesOk: integer;
var
ResultB : TBenchMarkResult;
begin
Result := 0;
for ResultB in FBenchMark.Results do
begin
if not ResultB.Expired then
Inc(Result);
end;
end;
function TBenchMark.GetTotalMessagesRecived: integer;
var
ResultB : TBenchMarkResult;
begin
Result := 0;
for ResultB in FBenchMark.Results do
begin
if ResultB.Checked then
Inc(Result);
end;
end;
procedure TBenchMark.Print;
begin
FrmMain.Memo1.Lines.Add('***** BenchMark Result *****');
FrmMain.Memo1.Lines.Add('Time Elapsed (miliseconds) : ' + MilliSecondsBetween(FStartedTime, FFinishedTime).ToString);
FrmMain.Memo1.Lines.Add('Cycles : ' + Cycles.ToString);
FrmMain.Memo1.Lines.Add('Queues : ' + Queues.ToString);
FrmMain.Memo1.Lines.Add('Total Messages Sended :' + IntToStr(Queues * Cycles));
FrmMain.Memo1.Lines.Add('Total Messages Recived :' + GetTotalMessagesOk.ToString);
FrmMain.Memo1.Lines.Add('Total Messages Expired :' + GetTotalMessagesExpired.ToString);
FrmMain.Memo1.Lines.Add('Average Latency (miliseconds) :' + GetLatency.ToString);
FrmMain.Memo1.Lines.Add('Average Connect Latency (miliseconds) :' + GetConnectLatency.ToString);
FrmMain.Memo1.Lines.Add('***** ---------------- *****');
FrmMain.ActivityIndicator1.Animate := False;
FrmMain.Button9.Enabled := True;
end;
procedure TBenchMark.BenchMarkExpired(const pMessage: TZapJSONMessage);
var
Cycle, Queue : integer;
Resultb : TBenchMarkResult;
begin
Cycle := pMessage.Body.GetValue<integer>('Cycle');
Queue := pMessage.Body.GetValue<integer>('Queue');
Resultb := FBenchMark.FindResult(Cycle, Queue);
if Assigned(Resultb) then
begin
ResultB.Latency := 1;
ResultB.Expired := True;
Resultb.Arrived := Now;
Resultb.Checked := True;
end;
end;
procedure TBenchMark.SetCycles(const Value: integer);
begin
FCycles := Value;
end;
procedure TBenchMark.SetQueues(const Value: integer);
begin
FQueues := Value;
end;
procedure TBenchMark.SetTTL(const Value: Cardinal);
begin
FTTL := Value;
end;
procedure TBenchMark.Stop;
begin
Terminate;
FEvent.SetEvent;
while not Terminated do;
end;
end.
| 27.354962 | 120 | 0.678108 |
f13bb70a120efff5d9817ec36027917778a14afe
| 3,247 |
dpr
|
Pascal
|
Demo/Event Handler/Standard/EventHandling.dpr
|
CrystalNet-Tech/dotNet4Delphi_Tutorials
|
5d464610de74b211adf5e73d32712b8b16ff688b
|
[
"Apache-2.0"
] | 1 |
2020-09-24T15:36:09.000Z
|
2020-09-24T15:36:09.000Z
|
Demo/Event Handler/Standard/EventHandling.dpr
|
CrystalNet-Tech/dotNet4Delphi_Tutorials
|
5d464610de74b211adf5e73d32712b8b16ff688b
|
[
"Apache-2.0"
] | null | null | null |
Demo/Event Handler/Standard/EventHandling.dpr
|
CrystalNet-Tech/dotNet4Delphi_Tutorials
|
5d464610de74b211adf5e73d32712b8b16ff688b
|
[
"Apache-2.0"
] | 1 |
2020-10-09T08:03:36.000Z
|
2020-10-09T08:03:36.000Z
|
program EventHandling;
{$APPTYPE CONSOLE}
{$R *.res}
uses
{$IF CompilerVersion > 22}
System.SysUtils, System.Variants,
{$ELSE}
SysUtils, Variants,
{$IFEND }
CNClrLib.Host, CNClrLib.Core;
var
Console : _Console;
SQLConnection : TClrObject;
ConnectionString : WideString;
(*
//C# Delegate of SqlConnection.StateChange event
public delegate void StateChangeEventHandler(object sender, StateChangeEventArgs e);
public enum ConnectionState
{
Closed = 0,
Open = 1,
Connecting = 2,
Executing = 4,
Fetching = 8,
Broken = 16,
}
public sealed class StateChangeEventArgs
{
public ConnectionState CurrentState { get; }
public ConnectionState OriginalState { get; }
}
*)
//Corresponding Delphi Event Handler Callback method
procedure StateChangeEventHandler(ASender : _ClrObject; StateChangeEventArgs : _ClrEventArgs); stdcall;
var
m_eventArgs : _ClrObject;
m_currentState,
m_originalState : Integer;
procedure WriteStateChage(State : Integer);
begin
case State of
0: Console.Write_22('Closed');
1: Console.Write_22('Open');
2: Console.Write_22('Connecting');
4: Console.Write_22('Executing');
8: Console.Write_22('Fetching');
16: Console.Write_22('Broken');
end;
Console.WriteLine;
end;
begin
m_eventArgs := CoClrObject.Wrap(StateChangeEventArgs.EventArgs);
m_currentState := m_eventArgs.GetPropertyValue('CurrentState');
m_originalState := m_eventArgs.GetPropertyValue('OriginalState');
Console.Write_22('Current State : ');
WriteStateChage(m_currentState);
Console.Write_22('Original State : ');
WriteStateChage(m_originalState);
end;
procedure OpenAndCloseSQLConnection;
begin
SQLConnection.SetPropertyValue('ConnectionString', ConnectionString);
SQLConnection.InvokeMethod('Open');
Console.WriteLine_14('Connection Opened');
SQLConnection.InvokeMethod('Close');
Console.WriteLine_14('Connection Closed');
end;
begin
Console := CoConsole.CreateInstance;
Console.WriteLine_14('Hello! Welcome to .Net Runtime Library for Delphi.');
Console.WriteLine_14('==================================================');
Console.WriteLine_14('This program demonstrates how to handle events and callback.');
Console.WriteLine;
try
//Load Assembly
TClrAssembly.LoadWithPartialName('System.Data');
//Create Instance of System.Data.SqlClient.SqlConnection Type
SQLConnection := TClrObject.Create(TClrActivator.ClrCreateInstance('System.Data.SqlClient.SqlConnection'));
SQLConnection.RegisterEventCallBack('StateChange', @StateChangeEventHandler);
try
ConnectionString := 'Data Source=myServerAddress;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword';
Console.WriteLine_15('Connecting to : {0}', ConnectionString);
Console.WriteLine;
OpenAndCloseSQLConnection;
finally
SQLConnection.Free;
end;
except
on E: Exception do
Console.WriteLine_15('Exception: {0}', E.Message);
end;
Console.ReadKey;
end.
| 28.734513 | 123 | 0.674469 |
6182a20455e024811e54ecd0dfcee7b860c002fc
| 16,344 |
pas
|
Pascal
|
Parte 3/units/sdlGame.pas
|
fabianosalles/building-a-game-in-pascal
|
364905774811a481f5e560527d31b15311f5859f
|
[
"MIT"
] | 8 |
2015-08-04T00:59:31.000Z
|
2019-11-04T02:15:42.000Z
|
Parte 3/units/sdlGame.pas
|
fabianosalles/building-a-game-in-pascal
|
364905774811a481f5e560527d31b15311f5859f
|
[
"MIT"
] | 1 |
2016-05-17T12:30:51.000Z
|
2017-07-22T18:51:52.000Z
|
Parte 3/units/sdlGame.pas
|
fabianosalles/building-a-game-in-pascal
|
364905774811a481f5e560527d31b15311f5859f
|
[
"MIT"
] | 2 |
2016-05-17T11:16:13.000Z
|
2020-06-16T16:19:28.000Z
|
unit sdlGame;
{$mode objfpc}{$H+}
interface
uses
sysutils,
classes,
SDL2,
sdl2_ttf,
sdl2_image,
sdlGameEnemies,
sdlGamePlayer,
sdlGameObjects,
sdlGameTypes,
sdlGameText,
sdlGameUtils;
type
TSpriteKind = (
EnemyA = 0,
EnemyB = 1,
EnemyC = 2,
EnemyD = 3,
Player = 4,
Bunker = 5,
Garbage = 6,
Explosion = 7,
ShotA = 8,
Leds = 9
);
{ TGame }
TGame = class
strict private
const
WINDOW_TITLE = 'Delphi Games - Space Invaders';
var
fRunning : boolean;
fWindow : PSDL_Window;
fWindowSurface : PSDL_Surface;
fRenderer : PSDL_Renderer;
fFrameCounter : TFPSCounter;
fTextures : array of TTexture;
fEnemies : TEnemyList;
fPlayer : TPlayer;
fJoystick : PSDL_Joystick;
fShots : TShotList;
fDebugView : boolean;
fGameFonts : TGameFonts;
fGameText : TGameTextManager;
fScore : integer;
procedure Quit;
procedure CheckDevices;
procedure HandleEvents;
procedure Render;
procedure CheckCollision;
procedure Update(const deltaTime : real);
procedure LoadTextures;
procedure FreeTextures;
procedure SetDebugView(const aValue: boolean);
procedure ScreenShot;
procedure CreateGameObjects;
procedure CreateFonts;
procedure FreeFonts;
procedure DrawGameObjects;
procedure DrawDebugInfo;
procedure DrawDebgText;
procedure DrawDebugGrid;
procedure DrawGUI;
procedure FreeGameObjects;
procedure OnFPSCounterUpdated(Sender: TFPSCounter; Counted: word);
function GetDrawMode: TDrawMode;
function LoadPNGTexture( const fileName: string ) : TTexture;
procedure doPlayer_OnShot(Sender: TGameObject);
procedure doShots_OnCollided(Sender, Suspect: TGameObject; var StopChecking: boolean);
public
constructor Create;
destructor Destroy; override;
procedure Initialize;
procedure Run;
property Running: boolean read fRunning;
end;
implementation
procedure TGame.Initialize;
var
flags, result: integer;
begin
if ( SDL_Init( SDL_INIT_VIDEO or SDL_INIT_TIMER or SDL_INIT_JOYSTICK ) <> 0 )then
raise SDLException.Create(SDL_GetError);
fWindow := SDL_CreateWindow( PAnsiChar( WINDOW_TITLE ),
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
SCREEN_WIDTH,
SCREEN_HEIGHT,
SDL_WINDOW_SHOWN);
if fWindow = nil then
raise SDLException.Create(SDL_GetError);
fWindowSurface := SDL_GetWindowSurface( fWindow );
if fWindowSurface = nil then
raise SDLException.Create(SDL_GetError);
fRenderer := SDL_CreateRenderer(fWindow, -1, SDL_RENDERER_ACCELERATED {or SDL_RENDERER_PRESENTVSYNC});
if fRenderer = nil then
raise SDLException.Create(SDL_GetError);
flags := IMG_INIT_PNG;
result := IMG_Init( flags );
if ( ( result and flags ) <> flags ) then
raise SDLImageException.Create( IMG_GetError );
result := TTF_Init;
if ( result <> 0 ) then
raise SDLTTFException( TTF_GetError );
LoadTextures;
CreateFonts;
CreateGameObjects;
fGameText := TGameTextManager.Create( fRenderer );
end;
procedure TGame.Quit;
begin
FreeGameObjects;
FreeTextures;
FreeFonts;
fGameText.Free;
if fJoystick <> nil then
begin
SDL_JoystickClose(fJoystick);
fJoystick:= nil;
end;
fFrameCounter.Free;
SDL_DestroyRenderer(fRenderer);
SDL_DestroyWindow(fWindow);
IMG_Quit;
SDL_Quit;
end;
procedure TGame.CheckDevices;
var
numJoysticks: SInt32;
begin
numJoysticks:= SDL_NumJoysticks;
if (numJoysticks > 0) then
begin
if (fJoystick = nil) then
begin
fJoystick:= SDL_JoystickOpen(0);
exit;
end;
end
else
if fJoystick <> nil then
begin
SDL_JoystickClose(fJoystick);
fJoystick := nil;
exit;
end;
end;
procedure TGame.HandleEvents;
var
event : TSDL_Event;
begin
while SDL_PollEvent( @event ) = 1 do
begin
case event.type_ of
SDL_QUITEV : fRunning := false;
SDL_KEYDOWN :
case event.key.keysym.sym of
//player controls
SDLK_LEFT, SDLK_A : fPlayer.Input[Ord(TPlayerInput.Left)] := true;
SDLK_RIGHT, SDLK_D : fPlayer.Input[Ord(TPlayerInput.Right)]:= true;
SDLK_SPACE : fPlayer.Input[Ord(TPlayerInput.Shot)] := true;
SDLK_p : ScreenShot;
SDLK_g : SetDebugView( not fDebugView );
SDLK_ESCAPE : fRunning := false;
end;
SDL_KEYUP :
case event.key.keysym.sym of
//player controls
SDLK_LEFT, SDLK_A : fPlayer.Input[Ord(TPlayerInput.Left)] := false;
SDLK_RIGHT, SDLK_D : fPlayer.Input[Ord(TPlayerInput.Right)]:= false;
SDLK_SPACE : fPlayer.Input[Ord(TPlayerInput.Shot)] := false;
end;
SDL_JOYAXISMOTION :
case event.jaxis.axis of
//X axis motion
0 : begin
fPlayer.Input[Ord(TPlayerInput.Left)] := false;
fPlayer.Input[Ord(TPlayerInput.Right)] := false;
if event.jaxis.value > 0 then
fPlayer.Input[Ord(TPlayerInput.Right)] := true
else
if event.jaxis.value < 0 then
fPlayer.Input[Ord(TPlayerInput.Left)] := true
end;
end;
SDL_JOYBUTTONUP :
case event.jbutton.button of
0, 1, 2, 3 : fPlayer.Input[Ord(TPlayerInput.Shot)] := false;
end;
SDL_JOYBUTTONDOWN :
case event.jbutton.button of
0, 1, 2, 3 : fPlayer.Input[Ord(TPlayerInput.Shot)] := true;
end;
end;
end;
end;
procedure TGame.Render;
begin
SDL_SetRenderDrawColor( fRenderer, 0, 0, 0, SDL_ALPHA_OPAQUE );
SDL_RenderClear( fRenderer );
DrawGameObjects;
DrawDebugInfo;
DrawGUI;
SDL_RenderPresent( fRenderer );
fFrameCounter.Increment;
end;
procedure TGame.CheckCollision;
var
i : integer;
shotList : TShotList;
suspectList : TEnemyList;
begin
//check all shots going upwards with all alive enemies
if (fShots.Count > 0) and ( fEnemies.Count > 0 ) then
try
shotList := fShots.FilterByDirection( TShotDirection.Up );
suspectList := fEnemies.FilterByLife( true );
for i:=0 to Pred(shotList.Count) do
TShot(shotList[i]).CheckCollisions( suspectList );
finally
shotList.Free;
suspectList.Free;
end;
end;
procedure TGame.Update(const deltaTime : real ) ;
begin
fPlayer.Update( deltaTime );
fEnemies.Update( deltaTime );
fShots.Update( deltaTime );
end;
procedure TGame.LoadTextures;
begin
SetLength(fTextures, Ord( High( TSpriteKind ) ) +1 );
fTextures[ ord(TSpriteKind.EnemyA) ] := LoadPNGTexture( 'enemy_a.png' );
fTextures[ ord(TSpriteKind.EnemyB) ] := LoadPNGTexture( 'enemy_b.png' );
fTextures[ ord(TSpriteKind.EnemyC) ] := LoadPNGTexture( 'enemy_c.png' );
fTextures[ ord(TSpriteKind.EnemyD) ] := LoadPNGTexture( 'enemy_d.png' );
fTextures[ ord(TSpriteKind.Player) ] := LoadPNGTexture( 'player.png' );
fTextures[ ord(TSpriteKind.Bunker) ] := LoadPNGTexture( 'bunker.png' );
fTextures[ ord(TSpriteKind.Garbage)] := LoadPNGTexture( 'garbage.png' );
fTextures[ ord(TSpriteKind.Explosion)] := LoadPNGTexture( 'explosion.png' );
fTextures[ ord(TSpriteKind.ShotA) ] := LoadPNGTexture( 'shot_a.png' );
fTextures[ ord(TSpriteKind.Leds) ] := LoadPNGTexture( 'leds.png' );
end;
procedure TGame.FreeTextures;
var
i: integer;
begin
for i:= low(fTextures) to High(fTextures) do
SDL_FreeSurface( fTextures[ i ].Data );
SetLength(fTextures, 0);
end;
procedure TGame.SetDebugView(const aValue: boolean);
begin
fDebugView := aValue;
fShots.SetDrawMode(GetDrawMode);
fEnemies.SetDrawMode(GetDrawMode);
end;
procedure TGame.ScreenShot;
const
SCREENSHOT_DIR = '.\screenshots\';
SCREENSHOT_PREFIX = 'shot';
function GetNewFileName: string;
var
i: integer;
begin
i:= 0;
result := Format('%s-%.3d.bmp', [SCREENSHOT_DIR + SCREENSHOT_PREFIX, i]);
while FileExists(result) do
begin
result := Format('%s-%.3d.bmp', [SCREENSHOT_DIR + SCREENSHOT_PREFIX, i]);
Inc(i);
end;
end;
var
surface : PSDL_Surface;
begin
surface:= nil;
try
surface:= SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32,
$00FF0000, $0000FF00, $000000FF, $FF000000);
SDL_RenderReadPixels( fRenderer, nil, SDL_PIXELFORMAT_ARGB8888, surface^.pixels, surface^.pitch );
ForceDirectories(SCREENSHOT_DIR);
SDL_SaveBMP(surface, GetNewFileName);
finally
SDL_FreeSurface( surface );
end;
end;
procedure TGame.CreateGameObjects;
var
i : integer;
enemy : TEnemy;
begin
for i:= 0 to 119 do
begin
case i of
00..39 :
begin
enemy := TEnemyC.Create( fRenderer );
enemy.Sprite.Texture.Assign( fTextures[ integer(TSpriteKind.EnemyC) ] );
enemy.Sprite.InitFrames(1, 2);
end;
40..79 :
begin
enemy := TEnemyB.Create( fRenderer );
enemy.Sprite.Texture.Assign( fTextures[ integer(TSpriteKind.EnemyB) ] );
enemy.Sprite.InitFrames(1, 2);
end;
80..119 :
begin
enemy := TEnemyA.Create( fRenderer );
enemy.Sprite.Texture.Assign( fTextures[ integer(TSpriteKind.EnemyA) ] );
enemy.Sprite.InitFrames(1, 2);
end;
end;
enemy.Position.X := DEBUG_CELL_SIZE + ( i mod 20 ) * DEBUG_CELL_SIZE ;
enemy.Position.Y := 2* DEBUG_CELL_SIZE + ( i div 20 ) * DEBUG_CELL_SIZE ;
fEnemies.Add( enemy );
end;
fPlayer := TPlayer.Create( fRenderer );
fPlayer.Sprite.Texture.Assign( fTextures[ integer(TSpriteKind.Player)] );
fPlayer.Sprite.InitFrames(1,1);
fPlayer.OnShotTriggered:= @doPlayer_OnShot;
fPlayer.Position.X := trunc( SCREEN_HALF_WIDTH - ( fPlayer.Sprite.Texture.W / 2 ));
fPlayer.Position.Y := (DEBUG_CELL_SIZE * 18) - fPlayer.Sprite.CurrentFrame.Rect.h;
fShots := TShotList.Create(true);
end;
procedure TGame.CreateFonts;
const
FONTS_DIR = '.\assets\fonts\';
begin
fGameFonts := TGameFonts.Create( fRenderer );
fGameFonts.LoadFonts( FONTS_DIR );
end;
procedure TGame.FreeFonts;
begin
fGameFonts.Free;
end;
procedure TGame.DrawGameObjects;
begin
fPlayer.Draw;
fEnemies.Draw;
fShots.Draw;
end;
procedure TGame.DrawDebugInfo;
var
source, dest : TSDL_Rect;
begin
DrawDebugGrid;
//desenha o led do sensor do controle
dest.x := 10;
dest.y := DEBUG_CELL_SIZE div 2;
dest.w := 16;
dest.h := 16;
source.y := 0;
source.w := 16;
source.h := 16;
if SDL_NumJoysticks > 0 then
begin
source.x := 0;
fGameText.Draw('GAME CONTROLLER FOUND', 32, 19, fGameFonts.DebugNormal);
end
else
begin
source.x := 16;
fGameText.Draw('GAME CONTROLLER NOT FOUND', 32, 19, fGameFonts.DebugError);
end;
SDL_RenderCopy( fRenderer, fTextures[Ord(TSpriteKind.Leds)].Data, @source, @dest);
DrawDebgText;
end;
procedure TGame.DrawDebgText;
begin
fGameText.Draw(Format('SHOTS: %d', [fShots.Count]),
SCREEN_WIDTH-80, 20,
fGameFonts.DebugNormal);
end;
procedure TGame.DrawDebugGrid;
procedure HighlightSecions;
var
lPlayerBoundary : TSDL_Rect;
lEnemyBoundary : TSDL_Rect;
begin
lPlayerBoundary.x := DEBUG_CELL_SIZE;
lPlayerBoundary.y := DEBUG_CELL_SIZE * 17;
lPlayerBoundary.w := SCREEN_WIDTH - (2 * DEBUG_CELL_SIZE);
lPlayerBoundary.h := DEBUG_CELL_SIZE;
lEnemyBoundary.x := DEBUG_CELL_SIZE;
lEnemyBoundary.y := DEBUG_CELL_SIZE + DEBUG_CELL_SIZE;
lEnemyBoundary.w := SCREEN_WIDTH - (2 * DEBUG_CELL_SIZE);
lEnemyBoundary.h := DEBUG_CELL_SIZE * 14;
SDL_SetRenderDrawBlendMode(fRenderer, SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawColor(fRenderer, 255, 0, 0, 50);
SDL_RenderFillRect( fRenderer, @lPlayerBoundary );
SDL_RenderFillRect( fRenderer, @lEnemyBoundary );
end;
var
i, x, y : integer;
begin
if fDebugView then
begin
HighlightSecions;
SDL_SetRenderDrawBlendMode(fRenderer, SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawColor(fRenderer, 255, 0, 0, 130);
//draw horizontal lines
for i:=0 to DEBUG_CELL_COUNT_H do
begin
y := i*DEBUG_CELL_SIZE;
SDL_RenderDrawLine(fRenderer, 0, y, SCREEN_WIDTH, y);
end;
//draw vertical lines
for i:=0 to DEBUG_CELL_COUNT_V-1 do
begin
x := i* DEBUG_CELL_SIZE;
SDL_RenderDrawLine(fRenderer, x, 0, x, SCREEN_HEIGHT);
end;
//draw center lines in green
SDL_SetRenderDrawColor(fRenderer, 0, 200, 0, 130);
SDL_RenderDrawLine( fRenderer, SCREEN_HALF_WIDTH, 0, SCREEN_HALF_WIDTH, SCREEN_HEIGHT);
SDL_RenderDrawLine( fRenderer, 0, SCREEN_HALF_HEIGHT, SCREEN_WIDTH, SCREEN_HALF_HEIGHT);
end;
end;
procedure TGame.DrawGUI;
begin
SDL_SetRenderDrawColor(fRenderer, 255, 255, 0, 255);
SDL_RenderDrawLine( fRenderer, 0,
round(DEBUG_CELL_SIZE * 1.5),
SCREEN_WIDTH,
round(DEBUG_CELL_SIZE * 1.5));
fGameText.Draw( Format('SCORE %.6d', [fScore]), 290, 12, fGameFonts.GUI );
end;
procedure TGame.FreeGameObjects;
begin
fEnemies.Free;
fShots.Free;
end;
procedure TGame.OnFPSCounterUpdated(Sender: TFPSCounter; Counted: word);
var
title: string;
begin
Str(Counted, title);
title := WINDOW_TITLE + ' - FPS: ' + title;
SDL_SetWindowTitle( fWindow, PAnsiChar(title) );
end;
function TGame.GetDrawMode: TDrawMode;
begin
if (fDebugView) then
result := TDrawMode.Debug
else
result := TDrawMode.Normal;
end;
function TGame.LoadPNGTexture( const fileName: string ): TTexture;
const
IMAGE_DIR = '.\assets\images\';
var
temp : PSDL_Surface;
begin
result := TTexture.Create;
result.W := 0;
result.H := 0;
result.Data := nil;
try
temp := IMG_Load( PAnsiChar( IMAGE_DIR + fileName ) );
if ( temp = nil ) then
raise SDLException.Create( SDL_GetError )
else
begin
result.W := temp^.w;
result.H := temp^.h;
result.Data := SDL_CreateTextureFromSurface( fRenderer, temp );
if ( result.Data = nil ) then
raise SDLImageException.Create( IMG_GetError );
end;
finally
SDL_FreeSurface( temp );
end;
end;
procedure TGame.doPlayer_OnShot(Sender: TGameObject);
var
player : TPlayer;
shot : TShot;
begin
if (Sender is TPlayer) then
begin
player := TPlayer(Sender);
shot := TShot.Create( fRenderer );
shot.Sprite.Texture.Assign( fTextures[ Ord(TSpriteKind.ShotA) ] );
shot.Sprite.InitFrames( 1,1 );
shot.Position := player.ShotSpawnPoint;
shot.Position.X -= (shot.Sprite.CurrentFrame.Rect.w / 2);
shot.OnCollided := @doShots_OnCollided;
shot.DrawMode := GetDrawMode;
fShots.Add( shot );
end;
end;
procedure TGame.doShots_OnCollided(Sender, Suspect: TGameObject; var StopChecking: boolean);
var
shot : TShot;
enemy : TEnemy;
begin
if ( Sender is TShot ) then
begin
if (Suspect is TEnemy) and (TEnemy(Suspect).HP > 0) then
begin
shot := TShot(Sender);
enemy := TEnemy(Suspect);
enemy.Hit( 1 );
if enemy.Alive then
Inc(fScore, 10)
else
Inc(fScore, 100);
fShots.Remove( shot );
StopChecking := true;
end;
end;
end;
constructor TGame.Create;
begin
fRunning := false;
fJoystick := nil;
fDebugView := false;
fEnemies := TEnemyList.Create;
fFrameCounter := TFPSCounter.Create;
fScore := 0;
fFrameCounter.OnNotify:= @OnFPSCounterUpdated;
end;
destructor TGame.Destroy;
begin
Quit;
inherited;
end;
procedure TGame.Run;
var
deltaTime : real;
thisTime, lastTime : UInt32;
begin
deltaTime := 0.0;
thisTime := 0;
lastTime := 0;
fRunning := true;
while fRunning do
begin
thisTime := SDL_GetTicks;
deltaTime := real((thisTime - lastTime) / MSecsPerSec);
lastTime := thisTime;
CheckDevices;
HandleEvents;
Update( deltaTime );
CheckCollision;
Render;
SDL_Delay(1);
end;
end;
end.
| 24.952672 | 104 | 0.649902 |
83fe7c16d0e1cbbd40b83e815bc3417340dc957c
| 17,421 |
pas
|
Pascal
|
Quake_Delphi_Sources/src/snd_win.pas
|
delphi-pascal-archive/quake-delphi-sources
|
d7b90ca29ea43f9f7f11bb3646bee5050b100509
|
[
"Unlicense"
] | null | null | null |
Quake_Delphi_Sources/src/snd_win.pas
|
delphi-pascal-archive/quake-delphi-sources
|
d7b90ca29ea43f9f7f11bb3646bee5050b100509
|
[
"Unlicense"
] | null | null | null |
Quake_Delphi_Sources/src/snd_win.pas
|
delphi-pascal-archive/quake-delphi-sources
|
d7b90ca29ea43f9f7f11bb3646bee5050b100509
|
[
"Unlicense"
] | null | null | null |
// ------------------------------------------------------------------------------
//
// Copyright (C) 1996-1997 Id Software, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// ------------------------------------------------------------------------------
// Roman Vereshagin
// Valavanis Jim
//
{$Z4}
unit snd_win;
interface
function SNDDMA_Init: integer;
function SNDDMA_GetDMAPos: integer;
procedure SNDDMA_Submit;
procedure SNDDMA_Shutdown;
procedure S_BlockSound;
procedure S_UnblockSound;
implementation
uses
Windows,
MMSystem,
DirectX,
Unit_SysTools,
sound,
gl_vidnt,
snd_dma_h,
console,
common,
snd_win_h;
// 64K is > 1 second at 16-bit, 22050 Hz
const
WAV_BUFFERS = 64;
WAV_MASK = $3F;
WAV_BUFFER_SIZE = $0400;
SECONDARY_BUFFER_SIZE = $10000;
type
sndinitstat_t = (SIS_SUCCESS, SIS_FAILURE, SIS_NOTAVAIL);
var
wavonly: qboolean;
dsound_init: qboolean;
wav_init: qboolean;
snd_firsttime: qboolean = true;
snd_isdirect: qboolean;
snd_iswave: qboolean;
primary_format_set: qboolean;
var
sample16: integer;
snd_sent, snd_completed: integer;
(*
* Global variables. Must be visible to window-procedure function
* so it can unlock and free the data block after it has been played.
*)
var
hData: THandle;
lpData: pointer;
var
hWaveHdr: HGLOBAL;
lpWaveHdr: PWaveHdr;
hWavOut: HWAVEOUT;
mmstarttime: MMTIME;
(*
==================
S_BlockSound
==================
*)
procedure S_BlockSound;
begin
// DirectSound takes care of blocking itself
if snd_iswave then
begin
inc(snd_blocked);
if snd_blocked = 1 then
begin
waveOutReset(hWavOut);
end;
end;
end;
(*
==================
S_UnblockSound
==================
*)
procedure S_UnblockSound;
begin
// DirectSound takes care of blocking itself
if snd_iswave then
begin
dec(snd_blocked);
end;
end;
(*
==================
FreeSound
==================
*)
procedure FreeSound;
var
i: integer;
hdr: PWaveHdr;
begin
if pDSBuf <> nil then
pDSBuf.Stop;
if pDS <> nil then
pDS.SetCooperativeLevel(mainwindow, DSSCL_NORMAL);
if hWavOut <> 0 then
begin
waveOutReset(hWavOut);
if lpWaveHdr <> nil then
begin
hdr := lpWaveHdr;
for i := 0 to WAV_BUFFERS - 1 do
begin
waveOutUnprepareHeader(hWavOut, hdr, SizeOf(WAVEHDR));
inc(hdr);
end;
end;
waveOutClose(hWavOut);
if hWaveHdr <> 0 then
begin
GlobalUnlock(hWaveHdr);
GlobalFree(hWaveHdr);
end;
if hData <> 0 then
begin
GlobalUnlock(hData);
GlobalFree(hData);
end;
end;
hWavOut := 0;
hData := 0;
hWaveHdr := 0;
lpData := nil;
lpWaveHdr := nil;
dsound_init := false;
wav_init := false;
end;
(*
==================
SNDDMA_InitDirect
Direct-Sound support
==================
*)
function SNDDMA_InitDirect: sndinitstat_t;
var
dsbuf: DSBUFFERDESC;
bcaps: DSBCAPS;
dwSize, dwWrite: DWORD;
caps: DSCAPS;
format, pformat: tWAVEFORMATEX;
ret: HRESULT;
reps: integer;
function get_ds_ret1: HRESULT;
begin
ret := DirectSoundCreate(nil, pDS, nil);
result := ret;
end;
function get_ds_ret2: HRESULT;
var
foo: DWORD;
pfoo: pointer;
begin
pfoo := nil;
foo := 0;
ret := pDSBuf.Lock(0, gSndBufSize, lpData, dwSize, pfoo, foo, 0);
result := ret;
end;
begin
// VJ: Turn optimization off, (sn, shm: volatile)
{$O-}
ZeroMemory(@sn, SizeOf(sn));
shm := @sn;
shm.channels := 2;
shm.samplebits := 16;
shm.speed := 11025;
ZeroMemory(@format, SizeOf(format));
format.wFormatTag := WAVE_FORMAT_PCM;
format.nChannels := shm.channels;
format.wBitsPerSample := shm.samplebits;
format.nSamplesPerSec := shm.speed;
format.nBlockAlign := format.nChannels * format.wBitsPerSample div 8;
format.cbSize := 0;
format.nAvgBytesPerSec := format.nSamplesPerSec * format.nBlockAlign;
while get_ds_ret1 <> DS_OK do
begin
if ret <> DSERR_ALLOCATED then
begin
Con_SafePrintf('DirectSound create failed'#10);
result := SIS_FAILURE;
exit;
end;
if MessageBox(0,
'The sound hardware is in use by another app.'#10#10'Select Retry to try to start sound again or Cancel to run Quake with no sound.',
'Sound not available',
MB_RETRYCANCEL or MB_SETFOREGROUND or MB_ICONEXCLAMATION) <> IDRETRY then
begin
Con_SafePrintf('DirectSoundCreate failure'#10' hardware already in use'#10);
result := SIS_NOTAVAIL;
exit;
end;
end;
caps.dwSize := SizeOf(caps);
if pDS.GetCaps(caps) <> DS_OK then
begin
Con_SafePrintf('Couldn''t get DS caps'#10);
end;
if caps.dwFlags and DSCAPS_EMULDRIVER <> 0 then
begin
Con_SafePrintf('No DirectSound driver installed'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
if pDS.SetCooperativeLevel(mainwindow, DSSCL_EXCLUSIVE) <> DS_OK then
begin
Con_SafePrintf('Set coop level failed'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
// get access to the primary buffer, if possible, so we can set the
// sound hardware format
ZeroMemory(@dsbuf, SizeOf(dsbuf));
dsbuf.dwSize := SizeOf(DSBUFFERDESC);
dsbuf.dwFlags := DSBCAPS_PRIMARYBUFFER;
dsbuf.dwBufferBytes := 0;
dsbuf.lpwfxFormat := nil;
ZeroMemory(@bcaps, SizeOf(bcaps));
bcaps.dwSize := SizeOf(bcaps);
primary_format_set := false;
if COM_CheckParm('-snoforceformat') = 0 then
begin
if pDS.CreateSoundBuffer(dsbuf, pDSPBuf, nil) = DS_OK then
begin
pformat := format;
if pDSPBuf.SetFormat(pformat) <> DS_OK then
begin
if snd_firsttime then
Con_SafePrintf('Set primary sound buffer format: no'#10);
end
else
begin
if snd_firsttime then
Con_SafePrintf('Set primary sound buffer format: yes'#10);
primary_format_set := true;
end;
end;
end;
if not primary_format_set or (COM_CheckParm('-primarysound') = 0) then
begin
// create the secondary buffer we'll actually work with
ZeroMemory(@dsbuf, SizeOf(dsbuf));
dsbuf.dwSize := SizeOf(DSBUFFERDESC);
dsbuf.dwFlags := DSBCAPS_CTRLFREQUENCY or DSBCAPS_LOCSOFTWARE;
dsbuf.dwBufferBytes := SECONDARY_BUFFER_SIZE;
dsbuf.lpwfxFormat := @format;
ZeroMemory(@bcaps, SizeOf(bcaps));
bcaps.dwSize := SizeOf(bcaps);
if pDS.CreateSoundBuffer(dsbuf, pDSBuf, nil) <> DS_OK then
begin
Con_SafePrintf('DS:CreateSoundBuffer Failed');
FreeSound;
result := SIS_FAILURE;
exit;
end;
shm.channels := format.nChannels;
shm.samplebits := format.wBitsPerSample;
shm.speed := format.nSamplesPerSec;
if pDSBuf.GetCaps(bcaps) <> DS_OK then
begin
Con_SafePrintf('DS:GetCaps failed'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
if snd_firsttime then
Con_SafePrintf('Using secondary sound buffer'#10);
end
else
begin
if pDS.SetCooperativeLevel(mainwindow, DSSCL_WRITEPRIMARY) <> DS_OK then
begin
Con_SafePrintf('Set coop level failed'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
if pDSPBuf.GetCaps(bcaps) <> DS_OK then
begin
Con_Printf('DS:GetCaps failed'#10);
result := SIS_FAILURE;
exit;
end;
pDSBuf := pDSPBuf;
Con_SafePrintf('Using primary sound buffer'#10);
end;
// Make sure mixer is active
pDSBuf.Play(0, 0, DSBPLAY_LOOPING);
if snd_firsttime then
Con_SafePrintf(' %d channel(s)'#10' %d bits/sample'#10' %d bytes/sec'#10,
[shm.channels, shm.samplebits, shm.speed]);
gSndBufSize := bcaps.dwBufferBytes;
// initialize the buffer
reps := 0;
while get_ds_ret2 <> DS_OK do
begin
if ret <> DSERR_BUFFERLOST then
begin
Con_SafePrintf('SNDDMA_InitDirect: DS::Lock Sound Buffer Failed'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
inc(reps);
if reps > 10000 then
begin
Con_SafePrintf('SNDDMA_InitDirect: DS: couldn''t restore buffer'#10);
FreeSound;
result := SIS_FAILURE;
exit;
end;
end;
memset(lpData, 0, dwSize);
// lpData[4] = lpData[5] = 0x7f; // force a pop for debugging
pDSBuf.Unlock(lpData, dwSize, nil, 0);
(* we don't want anyone to access the buffer directly w/o locking it first. *)
lpData := nil;
pDSBuf.Stop;
pDSBuf.GetCurrentPosition(mmstarttime.sample, dwWrite);
pDSBuf.Play(0, 0, DSBPLAY_LOOPING);
shm.soundalive := true;
shm.splitbuffer := false;
shm.samples := gSndBufSize div (shm.samplebits div 8);
shm.samplepos := 0;
shm.submission_chunk := 1;
shm.buffer := lpData;
sample16 := (shm.samplebits div 8) - 1;
dsound_init := true;
result := SIS_SUCCESS;
{$O+}
end;
(*
==================
SNDDM_InitWav
Crappy windows multimedia base
==================
*)
function SNDDMA_InitWav: qboolean;
var
format: tWAVEFORMATEX;
i: integer;
hr: HRESULT;
hdr: PWaveHdr;
function get_w_ret: HRESULT;
begin
hr := waveOutOpen(@hWavOut, WAVE_MAPPER,
@format,
0, 0, CALLBACK_NULL);
result := hr;
end;
begin
snd_sent := 0;
snd_completed := 0;
shm := @sn;
shm.channels := 2;
shm.samplebits := 16;
shm.speed := 11025;
ZeroMemory(@format, SizeOf(format));
format.wFormatTag := WAVE_FORMAT_PCM;
format.nChannels := shm.channels;
format.wBitsPerSample := shm.samplebits;
format.nSamplesPerSec := shm.speed;
format.nBlockAlign := format.nChannels * format.wBitsPerSample div 8;
format.cbSize := 0;
format.nAvgBytesPerSec := format.nSamplesPerSec * format.nBlockAlign;
(* Open a waveform device for output using window callback. *)
while get_w_ret <> MMSYSERR_NOERROR do
begin
if hr <> MMSYSERR_ALLOCATED then
begin
Con_SafePrintf('waveOutOpen failed'#10);
result := false;
exit;
end;
if MessageBox(0,
'The sound hardware is in use by another app.'#10#10'Select Retry to try to start sound again or Cancel to run Quake with no sound.',
'Sound not available',
MB_RETRYCANCEL or MB_SETFOREGROUND or MB_ICONEXCLAMATION) <> IDRETRY then
begin
Con_SafePrintf('waveOutOpen failure;'#10' hardware already in use'#10);
result := false;
exit;
end;
end;
(*
* Allocate and lock memory for the waveform data. The memory
* for waveform data must be globally allocated with
* GMEM_MOVEABLE and GMEM_SHARE flags.
*)
gSndBufSize := WAV_BUFFERS * WAV_BUFFER_SIZE;
hData := GlobalAlloc(GMEM_MOVEABLE or GMEM_SHARE, gSndBufSize);
if hData = 0 then
begin
Con_SafePrintf('Sound: Out of memory.'#10);
FreeSound;
result := false;
exit;
end;
lpData := GlobalLock(hData);
if lpData = nil then
begin
Con_SafePrintf('Sound: Failed to lock.'#10);
FreeSound;
result := false;
exit;
end;
memset(lpData, 0, gSndBufSize);
(*
* Allocate and lock memory for the header. This memory must
* also be globally allocated with GMEM_MOVEABLE and
* GMEM_SHARE flags.
*)
hWaveHdr := GlobalAlloc(GMEM_MOVEABLE or GMEM_SHARE,
SizeOf(WAVEHDR) * WAV_BUFFERS);
if hWaveHdr = 0 then
begin
Con_SafePrintf('Sound: Failed to Alloc header.'#10);
FreeSound;
result := false;
exit;
end;
lpWaveHdr := PWaveHdr(GlobalLock(hWaveHdr));
if lpWaveHdr = nil then
begin
Con_SafePrintf('Sound: Failed to lock header.'#10);
FreeSound;
result := false;
exit;
end;
memset(lpWaveHdr, 0, SizeOf(WAVEHDR) * WAV_BUFFERS);
(* After allocation, set up and prepare headers. *)
hdr := lpWaveHdr;
for i := 0 to WAV_BUFFERS - 1 do
begin
hdr.dwBufferLength := WAV_BUFFER_SIZE;
hdr.lpData := C_PChar(lpData, i * WAV_BUFFER_SIZE);
if waveOutPrepareHeader(hWavOut, hdr, SizeOf(WAVEHDR)) <> // VJ ?
MMSYSERR_NOERROR then
begin
Con_SafePrintf('Sound: failed to prepare wave headers'#10);
FreeSound;
result := false;
exit;
end;
inc(hdr);
end;
shm.soundalive := true;
shm.splitbuffer := false;
shm.samples := gSndBufSize div (shm.samplebits div 8);
shm.samplepos := 0;
shm.submission_chunk := 1;
shm.buffer := PByteArray(lpData);
sample16 := (shm.samplebits div 8) - 1;
wav_init := true;
result := true;
end;
(*
==================
SNDDMA_Init
Try to find a sound device to mix for.
Returns false if nothing is found.
==================
*)
function SNDDMA_Init: integer;
var
stat: sndinitstat_t;
begin
if COM_CheckParm('-wavonly') <> 0 then
wavonly := true;
dsound_init := false;
wav_init := false;
stat := SIS_FAILURE; // assume DirectSound won't initialize
(* Init DirectSound *)
if not wavonly then
begin
if snd_firsttime or snd_isdirect then
begin
stat := SNDDMA_InitDirect;
if stat = SIS_SUCCESS then
begin
snd_isdirect := true;
if snd_firsttime then
Con_SafePrintf('DirectSound initialized'#10);
end
else
begin
snd_isdirect := false;
Con_SafePrintf('DirectSound failed to init'#10);
end;
end;
end;
// if DirectSound didn't succeed in initializing, try to initialize
// waveOut sound, unless DirectSound failed because the hardware is
// already allocated (in which case the user has already chosen not
// to have sound)
if not dsound_init and (stat <> SIS_NOTAVAIL) then
begin
if snd_firsttime or snd_iswave then
begin
snd_iswave := SNDDMA_InitWav;
if snd_iswave then
begin
if snd_firsttime then
Con_SafePrintf('Wave sound initialized'#10);
end
else
begin
Con_SafePrintf('Wave sound failed to init'#10);
end;
end;
end;
snd_firsttime := false;
if not dsound_init and not wav_init then
begin
if snd_firsttime then
Con_SafePrintf('No sound device initialized'#10);
result := 0;
exit;
end;
result := 1;
end;
(*
==============
SNDDMA_GetDMAPos
return the current sample position (in mono samples read)
inside the recirculating dma buffer, so the mixing code will know
how many sample are required to fill it up.
===============
*)
function SNDDMA_GetDMAPos: integer;
var
mtime: MMTIME;
s: integer;
dwWrite: DWORD;
begin
if dsound_init then
begin
mtime.wType := TIME_SAMPLES;
pDSBuf.GetCurrentPosition(mtime.sample, dwWrite); // VJ check
s := mtime.sample - mmstarttime.sample;
end
else if wav_init then
begin
s := snd_sent * WAV_BUFFER_SIZE;
end
else
begin
result := 0;
exit;
end;
s := s shr sample16;
s := s and (shm.samples - 1);
result := s;
end;
(*
==============
SNDDMA_Submit
Send sound to device if buffer isn't really the dma buffer
===============
*)
procedure SNDDMA_Submit;
var
wResult: integer;
hdr: PWaveHdr;
begin
if not wav_init then
exit;
//
// find which sound blocks have completed
//
while true do
begin
if snd_completed = snd_sent then
begin
Con_DPrintf('Sound overrun'#10);
break;
end;
hdr := lpWaveHdr;
inc(hdr, snd_completed and WAV_MASK);
if (hdr.dwFlags and WHDR_DONE) = 0 then
break;
inc(snd_completed); // this buffer has been played
end;
//
// submit two new sound blocks
//
while ((snd_sent - snd_completed) shr sample16) < 4 do
begin
hdr := lpWaveHdr;
inc(hdr, snd_sent and WAV_MASK);
inc(snd_sent);
(*
* Now the data block can be sent to the output device. The
* waveOutWrite function returns immediately and waveform
* data is sent to the output device in the background.
*)
wResult := waveOutWrite(hWavOut, hdr, sizeof(WAVEHDR));
if wResult <> MMSYSERR_NOERROR then
begin
Con_SafePrintf('Failed to write block to device'#10);
FreeSound;
exit;
end;
end;
end;
(*
==============
SNDDMA_Shutdown
Reset the sound device for exiting
===============
*)
procedure SNDDMA_Shutdown;
begin
FreeSound;
end;
end.
| 22.277494 | 140 | 0.619999 |
f1b719b11644c5de3218e3653262faeec1fd12cd
| 224 |
pas
|
Pascal
|
1. Konsep Pemilihan/goto.pas
|
belajarstatistik/Algoritma-Pemrograman
|
4f33b359254db167b6107757d35d50d391d836e2
|
[
"MIT"
] | null | null | null |
1. Konsep Pemilihan/goto.pas
|
belajarstatistik/Algoritma-Pemrograman
|
4f33b359254db167b6107757d35d50d391d836e2
|
[
"MIT"
] | null | null | null |
1. Konsep Pemilihan/goto.pas
|
belajarstatistik/Algoritma-Pemrograman
|
4f33b359254db167b6107757d35d50d391d836e2
|
[
"MIT"
] | null | null | null |
program goto;
label 1000;
var inputchar:char;
begin
write('Masukkan huruf (atau o untuk berhenti) : '); readln(inputchar);
if inputchar = '0' then
goto 1000;
{other statement mau go here ...}
1000;
end.
| 22.4 | 72 | 0.651786 |
f1acb728432591b387694e6e95bf8a9c0567f22b
| 3,062 |
dfm
|
Pascal
|
Delphi/Delphi Projeto 2/Forms/U_pesq_venda.dfm
|
lacerdence/Projetos-completos
|
18df4a568ff1a1ff7ddbb23d27b75ae7c75eedf1
|
[
"MIT"
] | null | null | null |
Delphi/Delphi Projeto 2/Forms/U_pesq_venda.dfm
|
lacerdence/Projetos-completos
|
18df4a568ff1a1ff7ddbb23d27b75ae7c75eedf1
|
[
"MIT"
] | null | null | null |
Delphi/Delphi Projeto 2/Forms/U_pesq_venda.dfm
|
lacerdence/Projetos-completos
|
18df4a568ff1a1ff7ddbb23d27b75ae7c75eedf1
|
[
"MIT"
] | null | null | null |
inherited Frm_pesq_venda: TFrm_pesq_venda
Caption = 'FORMUL'#193'RIO DE PESQUISA DE VENDAS'
ExplicitWidth = 1125
ExplicitHeight = 778
PixelsPerInch = 96
TextHeight = 13
inherited Panel1: TPanel
inherited bt_pesquisa: TBitBtn
OnClick = bt_pesquisaClick
end
inherited bt_transferir: TBitBtn
OnClick = bt_transferirClick
end
end
inherited DBGrid1: TDBGrid
Columns = <
item
Expanded = False
FieldName = 'ID_VENDA'
Visible = True
end
item
Expanded = False
FieldName = 'ID_CLIENTE'
Visible = True
end
item
Expanded = False
FieldName = 'NOME'
Width = 250
Visible = True
end
item
Expanded = False
FieldName = 'ID_FORMA_PGTO'
Visible = True
end
item
Expanded = False
FieldName = 'DESCRICAO'
Width = 200
Visible = True
end
item
Expanded = False
FieldName = 'USUARIO'
Width = 200
Visible = True
end
item
Expanded = False
FieldName = 'CADASTRO'
Visible = True
end
item
Expanded = False
FieldName = 'VALOR'
Visible = True
end>
end
inherited Q_pesq_padrao: TFDQuery
SQL.Strings = (
'SELECT A.ID_VENDA,'
'A.ID_CLIENTE,'
'B.NOME,'
'A.ID_FORMA_PGTO,'
'C.DESCRICAO,'
'A.USUARIO,'
'A.CADASTRO,'
'A.VALOR FROM VENDA A, CLIENTE B, FORMA_PGTO C'
'WHERE A.ID_CLIENTE = B.ID_CLIENTE'
'AND C.ID_FORMA_PGTO=A.ID_FORMA_PGTO'
'ORDER BY A.ID_VENDA')
object Q_pesq_padraoID_VENDA: TIntegerField
FieldName = 'ID_VENDA'
Origin = 'ID_VENDA'
ProviderFlags = [pfInUpdate, pfInWhere, pfInKey]
Required = True
end
object Q_pesq_padraoID_CLIENTE: TIntegerField
FieldName = 'ID_CLIENTE'
Origin = 'ID_CLIENTE'
Required = True
end
object Q_pesq_padraoNOME: TStringField
AutoGenerateValue = arDefault
FieldName = 'NOME'
Origin = 'NOME'
ProviderFlags = []
ReadOnly = True
Size = 100
end
object Q_pesq_padraoID_FORMA_PGTO: TIntegerField
FieldName = 'ID_FORMA_PGTO'
Origin = 'ID_FORMA_PGTO'
Required = True
end
object Q_pesq_padraoDESCRICAO: TStringField
AutoGenerateValue = arDefault
FieldName = 'DESCRICAO'
Origin = 'DESCRICAO'
ProviderFlags = []
ReadOnly = True
Size = 100
end
object Q_pesq_padraoUSUARIO: TStringField
FieldName = 'USUARIO'
Origin = 'USUARIO'
Required = True
Size = 100
end
object Q_pesq_padraoCADASTRO: TDateField
FieldName = 'CADASTRO'
Origin = 'CADASTRO'
Required = True
end
object Q_pesq_padraoVALOR: TFMTBCDField
FieldName = 'VALOR'
Origin = 'VALOR'
Precision = 18
Size = 2
end
end
inherited Rel_pesq_padrao: TfrxReport
Datasets = <>
Variables = <>
Style = <>
end
end
| 23.553846 | 54 | 0.594383 |
f1660fc6cf66eed31fc329b53b5656a7eca90093
| 7,525 |
pas
|
Pascal
|
niftiview7/batch_old.pas
|
ghisvail/MRIcron
|
17994ad3d38c27644ece83b2fffa2537c0ac0ed4
|
[
"BSD-3-Clause"
] | 44 |
2016-02-09T07:07:25.000Z
|
2021-10-31T18:49:32.000Z
|
niftiview7/batch_old.pas
|
ghisvail/MRIcron
|
17994ad3d38c27644ece83b2fffa2537c0ac0ed4
|
[
"BSD-3-Clause"
] | 18 |
2016-02-25T09:52:38.000Z
|
2022-02-17T01:45:35.000Z
|
niftiview7/batch_old.pas
|
ghisvail/MRIcron
|
17994ad3d38c27644ece83b2fffa2537c0ac0ed4
|
[
"BSD-3-Clause"
] | 19 |
2016-03-01T19:40:12.000Z
|
2021-11-03T12:52:46.000Z
|
unit batch;
interface
uses define_types,Windows;
procedure BatchVOI;
implementation
uses nifti_img, nifti_img_view, dialogs, nifti_hdr_view, text,sysutils,classes, fdr;
(*function LesionFrac (lOverlayNum: integer): double;
var
lLesionSum,lInten: double;
lInc: integer;
begin
result := 0;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems < 1 then
exit;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems <> gMRIcroOverlay[kBGOverlayNum].ScrnBufferItems then
exit;
lLesionSum := 0;
for lInc := 1 to gMRIcroOverlay[lOverlayNum].ScrnBufferItems do begin
lInten := RawBGIntensity(lInc);
if gMRIcroOverlay[lOverlayNum].ScrnBuffer[lInc] > 0 then
lLesionSum := lLesionSum + lInten;
end; //for each voxel
result := lLesionSum;
end;*)
function VOIVol (lOverlayNum: integer): integer;
var
lInc,lVox: integer;
begin
result := 0;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems < 1 then
exit;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems <> gMRIcroOverlay[kBGOverlayNum].ScrnBufferItems then
exit;
lVox := 0;
for lInc := 1 to gMRIcroOverlay[lOverlayNum].ScrnBufferItems do begin
if gMRIcroOverlay[lOverlayNum].ScrnBuffer[lInc] > 0 then
inc(lVox);
end; //for each voxel
result := lVox;
end; //VOIVol
function VOIMean (lOverlayNum: integer): double;
var
lSum,lInten,lVol: double;
lInc: integer;
begin
result := 0;
lVol := VOIVol(lOverlayNum);
if lVol < 1 then
exit;
lSum := 0;
for lInc := 1 to gMRIcroOverlay[lOverlayNum].ScrnBufferItems do begin
lInten := RawBGIntensity(lInc);
//Next line - only voxels that are part of VOI
if gMRIcroOverlay[lOverlayNum].ScrnBuffer[lInc] > 0 then
lSum := lSum + lInten;
end; //for each voxel
result := lSum/lVol;
end; //VOIMean
function VOIMeanFrac10pct (lOverlayNum: integer; lMax: boolean): double;
//if lMax is true, return top 10pct, if false return bottom
var
lSum: double;
lVox,lInc,l10pct: integer;
lRA: singlep;
begin //proc ShowDescript
result := 0;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems < 1 then
exit;
if gMRIcroOverlay[lOverlayNum].ScrnBufferItems <> gMRIcroOverlay[kBGOverlayNum].ScrnBufferItems then
exit;
//first - count number of voxels in ROI
lVox := 0;
for lInc := 1 to gMRIcroOverlay[lOverlayNum].ScrnBufferItems do
if gMRIcroOverlay[lOverlayNum].ScrnBuffer[lInc] > 0 then
inc(lVox);
//next - get memory
if lVox < 1 then
exit;
getmem(lRA,lVox * sizeof(single));
lVox := 0;
for lInc := 1 to gMRIcroOverlay[lOverlayNum].ScrnBufferItems do
if gMRIcroOverlay[lOverlayNum].ScrnBuffer[lInc] > 0 then begin
inc(lVox);
lRA^[lVox] := RawBGIntensity(lInc);
end;
qsort(1, lVox,lRA);
l10pct := round(lVox / 10);
if l10pct < 1 then
l10pct := 1;
lSum := 0;
if not lMax then begin //lower 10pct
for lInc := 1 to l10pct do
lSum := lSum + lRA^[lInc]
end else begin //top 10pct
for lInc := (lVox-l10pct+1) to lVox do
lSum := lSum + lRA^[lInc];
end;
result := lSum / l10pct;
freemem(lRA);
end;
(*procedure BatchVOI;
var
lInc,lNumberofFiles: integer;
lFilename:string;
lStrings : TStringList;
begin
if gMRIcroOverlay[kBGOverlayNum].ScrnBufferItems < 1 then begin
showmessage('Please load a background image for rescaling.');
exit;
end;
for lInc := 1 to (knMaxOverlay-1) do
FreeImgMemory(gMRIcroOverlay[lInc]);
ImgForm.UpdateLayerMenu;
if not OpenDialogExecute(kImgFilter,'Select PMaps',true) then exit;
lNumberofFiles:= HdrForm.OpenHdrDlg.Files.Count;
if lNumberofFiles < 1 then
exit;
lStrings := TStringList.Create;
lStrings.AddStrings(HdrForm.OpenHdrDlg.Files);
if not OpenDialogExecute(kImgFilter,'Select images you wish to analyze',true) then exit;
lNumberofFiles:= HdrForm.OpenHdrDlg.Files.Count;
if lNumberofFiles < 1 then
exit;
TextForm.Memo1.Lines.Clear;
TextForm.Memo1.lines.add('Background =,'+gMRIcroOverlay[kBGOverlayNum].hdrfilename);
for lInc:= 1 to lNumberofFiles do begin
lFilename := HdrForm.OpenHdrDlg.Files[lInc-1];
ImgForm.OverlayOpenCore ( lFilename, 2);
TextForm.Memo1.lines.add(lfilename+','{+ inttostr(LesionVol(2))+','}+ floattostr(LesionFrac(2)) );
//ImgForm.ShowDescriptive(2,true);
end;
FreeImgMemory(gMRIcroOverlay[2]);
ImgForm.UpdateLayerMenu;
//SaveDialog1.Filename := ExtractFileDirWithPathDelim(HdrForm.OpenHdrDlg.Files[0])+'desc.csv';
lStrings.Free;
//ImgForm.SaveDialog1.Filename := ExtractFileDirWithPathDelim(gMRIcroOverlay[lOverlayNum].HdrFileName)+'desc.csv';
TextForm.Show;
end;*)
procedure BatchVOI;
var
lNumberofP,lP,lInc,lNumberofFiles,lLoop: integer;
lFilename,lStr:string;
lStrings : TStringList;
begin
for lInc := 1 to (knMaxOverlay-1) do
FreeImgMemory(gMRIcroOverlay[lInc]);
ImgForm.UpdateLayerMenu;
if not OpenDialogExecute(kImgFilter,'Select background images (stat maps)',true) then exit;
lNumberofP:= HdrForm.OpenHdrDlg.Files.Count;
if lNumberofP < 1 then
exit;
lStrings := TStringList.Create;
lStrings.AddStrings(HdrForm.OpenHdrDlg.Files);
if not OpenDialogExecute(kImgFilter,'Select overlay images (ROIs)',true) then exit;
lNumberofFiles:= HdrForm.OpenHdrDlg.Files.Count;
if lNumberofFiles < 1 then
exit;
TextForm.Memo1.Lines.Clear;
for lLoop := 1 to 3 do begin
if lLoop=3 then
lStr := 'min10pct_Filename,Vol'
else if lLoop=2 then
lStr := 'max10pct_Filename,Vol'
else
lStr := 'mean,Vol';
for lP := 1 to lNumberofP do
lStr := lStr + ','+Parsefilename(extractfilename(lStrings.Strings[lP-1]));
TextForm.Memo1.lines.add(lStr);
for lInc:= 1 to lNumberofFiles do begin
ImgForm.StatusLabel.Caption := inttostr(lInc)+'/'+inttostr(lNumberofFiles);
IMgForm.refresh;
lStr := Parsefilename(extractfilename(HdrForm.OpenHdrDlg.Files[lInc-1]));
for lP := 1 to lNumberofP do begin
lFilename := lStrings.Strings[lP-1];
ImgForm.OpenAndDisplayImg(lFilename,True);
lFilename := HdrForm.OpenHdrDlg.Files[lInc-1];
ImgForm.OverlayOpenCore ( lFilename, 2);
if lP = 1 then
lStr := lStr + ','+ inttostr(VOIVol(2) );
if lLoop = 3 then
lStr := lStr + ','+ floattostr(VOIMeanFrac10Pct(2,false))
else if lLoop = 2 then
lStr := lStr + ','+ floattostr(VOIMeanFrac10Pct(2,true))
else
lStr := lStr + ','+ floattostr(VOIMean(2));
end;
TextForm.Memo1.lines.add(lStr );
end;
end;//lLoop
FreeImgMemory(gMRIcroOverlay[2]);
ImgForm.UpdateLayerMenu;
//SaveDialog1.Filename := ExtractFileDirWithPathDelim(HdrForm.OpenHdrDlg.Files[0])+'desc.csv';
lStrings.Free;
//ImgForm.SaveDialog1.Filename := ExtractFileDirWithPathDelim(gMRIcroOverlay[lOverlayNum].HdrFileName)+'desc.csv';
TextForm.Show;
end;
end.
| 35.495283 | 123 | 0.637475 |
6af76b5f8899794c00fbeab3e38ee03ed699b712
| 7,350 |
pas
|
Pascal
|
HODLER_Multiplatform_Win_And_iOS_Linux/coinCode/Bitcoin.pas
|
M3Supreme45/HODLER-Open-Source-Multi-Asset-Wallet
|
259ea75f7aba999ffd184997a884c1c22d34fa40
|
[
"Unlicense"
] | null | null | null |
HODLER_Multiplatform_Win_And_iOS_Linux/coinCode/Bitcoin.pas
|
M3Supreme45/HODLER-Open-Source-Multi-Asset-Wallet
|
259ea75f7aba999ffd184997a884c1c22d34fa40
|
[
"Unlicense"
] | null | null | null |
HODLER_Multiplatform_Win_And_iOS_Linux/coinCode/Bitcoin.pas
|
M3Supreme45/HODLER-Open-Source-Multi-Asset-Wallet
|
259ea75f7aba999ffd184997a884c1c22d34fa40
|
[
"Unlicense"
] | null | null | null |
unit Bitcoin;
interface
uses SysUtils, secp256k1, HashObj, base58, coinData, Velthuis.BigIntegers,
WalletStructureData;
function reedemFromPub(pub: AnsiString): AnsiString;
function Bitcoin_PublicAddrToWallet(pub: AnsiString; netbyte: AnsiString = '00';
scriptType: AnsiString = 'p2pkh'): AnsiString;
function Bitcoin_createHD(coinid, x, y: integer; MasterSeed: AnsiString)
: TWalletInfo;
function createTransaction(from: TWalletInfo; sendto: AnsiString;
Amount, Fee: BigInteger; inputs: TUTXOS; MasterSeed: AnsiString): AnsiString;
function sendCoinsTO(from: TWalletInfo; sendto: AnsiString;
Amount, Fee: BigInteger; MasterSeed: AnsiString; coin: AnsiString = 'bitcoin')
: AnsiString;
// function netbyteFromCoinID(coinid: integer): AnsiString;
function generatep2sh(pub, netbyte: AnsiString): AnsiString;
function generatep2pkh(pub, netbyte: AnsiString): AnsiString;
function generatep2wpkh(pub: AnsiString ; hrp : AnsiString = 'bc'): AnsiString;
implementation
uses uHome, transactions, tokenData, bech32, misc,SyncThr;
function Bitcoin_createHD(coinid, x, y: integer; MasterSeed: AnsiString)
: TWalletInfo;
var
pub: AnsiString;
p: AnsiString;
begin
p := priv256forhd(coinid, x, y, MasterSeed);
pub := secp256k1_get_public(p);
result := TWalletInfo.Create(coinid, x, y, Bitcoin_PublicAddrToWallet(pub,
availablecoin[coinid].p2pk), '');
result.pub := pub;
result.isCompressed := true;
wipeAnsiString(p);
wipeAnsiString(MasterSeed);
end;
function generatep2pkh(pub, netbyte: AnsiString): AnsiString;
var
s, r: AnsiString;
begin
s := GetSHA256FromHex(pub);
s := hash160FromHex(s);
s := netbyte + s;
r := GetSHA256FromHex(s);
r := GetSHA256FromHex(r);
{$IF DEFINED(ANDROID) OR DEFINED(IOS)}
s := s + copy(r, 0, 8);
{$ELSE}
s := s + copy(r, 1, 8);
{$ENDIF}
result := Encode58(s);
end;
function reedemFromPub(pub: AnsiString): AnsiString;
var
s: AnsiString;
begin
s := GetSHA256FromHex(pub);
s := hash160FromHex(s);
s := '0014' + s;
result := s;
end;
function generatep2sh(pub, netbyte: AnsiString): AnsiString;
var
s, r: AnsiString;
begin
s := GetSHA256FromHex(pub);
s := hash160FromHex(s);
s := '0014' + s;
s := GetSHA256FromHex(s);
s := hash160FromHex(s);
s := netbyte + s;
r := GetSHA256FromHex(s);
r := GetSHA256FromHex(r);
{$IF DEFINED(ANDROID) OR DEFINED(IOS)}
s := s + copy(r, 0, 8);
{$ELSE}
s := s + copy(r, 1, 8);
{$ENDIF}
result := Encode58(s);
end;
function generatep2wpkh(pub: AnsiString ; hrp : AnsiString = 'bc'): AnsiString;
var
s: AnsiString;
begin
if hrp = '' then
hrp := 'bc';
s := GetSHA256FromHex(pub);
s := hash160FromHex(s);
result := segwit_addr_encode(hrp, 0, s);
end;
function Bitcoin_PublicAddrToWallet(pub: AnsiString; netbyte: AnsiString = '00';
scriptType: AnsiString = 'p2pkh'): AnsiString;
begin
result := 'UNKNOWN_SCRIPT_TYPE';
if scriptType = 'p2pkh' then
result := generatep2pkh(pub, netbyte);
if scriptType = 'p2sh' then
result := generatep2sh(pub, netbyte);
if scriptType = 'p2wpkh' then
result := generatep2wpkh(pub);
end;
function createSegwitTransaction(from: TWalletInfo; sendto: AnsiString;
Amount, Fee: BigInteger; inputs: TUTXOS; MasterSeed: AnsiString): AnsiString;
var
TXBIP143: TXBuilderBIP_143;
diff: int64;
begin
result := '';
TXBIP143 := TXBuilderBIP_143.Create;
TXBIP143.sender := from;
TXBIP143.inputs := inputs;
TXBIP143.MasterSeed := MasterSeed;
TXBIP143.addOutput(sendto, Amount);
diff := TXBIP143.getAllToSPent - (Amount.AsInt64 + Fee.AsInt64);
if diff > 0 then
TXBIP143.addOutput(TXBIP143.sender.addr, diff);
if Length(TXBIP143.getAsHex(true)) mod 2 <> 0 then
begin
result := createSegwitTransaction(from, sendto, Amount, Fee, inputs,
MasterSeed);
wipeAnsiString(MasterSeed);
exit;
end;
wipeAnsiString(MasterSeed);
result := TXBIP143.getAsHex(true);
end;
function createTransaction(from: TWalletInfo; sendto: AnsiString;
Amount, Fee: BigInteger; inputs: TUTXOS; MasterSeed: AnsiString): AnsiString;
var
TX: TXBuilder;
TXCash: TXBuilderBIP_143;
diff: int64;
begin
if not (from.coin in [3,7]) then
begin
result := '';
TX := TXBuilder.Create;
TX.sender := from;
TX.inputs := inputs;
TX.MasterSeed := MasterSeed;
TX.addOutput(sendto, Amount);
diff := TX.getAllToSPent - (Amount.AsInt64 + Fee.AsInt64);
if diff > 0 then
TX.addOutput(TX.sender.addr, diff);
if Length(TX.getAsHex) mod 2 <> 0 then
begin
result := createTransaction(from, sendto, Amount, Fee, inputs,
MasterSeed);
wipeAnsiString(MasterSeed);
exit;
end;
wipeAnsiString(MasterSeed);
result := TX.getAsHex;
end
else
begin
result := '';
TXCash := TXBuilderBIP_143.Create;
TXCash.sender := from;
TXCash.inputs := from.UTXO;
TXCash.MasterSeed := MasterSeed;
TXCash.addOutput(sendto, Amount);
diff := TXCash.getAllToSPent - (Amount.AsInt64 + Fee.AsInt64);
if diff > 0 then
TXCash.addOutput(TXCash.sender.addr, diff);
if Length(TXCash.getAsHex) mod 2 <> 0 then
begin
result := createTransaction(from, sendto, Amount, Fee, inputs,
MasterSeed);
wipeAnsiString(MasterSeed);
exit;
end;
wipeAnsiString(MasterSeed);
result := TXCash.getAsHex;
end;
end;
function canSegwit(inputs: TUTXOS): Boolean;
var
i: integer;
begin
result := false;
for i := 0 to Length(inputs) - 1 do
begin
if inputType(inputs[i]) > 0 then
begin
result := true;
exit;
end;
end;
end;
function sendCoinsTO(from: TWalletInfo; sendto: AnsiString;
Amount, Fee: BigInteger; MasterSeed: AnsiString; coin: AnsiString = 'bitcoin')
: AnsiString;
var
TX: AnsiString;
TXBuilder: TXBuilder_ETH;
begin
if CurrentCoin.coin <> 4 then
begin
if ((CurrentCoin.coin in [0,1,5,6]) ) and canSegwit(currentaccount.aggregateUTXO(from)) then
begin
TX := createSegwitTransaction(from, sendto, Amount, Fee, currentaccount.aggregateUTXO(from),
MasterSeed);
end
else
begin
TX := createTransaction(from, sendto, Amount, Fee, currentaccount.aggregateUTXO(from),
MasterSeed);
end;
end
else
begin
TXBuilder := TXBuilder_ETH.Create;
TXBuilder.sender := CurrentCoin;
TXBuilder.nonce := TXBuilder.sender.nonce;
TXBuilder.gasPrice := Fee;
TXBuilder.value := Amount;
TXBuilder.gasLimit := 21000;
TXBuilder.receiver := StringReplace(sendto, '0x', '', [rfReplaceAll]);
TXBuilder.data := '';
if frmHome.isTokenTransfer then
begin
TXBuilder.value := BigInteger.Zero;
TXBuilder.receiver := StringReplace(Token(CurrentCryptoCurrency)
.ContractAddress, '0x', '', [rfReplaceAll]);
TXBuilder.gasLimit := 66666;
TXBuilder.data := 'a9059cbb000000000000000000000000' +
StringReplace(sendto, '0x', '', [rfReplaceAll]) +
BIntTo256Hex(Amount, 64);
end;
TXBuilder.createPreImage;
TXBuilder.sign(MasterSeed);
TX := TXBuilder.Image;
end;
result := TX;
if TX <> '' then begin
if frmHome.InstantSendSwitch.isChecked then
coin:=coin+'&mode=instant';
result := getDataOverHTTP(HODLER_URL + 'sendTX.php?coin=' + coin +
'&tx=' + TX,false);
syncthr.SynchronizeCryptoCurrency(currentcoin);
end;
end;
end.
| 26.824818 | 98 | 0.683537 |
855cbd8a58caf3ea1e04f30502085f3cba353e7f
| 6,215 |
pas
|
Pascal
|
lib/CXGlobal.pas
|
chupor3d/delphi
|
b797ac2b91cf58e8058838a6b6a598807df4dcbb
|
[
"BSD-2-Clause"
] | 5 |
2015-04-19T01:57:22.000Z
|
2021-10-18T02:34:08.000Z
|
lib/CXGlobal.pas
|
chupor3d/delphi
|
b797ac2b91cf58e8058838a6b6a598807df4dcbb
|
[
"BSD-2-Clause"
] | null | null | null |
lib/CXGlobal.pas
|
chupor3d/delphi
|
b797ac2b91cf58e8058838a6b6a598807df4dcbb
|
[
"BSD-2-Clause"
] | 3 |
2017-02-06T08:30:43.000Z
|
2021-02-26T15:43:06.000Z
|
unit CxGlobal;
{
Version: 1.0.0.0
Provides global uppercase/lowercase table
Copyright 2004-2006, aa, Adrian H, & Ray AF
Private property of PT SoftIndo, JAKARTA
All rights reserved.
}
{.$WEAKPACKAGEUNIT ON}
{$J-} //no-writeableconst
{$R-} //no-rangechecking
{$Q-} //no-overflowchecking
{.$D-}//no-debug
interface
type
TCharsTable = array[Char] of Char;
//TWideCharsTable = array[WideChar] of WideChar;
//StrRec = packed record
// AllocSize, RefCount, Length: Longint;
//end;
const
YES = TRUE;
NAY = not TRUE;
//StrRecSize = sizeof(StrRec);
//szLen = -StrRecSize + sizeof(Longint) + sizeof(Longint);
szLen = -4;
MAXBYTE = high(byte);
MAXWORD = high(word);
PAGESIZE = MAXBYTE + 1;
CPUID = $A20F;
RDTSC = $310F;
const
ZERO = 0;
BLANK = '';
VOID = pointer(ZERO);
const
INVALID_RETURN_VALUE = -1;
var
UPCASETABLE, locasetable: TCharsTable; //array[char] of char;
implementation
procedure makemeUpNDown;
// manual maps (overwritten)
// UP ~ LO diff/offset
// ----------------------
// D7h ~ D7h ~> 0
// DFh ~ DFh ~> 0
// F7h ~ F7h ~> 0
// 8Ah ~ 9Ah ~> 10h (16)
// 8Ch ~ 9Ch ~> 10h (16)
// 8Eh ~ 9Eh ~> 10h (16)
// 9Fh ~ FFh ~> 60H (96)
// overwritten: DFh in upcase table
const
HICASEBIT = 5; HICASEOFFSET = 1 shl HICASEBIT;
MIDOFFSET = $10; LASTOFFSET = $60;
procedure makelo(const CharsTable); // ugly but much faster
assembler asm
@@Start:
push eax; push ecx; push edx
//lea EDX, locasetable
mov edx, CharsTable
xor eax, eax; mov ecx, eax
mov cl, 'Z' - 'A'
@LoopA:
lea eax, ecx + 'A' + HICASEOFFSET
mov EDX[eax], al
mov EDX[eax -HICASEOFFSET], al
dec cl; jge @LoopA
mov cl, 0E0H
@LoopGreek:
mov eax, ecx; mov EDX[eax], al
mov EDX[eax -HICASEOFFSET], al
inc cl; ja @LoopGreek
@fillblank: mov cl, 'A'
@Loop1: dec cx; mov EDX[ecx], cl; jg @Loop1
mov cl, 'a' - 'Z' -1
@Loop2:
lea eax, ecx + 'Z'; mov EDX[eax], al
dec cl; jg @Loop2
mov cl, 0C0H - 'z' -1
@Loop3:
lea eax, ecx + 'z'; mov EDX[eax], al
dec ecx; jg @Loop3
@@manual_maps:
@_nolocase:
mov al, $D7; mov EDX[eax], al
mov al, $F7; mov EDX[eax], al
mov al, $DF; mov EDX[eax], al
@_midlo:
mov al, $9A; mov EDX[eax-MIDOFFSET], al
mov al, $9C; mov EDX[eax-MIDOFFSET], al
mov al, $9E; mov EDX[eax-MIDOFFSET], al
@_lastlo:
mov al, $FF; mov EDX[eax-LASTOFFSET], al
pop edx; pop ecx; pop eax
@@Stop:
end;
procedure makeup(const CharsTable);
assembler asm
@@Start:
push eax; push ecx; push edx
//lea EDX, UPCASETABLE
mov edx, CharsTable
xor eax, eax; mov ecx, eax
mov cl, 'Z' - 'A'
@LoopA:
lea eax, ecx + 'A'
mov EDX[eax], al
mov EDX[eax +HICASEOFFSET], al
dec cl; jge @LoopA
mov cl, 0E0H
@LoopGreek:
lea eax, ecx -HICASEOFFSET
mov EDX[eax], al
mov EDX[eax +HICASEOFFSET], al
inc cl; ja @LoopGreek
@fillblank: mov cl, 'A'
@Loop1: dec cx; mov EDX[ecx], cl; jg @Loop1
mov cl, 'a' - 'Z' -1
@Loop2:
lea eax, ecx + 'Z'; mov EDX[eax], al
dec cl; jg @Loop2
mov cl, 0C0H - 'z' -1
@Loop3:
lea eax, ecx + 'z'; mov EDX[eax], al
dec ecx; jg @Loop3
@@manual_maps:
@_noupcase:
mov al, $D7; mov EDX[eax], al
mov al, $F7; mov EDX[eax], al
mov al, $DF; mov EDX[eax], al
@_midup:
mov al, $8A; mov EDX[eax+MIDOFFSET], al
mov al, $8C; mov EDX[eax+MIDOFFSET], al
mov al, $8E; mov EDX[eax+MIDOFFSET], al
@_lastup:
mov al, $9F; mov EDX[eax+LASTOFFSET], al
pop edx; pop ecx; pop eax
@@Stop:
end;
begin
makeup(UPCASETABLE);
makelo(locasetable); // :)
end;
{.$DEFINE DEBUG}
{$IFDEF DEBUG}
{$DEFINE MSWINDOWS}
function min(const a, b: integer): integer; asm
xor ecx,ecx; sub edx,eax
setge cl; sub ecx,1
and edx,ecx; add eax,edx
end;
function max(const a, b: integer): integer; asm
xor ecx,ecx; sub edx,eax
setl cl; sub ecx,1
and edx,ecx; add eax,edx
end;
procedure WinMakemeUpNDown; forward;
function intoStr(const I: integer; const digits: Integer = 0): string;
const
zero = '0';
dash = '-';
var
n: integer;
begin
if i = 0 then
Result := StringOfChar(zero, max(1, digits))
else begin
Str(I: 0, Result);
n := length(Result);
if digits > n then begin
if i > 0 then
Result := StringOfchar(zero, digits - n) + Result
else
Result := dash + StringOfChar(zero, digits - n - 1) + copy(Result, 2, n);
end;
end;
end;
procedure CheckCharstable;
var
UPCHARS, lochars: TCharsTable;
c: char;
S: string;
begin
makemeUpNDown;
move(UPCASETABLE, UPCHARS, sizeof(UPCHARS));
move(locasetable, lochars, sizeof(lochars));
WinMakemeUpNDown;
S := 'UPCASE';
for c := low(UPCHARS) to high(UPCHARS) do begin
if UPCHARS[c] <> UPCASETABLE[c] then
S := S + ^j + intoStr(ord(UPCHARS[c])) + ^i + intoStr(ord(UPCASETABLE[c]));
end;
S := S + ^j + 'LOCASE';
for c := low(lochars) to high(lochars) do begin
if lochars[c] <> locasetable[c] then
S := S + ^j + intoStr(ord(lochars[c])) + ^i + intoStr(ord(locasetable[c]));
end;
if s <> '' then
writeln(S);
end;
{$ENDIF DEBUG}
{$IFDEF MSWINDOWS}
const
user32 = 'user32.dll';
function BuildUpcase(Table: TCharsTable; Length: integer): integer; stdcall;
external user32 name 'CharUpperBuffA';
function BuildLocase(Table: TCharsTable; Length: integer): integer; stdcall;
external user32 name 'CharLowerBuffA';
procedure WinMakemeUpNDown;
procedure makeseries(const CharsTable);
asm
@@Start:
mov edx, CharsTable
xor eax, eax
@Loop:
mov edx[eax], al
inc al
jnz @Loop
@@Stop:
end;
begin
makeseries(UPCASETABLE);
makeseries(locasetable);
BuildUpcase(UPCASETABLE, sizeof(UPCASETABLE));
BuildLocase(locasetable, sizeof(locasetable));
end;
{$ENDIF WINDOWS}
initialization
{$IFDEF DEBUG}
CheckCharsTable;
{$ELSE}
{$IFDEF MSWINDOWS}
WinMakemeUpNDown;
{$ELSE IFNDEF MSWINDOWS}
makemeUpNDown;
{$ENDIF MSWINDOWS}
{$ENDIF}
end.
| 21.961131 | 81 | 0.599839 |
f13212f82fd581c0a9aa7138f2ff9fc764e3b897
| 14,924 |
pas
|
Pascal
|
library/smart/FHIR.Smart.Login.pas
|
niaz819/fhirserver
|
fee45e1e57053a776b893dba543f700dd9cb9075
|
[
"BSD-3-Clause"
] | null | null | null |
library/smart/FHIR.Smart.Login.pas
|
niaz819/fhirserver
|
fee45e1e57053a776b893dba543f700dd9cb9075
|
[
"BSD-3-Clause"
] | null | null | null |
library/smart/FHIR.Smart.Login.pas
|
niaz819/fhirserver
|
fee45e1e57053a776b893dba543f700dd9cb9075
|
[
"BSD-3-Clause"
] | null | null | null |
unit FHIR.Smart.Login;
{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
}
interface
uses
SysUtils, Classes,
IdContext, IdHTTPServer, IdCustomHTTPServer, IdSocketHandle, IdHTTP, IdSSLOpenSSL,
FHIR.Support.Base, FHIR.Support.Utilities, FHIR.Support.Certs, FHIR.Web.Parsers, FHIR.Support.Stream, FHIR.Support.Json,
FHIR.Base.Objects, FHIR.Base.Common, FHIR.Client.Base, FHIR.Base.Lang, FHIR.Smart.Utilities;
type
// called by a client to login via Smart App Launch
// launches the user's referred browser, and waits for the cycle to complete
TSmartLoginState = (stStarting, stDone, stComplete, stError);
TIdleEvent = procedure(out stop : boolean) of object;
TOpenURLEvent = procedure(url : String) of object;
TSmartAppLaunchLogin = class (TFslObject)
private
FOnIdle: TIdleEvent;
Ftoken: TClientAccessToken;
Fserver: TRegisteredFHIRServer;
webserver : TIdHTTPServer;
FFinalState : string;
FAuthCode : String;
FInitialState : string;
FLogoPath: String;
FScopes: TArray<String>;
State : TSmartLoginState;
FOnOpenURL: TOpenURLEvent;
Fversion: String;
FName: String;
FErrorMessage : String;
procedure SetServer(const Value: TRegisteredFHIRServer);
procedure Settoken(const Value: TClientAccessToken);
procedure DoCommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
procedure initWebServer;
procedure openBrowser;
procedure closeWebServer;
function template(title, body, redirect: String): String;
function loginOAuthClient: boolean;
function loginBackendClient : boolean;
public
constructor Create; override;
destructor Destroy; override;
property server : TRegisteredFHIRServer read Fserver write SetServer;
property scopes : TArray<String> read FScopes write FScopes;
property OnIdle : TIdleEvent read FOnIdle write FOnIdle;
property OnOpenURL : TOpenURLEvent read FOnOpenURL write FOnOpenURL;
property token : TClientAccessToken read Ftoken write Settoken;
property name : String read FName write FName;
property version : String read Fversion write Fversion;
property logoPath : String read FLogoPath write FLogoPath;
property ErrorMessage : String read FErrorMessage write FErrorMessage;
function login : boolean;
end;
implementation
function doSmartAppLaunchLogin(server : TRegisteredFHIRServer; authorizeURL, tokenURL : String; idle : TIdleEvent; token : TClientAccessToken) : boolean;
begin
result := false;
end;
{ TSmartAppLaunchLogin }
procedure TSmartAppLaunchLogin.closeWebServer;
begin
webserver.Active := false;
webserver.free;
end;
constructor TSmartAppLaunchLogin.Create;
begin
inherited;
FlogoPath := path([ExtractFilePath(paramstr(0)), ChangeFileExt(ExtractFileName(paramstr(0)), '.png')]);
end;
destructor TSmartAppLaunchLogin.Destroy;
begin
Fserver.Free;
Ftoken.Free;
inherited;
end;
function templateSource : String;
begin
result :=
'<!DOCTYPE HTML>'+#13#10+
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'+#13#10+
'<head>'+#13#10+
' <title>${title}</title>'+#13#10+
''+#13#10+
'${redirect}'+#13#10+
' <meta name="viewport" content="width=device-width, initial-scale=1.0"/>'+#13#10+
' <meta name="author" content="http://hl7.org/fhir"/>'+#13#10+
''+#13#10+
' <link rel="stylesheet" href="http://hl7.org/fhir/fhir.css"/>'+#13#10+
''+#13#10+
' <!-- Bootstrap core CSS -->'+#13#10+
' <link rel="stylesheet" href="http://hl7.org/fhir/dist/css/bootstrap.css"/>'+#13#10+
' <link rel="stylesheet" href="http://hl7.org/fhir/assets/css/bootstrap-fhir.css"/>'+#13#10+
''+#13#10+
' <!-- Project extras -->'+#13#10+
' <link rel="stylesheet" href="http://hl7.org/fhir/assets/css/project.css"/>'+#13#10+
' <link rel="stylesheet" href="http://hl7.org/fhir/assets/css/pygments-manni.css"/>'+#13#10+
' <link rel="stylesheet" href="jquery-ui.css"/>'+#13#10+
''+#13#10+
' <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->'+#13#10+
' <!-- [if lt IE 9]>'+#13#10+
' <script src=""http://hl7.org/fhir/assets/js/html5shiv.js"></script>'+#13#10+
' <script src=""http://hl7.org/fhir/assets/js/respond.min.js"></script>'+#13#10+
' <![endif] -->'+#13#10+
''+#13#10+
' <!-- Favicons -->'+#13#10+
' <link sizes="144x144" rel="apple-touch-icon-precomposed" href="http://hl7.org/fhir/assets/ico/apple-touch-icon-144-precomposed.png"/>'+#13#10+
' <link sizes="114x114" rel="apple-touch-icon-precomposed" href="http://hl7.org/fhir/assets/ico/apple-touch-icon-114-precomposed.png"/>'+#13#10+
' <link sizes="72x72" rel="apple-touch-icon-precomposed" href="http://hl7.org/fhir/assets/ico/apple-touch-icon-72-precomposed.png"/>'+#13#10+
' <link rel="apple-touch-icon-precomposed" href="http://hl7.org/fhir/assets/ico/apple-touch-icon-57-precomposed.png"/>'+#13#10+
' <link rel="shortcut icon" href="http://hl7.org/fhir/assets/ico/favicon.png"/>'+#13#10+
''+#13#10+
'</head>'+#13#10+
'<body>'+#13#10+
' <div id="segment-header" class="segment"> <!-- segment-header -->'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
' <a no-external="true" id="logo" href="http://hl7.org/fhir"><img src="http://hl7.org/fhir/assets/images/fhir-logo-www.png" alt="logo fhir"/> </a>'+#13#10+
' <div id="hl7-status">'+#13#10+
' <b>${name}</b>'+#13#10+
' </div>'+#13#10+
''+#13#10+
' <div id="hl7-nav">'+#13#10+
' <a no-external="true" id="hl7-logo" href="http://www.hl7.org">'+#13#10+
' <img src="http://hl7.org/fhir/assets/images/hl7-logo.png" width="42" alt="visit the hl7 website" height="50"/>'+#13#10+
' </a>'+#13#10+
' </div>'+#13#10+
' </div>'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
' </div></div> <!-- /segment-header -->'+#13#10+
''+#13#10+
''+#13#10+
' <div id="segment-navbar" class="segment"> <!-- segment-navbar -->'+#13#10+
' <div id="stripe"> </div>'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
''+#13#10+
''+#13#10+
' <nav class="navbar navbar-inverse">'+#13#10+
' <div class="container">'+#13#10+
' <button data-target=".navbar-inverse-collapse" data-toggle="collapse" type="button" class="navbar-toggle">'+#13#10+
' <span class="icon-bar"> </span>'+#13#10+
' <span class="icon-bar"> </span>'+#13#10+
' <span class="icon-bar"> </span>'+#13#10+
' </button>'+#13#10+
' <a href="index.html" class="navbar-brand hidden">FHIR</a>'+#13#10+
' </div> <!-- /.container -->'+#13#10+
' </nav> <!-- /.navbar -->'+#13#10+
''+#13#10+
''+#13#10+
' <!-- /HEADER CONTENT -->'+#13#10+
' </div> <!-- /container -->'+#13#10+
' </div> <!-- /segment-navbar -->'+#13#10+
''+#13#10+
''+#13#10+
''+#13#10+
' <div id="segment-content" class="segment"> <!-- segment-content -->'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
' <div class="row">'+#13#10+
' <div class="inner-wrapper">'+#13#10+
'<div class="col-12">'+#13#10+
''+#13#10+
' ${body}'+#13#10+
''+#13#10+
'<p> </p>'+#13#10+
'</div>'+#13#10+
''+#13#10+
' </div> <!-- /inner-wrapper -->'+#13#10+
' </div> <!-- /row -->'+#13#10+
' </div> <!-- /container -->'+#13#10+
''+#13#10+
' </div> <!-- /segment-content -->'+#13#10+
''+#13#10+
''+#13#10+
' <div id="segment-footer" class="segment"> <!-- segment-footer -->'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
' <div class="inner-wrapper">'+#13#10+
' <p>'+#13#10+
' ®© Health Intersections 2011+. ${name} (v${version})'+#13#10+
' </p>'+#13#10+
' </div> <!-- /inner-wrapper -->'+#13#10+
' </div> <!-- /container -->'+#13#10+
' </div> <!-- /segment-footer -->'+#13#10+
''+#13#10+
' <div id="segment-post-footer" class="segment hidden"> <!-- segment-post-footer -->'+#13#10+
' <div class="container"> <!-- container -->'+#13#10+
' </div> <!-- /container -->'+#13#10+
' </div> <!-- /segment-post-footer -->'+#13#10+
''+#13#10+
' <!-- JS and analytics only. -->'+#13#10+
' <!-- Bootstrap core JavaScript'+#13#10+
'================================================== -->'+#13#10+
' <!-- Placed at the end of the document so the pages load faster -->'+#13#10+
'<script src="http://hl7.org/fhir/assets/js/jquery.js"> </script> <!-- note keep space here, otherwise it will be transformed to empty tag -> fails -->'+#13#10+
'<script src="http://hl7.org/fhir/dist/js/bootstrap.min.js"> </script>'+#13#10+
'<script src="http://hl7.org/fhir/assets/js/respond.min.js"> </script>'+#13#10+
''+#13#10+
'<script src="http://hl7.org/fhir/assets/js/fhir.js"> </script>'+#13#10+
''+#13#10+
' <!-- Analytics Below'+#13#10+
'================================================== -->'+#13#10+
''+#13#10+
''+#13#10+
''+#13#10+
'</body>'+#13#10+
'</html>'+#13#10;
end;
function TSmartAppLaunchLogin.template(title, body, redirect : String) : String;
begin
result := templateSource.Replace('${title}', title).Replace('${name}', name).Replace('${version}', version).Replace('${body}', body);
if redirect = '' then
result := result.Replace('${redirect}', '')
else
result := result.Replace('${redirect}', '<meta http-equiv="refresh" content="0; url='+redirect+'" />');
end;
procedure TSmartAppLaunchLogin.DoCommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
s : TArray<String>;
pm : TParseMap;
begin
if ARequestInfo.Document = '/done' then
begin
s := ARequestInfo.RawHTTPCommand.Split([' ']);
pm := TParseMap.create(s[1].Substring(6));
try
FFinalState := pm.GetVar('state');
if pm.getVar('error') <> '' then
FErrorMessage := pm.getVar('error')
else
FAuthCode := pm.GetVar('code');
State := stDone;
finally
pm.free;
end;
AResponseInfo.ResponseNo := 200;
AResponseInfo.ResponseText := 'OK';
AResponseInfo.ContentText := Template('Smart App Launch', 'Checking Authorization, please wait...', '/complete');
end
else if ARequestInfo.Document = '/complete' then
begin
while State <> stComplete do
sleep(100);
AResponseInfo.ResponseNo := 200;
AResponseInfo.ResponseText := 'OK';
AResponseInfo.ContentText := Template('Smart App Launch', 'App Launch Sequence is complete. You can close this window now and go back to the application', '');
end
else
begin
AResponseInfo.ResponseNo := 200;
AResponseInfo.ResponseText := 'OK';
AResponseInfo.ContentStream := TFileStream.Create(FLogoPath, fmOpenRead + fmShareDenyWrite);
AResponseInfo.FreeContentStream := true;
end;
end;
procedure TSmartAppLaunchLogin.initWebServer;
var
SHandle: TIdSocketHandle;
begin
webserver := TIdHTTPServer.Create(nil);
SHandle := webserver.Bindings.Add;
SHandle.IP := '127.0.0.1';
SHandle.Port := server.redirectPort;
webserver.OnCommandGet := DoCommandGet;
webserver.Active := true;
end;
function TSmartAppLaunchLogin.login: boolean;
begin
case server.SmartAppLaunchMode of
salmNone: raise EFHIRException.create('Smart App Launch is not configured for this server');
salmOAuthClient: result := loginOAuthClient;
salmBackendClient: result := loginBackendClient;
else
result := false;
end;
end;
function TSmartAppLaunchLogin.loginBackendClient: boolean;
var
jwt : TJWT;
jwt_header : string;
sl, s : String;
begin
// 1. building the JWT
jwt := TJWT.Create;
try
jwt.issuer := server.issuerUrl;
jwt.subject := server.clientid;
jwt.expires := now + 1 * DATETIME_MINUTE_ONE;
jwt.audience := server.tokenEndpoint;
jwt.id := NewGuidId;
jwt_header := TJWTUtils.pack(jwt, jwt_hmac_rsa256, nil, server.privatekey, server.passphrase);
finally
jwt.Free;
end;
// 2. submit to server;
sl := '';
for s in scopes do
sl := sl +' '+s.replace('user/', 'system/');
token := getSmartOnFhirAuthTokenRequest(server,
'scope='+sl.Trim+'&'+
'grant_type=client_credentials'+'&'+
'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer'+'&'+
'client_assertion='+jwt_header);
result := true;
end;
function TSmartAppLaunchLogin.loginOAuthClient: boolean;
var
stop : boolean;
begin
initWebServer;
try
openBrowser;
result := false;
while state <> stDone do
begin
OnIdle(stop);
if stop then
exit;
end;
if (FInitialState <> FFinalState) then
raise EFHIRException.create('State parameter mismatch ('+FInitialState+'/'+FFinalState+')');
if FAuthcode <> '' then
token := getSmartOnFhirAuthToken(server, FAuthcode);
state := stComplete;
sleep(40); // give web server a chance
if FErrorMessage <> '' then
result := false
else
result := true;
finally
closeWebServer;
end;
end;
procedure TSmartAppLaunchLogin.openBrowser;
var
url : String;
sl, s : String;
begin
FInitialState := NewGuidId;
sl := 'openid profile';
for s in scopes do
sl := sl +' '+s;
url := buildAuthUrl(server, sl, FInitialState);
OnOpenURL(url);
end;
procedure TSmartAppLaunchLogin.SetServer(const Value: TRegisteredFHIRServer);
begin
Fserver.Free;
Fserver := Value;
end;
procedure TSmartAppLaunchLogin.Settoken(const Value: TClientAccessToken);
begin
Ftoken.Free;
Ftoken := Value;
end;
end.
| 36.578431 | 164 | 0.655119 |
85e46eca70d81673696dd12775045a317012c84f
| 2,307 |
pas
|
Pascal
|
trunk/Test/Mock/Mock.Getter.VolumeBitmap.pas
|
ebangin127/nstools
|
2a0bb4e6fd3688afd74afd4c7d69eeb46f096a99
|
[
"MIT"
] | 15 |
2016-02-12T14:55:53.000Z
|
2021-08-17T09:44:12.000Z
|
trunk/Test/Mock/Mock.Getter.VolumeBitmap.pas
|
ebangin127/nstools
|
2a0bb4e6fd3688afd74afd4c7d69eeb46f096a99
|
[
"MIT"
] | 1 |
2020-10-28T12:19:56.000Z
|
2020-10-28T12:19:56.000Z
|
trunk/Test/Mock/Mock.Getter.VolumeBitmap.pas
|
ebangin127/nstools
|
2a0bb4e6fd3688afd74afd4c7d69eeb46f096a99
|
[
"MIT"
] | 7 |
2016-08-21T23:57:47.000Z
|
2022-02-14T03:26:21.000Z
|
unit Mock.Getter.VolumeBitmap;
interface
uses
SysUtils, Windows, Generics.Collections,
OSFile;
const
BitmapSizePerBuffer = 16384;
type
TBitmapBuffer = Array[0..BitmapSizePerBuffer - 1] of Cardinal;
TBitmapPositionSize = record
StartingLCN: LARGE_INTEGER;
BitmapSize: LARGE_INTEGER;
end;
TVolumeBitmapBufferWithErrorCode = record
PositionSize: TBitmapPositionSize;
Buffer: TBitmapBuffer;
LastError: Cardinal;
end;
TVolumeBitmapGetter = class(TOSFile)
public
function GetVolumeBitmap(StartingLCN: LARGE_INTEGER):
TVolumeBitmapBufferWithErrorCode;
class procedure CreateBitmapStorage;
class procedure FreeBitmapStorage;
class procedure AddAtBitmapStorage(BitmapBuffer: TBitmapBuffer);
class procedure ClearBitmapStorage;
class procedure SetLength(NewLength: Int64);
private
type
TBitmapBufferStorage = TList<TBitmapBuffer>;
private
class var BitmapBufferLength: Int64;
class var BitmapBufferStorage: TBitmapBufferStorage;
end;
implementation
{ TVolumeBitmapGetter }
function TVolumeBitmapGetter.GetVolumeBitmap(
StartingLCN: LARGE_INTEGER): TVolumeBitmapBufferWithErrorCode;
var
RemainingLength: Int64;
begin
RemainingLength :=
BitmapBufferLength - StartingLCN.QuadPart;
result.PositionSize.StartingLCN := StartingLCN;
result.PositionSize.BitmapSize.QuadPart := RemainingLength;
result.Buffer := BitmapBufferStorage[StartingLCN.QuadPart div
BitmapSizePerBuffer];
if RemainingLength > BitmapSizePerBuffer then
result.LastError := ERROR_MORE_DATA
else if RemainingLength >= 0 then
result.LastError := ERROR_SUCCESS
else
result.LastError := ERROR_NO_MORE_ITEMS;
end;
class procedure TVolumeBitmapGetter.SetLength(NewLength: Int64);
begin
BitmapBufferLength := NewLength;
end;
class procedure TVolumeBitmapGetter.CreateBitmapStorage;
begin
BitmapBufferStorage := TBitmapBufferStorage.Create;
end;
class procedure TVolumeBitmapGetter.FreeBitmapStorage;
begin
FreeAndNil(BitmapBufferStorage);
end;
class procedure TVolumeBitmapGetter.AddAtBitmapStorage(
BitmapBuffer: TBitmapBuffer);
begin
BitmapBufferStorage.Add(BitmapBuffer);
end;
class procedure TVolumeBitmapGetter.ClearBitmapStorage;
begin
BitmapBufferStorage.Clear;
end;
end.
| 23.783505 | 68 | 0.785869 |
17f600a7032e3ec34765770c96bdd14b9cd55229
| 1,205 |
dpr
|
Pascal
|
AllocationFreeCollections/04GrowableStackList/E04GrowableStackList.dpr
|
atkins126/JustAddCode
|
25b23c8368a17738b9433233d415525374b1b841
|
[
"BSD-2-Clause"
] | 107 |
2017-01-11T00:22:54.000Z
|
2022-03-10T12:24:51.000Z
|
AllocationFreeCollections/04GrowableStackList/E04GrowableStackList.dpr
|
atkins126/JustAddCode
|
25b23c8368a17738b9433233d415525374b1b841
|
[
"BSD-2-Clause"
] | 9 |
2017-02-23T10:15:40.000Z
|
2022-02-20T03:20:02.000Z
|
AllocationFreeCollections/04GrowableStackList/E04GrowableStackList.dpr
|
atkins126/JustAddCode
|
25b23c8368a17738b9433233d415525374b1b841
|
[
"BSD-2-Clause"
] | 51 |
2017-01-10T15:59:57.000Z
|
2022-01-31T03:04:15.000Z
|
program E04GrowableStackList;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
UGrowableStackList in 'UGrowableStackList.pas';
procedure GrowableStackListExample;
var
List: TStackList<Integer, T128Bytes>;
I: Integer;
begin
ReportMemoryLeaksOnShutdown := True;
List.Initialize;
try
{ This list can contain up to 128 bytes of stack data. An Integer is 4 bytes
in size, meaning the list can contain up to 32 integers before it starts to
use the heap. }
for I := 0 to 31 do
begin
Assert(List.Count = I);
Assert(List.HeapCount = 0);
List.Add(I);
end;
{ Any additional items will go to the heap }
for I := 32 to 99 do
begin
Assert(List.Count = I);
Assert(List.HeapCount = I - 32);
List.Add(I);
end;
{ Check contents }
Assert(List.Count = 100);
for I := 0 to List.Count - 1 do
Assert(List[I] = I);
finally
{ Free any heap memory the list may have allocated. }
List.Finalize;
end;
end;
begin
try
GrowableStackListExample;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
| 20.423729 | 82 | 0.606639 |
6a73430d4c2963b38fd476d2094e7b7d2bdd7c45
| 310 |
pas
|
Pascal
|
Test/FailureScripts/property_unused.pas
|
synapsea/DW-Script
|
b36c2e57f0285c217f8f0cae8e4e158d21127163
|
[
"Condor-1.1"
] | 1 |
2022-02-18T22:14:44.000Z
|
2022-02-18T22:14:44.000Z
|
Test/FailureScripts/property_unused.pas
|
synapsea/DW-Script
|
b36c2e57f0285c217f8f0cae8e4e158d21127163
|
[
"Condor-1.1"
] | null | null | null |
Test/FailureScripts/property_unused.pas
|
synapsea/DW-Script
|
b36c2e57f0285c217f8f0cae8e4e158d21127163
|
[
"Condor-1.1"
] | null | null | null |
type
TTest = class
Field : Integer;
function GetDef(i : Integer) : Integer;
procedure SetDef(i, v : Integer);
property Def[i : Integer] : Integer read GetDef write SetDef; default;
property Prop : Integer read Field write Field;
end;
var t : TTest;
t[1];
t.Prop;
t.Field;
| 22.142857 | 76 | 0.632258 |
f1a3935c46f9fa02da649a48960f57dd6c263223
| 7,350 |
pas
|
Pascal
|
lib/crt.pas
|
zbyti/Mad-Pascal
|
546cae9724828f93047080109488be7d0d07d47e
|
[
"MIT"
] | 1 |
2021-12-15T23:47:19.000Z
|
2021-12-15T23:47:19.000Z
|
lib/crt.pas
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
lib/crt.pas
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
unit CRT;
(*
@type: unit
@name: Mad Pascal screen and keyboard handling units
@author: Tomasz Biela (Tebe)
@description:
<http://www.freepascal.org/docs-html/rtl/crt/index-5.html>
*)
{
Consol
ClrEol
ClrScr
CursorOff
CursorOn
Delay
DelLine
GotoXY
InsLine
Keypressed
NoSound
ReadKey
Sound
TextBackground
TextColor
TextMode
WhereX
WhereY
}
interface
{$IFDEF ATARI}
var
TextAttr: byte = 0; (* @var Text Attribute *)
Consol: byte absolute $d01f; // CONSOL register
{$ENDIF}
const
{$IFDEF ATARI}
CN_START_SELECT_OPTION = 0; // Consol values
CN_SELECT_OPTION = 1;
CN_START_OPTION = 2;
CN_OPTION = 3;
CN_START_SELECT = 4;
CN_SELECT = 5;
CN_START = 6;
CN_NONE = 7;
{$ENDIF}
{ CRT modes }
BW40 = 0; { 40x25 B/W on Color Adapter }
CO40 = 1; { 40x25 Color on Color Adapter }
BW80 = 2; { 80x25 B/W on Color Adapter }
CO80 = 3; { 80x25 Color on Color Adapter }
Mono = 7; { 80x25 on Monochrome Adapter }
{ Mode constants for 3.0 compatibility }
C40 = CO40;
C80 = CO80;
{ Foreground and background color constants }
Black = 0;
Blue = 1;
Green = 2;
Cyan = 3;
Red = 4;
Magenta = 5;
Brown = 6;
LightGray = 7;
{ Foreground color constants }
DarkGray = 8;
LightBlue = 9;
LightGreen = 10;
LightCyan = 11;
LightRed = 12;
LightMagenta = 13;
Yellow = 14;
White = 15;
{ Add-in for blinking }
Blink = 128;
procedure ClrEol;
procedure ClrScr; //platform dependent
procedure CursorOff;
procedure CursorOn;
procedure Delay(count: word); assembler;
procedure DelLine;
procedure GotoXY(x,y: byte); assembler; //platform dependent
procedure InsLine;
function Keypressed: Boolean; assembler; //platform dependent
procedure NoSound; assembler;
function ReadKey: char; assembler; //platform dependent
procedure Sound(Chan,Freq,Dist,Vol: byte); assembler;
procedure TextBackground(a: byte); assembler;
procedure TextColor(a: byte); assembler;
procedure TextMode(Mode: byte); assembler;
function WhereX: byte; assembler; //platform dependent
function WhereY: byte; assembler; //platform dependent
implementation
//{$IFDEF ATARI}
uses atari;
//{$ENDIF}
procedure CursorOff;
(*
@description: Hide cursor
*)
begin
crsinh:=1; // znacznik widocznosci kursora
write( CH_CURS_RIGHT, CH_CURS_LEFT );
end;
procedure CursorOn;
(*
@description: Display cursor
*)
begin
crsinh:=0; // znacznik widocznosci kursora
write( CH_CURS_RIGHT, CH_CURS_LEFT );
end;
procedure ClrScr;
(*
@description: Clear screen
*)
begin
{$IFDEF ATARI}
write( CH_CLR );
{$ELSE}
asm
{ jsr $e544
};
{$ENDIF}
end;
procedure DelLine;
(*
@description: Delete line at cursor position
*)
begin
write( CH_DELLINE );
end;
procedure InsLine;
(*
@description: Insert an empty line at cursor position
*)
begin
write( CH_INSLINE );
end;
function ReadKey: char; assembler;
(*
@description: Read key from keybuffer
@returns: char
*)
{$IFDEF ATARI}
asm
{ m@call @GetKey
sta Result
};
{$ELSE}
asm
{ txa:pha
jsr $ffe4 ; GETIN
sta Result
pla:tax
};
{$ENDIF}
end;
procedure TextBackground(a: byte); assembler;
(*
@description: Set text background
@param: a - color value 0..255
*)
asm
{ mwa a colpf2s
};
end;
procedure TextColor(a: byte); assembler;
(*
@description: Set text color
@param: a - color value 0..255
*)
asm
{ mva a colpf1s
};
end;
procedure Delay(count: word); assembler;
(*
@description: Waits a specified number of milliseconds
@param: count - number of milliseconds
*)
asm
{ txa:pha
ldx #0
ldy #0
loop cpy count
bne @+
cpx count+1
beq stop
@ :8 lda:cmp:req vcount
iny
sne
inx
bne loop
stop pla:tax
};
end;
function Keypressed: Boolean; assembler;
(*
@description: Check if there is a keypress in the keybuffer
@returns: TRUE key has been pressed
@returns: FALSE otherwise
*)
{$IFDEF ATARI}
asm
{ ldy #$00 ; false
lda kbcodes
cmp #$ff
beq skp
iny ; true
; sty kbcodes
skp sty Result
};
{$ELSE}
asm
{ ldy #$00 ; false
lda $cb
cmp #$40
beq skp
iny ; true
; sty kbcodes
skp sty Result
};
{$ENDIF}
end;
procedure GotoXY(x,y: byte); assembler;
(*
@description:
Set cursor position on screen.
GotoXY positions the cursor at (X,Y), X in horizontal, Y in vertical direction relative to
the origin of the current window. The origin is located at (1,1), the upper-left corner of the window.
@param: x - horizontal positions (1..40)
@param: y - vertical positions (1..24)
*)
{$IFDEF ATARI}
asm
{ ldy x
beq @+
dey
@ sty colcrs
mvy #$00 colcrs+1
ldy y
beq @+
dey
@ sty rowcrs
};
{$ELSE}
asm
{ txa:pha
clc
ldx y
seq
dex
ldy x
seq
dey
jsr $FFF0 ; PLOT
pla:tax
};
{$ENDIF}
end;
function WhereX: byte; assembler;
(*
@description: Return X (horizontal) cursor position
@returns: byte (1..40)
*)
{$IFDEF ATARI}
asm
{
ldy colcrs
iny
sty Result
};
{$ELSE}
asm
{ txa:pha
sec
jsr $FFF0 ; PLOT
iny
sty Result
pla:tax
};
{$ENDIF}
end;
function WhereY: byte; assembler;
(*
@description: Return Y (vertical) cursor position
@returns: byte (1..24)
*)
{$IFDEF ATARI}
asm
{
ldy rowcrs
iny
sty Result
};
{$ELSE}
asm
{ txa:pha
sec
jsr $FFF0 ; PLOT
inx
stx Result
pla:tax
};
{$ENDIF}
end;
procedure ClrEol;
(*
@description:
ClrEol clears the current line, starting from the cursor position, to the end of the window.
The cursor doesn't move.
*)
begin
FillChar( pointer(word(DPeek(88)+WhereX)+WhereY*40-41), byte(41-byte(WhereX)), 0);
end;
procedure NoSound; assembler;
(*
@description: Reset POKEY
*)
asm
{ lda #0
sta $d208
sta $d218
ldy #3
sty $d20f
sty $d21f
ldy #8
lp sta $d200,y
sta $d210,y
dey
bpl lp
};
end;
procedure Sound(Chan,Freq,Dist,Vol: byte); assembler;
(*
@description: Plays sound
@param: Chan - channel (0..3) primary POKEY, (4..7) secondary POKEY
@param: Freq - frequency (0..255)
@param: Dist - distortion (0,2,4,6,8,10,12,14)
@param: Vol - volume (0..15)
*)
//----------------------------------------------------------------------------------------------
// Chan = 0..3 primary Pokey
// Chan = 4..7 secondary Pokey
//----------------------------------------------------------------------------------------------
asm
{ lda Chan
and #7
ldy #$10
cmp #4
scs
ldy #$00
sty npokey
and #3
asl @
add #0
npokey equ *-1
tay
lda #$00
sta audctl
lda #$03
sta skctl
lda Freq
sta audf1,y
lda Vol
and #$0F
sta _t
lda Dist ; -> bit 7-6-5
:4 asl @
ora #0
_t equ *-1
sta audc1,y
};
end;
procedure TextMode(Mode: byte); assembler;
(*
@description: Reset E: device
@param: Mode - unused value
*)
asm
{ txa:pha
@clrscr
pla:tax
};
end;
end.
| 14.788732 | 113 | 0.584354 |
6af332116d3f2505e8887e85ea49ab22583f1466
| 2,117 |
dfm
|
Pascal
|
BAB-4/bakul_dawet/fungsi_dawet.dfm
|
teknologi-pendidikan/matkul-pemrograman-visual
|
aa9faca0f17a53369760a952dea631b917d3abe7
|
[
"MIT"
] | null | null | null |
BAB-4/bakul_dawet/fungsi_dawet.dfm
|
teknologi-pendidikan/matkul-pemrograman-visual
|
aa9faca0f17a53369760a952dea631b917d3abe7
|
[
"MIT"
] | null | null | null |
BAB-4/bakul_dawet/fungsi_dawet.dfm
|
teknologi-pendidikan/matkul-pemrograman-visual
|
aa9faca0f17a53369760a952dea631b917d3abe7
|
[
"MIT"
] | null | null | null |
object KalkulatorDawet: TKalkulatorDawet
Left = 574
Top = 159
Width = 570
Height = 414
Caption = 'KalkulatorDawet'
Color = clSkyBlue
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Llbl: TLabel
Left = 16
Top = 16
Width = 177
Height = 29
Caption = 'BAKUL DAWET'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -24
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object Llbl1: TLabel
Left = 16
Top = 56
Width = 99
Height = 19
Caption = 'Beli 5 Gratis 1'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object Llbl2: TLabel
Left = 16
Top = 88
Width = 109
Height = 19
Caption = 'Rp. 1000/Gelas'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object g1: TStringGrid
Left = 240
Top = 16
Width = 281
Height = 345
Color = clLime
ColCount = 3
FixedColor = clYellow
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 0
ColWidths = (
64
94
99)
end
object b1: TButton
Left = 16
Top = 168
Width = 209
Height = 41
Caption = 'HITUNG'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -24
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
OnClick = b1Click
end
object e1: TEdit
Left = 16
Top = 120
Width = 209
Height = 37
Color = clLime
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -24
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
TabOrder = 2
end
end
| 20.161905 | 40 | 0.604629 |
f1fcb87592f8f84c5ca880121c4687f2c6812109
| 3,324 |
pas
|
Pascal
|
src/LogUtils.pas
|
celyo/fdbconsole
|
5c144b3692fba581c7cf019fa93bd88e279236ae
|
[
"Apache-2.0"
] | 1 |
2021-03-04T05:41:14.000Z
|
2021-03-04T05:41:14.000Z
|
src/LogUtils.pas
|
celyo/fdbconsole
|
5c144b3692fba581c7cf019fa93bd88e279236ae
|
[
"Apache-2.0"
] | null | null | null |
src/LogUtils.pas
|
celyo/fdbconsole
|
5c144b3692fba581c7cf019fa93bd88e279236ae
|
[
"Apache-2.0"
] | 1 |
2021-03-04T05:22:43.000Z
|
2021-03-04T05:22:43.000Z
|
unit LogUtils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, LCLProc;
type
TLogMode = (lmNone, lmTrace, lmDebug, lmInfo, lmWarning, lmError);
function LogModeToStr(pMode : TLogMode) : String;
function StrToLogMode(pMode : String) : TLogMode;
procedure SetLogFile(pFileName : String);
function GetLogFile : String;
procedure SetLogMode(pMode : TLogMode);
function GetLogMode : TLogMode;
procedure LogError(pText : String);
procedure LogWarning(pText : String);
procedure LogInfo(pText : String);
procedure LogDebug(pText : String);
procedure LogTrace(pText : String);
implementation
var
FFileName : String = '';
FLogMode : TLogMode = lmNone;
FHandle : THandle = THandle(-1);
procedure InternalCloseFile;
begin
if FHandle <> feInvalidHandle then
begin
FileClose(FHandle);
FHandle := feInvalidHandle;
end;
end;
procedure InternalOpenFile;
begin
if FFileName = '' then FFileName := ChangeFileExt(Application.ExeName,'.log');
if FHandle <> feInvalidHandle then InternalCloseFile;
if FileExists(FFileName) then
begin
FHandle := FileOpen(FFileName, fmOpenWrite or fmShareDenyWrite);
end
else
begin
FHandle := FileCreate(FFileName);
end;
if FHandle = feInvalidHandle then Raise Exception.CreateFmt('Cannot open file "%s"!',[FFileName]);
FileSeek(FHandle,0,fsFromEnd);
end;
procedure SetLogFile(pFileName: String);
begin
FFileName := pFileName;
InternalCloseFile;
end;
function GetLogFile: String;
begin
Result := FFileName;
end;
function LogModeToStr(pMode : TLogMode) : String;
begin
case pMode of
lmNone : Result := 'NONE';
lmTrace : Result := 'TRACE';
lmDebug : Result := 'DEBUG';
lmInfo : Result := 'INFO';
lmWarning : Result := 'WARNING';
lmError : Result := 'ERROR';
else Result := '';
end; // case
end;
function StrToLogMode(pMode: String): TLogMode;
begin
case UpperCase(pMode) of
'NONE' : Result := lmNone;
'TRACE' : Result := lmTrace;
'DEBUG' : Result := lmDebug;
'INFO' : Result := lmInfo;
'WARNING' : Result := lmWarning;
'ERROR' : Result := lmError;
else Result := lmNone;
end; // case
end;
procedure LogMessage(pMode : TLogMode; pText : String);
var
aStr : String;
aMode : String;
begin
if FHandle = feInvalidHandle then InternalOpenFile;
aMode := LogModeToStr(pMode);
// if aMode <> '' then aMode := '[' + aMode + ']';
aStr := '[' + FormatDateTime('DD.MM.YYYY HH:nn:ss.zzz',Now) + '] ' + aMode + ': ' + pText + LineEnding;
FileWrite(FHandle,&aStr[1], Length(aStr));
if IsConsole then Writeln(aStr);
end;
procedure SetLogMode(pMode: TLogMode);
begin
FLogMode := pMode;
end;
function GetLogMode: TLogMode;
begin
Result := FLogMode;
end;
procedure LogError(pText: String);
begin
if FLogMode <= lmError then LogMessage(lmError, pText);
end;
procedure LogWarning(pText: String);
begin
if FLogMode <= lmWarning then LogMessage(lmWarning, pText);
end;
procedure LogInfo(pText: String);
begin
if FLogMode <= lmInfo then LogMessage(lmInfo, pText);
end;
procedure LogDebug(pText: String);
begin
if FLogMode <= lmDebug then LogMessage(lmDebug, pText);
end;
procedure LogTrace(pText: String);
begin
if FLogMode <= lmTrace then LogMessage(lmTrace, pText);
end;
initialization
finalization
InternalCloseFile;
end.
| 22.013245 | 105 | 0.698857 |
83c257a00f36549db16d6c54b0b0b3c041871d21
| 1,994 |
pas
|
Pascal
|
sources/chHash.CRC.CRC5.Reverse.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | null | null | null |
sources/chHash.CRC.CRC5.Reverse.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | null | null | null |
sources/chHash.CRC.CRC5.Reverse.pas
|
vampirsoft/CryptoHash
|
bd8eb1fc2f8c8b63c3cb52b47908b7fbadab4be4
|
[
"MIT"
] | 2 |
2020-08-30T18:22:38.000Z
|
2021-06-08T19:52:56.000Z
|
/////////////////////////////////////////////////////////////////////////////////
//*****************************************************************************//
//* Project : CryptoHash *//
//* Latest Source: https://github.com/vampirsoft/CryptoHash *//
//* Unit Name : CryptoHash.inc *//
//* Author : Сергей (LordVampir) Дворников *//
//* Copyright 2021 LordVampir (https://github.com/vampirsoft) *//
//* Licensed under MIT *//
//*****************************************************************************//
/////////////////////////////////////////////////////////////////////////////////
unit chHash.CRC.CRC5.Reverse;
{$INCLUDE CryptoHash.inc}
interface
uses
{$IF DEFINED(SUPPORTS_INTERFACES)}
chHash.CRC.CRC5.Impl;
{$ELSE ~ NOT SUPPORTS_INTERFACES}
chHash.CRC.CRC5;
{$ENDIF ~ SUPPORTS_INTERFACES}
type
{ TchReverseCrc5 }
TchReverseCrc5 = class(TchCrc5)
public
procedure Calculate(var Current: Byte; const Data: Pointer; const Length: Cardinal); override;
function Final(const Current: Byte): Byte; override;
end;
implementation
uses
{$IF DEFINED(USE_JEDI_CORE_LIBRARY)}
JclLogic;
{$ELSE ~ NOT USE_JEDI_CORE_LIBRARY}
chHash.Core.Bits;
{$ENDIF ~ USE_JEDI_CORE_LIBRARY}
{ TchReverseCrc5 }
procedure TchReverseCrc5.Calculate(var Current: Byte; const Data: Pointer; const Length: Cardinal);
const
ShiftToBits = Byte(BitsPerByte - TchCrc5.Size);
begin
Current := Current shl ShiftToBits;
inherited Calculate(Current, Data, Length);
Current := Current shr ShiftToBits;
end;
function TchReverseCrc5.Final(const Current: Byte): Byte;
const
ShiftToBits = Byte(BitsPerByte - TchCrc5.Size);
begin
Result := inherited Final(Current shl ShiftToBits);
end;
end.
| 30.676923 | 100 | 0.508024 |
f1eec38561c9d2a83962017fec1387055bb35cb1
| 1,345 |
pas
|
Pascal
|
Zooming.Helpers/Zoomicon.Helpers.RTL/Zoomicon.Helpers.RTL.ClassListHelpers.pas
|
atkins126/READCOM_App
|
8425eaa5c134caee33a89dc77b57593a418a4eda
|
[
"MIT"
] | 4 |
2021-09-15T15:37:24.000Z
|
2022-03-01T16:09:19.000Z
|
Zooming.Helpers/Zoomicon.Helpers.RTL/Zoomicon.Helpers.RTL.ClassListHelpers.pas
|
atkins126/READCOM_App
|
8425eaa5c134caee33a89dc77b57593a418a4eda
|
[
"MIT"
] | 86 |
2021-12-16T08:45:43.000Z
|
2022-03-30T23:01:51.000Z
|
Zooming.Helpers/Zoomicon.Helpers.RTL/Zoomicon.Helpers.RTL.ClassListHelpers.pas
|
atkins126/READCOM_App
|
8425eaa5c134caee33a89dc77b57593a418a4eda
|
[
"MIT"
] | 2 |
2021-11-04T19:54:22.000Z
|
2021-11-15T00:32:58.000Z
|
unit Zoomicon.Helpers.RTL.ClassListHelpers;
interface
uses System.Contnrs; //for TClassList
type
TClassArray = array of TClass;
TClassListCreateFromClassArrayHelper = class helper for TClassList
constructor Create(const Items: TClassArray); overload; virtual;
end;
TClassListFindClassOfHelper = class helper(TClassListCreateFromClassArrayHelper) for TClassList //using class helper inheritance, else only last helper defined for same Class is seen by compiler
function FindClassOf(const AObject: TObject; const AExact: Boolean = True; const AStartAt: Integer = 0): Integer;
end;
implementation
uses System.Classes; //seems to be needed to expand TClassList inline functions
{$REGION 'TClassListFindClassOfHelper'}
constructor TClassListCreateFromClassArrayHelper.Create(const Items: TClassArray);
begin
inherited Create;
for var AClass in Items do
Add(AClass);
end;
function TClassListFindClassOfHelper.FindClassOf(const AObject: TObject; const AExact: Boolean = True; const AStartAt: Integer = 0): Integer;
begin
for var i := AStartAt to (Count - 1) do //Items is a 0-indexed array
if (AExact and (Items[i] = AObject.ClassType)) or
(not AExact and AObject.InheritsFrom(Items[i])) then
begin
Result := i;
exit;
end;
Result := -1;
end;
{$ENDREGION}
end.
| 29.888889 | 198 | 0.744238 |
f14e394af18a02d6186314eff204530dbbf86754
| 8,358 |
dfm
|
Pascal
|
sample/Main.dfm
|
nickolasdeluca/UrlParser
|
a2ea36fc91e66796420f5200dd73252191b3b405
|
[
"MIT"
] | 11 |
2021-03-14T03:29:41.000Z
|
2022-01-20T23:32:39.000Z
|
sample/Main.dfm
|
nickolasdeluca/UrlParser
|
a2ea36fc91e66796420f5200dd73252191b3b405
|
[
"MIT"
] | 1 |
2021-03-15T14:48:47.000Z
|
2021-03-15T14:55:19.000Z
|
sample/Main.dfm
|
nickolasdeluca/UrlParser
|
a2ea36fc91e66796420f5200dd73252191b3b405
|
[
"MIT"
] | 2 |
2021-03-30T05:05:46.000Z
|
2021-05-12T08:29:58.000Z
|
object FMain: TFMain
Left = 0
Top = 0
Caption = 'UrlParser sample'
ClientHeight = 269
ClientWidth = 494
Color = 4802889
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Segoe UI'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
PixelsPerInch = 96
TextHeight = 13
object cpSamples: TCardPanel
Left = 0
Top = 0
Width = 494
Height = 236
Align = alClient
ActiveCard = cdTestToString
BevelOuter = bvNone
Caption = 'cpSamples'
TabOrder = 0
OnCardChange = cpSamplesCardChange
ExplicitLeft = 72
ExplicitTop = 8
ExplicitWidth = 300
ExplicitHeight = 200
object cdTestToString: TCard
Left = 0
Top = 0
Width = 494
Height = 236
Hint = 'Simple creation'
Caption = 'cdTestToString'
CardIndex = 0
TabOrder = 0
ExplicitLeft = -7
ExplicitWidth = 445
ExplicitHeight = 274
object btSampler: TButton
AlignWithMargins = True
Left = 5
Top = 211
Width = 484
Height = 25
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 0
Align = alBottom
Caption = 'Test it!'
TabOrder = 0
OnClick = btSamplerClick
ExplicitLeft = 184
ExplicitTop = 168
ExplicitWidth = 75
end
object mmUrl: TMemo
AlignWithMargins = True
Left = 5
Top = 5
Width = 484
Height = 201
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 0
Align = alClient
ReadOnly = True
TabOrder = 1
ExplicitLeft = 8
ExplicitTop = 8
ExplicitWidth = 431
ExplicitHeight = 154
end
end
object cdTestObjectCreation: TCard
Left = 0
Top = 0
Width = 494
Height = 236
Hint = 'Object creation and usage'
Caption = 'cdTestObjectCreation'
CardIndex = 1
TabOrder = 1
ExplicitWidth = 185
ExplicitHeight = 41
object mmParsedInfo: TMemo
AlignWithMargins = True
Left = 5
Top = 31
Width = 484
Height = 175
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 0
Align = alClient
ReadOnly = True
TabOrder = 0
ExplicitTop = 56
ExplicitHeight = 150
end
object btParse: TButton
AlignWithMargins = True
Left = 5
Top = 211
Width = 484
Height = 25
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 0
Align = alBottom
Caption = 'Parse it!'
TabOrder = 1
OnClick = btParseClick
ExplicitLeft = 10
end
object edUrl: TEdit
AlignWithMargins = True
Left = 5
Top = 5
Width = 484
Height = 21
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 0
Align = alTop
TabOrder = 2
TextHint = 'Type your URL here'
ExplicitLeft = 184
ExplicitTop = 112
ExplicitWidth = 121
end
end
end
object pnControlCards: TPanel
AlignWithMargins = True
Left = 0
Top = 236
Width = 494
Height = 33
Margins.Left = 0
Margins.Top = 0
Margins.Right = 0
Margins.Bottom = 0
Align = alBottom
BevelOuter = bvNone
Caption = 'Simple creation'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWhite
Font.Height = -11
Font.Name = 'Segoe UI'
Font.Style = []
ParentFont = False
TabOrder = 1
ExplicitTop = 215
ExplicitWidth = 450
object btNext: TSpeedButton
AlignWithMargins = True
Left = 466
Top = 5
Width = 23
Height = 23
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Align = alRight
Flat = True
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C30E0000C30E00000000000000000000FF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFB57A4EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFB57A4EC07A5DFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFB57A4EEAB085BE7B5CFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFB57A4EF0B78BEBB286C07B5FFF00
FFFF00FFFF00FFFF00FFFF00FFB57A4EB57A4EB57A4EB57A4EB57A4EB57A4EB5
7A4EB57A4EF0B78BF0B78BEBB286C07D5EFF00FFFF00FFFF00FFFF00FFB57A4E
F0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BEAB0
85BE7B5CFF00FFFF00FFFF00FFB57A4EF0B78BF0B78BF0B78BF0B78BF0B78BF0
B78BF0B78BF0B78BF0B78BF0B78BF0B78BEBB287C17E5EFF00FFFF00FFB57A4E
F0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B7
8BEBB286C07D5EFF00FFFF00FFB57A4EF0B78BF0B78BF0B78BF0B78BF0B78BF0
B78BF0B78BF0B78BF0B78BF0B78BEAB185BE7C5BFF00FFFF00FFFF00FFB57A4E
B57A4EB57A4EB57A4EB57A4EB57A4EB57A4EB57A4EF0B78BF0B78BEAB185BF7C
5DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFB57A4EF0B78BEBB286C07D5EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFB57A4EEBB286C07D5EFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFB57A4EC07D5CFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFB57A4EFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF}
OnClick = btNextClick
ExplicitLeft = 216
ExplicitTop = 8
ExplicitHeight = 22
end
object btPrevious: TSpeedButton
AlignWithMargins = True
Left = 5
Top = 5
Width = 23
Height = 23
Margins.Left = 5
Margins.Top = 5
Margins.Right = 5
Margins.Bottom = 5
Align = alLeft
Flat = True
Glyph.Data = {
36030000424D3603000000000000360000002800000010000000100000000100
18000000000000030000C30E0000C30E00000000000000000000FF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFB5
7A4EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFBF7B5DB57A4EFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFBE7B5CEAB184B5
7A4EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFC07B5FEBB286F0B78BB57A4EFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFC07D5EEBB286F0B78BF0B78BB5
7A4EB57A4EB57A4EB57A4EB57A4EB57A4EB57A4EB57A4EFF00FFFF00FFFF00FF
BE7B5CEAB085F0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B7
8BF0B78BB57A4EFF00FFFF00FFC07E5FEBB287F0B78BF0B78BF0B78BF0B78BF0
B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BB57A4EFF00FFFF00FFC07D5E
EBB286F0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B7
8BF0B78BB57A4EFF00FFFF00FFFF00FFBF7D5CEAB185F0B78BF0B78BF0B78BF0
B78BF0B78BF0B78BF0B78BF0B78BF0B78BF0B78BB57A4EFF00FFFF00FFFF00FF
FF00FFBF7C5DEAB185F0B78BF0B78BB57A4EB57A4EB57A4EB57A4EB57A4EB57A
4EB57A4EB57A4EFF00FFFF00FFFF00FFFF00FFFF00FFBF7D5DEBB286F0B78BB5
7A4EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFC07D5EEBB386B57A4EFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFBF7D5BB5
7A4EFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
FF00FFFF00FFFF00FFFF00FFFF00FFB57A4EFF00FFFF00FFFF00FFFF00FFFF00
FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF}
OnClick = btPreviousClick
ExplicitLeft = 216
ExplicitTop = 8
ExplicitHeight = 22
end
end
end
| 32.776471 | 72 | 0.698253 |
61b9e3a40cfafa34c39c35321566cd7eb5653f05
| 10,369 |
pas
|
Pascal
|
Framework/EasyConsole.Types.pas
|
JensBorrisholt/EasyConsole
|
31fd5fc0b3ed7dad32a3f0953eb0213ecd24cb25
|
[
"MIT"
] | 20 |
2018-09-06T09:54:56.000Z
|
2022-02-05T11:40:09.000Z
|
Framework/EasyConsole.Types.pas
|
JensBorrisholt/EasyConsole
|
31fd5fc0b3ed7dad32a3f0953eb0213ecd24cb25
|
[
"MIT"
] | null | null | null |
Framework/EasyConsole.Types.pas
|
JensBorrisholt/EasyConsole
|
31fd5fc0b3ed7dad32a3f0953eb0213ecd24cb25
|
[
"MIT"
] | 6 |
2018-09-07T12:45:14.000Z
|
2021-05-29T15:59:34.000Z
|
unit EasyConsole.Types;
interface
uses
System.Generics.Collections, System.SysUtils, System.Console.ConsoleBuffer;
{$M+}
type
EKeyNotFoundException = class(Exception);
TPage = class;
THistory = TStack<TPage>;
TPages = TObjectDictionary<string, TPage>;
TOption = class;
TProgram = class
strict private
class var FInstance: TProgram;
var
FTitle: string;
FBreadcrumbHeader: Boolean;
FHistory: THistory;
FPages: TPages;
procedure DisplayCurrentPage;
function GetCurrentPage: TPage;
function GetNavigationEnabled: Boolean;
protected
constructor Create(aTitle: string; aBreadcrumbHeader: Boolean); reintroduce;
property Title: string read FTitle;
public
destructor Destroy; override;
procedure AddPage(aPage: TPage); overload;
procedure AddPage<T: TPage, constructor>; overload;
function NavigateBack: TPage;
procedure NavigateHome;
function NavigateTo<T: TPage>: T;
procedure Run; virtual;
function SetPage<T: TPage>: T;
class property Instance: TProgram read FInstance;
published
property BreadcrumbHeader: Boolean read FBreadcrumbHeader;
property CurrentPage: TPage read GetCurrentPage;
property History: THistory read FHistory;
property NavigationEnabled: Boolean read GetNavigationEnabled;
end;
TPage = class abstract
strict private
FTitle: string;
FProgram: TProgram;
protected
FConsoleBuffer: TConsoleBuffer;
constructor Create(aTitle: String); reintroduce; virtual;
procedure DrawAsciiArt;
property &Program: TProgram read FProgram;
public
procedure Display; virtual;
Destructor Destroy; override;
published
property Title: string read FTitle;
end;
TMenu = class
strict private
FOptions: TObjectList<TOption>;
FCurrentMenuItem: Integer;
FConsoleBuffer: TConsoleBuffer;
function GetCount: Integer;
protected
property Options: TObjectList<TOption> read FOptions;
public
constructor Create(aConsoleBuffer: TConsoleBuffer);
destructor Destroy; override;
function Add(Option: string; Action: TProc): TMenu; overload;
Function Add(aOption: TOption): TMenu; overload;
Function Contains(aOption: string): Boolean;
procedure Display; virtual;
procedure ExecuteAction(Index: Integer);
procedure DecreaseCurrentMenuItem;
procedure IncreaseCurrentMenuItem;
published
property CurrentMenuItem: Integer read FCurrentMenuItem;
property Count: Integer read GetCount;
end;
TOption = class
strict private
FName: String;
FCallBack: TProc;
public
constructor Create(aName: string; aCallback: TProc); reintroduce; overload;
class function CreateNavigation<T: TPage>(aName: string): TOption;
published
property Name: String read FName;
property Callback: TProc read FCallBack;
end;
resourcestring
STR_PAGE_NOT_FOUND = 'The given page %s was not present in the program.';
STR_CHOOSE_AN_OPTION = 'Choose an option:';
implementation
uses
System.Classes, System.Math, System.Console, EasyConsole.Output, EasyConsole.Input, EasyConsole.FrameWork;
{ TPage }
type
TAnonymousEvent<TEventPointer> = record
public
class function Construct(AEvent: Pointer): TEventPointer; static;
end;
{ TAnonymousEvent<TEventPointer> }
class function TAnonymousEvent<TEventPointer>.Construct(AEvent: Pointer): TEventPointer;
type
TVtable = array [0 .. 3] of Pointer;
PVtable = ^TVtable;
PPVtable = ^PVtable;
begin
pMethod(@Result)^.Code := PPVtable((@AEvent)^)^^[3];;
pMethod(@Result)^.Data := Pointer((@AEvent)^);
end;
constructor TPage.Create(aTitle: String);
begin
inherited Create;
FTitle := aTitle;
FProgram := TProgram.Instance;
FConsoleBuffer := TConsoleBuffer.Create;
end;
destructor TPage.Destroy;
begin
FConsoleBuffer.Free;
inherited;
end;
procedure TPage.Display;
var
BreadCrumb, Title: string;
Titles: TList<string>;
Page: TPage;
begin
Console.Clear;
FConsoleBuffer.Clear;
Titles := TList<string>.Create;
try
if (FProgram.History.Count > 1) and (FProgram.BreadcrumbHeader) then
begin
for Page in FProgram.History do
Titles.Add(Page.Title);
Titles.Reverse;
for Title in Titles do
BreadCrumb := BreadCrumb + Title + ' > ';
if BreadCrumb <> '' then
BreadCrumb := BreadCrumb.Remove(BreadCrumb.Length - 3);
end
else
begin
DrawAsciiArt;
BreadCrumb := FTitle;
end;
FConsoleBuffer.WriteLine(BreadCrumb, TConsoleColor.Magenta);
FConsoleBuffer.WriteLine('---', TConsoleColor.Gray);
finally
Titles.Free;
end;
end;
procedure TPage.DrawAsciiArt;
begin
FConsoleBuffer.WriteLine(' ______ _____ _', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' | ____| / ____| | |', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' | |__ __ _ ___ _ _ | | ___ _ __ ___ ___ | | ___', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' | __| / _` / __| | | | | | / _ \| ''_ \/ __|/ _ \| |/ _ \', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' | |___| (_| \__ \ |_| | | |___| (_) | | | \__ \ (_) | | __/', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' |______\__,_|___/\__, | \_____\___/|_| |_|___/\___/|_|\___|', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' __/ |', TConsoleColor.Blue);
FConsoleBuffer.WriteLine(' |___/', TConsoleColor.Blue);
FConsoleBuffer.WriteLine('', TConsoleColor.Blue);
end;
{ TProgram }
procedure TProgram.AddPage(aPage: TPage);
var
PageClass: string;
begin
PageClass := aPage.ClassName;
if FPages.ContainsKey(PageClass) then
FPages[PageClass] := aPage
else
FPages.Add(PageClass, aPage);
end;
procedure TProgram.AddPage<T>;
begin
AddPage(T.Create);
end;
constructor TProgram.Create(aTitle: string; aBreadcrumbHeader: Boolean);
begin
inherited Create;
FInstance := Self;
FTitle := aTitle;
FBreadcrumbHeader := aBreadcrumbHeader;
FPages := TPages.Create([doOwnsValues]);
FHistory := THistory.Create;
end;
destructor TProgram.Destroy;
begin
FPages.Free;
FHistory.Free;
FInstance := nil;
inherited;
end;
procedure TProgram.DisplayCurrentPage;
begin
if (CurrentPage is TMenuPage) then
(CurrentPage as TMenuPage).WaitForChoice
else
CurrentPage.Display;
end;
function TProgram.GetCurrentPage: TPage;
begin
if History.Count = 0 then
Result := nil
else
Result := History.Peek;
end;
function TProgram.GetNavigationEnabled: Boolean;
begin
Result := History.Count > 1;
end;
function TProgram.NavigateBack: TPage;
begin
History.Pop;
Console.Clear;
DisplayCurrentPage;
Result := CurrentPage;
end;
procedure TProgram.NavigateHome;
begin
while History.Count > 1 do
History.Pop;
Console.Clear;
DisplayCurrentPage;
end;
function TProgram.NavigateTo<T>: T;
begin
SetPage<T>;
Console.Clear;
DisplayCurrentPage;
Result := CurrentPage as T;
end;
procedure TProgram.Run;
begin
Console.Title := Title;
try
DisplayCurrentPage;
except
on e: Exception do
Output.WriteLine(TConsoleColor.Red, e.ToString);
end;
end;
function TProgram.SetPage<T>: T;
var
PageType: String;
NextPage: TPage;
begin
PageType := T.ClassName;
if (CurrentPage <> nil) and (CurrentPage.ClassName = PageType) then
exit(CurrentPage as T);
// leave the current page
// select the new page
if not(FPages.TryGetValue(PageType, NextPage)) then
raise EKeyNotFoundException.CreateFmt(STR_PAGE_NOT_FOUND, [PageType]);
// enter the new page
History.Push(NextPage);
Result := CurrentPage as T;
end;
{ TMenu }
function TMenu.Add(Option: string; Action: TProc): TMenu;
begin
Result := Add(TOption.Create(Option, Action));
end;
function TMenu.Add(aOption: TOption): TMenu;
begin
FOptions.Add(aOption);
Result := Self;
end;
function TMenu.Contains(aOption: string): Boolean;
var
Option: TOption;
begin
for Option in FOptions do
if aOption.Equals(Option.Name) then
exit(True);
exit(False);
end;
constructor TMenu.Create;
begin
inherited Create;
FOptions := TObjectList<TOption>.Create;
FCurrentMenuItem := 1;
FConsoleBuffer := aConsoleBuffer;
end;
procedure TMenu.DecreaseCurrentMenuItem;
begin
FCurrentMenuItem := FCurrentMenuItem - 1;
if FCurrentMenuItem < 1 then
FCurrentMenuItem := FOptions.Count;
end;
destructor TMenu.Destroy;
begin
FOptions.Free;
inherited;
end;
procedure TMenu.Display;
var
i, MenuItem: Integer;
FontColor: TConsoleColor;
DisplayText: String;
begin
for i := 0 to FOptions.Count - 1 do
begin
MenuItem := i + 1;
if MenuItem = FCurrentMenuItem then
FontColor := TConsoleColor.Yellow
else
FontColor := TConsoleColor.White;
if MenuItem = FCurrentMenuItem then
DisplayText := FOptions[i].Name + ' <--'
else
DisplayText := FOptions[i].Name;
if FConsoleBuffer <> nil then
FConsoleBuffer.WriteLine(MenuItem.ToString + '. ' + DisplayText, FontColor)
else
Output.WriteLine(FontColor, '{0}. {1}', [MenuItem, DisplayText]);
end;
end;
procedure TMenu.ExecuteAction(Index: Integer);
begin
if not InRange(Index, 1, FOptions.Count) then
exit;
FCurrentMenuItem := Index;
dec(Index);
if Assigned(FOptions[Index].Callback) then
FOptions[Index].Callback();
end;
function TMenu.GetCount: Integer;
begin
Result := FOptions.Count;
end;
procedure TMenu.IncreaseCurrentMenuItem;
begin
FCurrentMenuItem := FCurrentMenuItem + 1;
if FCurrentMenuItem > FOptions.Count then
FCurrentMenuItem := 1;
end;
{ TOption }
constructor TOption.Create(aName: string; aCallback: TProc);
begin
inherited Create;
FName := aName;
FCallBack := aCallback;
end;
class function TOption.CreateNavigation<T>(aName: string): TOption;
begin
Result := TOption.Create(aName,
procedure
begin
TProgram.Instance.NavigateTo<T>;
end);
end;
end.
| 24.57109 | 114 | 0.676343 |
83ecdc90838ab08e46013f6eb3aa3dc9b3124395
| 8,350 |
pas
|
Pascal
|
Source/Services/Lex/Base/AWS.LexRuntimeService.Client.pas
|
herux/aws-sdk-delphi
|
4ef36e5bfc536b1d9426f78095d8fda887f390b5
|
[
"Apache-2.0"
] | 67 |
2021-07-28T23:47:09.000Z
|
2022-03-15T11:48:35.000Z
|
Source/Services/Lex/Base/AWS.LexRuntimeService.Client.pas
|
herux/aws-sdk-delphi
|
4ef36e5bfc536b1d9426f78095d8fda887f390b5
|
[
"Apache-2.0"
] | 5 |
2021-09-01T09:31:16.000Z
|
2022-03-16T18:19:21.000Z
|
Source/Services/Lex/Base/AWS.LexRuntimeService.Client.pas
|
herux/aws-sdk-delphi
|
4ef36e5bfc536b1d9426f78095d8fda887f390b5
|
[
"Apache-2.0"
] | 13 |
2021-07-29T02:41:16.000Z
|
2022-03-16T10:22:38.000Z
|
unit AWS.LexRuntimeService.Client;
interface
uses
AWS.Runtime.Client,
AWS.LexRuntimeService.ClientIntf,
AWS.LexRuntimeService.Config,
AWS.Runtime.AWSRegion,
AWS.RegionEndpoint,
AWS.Runtime.ClientConfig,
AWS.Runtime.Credentials,
AWS.Internal.ServiceMetadata,
AWS.LexRuntimeService.Metadata,
AWS.Auth.Signer,
AWS.LexRuntimeService.Model.DeleteSessionResponse,
AWS.LexRuntimeService.Model.DeleteSessionRequest,
AWS.Internal.InvokeOptions,
AWS.LexRuntimeService.Transform.DeleteSessionRequestMarshaller,
AWS.LexRuntimeService.Transform.DeleteSessionResponseUnmarshaller,
AWS.LexRuntimeService.Model.GetSessionResponse,
AWS.LexRuntimeService.Model.GetSessionRequest,
AWS.LexRuntimeService.Transform.GetSessionRequestMarshaller,
AWS.LexRuntimeService.Transform.GetSessionResponseUnmarshaller,
AWS.LexRuntimeService.Model.PostContentResponse,
AWS.LexRuntimeService.Model.PostContentRequest,
AWS.LexRuntimeService.Transform.PostContentRequestMarshaller,
AWS.LexRuntimeService.Transform.PostContentResponseUnmarshaller,
AWS.LexRuntimeService.Model.PostTextResponse,
AWS.LexRuntimeService.Model.PostTextRequest,
AWS.LexRuntimeService.Transform.PostTextRequestMarshaller,
AWS.LexRuntimeService.Transform.PostTextResponseUnmarshaller,
AWS.LexRuntimeService.Model.PutSessionResponse,
AWS.LexRuntimeService.Model.PutSessionRequest,
AWS.LexRuntimeService.Transform.PutSessionRequestMarshaller,
AWS.LexRuntimeService.Transform.PutSessionResponseUnmarshaller;
type
TAmazonLexClient = class(TAmazonServiceClient, IAmazonLex)
strict private
class var FServiceMetadata: IServiceMetadata;
private
class constructor Create;
strict protected
function GetServiceMetadata: IServiceMetadata; override;
function CreateSigner: TAbstractAWSSigner; override;
public
constructor Create; reintroduce; overload;
constructor Create(Region: IRegionEndpointEx); reintroduce; overload;
constructor Create(Config: IClientConfig); reintroduce; overload;
constructor Create(Credentials: IAWSCredentials); reintroduce; overload;
constructor Create(Credentials: IAWSCredentials; Region: IRegionEndpointEx); reintroduce; overload;
constructor Create(Credentials: IAWSCredentials; Config: IClientConfig); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; Region: IRegionEndpointEx); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; Config: IClientConfig); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string; Region: IRegionEndpointEx); reintroduce; overload;
constructor Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string; Config: IClientConfig); reintroduce; overload;
function DeleteSession(Request: IDeleteSessionRequest): IDeleteSessionResponse; overload;
function GetSession(Request: IGetSessionRequest): IGetSessionResponse; overload;
function PostContent(Request: IPostContentRequest): IPostContentResponse; overload;
function PostText(Request: IPostTextRequest): IPostTextResponse; overload;
function PutSession(Request: IPutSessionRequest): IPutSessionResponse; overload;
end;
implementation
{ TAmazonLexClient }
constructor TAmazonLexClient.Create;
begin
inherited Create(TFallbackCredentialsFactory.GetCredentials, TAmazonLexConfig.Create);
end;
constructor TAmazonLexClient.Create(Region: IRegionEndpointEx);
begin
inherited Create(TFallbackCredentialsFactory.GetCredentials, TAmazonLexConfig.Create(Region));
end;
constructor TAmazonLexClient.Create(Config: IClientConfig);
begin
inherited Create(TFallbackCredentialsFactory.GetCredentials, Config);
end;
constructor TAmazonLexClient.Create(Credentials: IAWSCredentials);
begin
Create(Credentials, TAmazonLexConfig.Create);
end;
constructor TAmazonLexClient.Create(Credentials: IAWSCredentials; Region: IRegionEndpointEx);
begin
Create(Credentials, TAmazonLexConfig.Create(Region));
end;
constructor TAmazonLexClient.Create(Credentials: IAWSCredentials; Config: IClientConfig);
begin
inherited Create(Credentials, Config);
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string);
begin
Create(AWSAccessKeyId, AWSSecretAccessKey, TAmazonLexConfig.Create);
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; Region: IRegionEndpointEx);
begin
Create(AWSAccessKeyId, AWSSecretAccessKey, TAmazonLexConfig.Create(Region));
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; Config: IClientConfig);
begin
inherited Create(AWSAccessKeyId, AWSSecretAccessKey, Config);
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string);
begin
Create(AWSAccessKeyId, AWSSecretAccessKey, AWSSessionToken, TAmazonLexConfig.Create);
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string; Region: IRegionEndpointEx);
begin
Create(AWSAccessKeyId, AWSSecretAccessKey, AWSSessionToken, TAmazonLexConfig.Create(Region));
end;
constructor TAmazonLexClient.Create(const AWSAccessKeyId: string; const AWSSecretAccessKey: string; const AWSSessionToken: string; Config: IClientConfig);
begin
inherited Create(AWSAccessKeyId, AWSSecretAccessKey, AWSSessionToken, Config);
end;
function TAmazonLexClient.GetServiceMetadata: IServiceMetadata;
begin
Result := FServiceMetadata;
end;
class constructor TAmazonLexClient.Create;
begin
FServiceMetadata := TAmazonLexMetadata.Create;
end;
function TAmazonLexClient.CreateSigner: TAbstractAWSSigner;
begin
Result := TAWS4Signer.Create;
end;
function TAmazonLexClient.DeleteSession(Request: IDeleteSessionRequest): IDeleteSessionResponse;
var
Options: TInvokeOptions;
begin
Options := TInvokeOptions.Create;
try
Options.RequestMarshaller := TDeleteSessionRequestMarshaller.Instance;
Options.ResponseUnmarshaller := TDeleteSessionResponseUnmarshaller.Instance;
Result := Invoke<TDeleteSessionResponse>(Request.Obj, Options);
finally
Options.Free;
end;
end;
function TAmazonLexClient.GetSession(Request: IGetSessionRequest): IGetSessionResponse;
var
Options: TInvokeOptions;
begin
Options := TInvokeOptions.Create;
try
Options.RequestMarshaller := TGetSessionRequestMarshaller.Instance;
Options.ResponseUnmarshaller := TGetSessionResponseUnmarshaller.Instance;
Result := Invoke<TGetSessionResponse>(Request.Obj, Options);
finally
Options.Free;
end;
end;
function TAmazonLexClient.PostContent(Request: IPostContentRequest): IPostContentResponse;
var
Options: TInvokeOptions;
begin
Options := TInvokeOptions.Create;
try
Options.RequestMarshaller := TPostContentRequestMarshaller.Instance;
Options.ResponseUnmarshaller := TPostContentResponseUnmarshaller.Instance;
Result := Invoke<TPostContentResponse>(Request.Obj, Options);
finally
Options.Free;
end;
end;
function TAmazonLexClient.PostText(Request: IPostTextRequest): IPostTextResponse;
var
Options: TInvokeOptions;
begin
Options := TInvokeOptions.Create;
try
Options.RequestMarshaller := TPostTextRequestMarshaller.Instance;
Options.ResponseUnmarshaller := TPostTextResponseUnmarshaller.Instance;
Result := Invoke<TPostTextResponse>(Request.Obj, Options);
finally
Options.Free;
end;
end;
function TAmazonLexClient.PutSession(Request: IPutSessionRequest): IPutSessionResponse;
var
Options: TInvokeOptions;
begin
Options := TInvokeOptions.Create;
try
Options.RequestMarshaller := TPutSessionRequestMarshaller.Instance;
Options.ResponseUnmarshaller := TPutSessionResponseUnmarshaller.Instance;
Result := Invoke<TPutSessionResponse>(Request.Obj, Options);
finally
Options.Free;
end;
end;
end.
| 38.479263 | 168 | 0.82012 |
83bc0f2282aaeae2bcc1e2b5a5ce6f6c9c932e75
| 8,510 |
pas
|
Pascal
|
archain.pas
|
corvus1/dn2l
|
2ce2b3a6b001008c3ff75d5fbf046444f92aa6f3
|
[
"AFL-2.0",
"AFL-3.0"
] | null | null | null |
archain.pas
|
corvus1/dn2l
|
2ce2b3a6b001008c3ff75d5fbf046444f92aa6f3
|
[
"AFL-2.0",
"AFL-3.0"
] | null | null | null |
archain.pas
|
corvus1/dn2l
|
2ce2b3a6b001008c3ff75d5fbf046444f92aa6f3
|
[
"AFL-2.0",
"AFL-3.0"
] | null | null | null |
{/////////////////////////////////////////////////////////////////////////
//
// Dos Navigator Open Source 1.51.08
// Based on Dos Navigator (C) 1991-99 RIT Research Labs
//
// This programs is free for commercial and non-commercial use as long as
// the following conditions are aheared to.
//
// Copyright remains RIT Research Labs, and as such any Copyright notices
// in the code are not to be removed. If this package is used in a
// product, RIT Research Labs should be given attribution as the RIT Research
// Labs of the parts of the library used. This can be in the form of a textual
// message at program startup or in documentation (online or textual)
// provided with the package.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// 1. Redistributions of source code must retain the copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. All advertising materials mentioning features or use of this software
// must display the following acknowledgement:
// "Based on Dos Navigator by RIT Research Labs."
//
// THIS SOFTWARE IS PROVIDED BY RIT RESEARCH LABS "AS IS" AND ANY EXPRESS
// OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// The licence and distribution terms for any publically available
// version or derivative of this code cannot be changed. i.e. this code
// cannot simply be copied and put under another distribution licence
// (including the GNU Public Licence).
//
//////////////////////////////////////////////////////////////////////////}
{$I STDEFINE.INC}
unit archAIN; {AIN}
interface
uses
Archiver
;
type
PAINArchive = ^TAINArchive;
TAINArchive = object(TARJArchive)
ListFileName: String;
ListFile: System.Text;
constructor Init;
procedure GetFile; virtual;
function GetID: Byte; virtual;
function GetSign: TStr4; virtual;
end;
implementation
uses
Objects2, Advance2, Advance, DNApp, DnExec, Commands, Advance1, Messages,
Dos
;
{ ------------------------------- AIN ------------------------------------- }
constructor TAINArchive.Init;
var
Sign: TStr5;
q: String;
begin
Sign := GetSign;
SetLength(Sign, Length(Sign)-1);
Sign := Sign+#0;
FreeStr := SourceDir+DNARC;
TObject.Init;
Packer := NewStr(GetVal(@Sign[1], @FreeStr[1], PPacker, 'AIN'));
UnPacker := NewStr(GetVal(@Sign[1], @FreeStr[1], PUnPacker, 'AIN'));
Extract := NewStr(GetVal(@Sign[1], @FreeStr[1], PExtract, 'e'));
ExtractWP := NewStr(GetVal(@Sign[1], @FreeStr[1], PExtractWP, 'x'));
Add := NewStr(GetVal(@Sign[1], @FreeStr[1], PAdd, 'a'));
Move := NewStr(GetVal(@Sign[1], @FreeStr[1], PMove, 'm'));
Delete := NewStr(GetVal(@Sign[1], @FreeStr[1], PDelete, 'd'));
Test := NewStr(GetVal(@Sign[1], @FreeStr[1], PTest, 't'));
Garble := NewStr(GetVal(@Sign[1], @FreeStr[1], PGarble, '-g'));
IncludePaths := NewStr(GetVal(@Sign[1], @FreeStr[1], PIncludePaths, ''));
ExcludePaths := NewStr(GetVal(@Sign[1], @FreeStr[1], PExcludePaths, ''));
ForceMode := NewStr(GetVal(@Sign[1], @FreeStr[1], PForceMode, '-y'));
RecoveryRec := NewStr(GetVal(@Sign[1], @FreeStr[1], PRecoveryRec, ''));
SelfExtract := NewStr(GetVal(@Sign[1], @FreeStr[1], PSelfExtract, '-e'));
Solid := NewStr(GetVal(@Sign[1], @FreeStr[1], PSolid, ''));
RecurseSubDirs := NewStr(GetVal(@Sign[1], @FreeStr[1], PRecurseSubDirs,
''));
SetPathInside := NewStr(GetVal(@Sign[1], @FreeStr[1], PSetPathInside,
''));
StoreCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PStoreCompression, '-m4'));
FastestCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PFastestCompression, '-m3'));
FastCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PFastCompression, '-m3'));
NormalCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PNormalCompression, '-m2'));
GoodCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PGoodCompression, '-m1'));
UltraCompression := NewStr(GetVal(@Sign[1], @FreeStr[1],
PUltraCompression, '-m1'));
ComprListChar := NewStr(GetVal(@Sign[1], @FreeStr[1], PComprListChar,
'@'));
ExtrListChar := NewStr(GetVal(@Sign[1], @FreeStr[1], PExtrListChar,
'@'));
q := GetVal(@Sign[1], @FreeStr[1], PAllVersion, '0');
AllVersion := q <> '0';
q := GetVal(@Sign[1], @FreeStr[1], PPutDirs, '1');
PutDirs := q <> '0';
{$IFNDEF DPMI32}
q := GetVal(@Sign[1], @FreeStr[1], PShortCmdLine, '1');
ShortCmdLine := q <> '0';
{$ELSE}
q := GetVal(@Sign[1], @FreeStr[1], PSwapWhenExec, '0');
SwapWhenExec := q <> '0';
{$ENDIF}
{$IFNDEF OS2}
q := GetVal(@Sign[1], @FreeStr[1], PUseLFN, '0');
UseLFN := q <> '0';
{$ENDIF}
end { TAINArchive.Init };
function TAINArchive.GetID;
begin
GetID := arcAIN;
end;
function TAINArchive.GetSign;
begin
GetSign := sigAIN;
end;
{
Модуль настраивался на ain 2.2
Для файлов с не очень длинными именами формат однострочный.
В этом же примере видно 'решение' проблемы y2k
TEMP\WINL 5883 18.01.101 20:35:50
Для файлов с более длинными именами формат двухстрочный:
TEMP\KBM35012\KMBR.BIN
338 20.08.97 20:43:38
}
procedure TAINArchive.GetFile;
var
l: LongInt;
DT: DateTime;
s: String;
begin
if TextRec(ListFile).Handle = 0 then
begin { первый вызов: вызов архиватора для вывода оглавления }
FileInfo.Last := 2;
ArcFile^.Close;
ListFileName := MakeNormName(TempDir, '!!!DN!!!.TMP');
s := '/C '
{$IFDEF OS2}
+SourceDir+'dndosout.bat '+ListFileName+' '
{$ENDIF}
+UnPacker^+' v '+ArcFileName
{$IFNDEF OS2}
+' > '+ListFileName
{$ENDIF}
;
if Length(s) < 126 then
AnsiExec(GetEnv('COMSPEC'), s)
else
MessageBox(^C+GetString(dlCmdLineTooLong), nil, mfOKButton+mfError);
System.Assign(ListFile, ListFileName);
System.Reset(ListFile);
if IOResult <> 0 then
Exit;
{ Пропуск шапки и чтение первой строки файлов }
repeat
if Eof(ListFile) then
Exit;
Readln(ListFile, s);
if IOResult <> 0 then
Exit;
until (Pos('File name', s) <> 0) or (Pos('Имя файла', s) <> 0);
repeat
if Eof(ListFile) then
Exit;
Readln(ListFile, s);
if IOResult <> 0 then
Exit;
until s <> '';
end
else
System.Readln(ListFile, s);
l := Pos(' ', s);
if l = 1 then
begin
Close(ListFile);
EraseFile(ListFileName);
TextRec(ListFile).Handle := 0;
FileInfo.Last := 1;
Exit;
end;
FileInfo.Last := 0;
{ чтение данных об очередном файле}
if l = 0 then
begin { длина и прочее в следующей строке }
FileInfo.FName := s;
Readln(ListFile, s);
end
else
begin
FileInfo.FName := Copy(s, 1, l-1);
System.Delete(s, 1, l);
end;
DelLeft(s);
l := Pos(' ', s);
FileInfo.USize := StoI(Copy(s, 1, l-1));
FileInfo.PSize := FileInfo.USize;
System.Delete(s, 1, l);
DelLeft(s);
DT.Day := StoI(Copy(s, 1, 2));
DT.Month := StoI(Copy(s, 4, 2));
DT.Year := 1900 + StoI(fDelRight(Copy(S,7,3)));
System.Delete(s, 1, 10);
DelLeft(s);
DT.Hour := StoI(Copy(s, 1, 2));
DT.Min := StoI(Copy(s, 4, 2));
DT.Sec := StoI(Copy(s, 7, 4));
PackTime(DT, FileInfo.Date);
end { TAINArchive.GetFile };
end.
| 34.176707 | 80 | 0.610811 |
f13cbf5e5f7b1127a182bb74c0705668a32b098f
| 2,524 |
dfm
|
Pascal
|
vcl/XLSReadWrite6/Samples/PivotTable/Interactive/Main.dfm
|
1aq/PBox
|
67ced599ee36ceaff097c6584f8100cf96006dfe
|
[
"MIT"
] | null | null | null |
vcl/XLSReadWrite6/Samples/PivotTable/Interactive/Main.dfm
|
1aq/PBox
|
67ced599ee36ceaff097c6584f8100cf96006dfe
|
[
"MIT"
] | null | null | null |
vcl/XLSReadWrite6/Samples/PivotTable/Interactive/Main.dfm
|
1aq/PBox
|
67ced599ee36ceaff097c6584f8100cf96006dfe
|
[
"MIT"
] | null | null | null |
object frmMain: TfrmMain
Left = 563
Top = 129
Width = 1063
Height = 780
Caption = 'Pivot Table Interactive Sample'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnCreate = FormCreate
OnDestroy = FormDestroy
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 0
Width = 1047
Height = 41
Align = alTop
TabOrder = 0
object Button1: TButton
Left = 8
Top = 8
Width = 75
Height = 25
Caption = 'Close'
TabOrder = 0
OnClick = Button1Click
end
object Button2: TButton
Left = 92
Top = 8
Width = 75
Height = 25
Caption = 'Create data'
TabOrder = 1
OnClick = Button2Click
end
object Button3: TButton
Left = 176
Top = 8
Width = 101
Height = 25
Caption = 'Create pivot table'
TabOrder = 2
OnClick = Button3Click
end
object btnEditPivot: TButton
Left = 284
Top = 8
Width = 97
Height = 25
Caption = 'Edit pivot table'
Enabled = False
TabOrder = 3
OnClick = btnEditPivotClick
end
object Button4: TButton
Left = 416
Top = 8
Width = 75
Height = 25
Caption = 'Open...'
TabOrder = 4
OnClick = Button4Click
end
object Button5: TButton
Left = 496
Top = 8
Width = 75
Height = 25
Caption = 'Save...'
TabOrder = 5
OnClick = Button5Click
end
end
object XLSGrid: TXLSGrid
Left = 0
Top = 41
Width = 1047
Height = 679
HeaderColor = 16248036
GridlineColor = 15062992
Align = alClient
ColCount = 32
DefaultColWidth = 68
DefaultRowHeight = 20
DoubleBuffered = False
RowCount = 255
Options = [goFixedVertLine, goFixedHorzLine, goRangeSelect, goRowSizing, goColSizing, goEditing]
TabOrder = 1
OnSelectCell = XLSGridSelectCell
ColWidths = (
21
63
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68
68)
end
object dlgOpen: TOpenDialog
Left = 40
Top = 72
end
object dlgSave: TSaveDialog
Left = 80
Top = 72
end
end
| 17.900709 | 100 | 0.549525 |
610e27784d89af0cf8147d92cbeea9a0c397da0a
| 2,217 |
pas
|
Pascal
|
src/utils/mailcap/mailcap.pas
|
keithbowes/r3r
|
a2631ea86479c21dae64c6663f1ededd4c3dfa81
|
[
"BSD-3-Clause"
] | 4 |
2016-05-07T12:54:16.000Z
|
2020-06-21T05:45:30.000Z
|
src/utils/mailcap/mailcap.pas
|
keithbowes/r3r
|
a2631ea86479c21dae64c6663f1ededd4c3dfa81
|
[
"BSD-3-Clause"
] | null | null | null |
src/utils/mailcap/mailcap.pas
|
keithbowes/r3r
|
a2631ea86479c21dae64c6663f1ededd4c3dfa81
|
[
"BSD-3-Clause"
] | 1 |
2018-03-18T19:53:30.000Z
|
2018-03-18T19:53:30.000Z
|
unit MailCap;
interface
{$IFNDEF MSWINDOWS}
uses
RList;
{$ENDIF}
type
PMailCap = ^TMailCap;
TMailCap = object
private
{$IFNDEF MSWINDOWS}
FList: PRList;
{$ENDIF}
procedure StripPost(var prog: String);
public
constructor Init;
destructor Done;
function GetProg(const mtype: String): String;
function ExecProg(const mtype, param: String): byte;
end;
function Cap2Doze(const cap: String): String;
function Doze2Cap(const doze: String): String;
implementation
uses
Dos, Strings
{$IFDEF MSWINDOWS}
, Registry
{$ENDIF};
function StringReplace(s: String; const _in, repl: String; const Global: Boolean): String;
var
l: word;
begin
repeat
l := Pos(_in, s);
if l <> 0 then
begin
Delete(s, l, Length(_in));
Insert(repl, s, l);
end;
until not Global or (l = 0);
StringReplace := s;
end;
procedure DeleteFile(const fn: String);
var
f: text;
begin
Assign(f, fn);
Rewrite(f);
Close(f);
Erase(f);
end;
{$IFNDEF MSWINDOWS}
{$INCLUDE "mailcapdriver.inc"}
{$ELSE}
{$INCLUDE "winregdriver.inc"}
{$ENDIF}
function Cap2Doze(const cap: String): String;
begin
Cap2Doze := StringReplace(cap, '%s', '%1', true);
end;
function Doze2Cap(const doze: String): String;
begin
Doze2Cap := StringReplace(doze, '%1', '%s', true);
end;
function TMailCap.ExecProg(const mtype, param: String): byte;
var
dl, dop: String;
expstart: byte;
fl: String;
prog: String;
begin
dl := GetEnv('MAILCAP_DOWNLOADER');
dop := GetEnv('MAILCAP_DOWNLOADER_OPTIONS');
fl := GetEnv('MAILCAP_TEMP_FILE');
if Length(fl) = 0 then
begin
fl := GetEnv('TMP') + '/dl';
end;
if Length(dl) = 0 then
begin
dl := 'wget';
if Length(dop) = 0 then
begin
dop := '-q -O ' + fl;
end;
end;
SwapVectors;
DeleteFile(fl);
Exec(FSearch(dl, GetEnv('PATH')), dop + ' ' + param);
SwapVectors;
prog := GetProg(mtype);
StripPost(prog);
expstart := Pos(' ', prog);
prog := Copy(prog, 1, expstart - 1);
SwapVectors;
Exec(FSearch(prog, GetEnv('PATH')), fl);
SwapVectors;
ExecProg := DosExitCode;
end;
procedure TMailCap.StripPost(var prog: String);
begin
Delete(prog, Pos('%s', prog) + 2, Length(prog));
end;
end.
| 17.595238 | 90 | 0.645016 |
Subsets and Splits
HTML Code Excluding Scripts
The query retrieves a limited set of HTML content entries that are longer than 8 characters and do not contain script tags, offering only basic filtering with minimal analytical value.