@icure/cardinal-sdk 2.0.0-PREVIEW-18.1 → 2.0.0-PREVIEW-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kermit-kermit-core.mjs +45 -40
- package/Kermit-kermit.mjs +6 -6
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1577 -1577
- package/api/HealthcarePartyApi.d.mts +2 -0
- package/api/HealthcarePartyApiInGroup.d.mts +5 -0
- package/api/HealthcarePartyApiInGroup.mjs +1 -0
- package/api/RecoveryApi.d.mts +5 -1
- package/api.d.mts +1 -0
- package/api.mjs +1 -0
- package/bitops-library-bits.mjs +197 -0
- package/bitops-library-endian.mjs +117 -0
- package/cardinal-sdk-ts.d.mts +2 -2
- package/cardinal-sdk-ts.mjs +57007 -56794
- package/cardinal-sdk.mjs +120895 -120501
- package/core-library-digest.mjs +186 -0
- package/crypto/CryptoService.d.mts +17 -7
- package/error-library-error.mjs +42 -0
- package/hash-library-sha2.mjs +183 -0
- package/internal/BytesEncoding.d.mts +3 -0
- package/internal/BytesEncoding.mjs +99 -0
- package/internal/JsonDecodeUtils.d.mts +20 -0
- package/internal/JsonDecodeUtils.mjs +99 -0
- package/kerberus.mjs +557 -389
- package/kotlin-kotlin-stdlib.mjs +2445 -2713
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2455 -2450
- package/kotlinx-io-kotlinx-io-bytestring.mjs +36 -36
- package/kotlinx-io-kotlinx-io-core.mjs +459 -459
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2029 -2029
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1952 -1952
- package/kryptom-lib.mjs +3263 -1967
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +2713 -2713
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +481 -481
- package/ktor-ktor-http.mjs +693 -693
- package/ktor-ktor-io.mjs +963 -963
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +238 -238
- package/ktor-ktor-serialization.mjs +109 -109
- package/ktor-ktor-utils.mjs +557 -557
- package/ktor-ktor-websockets.mjs +673 -673
- package/model/AccessLog.d.mts +5 -0
- package/model/AccessLog.mjs +168 -0
- package/model/Agenda.d.mts +2 -0
- package/model/Agenda.mjs +82 -0
- package/model/ApplicationSettings.d.mts +5 -0
- package/model/ApplicationSettings.mjs +140 -0
- package/model/BooleanResponse.d.mts +2 -0
- package/model/BooleanResponse.mjs +20 -0
- package/model/CalendarItem.d.mts +5 -0
- package/model/CalendarItem.mjs +290 -0
- package/model/CalendarItemType.d.mts +7 -0
- package/model/CalendarItemType.mjs +117 -0
- package/model/Classification.d.mts +5 -0
- package/model/Classification.mjs +148 -0
- package/model/Code.d.mts +2 -0
- package/model/Code.mjs +69 -0
- package/model/Contact.d.mts +5 -0
- package/model/Contact.mjs +218 -0
- package/model/CryptoActorStub.d.mts +2 -0
- package/model/CryptoActorStub.mjs +45 -0
- package/model/CryptoActorStubWithType.d.mts +2 -0
- package/model/CryptoActorStubWithType.mjs +25 -0
- package/model/DataOwnerRegistrationSuccess.d.mts +2 -0
- package/model/DataOwnerRegistrationSuccess.mjs +24 -0
- package/model/DataOwnerWithType.d.mts +7 -0
- package/model/DataOwnerWithType.mjs +80 -0
- package/model/DatabaseInitialisation.d.mts +2 -0
- package/model/DatabaseInitialisation.mjs +34 -0
- package/model/Device.d.mts +2 -0
- package/model/Device.mjs +99 -0
- package/model/Document.d.mts +5 -0
- package/model/Document.mjs +246 -0
- package/model/DocumentTemplate.d.mts +2 -0
- package/model/DocumentTemplate.mjs +91 -0
- package/model/EntityReference.d.mts +2 -0
- package/model/EntityReference.mjs +29 -0
- package/model/EntityReferenceInGroup.d.mts +2 -0
- package/model/EntityReferenceInGroup.mjs +23 -0
- package/model/EntityTemplate.d.mts +2 -0
- package/model/EntityTemplate.mjs +46 -0
- package/model/Form.d.mts +5 -0
- package/model/Form.mjs +204 -0
- package/model/FormTemplate.d.mts +2 -0
- package/model/FormTemplate.mjs +82 -0
- package/model/FrontEndMigration.d.mts +2 -0
- package/model/FrontEndMigration.mjs +57 -0
- package/model/Group.d.mts +2 -0
- package/model/Group.mjs +68 -0
- package/model/GroupDeletionReport.d.mts +2 -0
- package/model/GroupDeletionReport.mjs +24 -0
- package/model/HealthElement.d.mts +5 -0
- package/model/HealthElement.mjs +226 -0
- package/model/HealthcareParty.d.mts +2 -0
- package/model/HealthcareParty.mjs +182 -0
- package/model/IdWithRev.d.mts +2 -0
- package/model/IdWithRev.mjs +23 -0
- package/model/IndexingInfo.d.mts +2 -0
- package/model/IndexingInfo.mjs +21 -0
- package/model/Insurance.d.mts +2 -0
- package/model/Insurance.mjs +46 -0
- package/model/Invoice.d.mts +5 -0
- package/model/Invoice.mjs +468 -0
- package/model/Keyword.d.mts +2 -0
- package/model/Keyword.mjs +58 -0
- package/model/ListOfIds.d.mts +2 -0
- package/model/ListOfIds.mjs +20 -0
- package/model/ListOfProperties.d.mts +2 -0
- package/model/ListOfProperties.mjs +22 -0
- package/model/MaintenanceTask.d.mts +5 -0
- package/model/MaintenanceTask.mjs +152 -0
- package/model/MedicalLocation.d.mts +2 -0
- package/model/MedicalLocation.mjs +63 -0
- package/model/Message.d.mts +5 -0
- package/model/Message.mjs +248 -0
- package/model/PaginatedDocumentKeyIdPair.d.mts +2 -0
- package/model/PaginatedDocumentKeyIdPair.mjs +24 -0
- package/model/Patient.d.mts +5 -0
- package/model/Patient.mjs +491 -0
- package/model/Place.d.mts +2 -0
- package/model/Place.mjs +33 -0
- package/model/PropertyStub.d.mts +5 -0
- package/model/PropertyStub.mjs +74 -0
- package/model/PropertyTypeStub.d.mts +2 -0
- package/model/PropertyTypeStub.mjs +26 -0
- package/model/PublicAgendasAndCalendarItemTypes.d.mts +2 -0
- package/model/PublicAgendasAndCalendarItemTypes.mjs +25 -0
- package/model/PublicKey.d.mts +2 -0
- package/model/PublicKey.mjs +24 -0
- package/model/Receipt.d.mts +5 -0
- package/model/Receipt.mjs +159 -0
- package/model/RegistrationInformation.d.mts +2 -0
- package/model/RegistrationInformation.mjs +43 -0
- package/model/RegistrationSuccess.d.mts +2 -0
- package/model/RegistrationSuccess.mjs +24 -0
- package/model/Replication.d.mts +2 -0
- package/model/Replication.mjs +35 -0
- package/model/ReplicationInfo.d.mts +2 -0
- package/model/ReplicationInfo.mjs +28 -0
- package/model/Role.d.mts +2 -0
- package/model/Role.mjs +34 -0
- package/model/StoredDocumentIdentifier.d.mts +2 -0
- package/model/StoredDocumentIdentifier.mjs +22 -0
- package/model/Tarification.d.mts +2 -0
- package/model/Tarification.mjs +92 -0
- package/model/TimeTable.d.mts +2 -0
- package/model/TimeTable.mjs +64 -0
- package/model/Topic.d.mts +5 -0
- package/model/Topic.mjs +163 -0
- package/model/User.d.mts +4 -0
- package/model/User.mjs +118 -0
- package/model/UserGroup.d.mts +2 -0
- package/model/UserGroup.mjs +55 -0
- package/model/base/CodeStub.d.mts +2 -0
- package/model/base/CodeStub.mjs +40 -0
- package/model/base/CryptoActor.d.mts +3 -0
- package/model/base/CryptoActor.mjs +19 -1
- package/model/base/Identifier.d.mts +2 -0
- package/model/base/Identifier.mjs +44 -0
- package/model/couchdb/Basic.d.mts +2 -0
- package/model/couchdb/Basic.mjs +22 -0
- package/model/couchdb/DatabaseInfo.d.mts +2 -0
- package/model/couchdb/DatabaseInfo.mjs +47 -0
- package/model/couchdb/DesignDocument.d.mts +2 -0
- package/model/couchdb/DesignDocument.mjs +40 -0
- package/model/couchdb/DocIdentifier.d.mts +2 -0
- package/model/couchdb/DocIdentifier.mjs +24 -0
- package/model/couchdb/GroupDatabasesInfo.d.mts +2 -0
- package/model/couchdb/GroupDatabasesInfo.mjs +26 -0
- package/model/couchdb/Remote.d.mts +2 -0
- package/model/couchdb/Remote.mjs +25 -0
- package/model/couchdb/RemoteAuthentication.d.mts +2 -0
- package/model/couchdb/RemoteAuthentication.mjs +23 -0
- package/model/couchdb/ReplicationStats.d.mts +2 -0
- package/model/couchdb/ReplicationStats.mjs +45 -0
- package/model/couchdb/ReplicatorDocument.d.mts +2 -0
- package/model/couchdb/ReplicatorDocument.mjs +61 -0
- package/model/couchdb/View.d.mts +2 -0
- package/model/couchdb/View.mjs +23 -0
- package/model/data/LabelledOccurence.d.mts +2 -0
- package/model/data/LabelledOccurence.mjs +22 -0
- package/model/embed/Address.d.mts +5 -0
- package/model/embed/Address.mjs +133 -0
- package/model/embed/AdministrationQuantity.d.mts +2 -0
- package/model/embed/AdministrationQuantity.mjs +29 -0
- package/model/embed/AgendaSlottingAlgorithm.d.mts +3 -0
- package/model/embed/AgendaSlottingAlgorithm.mjs +30 -0
- package/model/embed/AgreementAppendix.d.mts +2 -0
- package/model/embed/AgreementAppendix.mjs +30 -0
- package/model/embed/Annotation.d.mts +2 -0
- package/model/embed/Annotation.mjs +46 -0
- package/model/embed/CalendarItemTag.d.mts +5 -0
- package/model/embed/CalendarItemTag.mjs +72 -0
- package/model/embed/CareTeamMember.d.mts +5 -0
- package/model/embed/CareTeamMember.mjs +71 -0
- package/model/embed/CareTeamMembership.d.mts +5 -0
- package/model/embed/CareTeamMembership.mjs +73 -0
- package/model/embed/Content.d.mts +5 -0
- package/model/embed/Content.mjs +125 -0
- package/model/embed/DataAttachment.d.mts +2 -0
- package/model/embed/DataAttachment.mjs +26 -0
- package/model/embed/DatabaseSynchronization.d.mts +2 -0
- package/model/embed/DatabaseSynchronization.mjs +30 -0
- package/model/embed/Delegation.d.mts +2 -0
- package/model/embed/Delegation.mjs +30 -0
- package/model/embed/DeletedAttachment.d.mts +2 -0
- package/model/embed/DeletedAttachment.mjs +30 -0
- package/model/embed/DocumentGroup.d.mts +2 -0
- package/model/embed/DocumentGroup.mjs +24 -0
- package/model/embed/Duration.d.mts +2 -0
- package/model/embed/Duration.mjs +26 -0
- package/model/embed/EmbeddedTimeTableHour.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableHour.mjs +22 -0
- package/model/embed/EmbeddedTimeTableItem.d.mts +2 -0
- package/model/embed/EmbeddedTimeTableItem.mjs +41 -0
- package/model/embed/Employer.d.mts +2 -0
- package/model/embed/Employer.mjs +26 -0
- package/model/embed/EmploymentInfo.d.mts +5 -0
- package/model/embed/EmploymentInfo.mjs +74 -0
- package/model/embed/Episode.d.mts +5 -0
- package/model/embed/Episode.mjs +75 -0
- package/model/embed/FinancialInstitutionInformation.d.mts +5 -0
- package/model/embed/FinancialInstitutionInformation.mjs +88 -0
- package/model/embed/FlatRateTarification.d.mts +5 -0
- package/model/embed/FlatRateTarification.mjs +72 -0
- package/model/embed/FlowItem.d.mts +2 -0
- package/model/embed/FlowItem.mjs +117 -0
- package/model/embed/HealthcarePartyHistoryStatus.d.mts +2 -0
- package/model/embed/HealthcarePartyHistoryStatus.mjs +28 -0
- package/model/embed/IdentityDocumentReader.d.mts +2 -0
- package/model/embed/IdentityDocumentReader.mjs +33 -0
- package/model/embed/Insurability.d.mts +5 -0
- package/model/embed/Insurability.mjs +100 -0
- package/model/embed/InvoicingCode.d.mts +5 -0
- package/model/embed/InvoicingCode.mjs +377 -0
- package/model/embed/KeywordSubword.d.mts +2 -0
- package/model/embed/KeywordSubword.mjs +25 -0
- package/model/embed/LetterValue.d.mts +2 -0
- package/model/embed/LetterValue.mjs +30 -0
- package/model/embed/Measure.d.mts +2 -0
- package/model/embed/Measure.mjs +57 -0
- package/model/embed/MedicalHouseContract.d.mts +5 -0
- package/model/embed/MedicalHouseContract.mjs +223 -0
- package/model/embed/Medication.d.mts +2 -0
- package/model/embed/Medication.mjs +157 -0
- package/model/embed/Medicinalproduct.d.mts +2 -0
- package/model/embed/Medicinalproduct.mjs +33 -0
- package/model/embed/MessageAttachment.d.mts +2 -0
- package/model/embed/MessageAttachment.mjs +25 -0
- package/model/embed/MessageReadStatus.d.mts +2 -0
- package/model/embed/MessageReadStatus.mjs +23 -0
- package/model/embed/ParagraphAgreement.d.mts +2 -0
- package/model/embed/ParagraphAgreement.mjs +86 -0
- package/model/embed/Partnership.d.mts +2 -0
- package/model/embed/Partnership.mjs +36 -0
- package/model/embed/PatientHealthCareParty.d.mts +9 -0
- package/model/embed/PatientHealthCareParty.mjs +88 -0
- package/model/embed/Payment.d.mts +2 -0
- package/model/embed/Payment.mjs +28 -0
- package/model/embed/Periodicity.d.mts +2 -0
- package/model/embed/Periodicity.mjs +26 -0
- package/model/embed/PersonName.d.mts +2 -0
- package/model/embed/PersonName.mjs +41 -0
- package/model/embed/PlanOfAction.d.mts +8 -3
- package/model/embed/PlanOfAction.mjs +179 -0
- package/model/embed/Range.d.mts +2 -0
- package/model/embed/Range.mjs +24 -0
- package/model/embed/ReferenceRange.d.mts +2 -0
- package/model/embed/ReferenceRange.mjs +40 -0
- package/model/embed/ReferralPeriod.d.mts +2 -0
- package/model/embed/ReferralPeriod.mjs +27 -0
- package/model/embed/RegimenItem.d.mts +2 -0
- package/model/embed/RegimenItem.mjs +40 -0
- package/model/embed/Renewal.d.mts +2 -0
- package/model/embed/Renewal.mjs +26 -0
- package/model/embed/ResourceGroupAllocationSchedule.d.mts +2 -0
- package/model/embed/ResourceGroupAllocationSchedule.mjs +39 -0
- package/model/embed/Right.d.mts +2 -0
- package/model/embed/Right.mjs +27 -0
- package/model/embed/RoleConfiguration.d.mts +2 -0
- package/model/embed/RoleConfiguration.mjs +22 -0
- package/model/embed/SchoolingInfo.d.mts +5 -0
- package/model/embed/SchoolingInfo.mjs +73 -0
- package/model/embed/SecureDelegation.d.mts +2 -0
- package/model/embed/SecureDelegation.mjs +39 -0
- package/model/embed/SecurityMetadata.d.mts +2 -0
- package/model/embed/SecurityMetadata.mjs +22 -0
- package/model/embed/Service.d.mts +5 -0
- package/model/embed/Service.mjs +240 -0
- package/model/embed/ServiceLink.d.mts +2 -0
- package/model/embed/ServiceLink.mjs +21 -0
- package/model/embed/SubContact.d.mts +5 -0
- package/model/embed/SubContact.mjs +146 -0
- package/model/embed/Substanceproduct.d.mts +2 -0
- package/model/embed/Substanceproduct.mjs +33 -0
- package/model/embed/Suspension.d.mts +2 -0
- package/model/embed/Suspension.mjs +30 -0
- package/model/embed/Telecom.d.mts +5 -0
- package/model/embed/Telecom.mjs +67 -0
- package/model/embed/TimeSeries.d.mts +2 -0
- package/model/embed/TimeSeries.mjs +32 -0
- package/model/embed/TimeTableHour.d.mts +2 -0
- package/model/embed/TimeTableHour.mjs +24 -0
- package/model/embed/TimeTableItem.d.mts +2 -0
- package/model/embed/TimeTableItem.mjs +57 -0
- package/model/embed/TypedValue.d.mts +5 -0
- package/model/embed/TypedValue.mjs +85 -0
- package/model/embed/Valorisation.d.mts +5 -0
- package/model/embed/Valorisation.mjs +108 -0
- package/model/embed/ValueWithPrecision.d.mts +2 -0
- package/model/embed/ValueWithPrecision.mjs +22 -0
- package/model/embed/Weekday.d.mts +2 -0
- package/model/embed/Weekday.mjs +26 -0
- package/model/embed/form/template/Action.d.mts +2 -0
- package/model/embed/form/template/Action.mjs +30 -0
- package/model/embed/form/template/CheckBox.d.mts +2 -0
- package/model/embed/form/template/CheckBox.mjs +71 -0
- package/model/embed/form/template/DatePicker.d.mts +2 -0
- package/model/embed/form/template/DatePicker.mjs +71 -0
- package/model/embed/form/template/DateTimePicker.d.mts +2 -0
- package/model/embed/form/template/DateTimePicker.mjs +71 -0
- package/model/embed/form/template/DropdownField.d.mts +2 -0
- package/model/embed/form/template/DropdownField.mjs +71 -0
- package/model/embed/form/template/FieldsGroup.d.mts +2 -0
- package/model/embed/form/template/FieldsGroup.mjs +28 -0
- package/model/embed/form/template/FormTemplateLayout.d.mts +2 -0
- package/model/embed/form/template/FormTemplateLayout.mjs +33 -0
- package/model/embed/form/template/Launcher.d.mts +2 -0
- package/model/embed/form/template/Launcher.mjs +26 -0
- package/model/embed/form/template/MeasureField.d.mts +2 -0
- package/model/embed/form/template/MeasureField.mjs +71 -0
- package/model/embed/form/template/MultipleChoice.d.mts +2 -0
- package/model/embed/form/template/MultipleChoice.mjs +71 -0
- package/model/embed/form/template/NumberField.d.mts +2 -0
- package/model/embed/form/template/NumberField.mjs +71 -0
- package/model/embed/form/template/RadioButton.d.mts +2 -0
- package/model/embed/form/template/RadioButton.mjs +71 -0
- package/model/embed/form/template/Section.d.mts +2 -0
- package/model/embed/form/template/Section.mjs +30 -0
- package/model/embed/form/template/State.d.mts +2 -0
- package/model/embed/form/template/State.mjs +26 -0
- package/model/embed/form/template/StructureElement.d.mts +3 -0
- package/model/embed/form/template/StructureElement.mjs +32 -1
- package/model/embed/form/template/TextField.d.mts +2 -0
- package/model/embed/form/template/TextField.mjs +71 -0
- package/model/embed/form/template/TimePicker.d.mts +2 -0
- package/model/embed/form/template/TimePicker.mjs +71 -0
- package/model/filter/predicate/AlwaysPredicate.d.mts +2 -0
- package/model/filter/predicate/AlwaysPredicate.mjs +20 -0
- package/model/filter/predicate/AndPredicate.d.mts +2 -0
- package/model/filter/predicate/AndPredicate.mjs +25 -0
- package/model/filter/predicate/KeyValuePredicate.d.mts +2 -0
- package/model/filter/predicate/KeyValuePredicate.mjs +32 -0
- package/model/filter/predicate/NotPredicate.d.mts +2 -0
- package/model/filter/predicate/NotPredicate.mjs +25 -0
- package/model/filter/predicate/OrPredicate.d.mts +2 -0
- package/model/filter/predicate/OrPredicate.mjs +25 -0
- package/model/filter/predicate/Predicate.d.mts +3 -0
- package/model/filter/predicate/Predicate.mjs +20 -1
- package/model/security/AlwaysPermissionItem.d.mts +2 -0
- package/model/security/AlwaysPermissionItem.mjs +25 -0
- package/model/security/AuthenticationToken.d.mts +2 -0
- package/model/security/AuthenticationToken.mjs +28 -0
- package/model/security/Enable2faRequest.d.mts +2 -0
- package/model/security/Enable2faRequest.mjs +22 -0
- package/model/security/ExternalJwtConfig.d.mts +18 -0
- package/model/security/ExternalJwtConfig.mjs +199 -0
- package/model/security/LoginIdentifier.d.mts +2 -0
- package/model/security/LoginIdentifier.mjs +22 -0
- package/model/security/OperationToken.d.mts +2 -0
- package/model/security/OperationToken.mjs +31 -0
- package/model/security/Permission.d.mts +2 -0
- package/model/security/Permission.mjs +24 -0
- package/model/security/PermissionItem.d.mts +3 -0
- package/model/security/PermissionItem.mjs +12 -1
- package/model/security/TokenWithGroup.d.mts +2 -0
- package/model/security/TokenWithGroup.mjs +25 -0
- package/options/SdkOptions.d.mts +3 -23
- package/package.json +1 -1
- package/utils/Id.d.mts +5 -0
- package/utils/Id.mjs +19 -10
- package/KotlinBigInteger-bignum.mjs +0 -5902
- /package/{KotlinBigInteger-bignum-serialization-kotlinx.mjs → core-library-core.mjs} +0 -0
package/ktor-ktor-http.mjs
CHANGED
|
@@ -230,26 +230,26 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
230
230
|
// Inline function 'kotlin.text.buildString' call
|
|
231
231
|
// Inline function 'kotlin.apply' call
|
|
232
232
|
var this_0 = StringBuilder_init_$Create$();
|
|
233
|
-
var content = encode(Charsets_getInstance().
|
|
233
|
+
var content = encode(Charsets_getInstance().f4n_1.j4n(), _this__u8e3s4);
|
|
234
234
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
235
235
|
return this_0.toString();
|
|
236
236
|
}
|
|
237
237
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
238
238
|
start = start === VOID ? 0 : start;
|
|
239
239
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
240
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
240
|
+
charset = charset === VOID ? Charsets_getInstance().f4n_1 : charset;
|
|
241
241
|
_init_properties_Codecs_kt__fudxxf();
|
|
242
242
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
243
243
|
}
|
|
244
244
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
245
245
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
246
246
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
247
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
247
|
+
charset = charset === VOID ? Charsets_getInstance().f4n_1 : charset;
|
|
248
248
|
_init_properties_Codecs_kt__fudxxf();
|
|
249
249
|
// Inline function 'kotlin.text.buildString' call
|
|
250
250
|
// Inline function 'kotlin.apply' call
|
|
251
251
|
var this_0 = StringBuilder_init_$Create$();
|
|
252
|
-
var content = encode(charset.
|
|
252
|
+
var content = encode(charset.j4n(), _this__u8e3s4);
|
|
253
253
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
254
254
|
return this_0.toString();
|
|
255
255
|
}
|
|
@@ -257,7 +257,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
257
257
|
start = start === VOID ? 0 : start;
|
|
258
258
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
259
259
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
260
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
260
|
+
charset = charset === VOID ? Charsets_getInstance().f4n_1 : charset;
|
|
261
261
|
_init_properties_Codecs_kt__fudxxf();
|
|
262
262
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
263
263
|
}
|
|
@@ -308,24 +308,24 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
308
308
|
// Inline function 'kotlin.text.buildString' call
|
|
309
309
|
// Inline function 'kotlin.apply' call
|
|
310
310
|
var this_0 = StringBuilder_init_$Create$();
|
|
311
|
-
var charset = Charsets_getInstance().
|
|
311
|
+
var charset = Charsets_getInstance().f4n_1;
|
|
312
312
|
var index = 0;
|
|
313
313
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
314
314
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
315
315
|
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().z(new Char(current)) || get_VALID_PATH_PART().z(new Char(current))) {
|
|
316
|
-
this_0.
|
|
316
|
+
this_0.t7(current);
|
|
317
317
|
index = index + 1 | 0;
|
|
318
318
|
continue $l$loop_0;
|
|
319
319
|
}
|
|
320
320
|
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().z(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().z(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
321
|
-
this_0.
|
|
322
|
-
this_0.
|
|
323
|
-
this_0.
|
|
321
|
+
this_0.t7(current);
|
|
322
|
+
this_0.t7(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
323
|
+
this_0.t7(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
324
324
|
index = index + 3 | 0;
|
|
325
325
|
continue $l$loop_0;
|
|
326
326
|
}
|
|
327
327
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
328
|
-
var tmp = encode(charset.
|
|
328
|
+
var tmp = encode(charset.j4n(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
329
329
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
330
330
|
index = index + symbolSize | 0;
|
|
331
331
|
}
|
|
@@ -337,14 +337,14 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
337
337
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
338
338
|
var sb = StringBuilder_init_$Create$_0(sbSize);
|
|
339
339
|
if (prefixEnd > start) {
|
|
340
|
-
sb.
|
|
340
|
+
sb.hc(_this__u8e3s4, start, prefixEnd);
|
|
341
341
|
}
|
|
342
342
|
var index = prefixEnd;
|
|
343
343
|
var bytes = null;
|
|
344
344
|
while (index < end) {
|
|
345
345
|
var c = charSequenceGet(_this__u8e3s4, index);
|
|
346
346
|
if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
|
|
347
|
-
sb.
|
|
347
|
+
sb.t7(_Char___init__impl__6a9atx(32));
|
|
348
348
|
index = index + 1 | 0;
|
|
349
349
|
} else if (c === _Char___init__impl__6a9atx(37)) {
|
|
350
350
|
if (bytes == null) {
|
|
@@ -370,9 +370,9 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
370
370
|
tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
|
|
371
371
|
index = index + 3 | 0;
|
|
372
372
|
}
|
|
373
|
-
sb.
|
|
373
|
+
sb.s7(decodeToString(bytes, 0, 0 + count | 0));
|
|
374
374
|
} else {
|
|
375
|
-
sb.
|
|
375
|
+
sb.t7(c);
|
|
376
376
|
index = index + 1 | 0;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -389,7 +389,7 @@ function charToHexDigit(c2) {
|
|
|
389
389
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
390
390
|
return function (it) {
|
|
391
391
|
if (get_URL_ALPHABET().z(it) || get_SPECIAL_SYMBOLS().z(it))
|
|
392
|
-
$$this$buildString.
|
|
392
|
+
$$this$buildString.t7(numberToChar(it));
|
|
393
393
|
else {
|
|
394
394
|
var tmp;
|
|
395
395
|
if ($spaceToPlus) {
|
|
@@ -402,9 +402,9 @@ function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
|
402
402
|
tmp = false;
|
|
403
403
|
}
|
|
404
404
|
if (tmp)
|
|
405
|
-
$$this$buildString.
|
|
405
|
+
$$this$buildString.t7(_Char___init__impl__6a9atx(43));
|
|
406
406
|
else {
|
|
407
|
-
$$this$buildString.
|
|
407
|
+
$$this$buildString.s7(percentEncode(it));
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
return Unit_instance;
|
|
@@ -418,14 +418,14 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
418
418
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
419
419
|
if (tmp === toByte(tmp$ret$0))
|
|
420
420
|
if ($spaceToPlus)
|
|
421
|
-
$$this$buildString.
|
|
421
|
+
$$this$buildString.t7(_Char___init__impl__6a9atx(43));
|
|
422
422
|
else
|
|
423
|
-
$$this$buildString.
|
|
423
|
+
$$this$buildString.s7('%20');
|
|
424
424
|
else {
|
|
425
425
|
if (get_URL_ALPHABET().z(it) || (!$encodeFull && get_URL_PROTOCOL_PART().z(it)))
|
|
426
|
-
$$this$buildString.
|
|
426
|
+
$$this$buildString.t7(numberToChar(it));
|
|
427
427
|
else {
|
|
428
|
-
$$this$buildString.
|
|
428
|
+
$$this$buildString.s7(percentEncode(it));
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
return Unit_instance;
|
|
@@ -434,14 +434,14 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
434
434
|
function forEach$lambda($block) {
|
|
435
435
|
return function (buffer) {
|
|
436
436
|
while (canRead(buffer)) {
|
|
437
|
-
$block(buffer.
|
|
437
|
+
$block(buffer.vq());
|
|
438
438
|
}
|
|
439
439
|
return true;
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
442
|
function encodeURLPath$lambda($$this$buildString) {
|
|
443
443
|
return function (it) {
|
|
444
|
-
$$this$buildString.
|
|
444
|
+
$$this$buildString.s7(percentEncode(it));
|
|
445
445
|
return Unit_instance;
|
|
446
446
|
};
|
|
447
447
|
}
|
|
@@ -457,7 +457,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
457
457
|
while (_iterator__ex2g4s.t()) {
|
|
458
458
|
var item = _iterator__ex2g4s.u();
|
|
459
459
|
// Inline function 'kotlin.code' call
|
|
460
|
-
var this_1 = item.
|
|
460
|
+
var this_1 = item.o1_1;
|
|
461
461
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_1);
|
|
462
462
|
var tmp$ret$1 = toByte(tmp$ret$0);
|
|
463
463
|
destination.p(tmp$ret$1);
|
|
@@ -473,7 +473,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
473
473
|
while (_iterator__ex2g4s_0.t()) {
|
|
474
474
|
var item_0 = _iterator__ex2g4s_0.u();
|
|
475
475
|
// Inline function 'kotlin.code' call
|
|
476
|
-
var this_3 = item_0.
|
|
476
|
+
var this_3 = item_0.o1_1;
|
|
477
477
|
var tmp$ret$0_0 = Char__toInt_impl_vasixd(this_3);
|
|
478
478
|
var tmp$ret$1_0 = toByte(tmp$ret$0_0);
|
|
479
479
|
destination_0.p(tmp$ret$1_0);
|
|
@@ -489,7 +489,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
489
489
|
while (_iterator__ex2g4s_1.t()) {
|
|
490
490
|
var item_1 = _iterator__ex2g4s_1.u();
|
|
491
491
|
// Inline function 'kotlin.code' call
|
|
492
|
-
var this_5 = item_1.
|
|
492
|
+
var this_5 = item_1.o1_1;
|
|
493
493
|
var tmp$ret$0_1 = Char__toInt_impl_vasixd(this_5);
|
|
494
494
|
var tmp$ret$1_1 = toByte(tmp$ret$0_1);
|
|
495
495
|
destination_1.p(tmp$ret$1_1);
|
|
@@ -507,18 +507,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
507
507
|
}
|
|
508
508
|
function hasParameter($this, name, value) {
|
|
509
509
|
var tmp;
|
|
510
|
-
switch ($this.
|
|
510
|
+
switch ($this.i4u_1.v()) {
|
|
511
511
|
case 0:
|
|
512
512
|
tmp = false;
|
|
513
513
|
break;
|
|
514
514
|
case 1:
|
|
515
515
|
// Inline function 'kotlin.let' call
|
|
516
516
|
|
|
517
|
-
var it = $this.
|
|
518
|
-
tmp = (equals(it.
|
|
517
|
+
var it = $this.i4u_1.x(0);
|
|
518
|
+
tmp = (equals(it.j4u_1, name, true) && equals(it.k4u_1, value, true));
|
|
519
519
|
break;
|
|
520
520
|
default:
|
|
521
|
-
var tmp0 = $this.
|
|
521
|
+
var tmp0 = $this.i4u_1;
|
|
522
522
|
var tmp$ret$2;
|
|
523
523
|
$l$block_0: {
|
|
524
524
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -535,7 +535,7 @@ function hasParameter($this, name, value) {
|
|
|
535
535
|
var _iterator__ex2g4s = tmp0.s();
|
|
536
536
|
while (_iterator__ex2g4s.t()) {
|
|
537
537
|
var element = _iterator__ex2g4s.u();
|
|
538
|
-
if (equals(element.
|
|
538
|
+
if (equals(element.j4u_1, name, true) && equals(element.k4u_1, value, true)) {
|
|
539
539
|
tmp$ret$2 = true;
|
|
540
540
|
break $l$block_0;
|
|
541
541
|
}
|
|
@@ -550,20 +550,20 @@ function hasParameter($this, name, value) {
|
|
|
550
550
|
}
|
|
551
551
|
function Companion() {
|
|
552
552
|
Companion_instance = this;
|
|
553
|
-
this.
|
|
553
|
+
this.m4u_1 = ContentType_init_$Create$('*', '*');
|
|
554
554
|
}
|
|
555
|
-
protoOf(Companion).
|
|
555
|
+
protoOf(Companion).en = function (value) {
|
|
556
556
|
if (isBlank(value))
|
|
557
|
-
return this.
|
|
557
|
+
return this.m4u_1;
|
|
558
558
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
559
559
|
var headerValue = last(parseHeaderValue(value));
|
|
560
|
-
var tmp0 = headerValue.
|
|
561
|
-
var parameters = headerValue.
|
|
560
|
+
var tmp0 = headerValue.n4u_1;
|
|
561
|
+
var parameters = headerValue.o4u_1;
|
|
562
562
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
563
563
|
if (slash === -1) {
|
|
564
564
|
// Inline function 'kotlin.text.trim' call
|
|
565
565
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
566
|
-
return Companion_getInstance().
|
|
566
|
+
return Companion_getInstance().m4u_1;
|
|
567
567
|
throw new BadContentTypeFormatException(value);
|
|
568
568
|
}
|
|
569
569
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -599,32 +599,32 @@ function Companion_getInstance() {
|
|
|
599
599
|
}
|
|
600
600
|
function Application() {
|
|
601
601
|
Application_instance = this;
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
}
|
|
627
|
-
protoOf(Application).
|
|
602
|
+
this.q4u_1 = 'application';
|
|
603
|
+
this.r4u_1 = ContentType_init_$Create$('application', '*');
|
|
604
|
+
this.s4u_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
605
|
+
this.t4u_1 = ContentType_init_$Create$('application', 'cbor');
|
|
606
|
+
this.u4u_1 = ContentType_init_$Create$('application', 'json');
|
|
607
|
+
this.v4u_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
608
|
+
this.w4u_1 = ContentType_init_$Create$('application', 'javascript');
|
|
609
|
+
this.x4u_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
610
|
+
this.y4u_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
611
|
+
this.z4u_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
612
|
+
this.a4v_1 = ContentType_init_$Create$('application', 'xml');
|
|
613
|
+
this.b4v_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
614
|
+
this.c4v_1 = ContentType_init_$Create$('application', 'yaml');
|
|
615
|
+
this.d4v_1 = ContentType_init_$Create$('application', 'zip');
|
|
616
|
+
this.e4v_1 = ContentType_init_$Create$('application', 'gzip');
|
|
617
|
+
this.f4v_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
618
|
+
this.g4v_1 = ContentType_init_$Create$('application', 'pdf');
|
|
619
|
+
this.h4v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
620
|
+
this.i4v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
621
|
+
this.j4v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
622
|
+
this.k4v_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
623
|
+
this.l4v_1 = ContentType_init_$Create$('application', 'wasm');
|
|
624
|
+
this.m4v_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
625
|
+
this.n4v_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
626
|
+
}
|
|
627
|
+
protoOf(Application).o4v = function (contentType) {
|
|
628
628
|
return startsWith(contentType, 'application/', true);
|
|
629
629
|
};
|
|
630
630
|
var Application_instance;
|
|
@@ -635,17 +635,17 @@ function Application_getInstance() {
|
|
|
635
635
|
}
|
|
636
636
|
function MultiPart() {
|
|
637
637
|
MultiPart_instance = this;
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
}
|
|
648
|
-
protoOf(MultiPart).
|
|
638
|
+
this.p4v_1 = 'multipart';
|
|
639
|
+
this.q4v_1 = ContentType_init_$Create$('multipart', '*');
|
|
640
|
+
this.r4v_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
641
|
+
this.s4v_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
642
|
+
this.t4v_1 = ContentType_init_$Create$('multipart', 'related');
|
|
643
|
+
this.u4v_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
644
|
+
this.v4v_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
645
|
+
this.w4v_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
646
|
+
this.x4v_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
647
|
+
}
|
|
648
|
+
protoOf(MultiPart).o4v = function (contentType) {
|
|
649
649
|
return startsWith(contentType, 'multipart/', true);
|
|
650
650
|
};
|
|
651
651
|
var MultiPart_instance;
|
|
@@ -656,16 +656,16 @@ function MultiPart_getInstance() {
|
|
|
656
656
|
}
|
|
657
657
|
function Text() {
|
|
658
658
|
Text_instance = this;
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
667
|
-
this.
|
|
668
|
-
this.
|
|
659
|
+
this.y4v_1 = 'text';
|
|
660
|
+
this.z4v_1 = ContentType_init_$Create$('text', '*');
|
|
661
|
+
this.a4w_1 = ContentType_init_$Create$('text', 'plain');
|
|
662
|
+
this.b4w_1 = ContentType_init_$Create$('text', 'css');
|
|
663
|
+
this.c4w_1 = ContentType_init_$Create$('text', 'csv');
|
|
664
|
+
this.d4w_1 = ContentType_init_$Create$('text', 'html');
|
|
665
|
+
this.e4w_1 = ContentType_init_$Create$('text', 'javascript');
|
|
666
|
+
this.f4w_1 = ContentType_init_$Create$('text', 'vcard');
|
|
667
|
+
this.g4w_1 = ContentType_init_$Create$('text', 'xml');
|
|
668
|
+
this.h4w_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
669
669
|
}
|
|
670
670
|
var Text_instance;
|
|
671
671
|
function Text_getInstance() {
|
|
@@ -677,36 +677,36 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
677
677
|
Companion_getInstance();
|
|
678
678
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
679
679
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
680
|
+
this.k4w_1 = contentType;
|
|
681
|
+
this.l4w_1 = contentSubtype;
|
|
682
682
|
}
|
|
683
|
-
protoOf(ContentType).
|
|
683
|
+
protoOf(ContentType).m4w = function (name, value) {
|
|
684
684
|
if (hasParameter(this, name, value))
|
|
685
685
|
return this;
|
|
686
|
-
return new ContentType(this.
|
|
686
|
+
return new ContentType(this.k4w_1, this.l4w_1, this.h4u_1, plus_2(this.i4u_1, HeaderValueParam_init_$Create$(name, value)));
|
|
687
687
|
};
|
|
688
|
-
protoOf(ContentType).
|
|
689
|
-
return this.
|
|
688
|
+
protoOf(ContentType).n4w = function () {
|
|
689
|
+
return this.i4u_1.j() ? this : ContentType_init_$Create$(this.k4w_1, this.l4w_1);
|
|
690
690
|
};
|
|
691
|
-
protoOf(ContentType).
|
|
692
|
-
if (!(pattern.
|
|
691
|
+
protoOf(ContentType).o4w = function (pattern) {
|
|
692
|
+
if (!(pattern.k4w_1 === '*') && !equals(pattern.k4w_1, this.k4w_1, true)) {
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
|
-
if (!(pattern.
|
|
695
|
+
if (!(pattern.l4w_1 === '*') && !equals(pattern.l4w_1, this.l4w_1, true)) {
|
|
696
696
|
return false;
|
|
697
697
|
}
|
|
698
|
-
var _iterator__ex2g4s = pattern.
|
|
698
|
+
var _iterator__ex2g4s = pattern.i4u_1.s();
|
|
699
699
|
while (_iterator__ex2g4s.t()) {
|
|
700
700
|
var _destruct__k2r9zo = _iterator__ex2g4s.u();
|
|
701
|
-
var patternName = _destruct__k2r9zo.
|
|
702
|
-
var patternValue = _destruct__k2r9zo.
|
|
701
|
+
var patternName = _destruct__k2r9zo.na();
|
|
702
|
+
var patternValue = _destruct__k2r9zo.oa();
|
|
703
703
|
var tmp;
|
|
704
704
|
if (patternName === '*') {
|
|
705
705
|
var tmp_0;
|
|
706
706
|
if (patternValue === '*') {
|
|
707
707
|
tmp_0 = true;
|
|
708
708
|
} else {
|
|
709
|
-
var tmp0 = this.
|
|
709
|
+
var tmp0 = this.i4u_1;
|
|
710
710
|
var tmp$ret$0;
|
|
711
711
|
$l$block_0: {
|
|
712
712
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -723,7 +723,7 @@ protoOf(ContentType).x4p = function (pattern) {
|
|
|
723
723
|
var _iterator__ex2g4s_0 = tmp0.s();
|
|
724
724
|
while (_iterator__ex2g4s_0.t()) {
|
|
725
725
|
var element = _iterator__ex2g4s_0.u();
|
|
726
|
-
if (equals(element.
|
|
726
|
+
if (equals(element.k4u_1, patternValue, true)) {
|
|
727
727
|
tmp$ret$0 = true;
|
|
728
728
|
break $l$block_0;
|
|
729
729
|
}
|
|
@@ -734,7 +734,7 @@ protoOf(ContentType).x4p = function (pattern) {
|
|
|
734
734
|
}
|
|
735
735
|
tmp = tmp_0;
|
|
736
736
|
} else {
|
|
737
|
-
var value = this.
|
|
737
|
+
var value = this.p4w(patternName);
|
|
738
738
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
739
739
|
}
|
|
740
740
|
var matches = tmp;
|
|
@@ -749,17 +749,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
749
749
|
var tmp_0;
|
|
750
750
|
var tmp_1;
|
|
751
751
|
if (other instanceof ContentType) {
|
|
752
|
-
tmp_1 = equals(this.
|
|
752
|
+
tmp_1 = equals(this.k4w_1, other.k4w_1, true);
|
|
753
753
|
} else {
|
|
754
754
|
tmp_1 = false;
|
|
755
755
|
}
|
|
756
756
|
if (tmp_1) {
|
|
757
|
-
tmp_0 = equals(this.
|
|
757
|
+
tmp_0 = equals(this.l4w_1, other.l4w_1, true);
|
|
758
758
|
} else {
|
|
759
759
|
tmp_0 = false;
|
|
760
760
|
}
|
|
761
761
|
if (tmp_0) {
|
|
762
|
-
tmp = equals_0(this.
|
|
762
|
+
tmp = equals_0(this.i4u_1, other.i4u_1);
|
|
763
763
|
} else {
|
|
764
764
|
tmp = false;
|
|
765
765
|
}
|
|
@@ -768,19 +768,19 @@ protoOf(ContentType).equals = function (other) {
|
|
|
768
768
|
protoOf(ContentType).hashCode = function () {
|
|
769
769
|
// Inline function 'kotlin.text.lowercase' call
|
|
770
770
|
// Inline function 'kotlin.js.asDynamic' call
|
|
771
|
-
var tmp$ret$1 = this.
|
|
771
|
+
var tmp$ret$1 = this.k4w_1.toLowerCase();
|
|
772
772
|
var result = getStringHashCode(tmp$ret$1);
|
|
773
773
|
var tmp = result;
|
|
774
774
|
var tmp_0 = imul(31, result);
|
|
775
775
|
// Inline function 'kotlin.text.lowercase' call
|
|
776
776
|
// Inline function 'kotlin.js.asDynamic' call
|
|
777
|
-
var tmp$ret$3 = this.
|
|
777
|
+
var tmp$ret$3 = this.l4w_1.toLowerCase();
|
|
778
778
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
779
|
-
result = result + imul(31, hashCode(this.
|
|
779
|
+
result = result + imul(31, hashCode(this.i4u_1)) | 0;
|
|
780
780
|
return result;
|
|
781
781
|
};
|
|
782
782
|
function charset(_this__u8e3s4) {
|
|
783
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
783
|
+
var tmp0_safe_receiver = _this__u8e3s4.p4w('charset');
|
|
784
784
|
var tmp;
|
|
785
785
|
if (tmp0_safe_receiver == null) {
|
|
786
786
|
tmp = null;
|
|
@@ -804,7 +804,7 @@ function charset(_this__u8e3s4) {
|
|
|
804
804
|
return tmp;
|
|
805
805
|
}
|
|
806
806
|
function withCharset(_this__u8e3s4, charset) {
|
|
807
|
-
return _this__u8e3s4.
|
|
807
|
+
return _this__u8e3s4.m4w('charset', get_name(charset));
|
|
808
808
|
}
|
|
809
809
|
function BadContentTypeFormatException(value) {
|
|
810
810
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
@@ -814,10 +814,10 @@ function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
|
814
814
|
var tmp;
|
|
815
815
|
// Inline function 'kotlin.text.lowercase' call
|
|
816
816
|
// Inline function 'kotlin.js.asDynamic' call
|
|
817
|
-
if (!(_this__u8e3s4.
|
|
817
|
+
if (!(_this__u8e3s4.k4w_1.toLowerCase() === 'text')) {
|
|
818
818
|
tmp = _this__u8e3s4;
|
|
819
819
|
} else {
|
|
820
|
-
tmp = _this__u8e3s4.
|
|
820
|
+
tmp = _this__u8e3s4.m4w('charset', get_name(charset));
|
|
821
821
|
}
|
|
822
822
|
return tmp;
|
|
823
823
|
}
|
|
@@ -834,19 +834,19 @@ function Companion_getInstance_0() {
|
|
|
834
834
|
}
|
|
835
835
|
function HeaderValueWithParameters(content, parameters) {
|
|
836
836
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
837
|
-
this.
|
|
838
|
-
this.
|
|
837
|
+
this.h4u_1 = content;
|
|
838
|
+
this.i4u_1 = parameters;
|
|
839
839
|
}
|
|
840
|
-
protoOf(HeaderValueWithParameters).
|
|
840
|
+
protoOf(HeaderValueWithParameters).p4w = function (name) {
|
|
841
841
|
var inductionVariable = 0;
|
|
842
|
-
var last = get_lastIndex(this.
|
|
842
|
+
var last = get_lastIndex(this.i4u_1);
|
|
843
843
|
if (inductionVariable <= last)
|
|
844
844
|
do {
|
|
845
845
|
var index = inductionVariable;
|
|
846
846
|
inductionVariable = inductionVariable + 1 | 0;
|
|
847
|
-
var parameter = this.
|
|
848
|
-
if (equals(parameter.
|
|
849
|
-
return parameter.
|
|
847
|
+
var parameter = this.i4u_1.x(index);
|
|
848
|
+
if (equals(parameter.j4u_1, name, true)) {
|
|
849
|
+
return parameter.k4u_1;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
while (!(index === last));
|
|
@@ -854,38 +854,38 @@ protoOf(HeaderValueWithParameters).y4p = function (name) {
|
|
|
854
854
|
};
|
|
855
855
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
856
856
|
var tmp;
|
|
857
|
-
if (this.
|
|
858
|
-
tmp = this.
|
|
857
|
+
if (this.i4u_1.j()) {
|
|
858
|
+
tmp = this.h4u_1;
|
|
859
859
|
} else {
|
|
860
|
-
var tmp_0 = this.
|
|
860
|
+
var tmp_0 = this.h4u_1.length;
|
|
861
861
|
// Inline function 'kotlin.collections.sumOf' call
|
|
862
862
|
var sum = 0;
|
|
863
|
-
var _iterator__ex2g4s = this.
|
|
863
|
+
var _iterator__ex2g4s = this.i4u_1.s();
|
|
864
864
|
while (_iterator__ex2g4s.t()) {
|
|
865
865
|
var element = _iterator__ex2g4s.u();
|
|
866
866
|
var tmp_1 = sum;
|
|
867
|
-
sum = tmp_1 + ((element.
|
|
867
|
+
sum = tmp_1 + ((element.j4u_1.length + element.k4u_1.length | 0) + 3 | 0) | 0;
|
|
868
868
|
}
|
|
869
869
|
var size = tmp_0 + sum | 0;
|
|
870
870
|
// Inline function 'kotlin.apply' call
|
|
871
871
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
872
|
-
this_0.
|
|
872
|
+
this_0.s7(this.h4u_1);
|
|
873
873
|
var inductionVariable = 0;
|
|
874
|
-
var last = get_lastIndex(this.
|
|
874
|
+
var last = get_lastIndex(this.i4u_1);
|
|
875
875
|
if (inductionVariable <= last)
|
|
876
876
|
do {
|
|
877
877
|
var index = inductionVariable;
|
|
878
878
|
inductionVariable = inductionVariable + 1 | 0;
|
|
879
|
-
var element_0 = this.
|
|
880
|
-
this_0.
|
|
881
|
-
this_0.
|
|
882
|
-
this_0.
|
|
879
|
+
var element_0 = this.i4u_1.x(index);
|
|
880
|
+
this_0.s7('; ');
|
|
881
|
+
this_0.s7(element_0.j4u_1);
|
|
882
|
+
this_0.s7('=');
|
|
883
883
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
884
|
-
var this_1 = element_0.
|
|
884
|
+
var this_1 = element_0.k4u_1;
|
|
885
885
|
if (needQuotes(this_1))
|
|
886
|
-
this_0.
|
|
886
|
+
this_0.s7(quote(this_1));
|
|
887
887
|
else
|
|
888
|
-
this_0.
|
|
888
|
+
this_0.s7(this_1);
|
|
889
889
|
}
|
|
890
890
|
while (!(index === last));
|
|
891
891
|
tmp = this_0.toString();
|
|
@@ -947,7 +947,7 @@ function isQuoted(_this__u8e3s4) {
|
|
|
947
947
|
}
|
|
948
948
|
function quoteTo(_this__u8e3s4, out) {
|
|
949
949
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
950
|
-
out.
|
|
950
|
+
out.s7('"');
|
|
951
951
|
var inductionVariable = 0;
|
|
952
952
|
var last = _this__u8e3s4.length;
|
|
953
953
|
while (inductionVariable < last) {
|
|
@@ -955,19 +955,19 @@ function quoteTo(_this__u8e3s4, out) {
|
|
|
955
955
|
inductionVariable = inductionVariable + 1 | 0;
|
|
956
956
|
var ch = element;
|
|
957
957
|
if (ch === _Char___init__impl__6a9atx(92))
|
|
958
|
-
out.
|
|
958
|
+
out.s7('\\\\');
|
|
959
959
|
else if (ch === _Char___init__impl__6a9atx(10))
|
|
960
|
-
out.
|
|
960
|
+
out.s7('\\n');
|
|
961
961
|
else if (ch === _Char___init__impl__6a9atx(13))
|
|
962
|
-
out.
|
|
962
|
+
out.s7('\\r');
|
|
963
963
|
else if (ch === _Char___init__impl__6a9atx(9))
|
|
964
|
-
out.
|
|
964
|
+
out.s7('\\t');
|
|
965
965
|
else if (ch === _Char___init__impl__6a9atx(34))
|
|
966
|
-
out.
|
|
966
|
+
out.s7('\\"');
|
|
967
967
|
else
|
|
968
|
-
out.
|
|
968
|
+
out.t7(ch);
|
|
969
969
|
}
|
|
970
|
-
out.
|
|
970
|
+
out.s7('"');
|
|
971
971
|
}
|
|
972
972
|
var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
973
973
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
@@ -980,20 +980,20 @@ function HeadersBuilder(size) {
|
|
|
980
980
|
size = size === VOID ? 8 : size;
|
|
981
981
|
StringValuesBuilderImpl.call(this, true, size);
|
|
982
982
|
}
|
|
983
|
-
protoOf(HeadersBuilder).
|
|
984
|
-
return new HeadersImpl(this.
|
|
983
|
+
protoOf(HeadersBuilder).r3x = function () {
|
|
984
|
+
return new HeadersImpl(this.b4q_1);
|
|
985
985
|
};
|
|
986
|
-
protoOf(HeadersBuilder).
|
|
987
|
-
protoOf(StringValuesBuilderImpl).
|
|
988
|
-
HttpHeaders_getInstance().
|
|
986
|
+
protoOf(HeadersBuilder).c4q = function (name) {
|
|
987
|
+
protoOf(StringValuesBuilderImpl).c4q.call(this, name);
|
|
988
|
+
HttpHeaders_getInstance().o50(name);
|
|
989
989
|
};
|
|
990
|
-
protoOf(HeadersBuilder).
|
|
991
|
-
protoOf(StringValuesBuilderImpl).
|
|
992
|
-
HttpHeaders_getInstance().
|
|
990
|
+
protoOf(HeadersBuilder).h4q = function (value) {
|
|
991
|
+
protoOf(StringValuesBuilderImpl).h4q.call(this, value);
|
|
992
|
+
HttpHeaders_getInstance().p50(value);
|
|
993
993
|
};
|
|
994
994
|
function Companion_1() {
|
|
995
995
|
Companion_instance_1 = this;
|
|
996
|
-
this.
|
|
996
|
+
this.q50_1 = EmptyHeaders_instance;
|
|
997
997
|
}
|
|
998
998
|
var Companion_instance_1;
|
|
999
999
|
function Companion_getInstance_1() {
|
|
@@ -1009,27 +1009,27 @@ function HeadersImpl(values) {
|
|
|
1009
1009
|
StringValuesImpl.call(this, true, values);
|
|
1010
1010
|
}
|
|
1011
1011
|
protoOf(HeadersImpl).toString = function () {
|
|
1012
|
-
return 'Headers ' + toString(this.
|
|
1012
|
+
return 'Headers ' + toString(this.y4p());
|
|
1013
1013
|
};
|
|
1014
1014
|
function EmptyHeaders() {
|
|
1015
1015
|
}
|
|
1016
|
-
protoOf(EmptyHeaders).
|
|
1016
|
+
protoOf(EmptyHeaders).d4q = function () {
|
|
1017
1017
|
return true;
|
|
1018
1018
|
};
|
|
1019
|
-
protoOf(EmptyHeaders).
|
|
1019
|
+
protoOf(EmptyHeaders).e4q = function (name) {
|
|
1020
1020
|
return null;
|
|
1021
1021
|
};
|
|
1022
|
-
protoOf(EmptyHeaders).
|
|
1022
|
+
protoOf(EmptyHeaders).f4q = function () {
|
|
1023
1023
|
return emptySet();
|
|
1024
1024
|
};
|
|
1025
|
-
protoOf(EmptyHeaders).
|
|
1025
|
+
protoOf(EmptyHeaders).y4p = function () {
|
|
1026
1026
|
return emptySet();
|
|
1027
1027
|
};
|
|
1028
1028
|
protoOf(EmptyHeaders).j = function () {
|
|
1029
1029
|
return true;
|
|
1030
1030
|
};
|
|
1031
1031
|
protoOf(EmptyHeaders).toString = function () {
|
|
1032
|
-
return 'Headers ' + toString(this.
|
|
1032
|
+
return 'Headers ' + toString(this.y4p());
|
|
1033
1033
|
};
|
|
1034
1034
|
var EmptyHeaders_instance;
|
|
1035
1035
|
function EmptyHeaders_getInstance() {
|
|
@@ -1039,7 +1039,7 @@ function HeadersSingleImpl(name, values) {
|
|
|
1039
1039
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1040
1040
|
}
|
|
1041
1041
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1042
|
-
return 'Headers ' + toString(this.
|
|
1042
|
+
return 'Headers ' + toString(this.y4p());
|
|
1043
1043
|
};
|
|
1044
1044
|
function headers(builder) {
|
|
1045
1045
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1047,21 +1047,21 @@ function headers(builder) {
|
|
|
1047
1047
|
// Inline function 'kotlin.apply' call
|
|
1048
1048
|
var this_0 = new HeadersBuilder();
|
|
1049
1049
|
builder(this_0);
|
|
1050
|
-
return this_0.
|
|
1050
|
+
return this_0.r3x();
|
|
1051
1051
|
}
|
|
1052
1052
|
function HeaderValue(value, params) {
|
|
1053
1053
|
params = params === VOID ? emptyList() : params;
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1054
|
+
this.n4u_1 = value;
|
|
1055
|
+
this.o4u_1 = params;
|
|
1056
1056
|
var tmp = this;
|
|
1057
|
-
var tmp0 = this.
|
|
1057
|
+
var tmp0 = this.o4u_1;
|
|
1058
1058
|
var tmp$ret$1;
|
|
1059
1059
|
$l$block: {
|
|
1060
1060
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1061
1061
|
var _iterator__ex2g4s = tmp0.s();
|
|
1062
1062
|
while (_iterator__ex2g4s.t()) {
|
|
1063
1063
|
var element = _iterator__ex2g4s.u();
|
|
1064
|
-
if (element.
|
|
1064
|
+
if (element.j4u_1 === 'q') {
|
|
1065
1065
|
tmp$ret$1 = element;
|
|
1066
1066
|
break $l$block;
|
|
1067
1067
|
}
|
|
@@ -1069,7 +1069,7 @@ function HeaderValue(value, params) {
|
|
|
1069
1069
|
tmp$ret$1 = null;
|
|
1070
1070
|
}
|
|
1071
1071
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1072
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1072
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k4u_1;
|
|
1073
1073
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1074
1074
|
var tmp_0;
|
|
1075
1075
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1085,17 +1085,17 @@ function HeaderValue(value, params) {
|
|
|
1085
1085
|
tmp_0 = tmp_1;
|
|
1086
1086
|
}
|
|
1087
1087
|
var tmp3_elvis_lhs = tmp_0;
|
|
1088
|
-
tmp.
|
|
1088
|
+
tmp.p4u_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1089
1089
|
}
|
|
1090
|
-
protoOf(HeaderValue).
|
|
1091
|
-
return this.
|
|
1090
|
+
protoOf(HeaderValue).na = function () {
|
|
1091
|
+
return this.n4u_1;
|
|
1092
1092
|
};
|
|
1093
1093
|
protoOf(HeaderValue).toString = function () {
|
|
1094
|
-
return 'HeaderValue(value=' + this.
|
|
1094
|
+
return 'HeaderValue(value=' + this.n4u_1 + ', params=' + toString(this.o4u_1) + ')';
|
|
1095
1095
|
};
|
|
1096
1096
|
protoOf(HeaderValue).hashCode = function () {
|
|
1097
|
-
var result = getStringHashCode(this.
|
|
1098
|
-
result = imul(result, 31) + hashCode(this.
|
|
1097
|
+
var result = getStringHashCode(this.n4u_1);
|
|
1098
|
+
result = imul(result, 31) + hashCode(this.o4u_1) | 0;
|
|
1099
1099
|
return result;
|
|
1100
1100
|
};
|
|
1101
1101
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1104,9 +1104,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1104
1104
|
if (!(other instanceof HeaderValue))
|
|
1105
1105
|
return false;
|
|
1106
1106
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1107
|
-
if (!(this.
|
|
1107
|
+
if (!(this.n4u_1 === tmp0_other_with_cast.n4u_1))
|
|
1108
1108
|
return false;
|
|
1109
|
-
if (!equals_0(this.
|
|
1109
|
+
if (!equals_0(this.o4u_1, tmp0_other_with_cast.o4u_1))
|
|
1110
1110
|
return false;
|
|
1111
1111
|
return true;
|
|
1112
1112
|
};
|
|
@@ -1126,20 +1126,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1126
1126
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1127
1127
|
}
|
|
1128
1128
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1129
|
+
this.j4u_1 = name;
|
|
1130
|
+
this.k4u_1 = value;
|
|
1131
|
+
this.l4u_1 = escapeValue;
|
|
1132
1132
|
}
|
|
1133
1133
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1134
1134
|
var tmp;
|
|
1135
1135
|
var tmp_0;
|
|
1136
1136
|
if (other instanceof HeaderValueParam) {
|
|
1137
|
-
tmp_0 = equals(other.
|
|
1137
|
+
tmp_0 = equals(other.j4u_1, this.j4u_1, true);
|
|
1138
1138
|
} else {
|
|
1139
1139
|
tmp_0 = false;
|
|
1140
1140
|
}
|
|
1141
1141
|
if (tmp_0) {
|
|
1142
|
-
tmp = equals(other.
|
|
1142
|
+
tmp = equals(other.k4u_1, this.k4u_1, true);
|
|
1143
1143
|
} else {
|
|
1144
1144
|
tmp = false;
|
|
1145
1145
|
}
|
|
@@ -1148,24 +1148,24 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1148
1148
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1149
1149
|
// Inline function 'kotlin.text.lowercase' call
|
|
1150
1150
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1151
|
-
var tmp$ret$1 = this.
|
|
1151
|
+
var tmp$ret$1 = this.j4u_1.toLowerCase();
|
|
1152
1152
|
var result = getStringHashCode(tmp$ret$1);
|
|
1153
1153
|
var tmp = result;
|
|
1154
1154
|
var tmp_0 = imul(31, result);
|
|
1155
1155
|
// Inline function 'kotlin.text.lowercase' call
|
|
1156
1156
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1157
|
-
var tmp$ret$3 = this.
|
|
1157
|
+
var tmp$ret$3 = this.k4u_1.toLowerCase();
|
|
1158
1158
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1159
1159
|
return result;
|
|
1160
1160
|
};
|
|
1161
|
-
protoOf(HeaderValueParam).
|
|
1162
|
-
return this.
|
|
1161
|
+
protoOf(HeaderValueParam).na = function () {
|
|
1162
|
+
return this.j4u_1;
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf(HeaderValueParam).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf(HeaderValueParam).oa = function () {
|
|
1165
|
+
return this.k4u_1;
|
|
1166
1166
|
};
|
|
1167
1167
|
protoOf(HeaderValueParam).toString = function () {
|
|
1168
|
-
return 'HeaderValueParam(name=' + this.
|
|
1168
|
+
return 'HeaderValueParam(name=' + this.j4u_1 + ', value=' + this.k4u_1 + ', escapeValue=' + this.l4u_1 + ')';
|
|
1169
1169
|
};
|
|
1170
1170
|
function parseHeaderValue(text) {
|
|
1171
1171
|
return parseHeaderValue_0(text, false);
|
|
@@ -1214,7 +1214,7 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1214
1214
|
return position;
|
|
1215
1215
|
}
|
|
1216
1216
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1217
|
-
return _this__u8e3s4.
|
|
1217
|
+
return _this__u8e3s4.wm() ? _this__u8e3s4.e1() : emptyList();
|
|
1218
1218
|
}
|
|
1219
1219
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1220
1220
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -1227,8 +1227,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1227
1227
|
var tmp0_subject = charCodeAt(text, position);
|
|
1228
1228
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1229
1229
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1230
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1231
|
-
var paramValue = _destruct__k2r9zo.
|
|
1230
|
+
var paramEnd = _destruct__k2r9zo.na();
|
|
1231
|
+
var paramValue = _destruct__k2r9zo.oa();
|
|
1232
1232
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1233
1233
|
return paramEnd;
|
|
1234
1234
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1267,11 +1267,11 @@ function parseHeaderValueParameterValueQuoted(value, start) {
|
|
|
1267
1267
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1268
1268
|
return to(position + 1 | 0, builder.toString());
|
|
1269
1269
|
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < (get_lastIndex_0(value) - 2 | 0)) {
|
|
1270
|
-
builder.
|
|
1270
|
+
builder.t7(charCodeAt(value, position + 1 | 0));
|
|
1271
1271
|
position = position + 2 | 0;
|
|
1272
1272
|
continue loop;
|
|
1273
1273
|
}
|
|
1274
|
-
builder.
|
|
1274
|
+
builder.t7(currentChar);
|
|
1275
1275
|
position = position + 1 | 0;
|
|
1276
1276
|
}
|
|
1277
1277
|
var tmp = position;
|
|
@@ -1289,23 +1289,23 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
|
1289
1289
|
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1290
1290
|
}
|
|
1291
1291
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1292
|
-
this.
|
|
1292
|
+
this.r50_1 = function_0;
|
|
1293
1293
|
}
|
|
1294
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1295
|
-
return this.
|
|
1294
|
+
protoOf(sam$kotlin_Comparator$0).xc = function (a, b) {
|
|
1295
|
+
return this.r50_1(a, b);
|
|
1296
1296
|
};
|
|
1297
1297
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1298
|
-
return this.
|
|
1298
|
+
return this.xc(a, b);
|
|
1299
1299
|
};
|
|
1300
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1301
|
-
return this.
|
|
1300
|
+
protoOf(sam$kotlin_Comparator$0).z2 = function () {
|
|
1301
|
+
return this.r50_1;
|
|
1302
1302
|
};
|
|
1303
1303
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1304
1304
|
var tmp;
|
|
1305
1305
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1306
1306
|
var tmp_0;
|
|
1307
1307
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1308
|
-
tmp_0 = equals_0(this.
|
|
1308
|
+
tmp_0 = equals_0(this.z2(), other.z2());
|
|
1309
1309
|
} else {
|
|
1310
1310
|
tmp_0 = false;
|
|
1311
1311
|
}
|
|
@@ -1316,7 +1316,7 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
|
1316
1316
|
return tmp;
|
|
1317
1317
|
};
|
|
1318
1318
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1319
|
-
return hashCode(this.
|
|
1319
|
+
return hashCode(this.z2());
|
|
1320
1320
|
};
|
|
1321
1321
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1322
1322
|
var name = subtrim(text, start, end);
|
|
@@ -1328,8 +1328,8 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1328
1328
|
}
|
|
1329
1329
|
function parseAndSortHeader$lambda(a, b) {
|
|
1330
1330
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1331
|
-
var tmp = b.
|
|
1332
|
-
var tmp$ret$1 = a.
|
|
1331
|
+
var tmp = b.p4u_1;
|
|
1332
|
+
var tmp$ret$1 = a.p4u_1;
|
|
1333
1333
|
return compareValues(tmp, tmp$ret$1);
|
|
1334
1334
|
}
|
|
1335
1335
|
function parseHeaderValue$lambda() {
|
|
@@ -1342,112 +1342,112 @@ function parseHeaderValueItem$lambda() {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function HttpHeaders() {
|
|
1344
1344
|
HttpHeaders_instance = this;
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1345
|
+
this.s4w_1 = 'Accept';
|
|
1346
|
+
this.t4w_1 = 'Accept-Charset';
|
|
1347
|
+
this.u4w_1 = 'Accept-Encoding';
|
|
1348
|
+
this.v4w_1 = 'Accept-Language';
|
|
1349
|
+
this.w4w_1 = 'Accept-Ranges';
|
|
1350
|
+
this.x4w_1 = 'Age';
|
|
1351
|
+
this.y4w_1 = 'Allow';
|
|
1352
|
+
this.z4w_1 = 'ALPN';
|
|
1353
|
+
this.a4x_1 = 'Authentication-Info';
|
|
1354
|
+
this.b4x_1 = 'Authorization';
|
|
1355
|
+
this.c4x_1 = 'Cache-Control';
|
|
1356
|
+
this.d4x_1 = 'Connection';
|
|
1357
|
+
this.e4x_1 = 'Content-Disposition';
|
|
1358
|
+
this.f4x_1 = 'Content-Encoding';
|
|
1359
|
+
this.g4x_1 = 'Content-Language';
|
|
1360
|
+
this.h4x_1 = 'Content-Length';
|
|
1361
|
+
this.i4x_1 = 'Content-Location';
|
|
1362
|
+
this.j4x_1 = 'Content-Range';
|
|
1363
|
+
this.k4x_1 = 'Content-Type';
|
|
1364
|
+
this.l4x_1 = 'Cookie';
|
|
1365
|
+
this.m4x_1 = 'DASL';
|
|
1366
|
+
this.n4x_1 = 'Date';
|
|
1367
|
+
this.o4x_1 = 'DAV';
|
|
1368
|
+
this.p4x_1 = 'Depth';
|
|
1369
|
+
this.q4x_1 = 'Destination';
|
|
1370
|
+
this.r4x_1 = 'ETag';
|
|
1371
|
+
this.s4x_1 = 'Expect';
|
|
1372
|
+
this.t4x_1 = 'Expires';
|
|
1373
|
+
this.u4x_1 = 'From';
|
|
1374
|
+
this.v4x_1 = 'Forwarded';
|
|
1375
|
+
this.w4x_1 = 'Host';
|
|
1376
|
+
this.x4x_1 = 'HTTP2-Settings';
|
|
1377
|
+
this.y4x_1 = 'If';
|
|
1378
|
+
this.z4x_1 = 'If-Match';
|
|
1379
|
+
this.a4y_1 = 'If-Modified-Since';
|
|
1380
|
+
this.b4y_1 = 'If-None-Match';
|
|
1381
|
+
this.c4y_1 = 'If-Range';
|
|
1382
|
+
this.d4y_1 = 'If-Schedule-Tag-Match';
|
|
1383
|
+
this.e4y_1 = 'If-Unmodified-Since';
|
|
1384
|
+
this.f4y_1 = 'Last-Modified';
|
|
1385
|
+
this.g4y_1 = 'Location';
|
|
1386
|
+
this.h4y_1 = 'Lock-Token';
|
|
1387
|
+
this.i4y_1 = 'Link';
|
|
1388
|
+
this.j4y_1 = 'Max-Forwards';
|
|
1389
|
+
this.k4y_1 = 'MIME-Version';
|
|
1390
|
+
this.l4y_1 = 'Ordering-Type';
|
|
1391
|
+
this.m4y_1 = 'Origin';
|
|
1392
|
+
this.n4y_1 = 'Overwrite';
|
|
1393
|
+
this.o4y_1 = 'Position';
|
|
1394
|
+
this.p4y_1 = 'Pragma';
|
|
1395
|
+
this.q4y_1 = 'Prefer';
|
|
1396
|
+
this.r4y_1 = 'Preference-Applied';
|
|
1397
|
+
this.s4y_1 = 'Proxy-Authenticate';
|
|
1398
|
+
this.t4y_1 = 'Proxy-Authentication-Info';
|
|
1399
|
+
this.u4y_1 = 'Proxy-Authorization';
|
|
1400
|
+
this.v4y_1 = 'Public-Key-Pins';
|
|
1401
|
+
this.w4y_1 = 'Public-Key-Pins-Report-Only';
|
|
1402
|
+
this.x4y_1 = 'Range';
|
|
1403
|
+
this.y4y_1 = 'Referer';
|
|
1404
|
+
this.z4y_1 = 'Retry-After';
|
|
1405
|
+
this.a4z_1 = 'Schedule-Reply';
|
|
1406
|
+
this.b4z_1 = 'Schedule-Tag';
|
|
1407
|
+
this.c4z_1 = 'Sec-WebSocket-Accept';
|
|
1408
|
+
this.d4z_1 = 'Sec-WebSocket-Extensions';
|
|
1409
|
+
this.e4z_1 = 'Sec-WebSocket-Key';
|
|
1410
|
+
this.f4z_1 = 'Sec-WebSocket-Protocol';
|
|
1411
|
+
this.g4z_1 = 'Sec-WebSocket-Version';
|
|
1412
|
+
this.h4z_1 = 'Server';
|
|
1413
|
+
this.i4z_1 = 'Set-Cookie';
|
|
1414
|
+
this.j4z_1 = 'SLUG';
|
|
1415
|
+
this.k4z_1 = 'Strict-Transport-Security';
|
|
1416
|
+
this.l4z_1 = 'TE';
|
|
1417
|
+
this.m4z_1 = 'Timeout';
|
|
1418
|
+
this.n4z_1 = 'Trailer';
|
|
1419
|
+
this.o4z_1 = 'Transfer-Encoding';
|
|
1420
|
+
this.p4z_1 = 'Upgrade';
|
|
1421
|
+
this.q4z_1 = 'User-Agent';
|
|
1422
|
+
this.r4z_1 = 'Vary';
|
|
1423
|
+
this.s4z_1 = 'Via';
|
|
1424
|
+
this.t4z_1 = 'Warning';
|
|
1425
|
+
this.u4z_1 = 'WWW-Authenticate';
|
|
1426
|
+
this.v4z_1 = 'Access-Control-Allow-Origin';
|
|
1427
|
+
this.w4z_1 = 'Access-Control-Allow-Methods';
|
|
1428
|
+
this.x4z_1 = 'Access-Control-Allow-Credentials';
|
|
1429
|
+
this.y4z_1 = 'Access-Control-Allow-Headers';
|
|
1430
|
+
this.z4z_1 = 'Access-Control-Request-Method';
|
|
1431
|
+
this.a50_1 = 'Access-Control-Request-Headers';
|
|
1432
|
+
this.b50_1 = 'Access-Control-Expose-Headers';
|
|
1433
|
+
this.c50_1 = 'Access-Control-Max-Age';
|
|
1434
|
+
this.d50_1 = 'X-Http-Method-Override';
|
|
1435
|
+
this.e50_1 = 'X-Forwarded-Host';
|
|
1436
|
+
this.f50_1 = 'X-Forwarded-Server';
|
|
1437
|
+
this.g50_1 = 'X-Forwarded-Proto';
|
|
1438
|
+
this.h50_1 = 'X-Forwarded-For';
|
|
1439
|
+
this.i50_1 = 'X-Forwarded-Port';
|
|
1440
|
+
this.j50_1 = 'X-Request-ID';
|
|
1441
|
+
this.k50_1 = 'X-Correlation-ID';
|
|
1442
|
+
this.l50_1 = 'X-Total-Count';
|
|
1443
1443
|
var tmp = this;
|
|
1444
1444
|
// Inline function 'kotlin.arrayOf' call
|
|
1445
1445
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1446
1446
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1447
|
-
tmp.
|
|
1448
|
-
this.
|
|
1447
|
+
tmp.m50_1 = [this.o4z_1, this.p4z_1];
|
|
1448
|
+
this.n50_1 = asList(this.m50_1);
|
|
1449
1449
|
}
|
|
1450
|
-
protoOf(HttpHeaders).
|
|
1450
|
+
protoOf(HttpHeaders).o50 = function (name) {
|
|
1451
1451
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1452
1452
|
var index = 0;
|
|
1453
1453
|
var inductionVariable = 0;
|
|
@@ -1461,7 +1461,7 @@ protoOf(HttpHeaders).x4t = function (name) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
|
-
protoOf(HttpHeaders).
|
|
1464
|
+
protoOf(HttpHeaders).p50 = function (value) {
|
|
1465
1465
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1466
1466
|
var index = 0;
|
|
1467
1467
|
var inductionVariable = 0;
|
|
@@ -1495,8 +1495,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1495
1495
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1496
1496
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1497
1497
|
captureStack(this, IllegalHeaderNameException);
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1498
|
+
this.s50_1 = headerName;
|
|
1499
|
+
this.t50_1 = position;
|
|
1500
1500
|
}
|
|
1501
1501
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1502
1502
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1505,33 +1505,33 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1505
1505
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1506
1506
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1507
1507
|
captureStack(this, IllegalHeaderValueException);
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1508
|
+
this.u50_1 = headerValue;
|
|
1509
|
+
this.v50_1 = position;
|
|
1510
1510
|
}
|
|
1511
1511
|
function contentType(_this__u8e3s4) {
|
|
1512
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1512
|
+
var tmp0_safe_receiver = _this__u8e3s4.w50().x3h(HttpHeaders_getInstance().k4x_1);
|
|
1513
1513
|
var tmp;
|
|
1514
1514
|
if (tmp0_safe_receiver == null) {
|
|
1515
1515
|
tmp = null;
|
|
1516
1516
|
} else {
|
|
1517
1517
|
// Inline function 'kotlin.let' call
|
|
1518
|
-
tmp = Companion_getInstance().
|
|
1518
|
+
tmp = Companion_getInstance().en(tmp0_safe_receiver);
|
|
1519
1519
|
}
|
|
1520
1520
|
return tmp;
|
|
1521
1521
|
}
|
|
1522
1522
|
function contentType_0(_this__u8e3s4) {
|
|
1523
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1523
|
+
var tmp0_safe_receiver = _this__u8e3s4.w50().x3h(HttpHeaders_getInstance().k4x_1);
|
|
1524
1524
|
var tmp;
|
|
1525
1525
|
if (tmp0_safe_receiver == null) {
|
|
1526
1526
|
tmp = null;
|
|
1527
1527
|
} else {
|
|
1528
1528
|
// Inline function 'kotlin.let' call
|
|
1529
|
-
tmp = Companion_getInstance().
|
|
1529
|
+
tmp = Companion_getInstance().en(tmp0_safe_receiver);
|
|
1530
1530
|
}
|
|
1531
1531
|
return tmp;
|
|
1532
1532
|
}
|
|
1533
1533
|
function contentLength(_this__u8e3s4) {
|
|
1534
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1534
|
+
var tmp0_safe_receiver = _this__u8e3s4.w50().x3h(HttpHeaders_getInstance().h4x_1);
|
|
1535
1535
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1536
1536
|
}
|
|
1537
1537
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1539,7 +1539,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1539
1539
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1540
1540
|
}
|
|
1541
1541
|
function contentType_1(_this__u8e3s4, type) {
|
|
1542
|
-
return _this__u8e3s4.
|
|
1542
|
+
return _this__u8e3s4.w50().g4q(HttpHeaders_getInstance().k4x_1, type.toString());
|
|
1543
1543
|
}
|
|
1544
1544
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1545
1545
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1548,14 +1548,14 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1548
1548
|
var REQUESTS_WITHOUT_BODY;
|
|
1549
1549
|
function Companion_2() {
|
|
1550
1550
|
Companion_instance_2 = this;
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1551
|
+
this.x50_1 = new HttpMethod('GET');
|
|
1552
|
+
this.y50_1 = new HttpMethod('POST');
|
|
1553
|
+
this.z50_1 = new HttpMethod('PUT');
|
|
1554
|
+
this.a51_1 = new HttpMethod('PATCH');
|
|
1555
|
+
this.b51_1 = new HttpMethod('DELETE');
|
|
1556
|
+
this.c51_1 = new HttpMethod('HEAD');
|
|
1557
|
+
this.d51_1 = new HttpMethod('OPTIONS');
|
|
1558
|
+
this.e51_1 = listOf([this.x50_1, this.y50_1, this.z50_1, this.a51_1, this.b51_1, this.c51_1, this.d51_1]);
|
|
1559
1559
|
}
|
|
1560
1560
|
var Companion_instance_2;
|
|
1561
1561
|
function Companion_getInstance_2() {
|
|
@@ -1565,13 +1565,13 @@ function Companion_getInstance_2() {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
function HttpMethod(value) {
|
|
1567
1567
|
Companion_getInstance_2();
|
|
1568
|
-
this.
|
|
1568
|
+
this.f51_1 = value;
|
|
1569
1569
|
}
|
|
1570
1570
|
protoOf(HttpMethod).toString = function () {
|
|
1571
|
-
return this.
|
|
1571
|
+
return this.f51_1;
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(HttpMethod).hashCode = function () {
|
|
1574
|
-
return getStringHashCode(this.
|
|
1574
|
+
return getStringHashCode(this.f51_1);
|
|
1575
1575
|
};
|
|
1576
1576
|
protoOf(HttpMethod).equals = function (other) {
|
|
1577
1577
|
if (this === other)
|
|
@@ -1579,7 +1579,7 @@ protoOf(HttpMethod).equals = function (other) {
|
|
|
1579
1579
|
if (!(other instanceof HttpMethod))
|
|
1580
1580
|
return false;
|
|
1581
1581
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1582
|
-
if (!(this.
|
|
1582
|
+
if (!(this.f51_1 === tmp0_other_with_cast.f51_1))
|
|
1583
1583
|
return false;
|
|
1584
1584
|
return true;
|
|
1585
1585
|
};
|
|
@@ -1591,16 +1591,16 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1591
1591
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1592
1592
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1593
1593
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1594
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1594
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().x50_1, Companion_getInstance_2().c51_1, Companion_getInstance_2().d51_1, new HttpMethod('TRACE')]);
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
function Companion_3() {
|
|
1598
1598
|
Companion_instance_3 = this;
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1599
|
+
this.g51_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1600
|
+
this.h51_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1601
|
+
this.i51_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1602
|
+
this.j51_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1603
|
+
this.k51_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1604
1604
|
}
|
|
1605
1605
|
var Companion_instance_3;
|
|
1606
1606
|
function Companion_getInstance_3() {
|
|
@@ -1610,17 +1610,17 @@ function Companion_getInstance_3() {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
function HttpProtocolVersion(name, major, minor) {
|
|
1612
1612
|
Companion_getInstance_3();
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1613
|
+
this.l51_1 = name;
|
|
1614
|
+
this.m51_1 = major;
|
|
1615
|
+
this.n51_1 = minor;
|
|
1616
1616
|
}
|
|
1617
1617
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1618
|
-
return this.
|
|
1618
|
+
return this.l51_1 + '/' + this.m51_1 + '.' + this.n51_1;
|
|
1619
1619
|
};
|
|
1620
1620
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1621
|
-
var result = getStringHashCode(this.
|
|
1622
|
-
result = imul(result, 31) + this.
|
|
1623
|
-
result = imul(result, 31) + this.
|
|
1621
|
+
var result = getStringHashCode(this.l51_1);
|
|
1622
|
+
result = imul(result, 31) + this.m51_1 | 0;
|
|
1623
|
+
result = imul(result, 31) + this.n51_1 | 0;
|
|
1624
1624
|
return result;
|
|
1625
1625
|
};
|
|
1626
1626
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1629,83 +1629,83 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1629
1629
|
if (!(other instanceof HttpProtocolVersion))
|
|
1630
1630
|
return false;
|
|
1631
1631
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1632
|
-
if (!(this.
|
|
1632
|
+
if (!(this.l51_1 === tmp0_other_with_cast.l51_1))
|
|
1633
1633
|
return false;
|
|
1634
|
-
if (!(this.
|
|
1634
|
+
if (!(this.m51_1 === tmp0_other_with_cast.m51_1))
|
|
1635
1635
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1636
|
+
if (!(this.n51_1 === tmp0_other_with_cast.n51_1))
|
|
1637
1637
|
return false;
|
|
1638
1638
|
return true;
|
|
1639
1639
|
};
|
|
1640
1640
|
function Companion_4() {
|
|
1641
1641
|
Companion_instance_4 = this;
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1642
|
+
this.o51_1 = new HttpStatusCode(100, 'Continue');
|
|
1643
|
+
this.p51_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1644
|
+
this.q51_1 = new HttpStatusCode(102, 'Processing');
|
|
1645
|
+
this.r51_1 = new HttpStatusCode(200, 'OK');
|
|
1646
|
+
this.s51_1 = new HttpStatusCode(201, 'Created');
|
|
1647
|
+
this.t51_1 = new HttpStatusCode(202, 'Accepted');
|
|
1648
|
+
this.u51_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1649
|
+
this.v51_1 = new HttpStatusCode(204, 'No Content');
|
|
1650
|
+
this.w51_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1651
|
+
this.x51_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1652
|
+
this.y51_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1653
|
+
this.z51_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1654
|
+
this.a52_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1655
|
+
this.b52_1 = new HttpStatusCode(302, 'Found');
|
|
1656
|
+
this.c52_1 = new HttpStatusCode(303, 'See Other');
|
|
1657
|
+
this.d52_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1658
|
+
this.e52_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1659
|
+
this.f52_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1660
|
+
this.g52_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1661
|
+
this.h52_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1662
|
+
this.i52_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1663
|
+
this.j52_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1664
|
+
this.k52_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1665
|
+
this.l52_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1666
|
+
this.m52_1 = new HttpStatusCode(404, 'Not Found');
|
|
1667
|
+
this.n52_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1668
|
+
this.o52_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1669
|
+
this.p52_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1670
|
+
this.q52_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1671
|
+
this.r52_1 = new HttpStatusCode(409, 'Conflict');
|
|
1672
|
+
this.s52_1 = new HttpStatusCode(410, 'Gone');
|
|
1673
|
+
this.t52_1 = new HttpStatusCode(411, 'Length Required');
|
|
1674
|
+
this.u52_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1675
|
+
this.v52_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1676
|
+
this.w52_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1677
|
+
this.x52_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1678
|
+
this.y52_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1679
|
+
this.z52_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1680
|
+
this.a53_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1681
|
+
this.b53_1 = new HttpStatusCode(423, 'Locked');
|
|
1682
|
+
this.c53_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1683
|
+
this.d53_1 = new HttpStatusCode(425, 'Too Early');
|
|
1684
|
+
this.e53_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1685
|
+
this.f53_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1686
|
+
this.g53_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1687
|
+
this.h53_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1688
|
+
this.i53_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1689
|
+
this.j53_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1690
|
+
this.k53_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1691
|
+
this.l53_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1692
|
+
this.m53_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1693
|
+
this.n53_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1694
|
+
this.o53_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1695
|
+
this.p53_1 = allStatusCodes();
|
|
1696
1696
|
var tmp = this;
|
|
1697
1697
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1698
|
-
var this_0 = this.
|
|
1698
|
+
var this_0 = this.p53_1;
|
|
1699
1699
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1700
1700
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1701
1701
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1702
1702
|
var _iterator__ex2g4s = this_0.s();
|
|
1703
1703
|
while (_iterator__ex2g4s.t()) {
|
|
1704
1704
|
var element = _iterator__ex2g4s.u();
|
|
1705
|
-
var tmp$ret$0 = element.
|
|
1706
|
-
destination.
|
|
1705
|
+
var tmp$ret$0 = element.r53_1;
|
|
1706
|
+
destination.m2(tmp$ret$0, element);
|
|
1707
1707
|
}
|
|
1708
|
-
tmp.
|
|
1708
|
+
tmp.q53_1 = destination;
|
|
1709
1709
|
}
|
|
1710
1710
|
var Companion_instance_4;
|
|
1711
1711
|
function Companion_getInstance_4() {
|
|
@@ -1715,40 +1715,40 @@ function Companion_getInstance_4() {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
function HttpStatusCode(value, description) {
|
|
1717
1717
|
Companion_getInstance_4();
|
|
1718
|
-
this.
|
|
1719
|
-
this.
|
|
1718
|
+
this.r53_1 = value;
|
|
1719
|
+
this.s53_1 = description;
|
|
1720
1720
|
}
|
|
1721
1721
|
protoOf(HttpStatusCode).toString = function () {
|
|
1722
|
-
return '' + this.
|
|
1722
|
+
return '' + this.r53_1 + ' ' + this.s53_1;
|
|
1723
1723
|
};
|
|
1724
1724
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1725
1725
|
var tmp;
|
|
1726
1726
|
if (other instanceof HttpStatusCode) {
|
|
1727
|
-
tmp = other.
|
|
1727
|
+
tmp = other.r53_1 === this.r53_1;
|
|
1728
1728
|
} else {
|
|
1729
1729
|
tmp = false;
|
|
1730
1730
|
}
|
|
1731
1731
|
return tmp;
|
|
1732
1732
|
};
|
|
1733
1733
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1734
|
-
return this.
|
|
1734
|
+
return this.r53_1;
|
|
1735
1735
|
};
|
|
1736
|
-
protoOf(HttpStatusCode).
|
|
1737
|
-
return this.
|
|
1736
|
+
protoOf(HttpStatusCode).t53 = function (other) {
|
|
1737
|
+
return this.r53_1 - other.r53_1 | 0;
|
|
1738
1738
|
};
|
|
1739
1739
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1740
|
-
return this.
|
|
1740
|
+
return this.t53(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1741
1741
|
};
|
|
1742
1742
|
function allStatusCodes() {
|
|
1743
|
-
return listOf([Companion_getInstance_4().
|
|
1743
|
+
return listOf([Companion_getInstance_4().o51_1, Companion_getInstance_4().p51_1, Companion_getInstance_4().q51_1, Companion_getInstance_4().r51_1, Companion_getInstance_4().s51_1, Companion_getInstance_4().t51_1, Companion_getInstance_4().u51_1, Companion_getInstance_4().v51_1, Companion_getInstance_4().w51_1, Companion_getInstance_4().x51_1, Companion_getInstance_4().y51_1, Companion_getInstance_4().z51_1, Companion_getInstance_4().a52_1, Companion_getInstance_4().b52_1, Companion_getInstance_4().c52_1, Companion_getInstance_4().d52_1, Companion_getInstance_4().e52_1, Companion_getInstance_4().f52_1, Companion_getInstance_4().g52_1, Companion_getInstance_4().h52_1, Companion_getInstance_4().i52_1, Companion_getInstance_4().j52_1, Companion_getInstance_4().k52_1, Companion_getInstance_4().l52_1, Companion_getInstance_4().m52_1, Companion_getInstance_4().n52_1, Companion_getInstance_4().o52_1, Companion_getInstance_4().p52_1, Companion_getInstance_4().q52_1, Companion_getInstance_4().r52_1, Companion_getInstance_4().s52_1, Companion_getInstance_4().t52_1, Companion_getInstance_4().u52_1, Companion_getInstance_4().v52_1, Companion_getInstance_4().w52_1, Companion_getInstance_4().x52_1, Companion_getInstance_4().y52_1, Companion_getInstance_4().z52_1, Companion_getInstance_4().a53_1, Companion_getInstance_4().b53_1, Companion_getInstance_4().c53_1, Companion_getInstance_4().d53_1, Companion_getInstance_4().e53_1, Companion_getInstance_4().f53_1, Companion_getInstance_4().g53_1, Companion_getInstance_4().h53_1, Companion_getInstance_4().i53_1, Companion_getInstance_4().j53_1, Companion_getInstance_4().k53_1, Companion_getInstance_4().l53_1, Companion_getInstance_4().m53_1, Companion_getInstance_4().n53_1, Companion_getInstance_4().o53_1]);
|
|
1744
1744
|
}
|
|
1745
1745
|
function isSuccess(_this__u8e3s4) {
|
|
1746
|
-
var containsArg = _this__u8e3s4.
|
|
1746
|
+
var containsArg = _this__u8e3s4.r53_1;
|
|
1747
1747
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1748
1748
|
}
|
|
1749
1749
|
function Companion_5() {
|
|
1750
1750
|
Companion_instance_5 = this;
|
|
1751
|
-
this.
|
|
1751
|
+
this.u53_1 = EmptyParameters_instance;
|
|
1752
1752
|
}
|
|
1753
1753
|
var Companion_instance_5;
|
|
1754
1754
|
function Companion_getInstance_5() {
|
|
@@ -1760,23 +1760,23 @@ function Parameters() {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
function EmptyParameters() {
|
|
1762
1762
|
}
|
|
1763
|
-
protoOf(EmptyParameters).
|
|
1763
|
+
protoOf(EmptyParameters).d4q = function () {
|
|
1764
1764
|
return true;
|
|
1765
1765
|
};
|
|
1766
|
-
protoOf(EmptyParameters).
|
|
1766
|
+
protoOf(EmptyParameters).e4q = function (name) {
|
|
1767
1767
|
return null;
|
|
1768
1768
|
};
|
|
1769
|
-
protoOf(EmptyParameters).
|
|
1769
|
+
protoOf(EmptyParameters).f4q = function () {
|
|
1770
1770
|
return emptySet();
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(EmptyParameters).
|
|
1772
|
+
protoOf(EmptyParameters).y4p = function () {
|
|
1773
1773
|
return emptySet();
|
|
1774
1774
|
};
|
|
1775
1775
|
protoOf(EmptyParameters).j = function () {
|
|
1776
1776
|
return true;
|
|
1777
1777
|
};
|
|
1778
1778
|
protoOf(EmptyParameters).toString = function () {
|
|
1779
|
-
return 'Parameters ' + toString(this.
|
|
1779
|
+
return 'Parameters ' + toString(this.y4p());
|
|
1780
1780
|
};
|
|
1781
1781
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1782
1782
|
var tmp;
|
|
@@ -1799,15 +1799,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1799
1799
|
size = size === VOID ? 8 : size;
|
|
1800
1800
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1801
1801
|
}
|
|
1802
|
-
protoOf(ParametersBuilderImpl).
|
|
1803
|
-
return new ParametersImpl(this.
|
|
1802
|
+
protoOf(ParametersBuilderImpl).r3x = function () {
|
|
1803
|
+
return new ParametersImpl(this.b4q_1);
|
|
1804
1804
|
};
|
|
1805
1805
|
function ParametersImpl(values) {
|
|
1806
1806
|
values = values === VOID ? emptyMap() : values;
|
|
1807
1807
|
StringValuesImpl.call(this, true, values);
|
|
1808
1808
|
}
|
|
1809
1809
|
protoOf(ParametersImpl).toString = function () {
|
|
1810
|
-
return 'Parameters ' + toString(this.
|
|
1810
|
+
return 'Parameters ' + toString(this.y4p());
|
|
1811
1811
|
};
|
|
1812
1812
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1813
1813
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1815,14 +1815,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1815
1815
|
decode = decode === VOID ? true : decode;
|
|
1816
1816
|
var tmp;
|
|
1817
1817
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1818
|
-
tmp = Companion_getInstance_5().
|
|
1818
|
+
tmp = Companion_getInstance_5().u53_1;
|
|
1819
1819
|
} else {
|
|
1820
1820
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1821
1821
|
Companion_getInstance_5();
|
|
1822
1822
|
// Inline function 'kotlin.apply' call
|
|
1823
1823
|
var this_0 = ParametersBuilder();
|
|
1824
1824
|
parse(this_0, query, startIndex, limit, decode);
|
|
1825
|
-
tmp = this_0.
|
|
1825
|
+
tmp = this_0.r3x();
|
|
1826
1826
|
}
|
|
1827
1827
|
return tmp;
|
|
1828
1828
|
}
|
|
@@ -1863,7 +1863,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1863
1863
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1864
1864
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1865
1865
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1866
|
-
_this__u8e3s4.
|
|
1866
|
+
_this__u8e3s4.z4p(name, emptyList());
|
|
1867
1867
|
}
|
|
1868
1868
|
return Unit_instance;
|
|
1869
1869
|
}
|
|
@@ -1874,7 +1874,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1874
1874
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1875
1875
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1876
1876
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1877
|
-
_this__u8e3s4.
|
|
1877
|
+
_this__u8e3s4.i4q(name_0, value);
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
function trimStart(start, end, query) {
|
|
@@ -1894,25 +1894,25 @@ function trimEnd(start, end, text) {
|
|
|
1894
1894
|
function applyOrigin($this) {
|
|
1895
1895
|
var tmp;
|
|
1896
1896
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1897
|
-
var this_0 = $this.
|
|
1897
|
+
var this_0 = $this.x53_1;
|
|
1898
1898
|
if (charSequenceLength(this_0) > 0) {
|
|
1899
1899
|
tmp = true;
|
|
1900
1900
|
} else {
|
|
1901
|
-
tmp = $this.
|
|
1901
|
+
tmp = $this.j54().h54_1 === 'file';
|
|
1902
1902
|
}
|
|
1903
1903
|
if (tmp)
|
|
1904
1904
|
return Unit_instance;
|
|
1905
|
-
$this.
|
|
1906
|
-
if ($this.
|
|
1907
|
-
$this.
|
|
1908
|
-
if ($this.
|
|
1909
|
-
$this.
|
|
1905
|
+
$this.x53_1 = Companion_getInstance_6().d55_1.k54_1;
|
|
1906
|
+
if ($this.a54_1 == null)
|
|
1907
|
+
$this.a54_1 = Companion_getInstance_6().d55_1.v54_1;
|
|
1908
|
+
if ($this.z53_1 === 0) {
|
|
1909
|
+
$this.f55(Companion_getInstance_6().d55_1.l54_1);
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
1912
|
function Companion_6() {
|
|
1913
1913
|
Companion_instance_6 = this;
|
|
1914
|
-
this.
|
|
1915
|
-
this.
|
|
1914
|
+
this.d55_1 = Url(get_origin(this));
|
|
1915
|
+
this.e55_1 = 256;
|
|
1916
1916
|
}
|
|
1917
1917
|
var Companion_instance_6;
|
|
1918
1918
|
function Companion_getInstance_6() {
|
|
@@ -1928,18 +1928,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1928
1928
|
user = user === VOID ? null : user;
|
|
1929
1929
|
password = password === VOID ? null : password;
|
|
1930
1930
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1931
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1931
|
+
parameters = parameters === VOID ? Companion_getInstance_5().u53_1 : parameters;
|
|
1932
1932
|
fragment = fragment === VOID ? '' : fragment;
|
|
1933
1933
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1934
|
-
this.
|
|
1935
|
-
this.
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1934
|
+
this.x53_1 = host;
|
|
1935
|
+
this.y53_1 = trailingQuery;
|
|
1936
|
+
this.z53_1 = port;
|
|
1937
|
+
this.a54_1 = protocol;
|
|
1938
1938
|
var tmp = this;
|
|
1939
|
-
tmp.
|
|
1939
|
+
tmp.b54_1 = user == null ? null : encodeURLParameter(user);
|
|
1940
1940
|
var tmp_0 = this;
|
|
1941
|
-
tmp_0.
|
|
1942
|
-
this.
|
|
1941
|
+
tmp_0.c54_1 = password == null ? null : encodeURLParameter(password);
|
|
1942
|
+
this.d54_1 = encodeURLQueryComponent(fragment);
|
|
1943
1943
|
var tmp_1 = this;
|
|
1944
1944
|
// Inline function 'kotlin.collections.map' call
|
|
1945
1945
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1950,43 +1950,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1950
1950
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1951
1951
|
destination.p(tmp$ret$0);
|
|
1952
1952
|
}
|
|
1953
|
-
tmp_1.
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1953
|
+
tmp_1.e54_1 = destination;
|
|
1954
|
+
this.f54_1 = encodeParameters(parameters);
|
|
1955
|
+
this.g54_1 = new UrlDecodedParametersBuilder(this.f54_1);
|
|
1956
1956
|
}
|
|
1957
|
-
protoOf(URLBuilder).
|
|
1957
|
+
protoOf(URLBuilder).f55 = function (value) {
|
|
1958
1958
|
// Inline function 'kotlin.require' call
|
|
1959
1959
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1960
1960
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1961
1961
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1962
1962
|
}
|
|
1963
|
-
this.
|
|
1963
|
+
this.z53_1 = value;
|
|
1964
1964
|
};
|
|
1965
|
-
protoOf(URLBuilder).
|
|
1966
|
-
this.
|
|
1965
|
+
protoOf(URLBuilder).g55 = function (value) {
|
|
1966
|
+
this.a54_1 = value;
|
|
1967
1967
|
};
|
|
1968
|
-
protoOf(URLBuilder).
|
|
1969
|
-
var tmp0_elvis_lhs = this.
|
|
1970
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1968
|
+
protoOf(URLBuilder).j54 = function () {
|
|
1969
|
+
var tmp0_elvis_lhs = this.a54_1;
|
|
1970
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().h55_1 : tmp0_elvis_lhs;
|
|
1971
1971
|
};
|
|
1972
|
-
protoOf(URLBuilder).
|
|
1972
|
+
protoOf(URLBuilder).n55 = function (value) {
|
|
1973
1973
|
var tmp = this;
|
|
1974
|
-
tmp.
|
|
1974
|
+
tmp.b54_1 = value == null ? null : encodeURLParameter(value);
|
|
1975
1975
|
};
|
|
1976
|
-
protoOf(URLBuilder).
|
|
1977
|
-
var tmp0_safe_receiver = this.
|
|
1976
|
+
protoOf(URLBuilder).o55 = function () {
|
|
1977
|
+
var tmp0_safe_receiver = this.b54_1;
|
|
1978
1978
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1979
1979
|
};
|
|
1980
|
-
protoOf(URLBuilder).
|
|
1981
|
-
var tmp0_safe_receiver = this.
|
|
1980
|
+
protoOf(URLBuilder).p55 = function () {
|
|
1981
|
+
var tmp0_safe_receiver = this.c54_1;
|
|
1982
1982
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1983
1983
|
};
|
|
1984
|
-
protoOf(URLBuilder).
|
|
1985
|
-
return decodeURLQueryComponent(this.
|
|
1984
|
+
protoOf(URLBuilder).q55 = function () {
|
|
1985
|
+
return decodeURLQueryComponent(this.d54_1);
|
|
1986
1986
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1987
|
+
protoOf(URLBuilder).r55 = function () {
|
|
1988
1988
|
// Inline function 'kotlin.collections.map' call
|
|
1989
|
-
var this_0 = this.
|
|
1989
|
+
var this_0 = this.e54_1;
|
|
1990
1990
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1991
1991
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1992
1992
|
var _iterator__ex2g4s = this_0.s();
|
|
@@ -1997,60 +1997,60 @@ protoOf(URLBuilder).a4z = function () {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return destination;
|
|
1999
1999
|
};
|
|
2000
|
-
protoOf(URLBuilder).
|
|
2001
|
-
this.
|
|
2002
|
-
this.
|
|
2000
|
+
protoOf(URLBuilder).s55 = function (value) {
|
|
2001
|
+
this.f54_1 = value;
|
|
2002
|
+
this.g54_1 = new UrlDecodedParametersBuilder(value);
|
|
2003
2003
|
};
|
|
2004
|
-
protoOf(URLBuilder).
|
|
2004
|
+
protoOf(URLBuilder).t55 = function () {
|
|
2005
2005
|
applyOrigin(this);
|
|
2006
2006
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2007
2007
|
};
|
|
2008
2008
|
protoOf(URLBuilder).toString = function () {
|
|
2009
2009
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2010
2010
|
};
|
|
2011
|
-
protoOf(URLBuilder).
|
|
2011
|
+
protoOf(URLBuilder).r3x = function () {
|
|
2012
2012
|
applyOrigin(this);
|
|
2013
|
-
return new Url_0(this.
|
|
2013
|
+
return new Url_0(this.a54_1, this.x53_1, this.z53_1, this.r55(), this.g54_1.r3x(), this.q55(), this.o55(), this.p55(), this.y53_1, this.t55());
|
|
2014
2014
|
};
|
|
2015
2015
|
function get_authority(_this__u8e3s4) {
|
|
2016
2016
|
// Inline function 'kotlin.text.buildString' call
|
|
2017
2017
|
// Inline function 'kotlin.apply' call
|
|
2018
2018
|
var this_0 = StringBuilder_init_$Create$();
|
|
2019
|
-
this_0.
|
|
2020
|
-
this_0.
|
|
2021
|
-
if (!(_this__u8e3s4.
|
|
2022
|
-
this_0.
|
|
2023
|
-
this_0.
|
|
2019
|
+
this_0.s7(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2020
|
+
this_0.s7(_this__u8e3s4.x53_1);
|
|
2021
|
+
if (!(_this__u8e3s4.z53_1 === 0) && !(_this__u8e3s4.z53_1 === _this__u8e3s4.j54().i54_1)) {
|
|
2022
|
+
this_0.s7(':');
|
|
2023
|
+
this_0.s7(_this__u8e3s4.z53_1.toString());
|
|
2024
2024
|
}
|
|
2025
2025
|
return this_0.toString();
|
|
2026
2026
|
}
|
|
2027
2027
|
function appendTo(_this__u8e3s4, out) {
|
|
2028
|
-
out.q(_this__u8e3s4.
|
|
2029
|
-
switch (_this__u8e3s4.
|
|
2028
|
+
out.q(_this__u8e3s4.j54().h54_1);
|
|
2029
|
+
switch (_this__u8e3s4.j54().h54_1) {
|
|
2030
2030
|
case 'file':
|
|
2031
|
-
appendFile(out, _this__u8e3s4.
|
|
2031
|
+
appendFile(out, _this__u8e3s4.x53_1, get_encodedPath(_this__u8e3s4));
|
|
2032
2032
|
return out;
|
|
2033
2033
|
case 'mailto':
|
|
2034
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2034
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.x53_1);
|
|
2035
2035
|
return out;
|
|
2036
2036
|
case 'about':
|
|
2037
|
-
appendPayload(out, _this__u8e3s4.
|
|
2037
|
+
appendPayload(out, _this__u8e3s4.x53_1);
|
|
2038
2038
|
return out;
|
|
2039
2039
|
case 'tel':
|
|
2040
|
-
appendPayload(out, _this__u8e3s4.
|
|
2040
|
+
appendPayload(out, _this__u8e3s4.x53_1);
|
|
2041
2041
|
return out;
|
|
2042
2042
|
case 'data':
|
|
2043
|
-
appendPayload(out, _this__u8e3s4.
|
|
2043
|
+
appendPayload(out, _this__u8e3s4.x53_1);
|
|
2044
2044
|
return out;
|
|
2045
2045
|
}
|
|
2046
2046
|
out.q('://');
|
|
2047
2047
|
out.q(get_authority(_this__u8e3s4));
|
|
2048
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2048
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.f54_1, _this__u8e3s4.y53_1);
|
|
2049
2049
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2050
|
-
var this_0 = _this__u8e3s4.
|
|
2050
|
+
var this_0 = _this__u8e3s4.d54_1;
|
|
2051
2051
|
if (charSequenceLength(this_0) > 0) {
|
|
2052
|
-
out.
|
|
2053
|
-
out.q(_this__u8e3s4.
|
|
2052
|
+
out.t7(_Char___init__impl__6a9atx(35));
|
|
2053
|
+
out.q(_this__u8e3s4.d54_1);
|
|
2054
2054
|
}
|
|
2055
2055
|
return out;
|
|
2056
2056
|
}
|
|
@@ -2058,22 +2058,22 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2058
2058
|
// Inline function 'kotlin.text.buildString' call
|
|
2059
2059
|
// Inline function 'kotlin.apply' call
|
|
2060
2060
|
var this_0 = StringBuilder_init_$Create$();
|
|
2061
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2061
|
+
appendUserAndPassword(this_0, _this__u8e3s4.b54_1, _this__u8e3s4.c54_1);
|
|
2062
2062
|
return this_0.toString();
|
|
2063
2063
|
}
|
|
2064
2064
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
2065
2065
|
_this__u8e3s4.q('://');
|
|
2066
2066
|
_this__u8e3s4.q(host);
|
|
2067
2067
|
if (!startsWith_0(encodedPath, _Char___init__impl__6a9atx(47))) {
|
|
2068
|
-
_this__u8e3s4.
|
|
2068
|
+
_this__u8e3s4.t7(_Char___init__impl__6a9atx(47));
|
|
2069
2069
|
}
|
|
2070
2070
|
_this__u8e3s4.q(encodedPath);
|
|
2071
2071
|
}
|
|
2072
2072
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2073
|
-
_this__u8e3s4.
|
|
2073
|
+
_this__u8e3s4.e54_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2074
2074
|
}
|
|
2075
2075
|
function get_encodedPath(_this__u8e3s4) {
|
|
2076
|
-
return joinPath(_this__u8e3s4.
|
|
2076
|
+
return joinPath(_this__u8e3s4.e54_1);
|
|
2077
2077
|
}
|
|
2078
2078
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2079
2079
|
_this__u8e3s4.q(':');
|
|
@@ -2113,12 +2113,12 @@ function set(_this__u8e3s4, scheme, host, port, path, block) {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
block = tmp;
|
|
2115
2115
|
if (!(scheme == null)) {
|
|
2116
|
-
_this__u8e3s4.
|
|
2116
|
+
_this__u8e3s4.g55(Companion_getInstance_7().u55(scheme));
|
|
2117
2117
|
}
|
|
2118
2118
|
if (!(host == null))
|
|
2119
|
-
_this__u8e3s4.
|
|
2119
|
+
_this__u8e3s4.x53_1 = host;
|
|
2120
2120
|
if (!(port == null)) {
|
|
2121
|
-
_this__u8e3s4.
|
|
2121
|
+
_this__u8e3s4.f55(port);
|
|
2122
2122
|
}
|
|
2123
2123
|
if (!(path == null)) {
|
|
2124
2124
|
set_encodedPath(_this__u8e3s4, path);
|
|
@@ -2159,9 +2159,9 @@ function appendPathSegments_0(_this__u8e3s4, segments, encodeSlash) {
|
|
|
2159
2159
|
function appendEncodedPathSegments(_this__u8e3s4, segments) {
|
|
2160
2160
|
var tmp;
|
|
2161
2161
|
var tmp_0;
|
|
2162
|
-
if (_this__u8e3s4.
|
|
2162
|
+
if (_this__u8e3s4.e54_1.v() > 1) {
|
|
2163
2163
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2164
|
-
var this_0 = last(_this__u8e3s4.
|
|
2164
|
+
var this_0 = last(_this__u8e3s4.e54_1);
|
|
2165
2165
|
tmp_0 = charSequenceLength(this_0) === 0;
|
|
2166
2166
|
} else {
|
|
2167
2167
|
tmp_0 = false;
|
|
@@ -2184,12 +2184,12 @@ function appendEncodedPathSegments(_this__u8e3s4, segments) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
if (tmp_2) {
|
|
2186
2186
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2187
|
-
tmp_1 = !_this__u8e3s4.
|
|
2187
|
+
tmp_1 = !_this__u8e3s4.e54_1.j();
|
|
2188
2188
|
} else {
|
|
2189
2189
|
tmp_1 = false;
|
|
2190
2190
|
}
|
|
2191
2191
|
var startWithSlash = tmp_1;
|
|
2192
|
-
_this__u8e3s4.
|
|
2192
|
+
_this__u8e3s4.e54_1 = endsWithSlash && startWithSlash ? plus_0(dropLast(_this__u8e3s4.e54_1, 1), drop(segments, 1)) : endsWithSlash ? plus_0(dropLast(_this__u8e3s4.e54_1, 1), segments) : startWithSlash ? plus_0(_this__u8e3s4.e54_1, drop(segments, 1)) : plus_0(_this__u8e3s4.e54_1, segments);
|
|
2193
2193
|
return _this__u8e3s4;
|
|
2194
2194
|
}
|
|
2195
2195
|
function set$lambda(_this__u8e3s4) {
|
|
@@ -2260,20 +2260,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2260
2260
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2261
2261
|
if (schemeLength > 0) {
|
|
2262
2262
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2263
|
-
_this__u8e3s4.
|
|
2263
|
+
_this__u8e3s4.g55(Companion_getInstance_7().u55(scheme));
|
|
2264
2264
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2265
2265
|
}
|
|
2266
|
-
if (_this__u8e3s4.
|
|
2267
|
-
_this__u8e3s4.
|
|
2266
|
+
if (_this__u8e3s4.j54().h54_1 === 'data') {
|
|
2267
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, endIndex);
|
|
2268
2268
|
return _this__u8e3s4;
|
|
2269
2269
|
}
|
|
2270
2270
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2271
2271
|
startIndex = startIndex + slashCount | 0;
|
|
2272
|
-
if (_this__u8e3s4.
|
|
2272
|
+
if (_this__u8e3s4.j54().h54_1 === 'file') {
|
|
2273
2273
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2274
2274
|
return _this__u8e3s4;
|
|
2275
2275
|
}
|
|
2276
|
-
if (_this__u8e3s4.
|
|
2276
|
+
if (_this__u8e3s4.j54().h54_1 === 'mailto') {
|
|
2277
2277
|
// Inline function 'kotlin.require' call
|
|
2278
2278
|
// Inline function 'kotlin.require' call
|
|
2279
2279
|
if (!(slashCount === 0)) {
|
|
@@ -2283,24 +2283,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2283
2283
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2284
2284
|
return _this__u8e3s4;
|
|
2285
2285
|
}
|
|
2286
|
-
if (_this__u8e3s4.
|
|
2286
|
+
if (_this__u8e3s4.j54().h54_1 === 'about') {
|
|
2287
2287
|
// Inline function 'kotlin.require' call
|
|
2288
2288
|
// Inline function 'kotlin.require' call
|
|
2289
2289
|
if (!(slashCount === 0)) {
|
|
2290
2290
|
var message_0 = 'Failed requirement.';
|
|
2291
2291
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2292
2292
|
}
|
|
2293
|
-
_this__u8e3s4.
|
|
2293
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, endIndex);
|
|
2294
2294
|
return _this__u8e3s4;
|
|
2295
2295
|
}
|
|
2296
|
-
if (_this__u8e3s4.
|
|
2296
|
+
if (_this__u8e3s4.j54().h54_1 === 'tel') {
|
|
2297
2297
|
// Inline function 'kotlin.require' call
|
|
2298
2298
|
// Inline function 'kotlin.require' call
|
|
2299
2299
|
if (!(slashCount === 0)) {
|
|
2300
2300
|
var message_1 = 'Failed requirement.';
|
|
2301
2301
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2302
2302
|
}
|
|
2303
|
-
_this__u8e3s4.
|
|
2303
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, endIndex);
|
|
2304
2304
|
return _this__u8e3s4;
|
|
2305
2305
|
}
|
|
2306
2306
|
if (slashCount >= 2) {
|
|
@@ -2318,10 +2318,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2318
2318
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2319
2319
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2320
2320
|
if (!(passwordIndex === -1)) {
|
|
2321
|
-
_this__u8e3s4.
|
|
2322
|
-
_this__u8e3s4.
|
|
2321
|
+
_this__u8e3s4.b54_1 = substring(urlString, startIndex, passwordIndex);
|
|
2322
|
+
_this__u8e3s4.c54_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2323
2323
|
} else {
|
|
2324
|
-
_this__u8e3s4.
|
|
2324
|
+
_this__u8e3s4.b54_1 = substring(urlString, startIndex, delimiter);
|
|
2325
2325
|
}
|
|
2326
2326
|
startIndex = delimiter + 1 | 0;
|
|
2327
2327
|
} else {
|
|
@@ -2332,17 +2332,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
}
|
|
2334
2334
|
if (startIndex >= endIndex) {
|
|
2335
|
-
_this__u8e3s4.
|
|
2335
|
+
_this__u8e3s4.e54_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2336
2336
|
return _this__u8e3s4;
|
|
2337
2337
|
}
|
|
2338
2338
|
var tmp_0 = _this__u8e3s4;
|
|
2339
2339
|
var tmp_1;
|
|
2340
2340
|
if (slashCount === 0) {
|
|
2341
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2341
|
+
tmp_1 = dropLast(_this__u8e3s4.e54_1, 1);
|
|
2342
2342
|
} else {
|
|
2343
2343
|
tmp_1 = emptyList();
|
|
2344
2344
|
}
|
|
2345
|
-
tmp_0.
|
|
2345
|
+
tmp_0.e54_1 = tmp_1;
|
|
2346
2346
|
// Inline function 'kotlin.takeIf' call
|
|
2347
2347
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2348
2348
|
var tmp_2;
|
|
@@ -2357,9 +2357,9 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2357
2357
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2358
2358
|
var tmp_3;
|
|
2359
2359
|
var tmp_4;
|
|
2360
|
-
if (_this__u8e3s4.
|
|
2360
|
+
if (_this__u8e3s4.e54_1.v() === 1) {
|
|
2361
2361
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2362
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2362
|
+
var this_2 = first_0(_this__u8e3s4.e54_1);
|
|
2363
2363
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2364
2364
|
} else {
|
|
2365
2365
|
tmp_4 = false;
|
|
@@ -2367,12 +2367,12 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2367
2367
|
if (tmp_4) {
|
|
2368
2368
|
tmp_3 = emptyList();
|
|
2369
2369
|
} else {
|
|
2370
|
-
tmp_3 = _this__u8e3s4.
|
|
2370
|
+
tmp_3 = _this__u8e3s4.e54_1;
|
|
2371
2371
|
}
|
|
2372
2372
|
var basePath = tmp_3;
|
|
2373
2373
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2374
2374
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2375
|
-
_this__u8e3s4.
|
|
2375
|
+
_this__u8e3s4.e54_1 = plus_0(basePath, relativePath);
|
|
2376
2376
|
startIndex = pathEnd;
|
|
2377
2377
|
}
|
|
2378
2378
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2422,21 +2422,21 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2422
2422
|
_init_properties_URLParser_kt__sf11to();
|
|
2423
2423
|
switch (slashCount) {
|
|
2424
2424
|
case 1:
|
|
2425
|
-
_this__u8e3s4.
|
|
2425
|
+
_this__u8e3s4.x53_1 = '';
|
|
2426
2426
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2427
2427
|
break;
|
|
2428
2428
|
case 2:
|
|
2429
2429
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2430
2430
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2431
|
-
_this__u8e3s4.
|
|
2431
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, endIndex);
|
|
2432
2432
|
return Unit_instance;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
|
-
_this__u8e3s4.
|
|
2435
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, nextSlash);
|
|
2436
2436
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2437
2437
|
break;
|
|
2438
2438
|
case 3:
|
|
2439
|
-
_this__u8e3s4.
|
|
2439
|
+
_this__u8e3s4.x53_1 = '';
|
|
2440
2440
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2441
2441
|
break;
|
|
2442
2442
|
default:
|
|
@@ -2449,8 +2449,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2449
2449
|
if (delimiter === -1) {
|
|
2450
2450
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2451
2451
|
}
|
|
2452
|
-
_this__u8e3s4.
|
|
2453
|
-
_this__u8e3s4.
|
|
2452
|
+
_this__u8e3s4.n55(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2453
|
+
_this__u8e3s4.x53_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2454
2454
|
}
|
|
2455
2455
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2456
2456
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2484,19 +2484,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
var tmp0_elvis_lhs = tmp;
|
|
2486
2486
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2487
|
-
_this__u8e3s4.
|
|
2487
|
+
_this__u8e3s4.x53_1 = substring(urlString, startIndex, colonIndex);
|
|
2488
2488
|
var tmp_0;
|
|
2489
2489
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2490
2490
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2491
2491
|
} else {
|
|
2492
2492
|
tmp_0 = 0;
|
|
2493
2493
|
}
|
|
2494
|
-
_this__u8e3s4.
|
|
2494
|
+
_this__u8e3s4.f55(tmp_0);
|
|
2495
2495
|
}
|
|
2496
2496
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2497
2497
|
_init_properties_URLParser_kt__sf11to();
|
|
2498
2498
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2499
|
-
_this__u8e3s4.
|
|
2499
|
+
_this__u8e3s4.y53_1 = true;
|
|
2500
2500
|
return endIndex;
|
|
2501
2501
|
}
|
|
2502
2502
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2510,18 +2510,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2510
2510
|
var tmp0_elvis_lhs = tmp;
|
|
2511
2511
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2512
2512
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2513
|
-
rawParameters.
|
|
2513
|
+
rawParameters.k4q(parseQuery$lambda(_this__u8e3s4));
|
|
2514
2514
|
return fragmentStart;
|
|
2515
2515
|
}
|
|
2516
2516
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2517
2517
|
_init_properties_URLParser_kt__sf11to();
|
|
2518
2518
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2519
|
-
_this__u8e3s4.
|
|
2519
|
+
_this__u8e3s4.d54_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
function parseQuery$lambda($this_parseQuery) {
|
|
2523
2523
|
return function (key, values) {
|
|
2524
|
-
$this_parseQuery.
|
|
2524
|
+
$this_parseQuery.f54_1.z4p(key, values);
|
|
2525
2525
|
return Unit_instance;
|
|
2526
2526
|
};
|
|
2527
2527
|
}
|
|
@@ -2534,29 +2534,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
function Companion_7() {
|
|
2536
2536
|
Companion_instance_7 = this;
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2537
|
+
this.h55_1 = new URLProtocol('http', 80);
|
|
2538
|
+
this.i55_1 = new URLProtocol('https', 443);
|
|
2539
|
+
this.j55_1 = new URLProtocol('ws', 80);
|
|
2540
|
+
this.k55_1 = new URLProtocol('wss', 443);
|
|
2541
|
+
this.l55_1 = new URLProtocol('socks', 1080);
|
|
2542
2542
|
var tmp = this;
|
|
2543
2543
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2544
|
-
var this_0 = listOf([this.
|
|
2544
|
+
var this_0 = listOf([this.h55_1, this.i55_1, this.j55_1, this.k55_1, this.l55_1]);
|
|
2545
2545
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2546
2546
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2547
2547
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2548
2548
|
var _iterator__ex2g4s = this_0.s();
|
|
2549
2549
|
while (_iterator__ex2g4s.t()) {
|
|
2550
2550
|
var element = _iterator__ex2g4s.u();
|
|
2551
|
-
var tmp$ret$0 = element.
|
|
2552
|
-
destination.
|
|
2551
|
+
var tmp$ret$0 = element.h54_1;
|
|
2552
|
+
destination.m2(tmp$ret$0, element);
|
|
2553
2553
|
}
|
|
2554
|
-
tmp.
|
|
2554
|
+
tmp.m55_1 = destination;
|
|
2555
2555
|
}
|
|
2556
|
-
protoOf(Companion_7).
|
|
2556
|
+
protoOf(Companion_7).u55 = function (name) {
|
|
2557
2557
|
// Inline function 'kotlin.let' call
|
|
2558
2558
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2559
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2559
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().m55_1.e2(it);
|
|
2560
2560
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2561
2561
|
};
|
|
2562
2562
|
var Companion_instance_7;
|
|
@@ -2567,9 +2567,9 @@ function Companion_getInstance_7() {
|
|
|
2567
2567
|
}
|
|
2568
2568
|
function URLProtocol(name, defaultPort) {
|
|
2569
2569
|
Companion_getInstance_7();
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2572
|
-
var tmp0 = this.
|
|
2570
|
+
this.h54_1 = name;
|
|
2571
|
+
this.i54_1 = defaultPort;
|
|
2572
|
+
var tmp0 = this.h54_1;
|
|
2573
2573
|
var tmp$ret$1;
|
|
2574
2574
|
$l$block: {
|
|
2575
2575
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2591,11 +2591,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
protoOf(URLProtocol).toString = function () {
|
|
2594
|
-
return 'URLProtocol(name=' + this.
|
|
2594
|
+
return 'URLProtocol(name=' + this.h54_1 + ', defaultPort=' + this.i54_1 + ')';
|
|
2595
2595
|
};
|
|
2596
2596
|
protoOf(URLProtocol).hashCode = function () {
|
|
2597
|
-
var result = getStringHashCode(this.
|
|
2598
|
-
result = imul(result, 31) + this.
|
|
2597
|
+
var result = getStringHashCode(this.h54_1);
|
|
2598
|
+
result = imul(result, 31) + this.i54_1 | 0;
|
|
2599
2599
|
return result;
|
|
2600
2600
|
};
|
|
2601
2601
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2604,35 +2604,35 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2604
2604
|
if (!(other instanceof URLProtocol))
|
|
2605
2605
|
return false;
|
|
2606
2606
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2607
|
-
if (!(this.
|
|
2607
|
+
if (!(this.h54_1 === tmp0_other_with_cast.h54_1))
|
|
2608
2608
|
return false;
|
|
2609
|
-
if (!(this.
|
|
2609
|
+
if (!(this.i54_1 === tmp0_other_with_cast.i54_1))
|
|
2610
2610
|
return false;
|
|
2611
2611
|
return true;
|
|
2612
2612
|
};
|
|
2613
2613
|
function isSecure(_this__u8e3s4) {
|
|
2614
|
-
return _this__u8e3s4.
|
|
2614
|
+
return _this__u8e3s4.h54_1 === 'https' || _this__u8e3s4.h54_1 === 'wss';
|
|
2615
2615
|
}
|
|
2616
2616
|
function isWebsocket(_this__u8e3s4) {
|
|
2617
|
-
return _this__u8e3s4.
|
|
2617
|
+
return _this__u8e3s4.h54_1 === 'ws' || _this__u8e3s4.h54_1 === 'wss';
|
|
2618
2618
|
}
|
|
2619
2619
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2620
|
-
_this__u8e3s4.
|
|
2621
|
-
_this__u8e3s4.
|
|
2622
|
-
_this__u8e3s4.
|
|
2623
|
-
_this__u8e3s4.
|
|
2624
|
-
_this__u8e3s4.
|
|
2625
|
-
_this__u8e3s4.
|
|
2620
|
+
_this__u8e3s4.a54_1 = url.a54_1;
|
|
2621
|
+
_this__u8e3s4.x53_1 = url.x53_1;
|
|
2622
|
+
_this__u8e3s4.f55(url.z53_1);
|
|
2623
|
+
_this__u8e3s4.e54_1 = url.e54_1;
|
|
2624
|
+
_this__u8e3s4.b54_1 = url.b54_1;
|
|
2625
|
+
_this__u8e3s4.c54_1 = url.c54_1;
|
|
2626
2626
|
// Inline function 'kotlin.apply' call
|
|
2627
2627
|
var this_0 = ParametersBuilder();
|
|
2628
|
-
appendAll(this_0, url.
|
|
2629
|
-
_this__u8e3s4.
|
|
2630
|
-
_this__u8e3s4.
|
|
2631
|
-
_this__u8e3s4.
|
|
2628
|
+
appendAll(this_0, url.f54_1);
|
|
2629
|
+
_this__u8e3s4.s55(this_0);
|
|
2630
|
+
_this__u8e3s4.d54_1 = url.d54_1;
|
|
2631
|
+
_this__u8e3s4.y53_1 = url.y53_1;
|
|
2632
2632
|
return _this__u8e3s4;
|
|
2633
2633
|
}
|
|
2634
2634
|
function Url(urlString) {
|
|
2635
|
-
return URLBuilder_0(urlString).
|
|
2635
|
+
return URLBuilder_0(urlString).r3x();
|
|
2636
2636
|
}
|
|
2637
2637
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2638
2638
|
var tmp;
|
|
@@ -2643,14 +2643,14 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2643
2643
|
tmp = false;
|
|
2644
2644
|
}
|
|
2645
2645
|
if (tmp) {
|
|
2646
|
-
_this__u8e3s4.
|
|
2646
|
+
_this__u8e3s4.t7(_Char___init__impl__6a9atx(47));
|
|
2647
2647
|
}
|
|
2648
2648
|
_this__u8e3s4.q(encodedPath);
|
|
2649
2649
|
if (!encodedQueryParameters.j() || trailingQuery) {
|
|
2650
2650
|
_this__u8e3s4.q('?');
|
|
2651
2651
|
}
|
|
2652
2652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2653
|
-
var tmp0 = encodedQueryParameters.
|
|
2653
|
+
var tmp0 = encodedQueryParameters.y4p();
|
|
2654
2654
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2655
2655
|
var destination = ArrayList_init_$Create$_0();
|
|
2656
2656
|
var _iterator__ex2g4s = tmp0.s();
|
|
@@ -2685,30 +2685,30 @@ function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
|
2685
2685
|
if (encodedUser == null) {
|
|
2686
2686
|
return Unit_instance;
|
|
2687
2687
|
}
|
|
2688
|
-
_this__u8e3s4.
|
|
2688
|
+
_this__u8e3s4.s7(encodedUser);
|
|
2689
2689
|
if (!(encodedPassword == null)) {
|
|
2690
|
-
_this__u8e3s4.
|
|
2691
|
-
_this__u8e3s4.
|
|
2690
|
+
_this__u8e3s4.t7(_Char___init__impl__6a9atx(58));
|
|
2691
|
+
_this__u8e3s4.s7(encodedPassword);
|
|
2692
2692
|
}
|
|
2693
|
-
_this__u8e3s4.
|
|
2693
|
+
_this__u8e3s4.s7('@');
|
|
2694
2694
|
}
|
|
2695
2695
|
function URLBuilder_0(urlString) {
|
|
2696
2696
|
return takeFrom(new URLBuilder(), urlString);
|
|
2697
2697
|
}
|
|
2698
2698
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2699
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2700
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2699
|
+
var tmp0_subject = _this__u8e3s4.l54_1;
|
|
2700
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.w54_1.i54_1 ? _this__u8e3s4.k54_1 : get_hostWithPort(_this__u8e3s4);
|
|
2701
2701
|
}
|
|
2702
2702
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2703
|
-
return _this__u8e3s4.
|
|
2703
|
+
return _this__u8e3s4.k54_1 + ':' + _this__u8e3s4.v55();
|
|
2704
2704
|
}
|
|
2705
2705
|
function appendUrlFullPath$lambda(it) {
|
|
2706
|
-
var key = it.
|
|
2706
|
+
var key = it.la_1;
|
|
2707
2707
|
var tmp;
|
|
2708
|
-
if (it.
|
|
2708
|
+
if (it.ma_1 == null) {
|
|
2709
2709
|
tmp = key;
|
|
2710
2710
|
} else {
|
|
2711
|
-
var value = toString_1(it.
|
|
2711
|
+
var value = toString_1(it.ma_1);
|
|
2712
2712
|
tmp = key + '=' + value;
|
|
2713
2713
|
}
|
|
2714
2714
|
return tmp;
|
|
@@ -2749,7 +2749,7 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2749
2749
|
tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
|
|
2750
2750
|
}
|
|
2751
2751
|
var end = tmp_2;
|
|
2752
|
-
return $pathSegments.
|
|
2752
|
+
return $pathSegments.b2(start, end);
|
|
2753
2753
|
};
|
|
2754
2754
|
}
|
|
2755
2755
|
function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
@@ -2758,146 +2758,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2758
2758
|
if ($pathSegments.j()) {
|
|
2759
2759
|
return '';
|
|
2760
2760
|
}
|
|
2761
|
-
var pathStartIndex = indexOf(this$0.
|
|
2761
|
+
var pathStartIndex = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(47), this$0.w54_1.h54_1.length + 3 | 0);
|
|
2762
2762
|
var tmp_0;
|
|
2763
2763
|
if (pathStartIndex === -1) {
|
|
2764
2764
|
return '';
|
|
2765
2765
|
}
|
|
2766
2766
|
// Inline function 'kotlin.charArrayOf' call
|
|
2767
2767
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2768
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2768
|
+
var pathEndIndex = indexOfAny(this$0.r54_1, tmp$ret$0, pathStartIndex);
|
|
2769
2769
|
var tmp_1;
|
|
2770
2770
|
if (pathEndIndex === -1) {
|
|
2771
|
-
return substring_0(this$0.
|
|
2771
|
+
return substring_0(this$0.r54_1, pathStartIndex);
|
|
2772
2772
|
}
|
|
2773
|
-
return substring(this$0.
|
|
2773
|
+
return substring(this$0.r54_1, pathStartIndex, pathEndIndex);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
2776
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2777
2777
|
return function () {
|
|
2778
|
-
var queryStart = indexOf(this$0.
|
|
2778
|
+
var queryStart = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2779
2779
|
var tmp;
|
|
2780
2780
|
if (queryStart === 0) {
|
|
2781
2781
|
return '';
|
|
2782
2782
|
}
|
|
2783
|
-
var queryEnd = indexOf(this$0.
|
|
2783
|
+
var queryEnd = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2784
2784
|
var tmp_0;
|
|
2785
2785
|
if (queryEnd === -1) {
|
|
2786
|
-
return substring_0(this$0.
|
|
2786
|
+
return substring_0(this$0.r54_1, queryStart);
|
|
2787
2787
|
}
|
|
2788
|
-
return substring(this$0.
|
|
2788
|
+
return substring(this$0.r54_1, queryStart, queryEnd);
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
2791
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2792
2792
|
return function () {
|
|
2793
|
-
var pathStart = indexOf(this$0.
|
|
2793
|
+
var pathStart = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(47), this$0.w54_1.h54_1.length + 3 | 0);
|
|
2794
2794
|
var tmp;
|
|
2795
2795
|
if (pathStart === -1) {
|
|
2796
2796
|
return '';
|
|
2797
2797
|
}
|
|
2798
|
-
var queryEnd = indexOf(this$0.
|
|
2798
|
+
var queryEnd = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2799
2799
|
var tmp_0;
|
|
2800
2800
|
if (queryEnd === -1) {
|
|
2801
|
-
return substring_0(this$0.
|
|
2801
|
+
return substring_0(this$0.r54_1, pathStart);
|
|
2802
2802
|
}
|
|
2803
|
-
return substring(this$0.
|
|
2803
|
+
return substring(this$0.r54_1, pathStart, queryEnd);
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
2806
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2807
2807
|
return function () {
|
|
2808
2808
|
var tmp;
|
|
2809
|
-
if (this$0.
|
|
2809
|
+
if (this$0.o54_1 == null) {
|
|
2810
2810
|
return null;
|
|
2811
2811
|
}
|
|
2812
2812
|
var tmp_0;
|
|
2813
2813
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2814
|
-
var this_0 = this$0.
|
|
2814
|
+
var this_0 = this$0.o54_1;
|
|
2815
2815
|
if (charSequenceLength(this_0) === 0) {
|
|
2816
2816
|
return '';
|
|
2817
2817
|
}
|
|
2818
|
-
var usernameStart = this$0.
|
|
2818
|
+
var usernameStart = this$0.w54_1.h54_1.length + 3 | 0;
|
|
2819
2819
|
// Inline function 'kotlin.charArrayOf' call
|
|
2820
2820
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2821
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2822
|
-
return substring(this$0.
|
|
2821
|
+
var usernameEnd = indexOfAny(this$0.r54_1, tmp$ret$1, usernameStart);
|
|
2822
|
+
return substring(this$0.r54_1, usernameStart, usernameEnd);
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
2825
2825
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2826
2826
|
return function (p0) {
|
|
2827
|
-
return p0.
|
|
2827
|
+
return p0.w55();
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
2830
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2831
2831
|
return function () {
|
|
2832
2832
|
var tmp;
|
|
2833
|
-
if (this$0.
|
|
2833
|
+
if (this$0.p54_1 == null) {
|
|
2834
2834
|
return null;
|
|
2835
2835
|
}
|
|
2836
2836
|
var tmp_0;
|
|
2837
2837
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2838
|
-
var this_0 = this$0.
|
|
2838
|
+
var this_0 = this$0.p54_1;
|
|
2839
2839
|
if (charSequenceLength(this_0) === 0) {
|
|
2840
2840
|
return '';
|
|
2841
2841
|
}
|
|
2842
|
-
var passwordStart = indexOf(this$0.
|
|
2843
|
-
var passwordEnd = indexOf(this$0.
|
|
2844
|
-
return substring(this$0.
|
|
2842
|
+
var passwordStart = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(58), this$0.w54_1.h54_1.length + 3 | 0) + 1 | 0;
|
|
2843
|
+
var passwordEnd = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(64));
|
|
2844
|
+
return substring(this$0.r54_1, passwordStart, passwordEnd);
|
|
2845
2845
|
};
|
|
2846
2846
|
}
|
|
2847
2847
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2848
2848
|
return function (p0) {
|
|
2849
|
-
return p0.
|
|
2849
|
+
return p0.x55();
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
2852
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2853
2853
|
return function () {
|
|
2854
|
-
var fragmentStart = indexOf(this$0.
|
|
2854
|
+
var fragmentStart = indexOf(this$0.r54_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2855
2855
|
var tmp;
|
|
2856
2856
|
if (fragmentStart === 0) {
|
|
2857
2857
|
return '';
|
|
2858
2858
|
}
|
|
2859
|
-
return substring_0(this$0.
|
|
2859
|
+
return substring_0(this$0.r54_1, fragmentStart);
|
|
2860
2860
|
};
|
|
2861
2861
|
}
|
|
2862
2862
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2863
|
-
this.
|
|
2864
|
-
this.
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2871
|
-
var containsArg = this.
|
|
2863
|
+
this.k54_1 = host;
|
|
2864
|
+
this.l54_1 = specifiedPort;
|
|
2865
|
+
this.m54_1 = parameters;
|
|
2866
|
+
this.n54_1 = fragment;
|
|
2867
|
+
this.o54_1 = user;
|
|
2868
|
+
this.p54_1 = password;
|
|
2869
|
+
this.q54_1 = trailingQuery;
|
|
2870
|
+
this.r54_1 = urlString;
|
|
2871
|
+
var containsArg = this.l54_1;
|
|
2872
2872
|
// Inline function 'kotlin.require' call
|
|
2873
2873
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2874
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2874
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.l54_1;
|
|
2875
2875
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2876
2876
|
}
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2877
|
+
this.s54_1 = pathSegments;
|
|
2878
|
+
this.t54_1 = pathSegments;
|
|
2879
2879
|
var tmp = this;
|
|
2880
|
-
tmp.
|
|
2881
|
-
this.
|
|
2880
|
+
tmp.u54_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2881
|
+
this.v54_1 = protocol;
|
|
2882
2882
|
var tmp_0 = this;
|
|
2883
|
-
var tmp0_elvis_lhs = this.
|
|
2884
|
-
tmp_0.
|
|
2883
|
+
var tmp0_elvis_lhs = this.v54_1;
|
|
2884
|
+
tmp_0.w54_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().h55_1 : tmp0_elvis_lhs;
|
|
2885
2885
|
var tmp_1 = this;
|
|
2886
|
-
tmp_1.
|
|
2886
|
+
tmp_1.x54_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2887
2887
|
var tmp_2 = this;
|
|
2888
|
-
tmp_2.
|
|
2888
|
+
tmp_2.y54_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2889
2889
|
var tmp_3 = this;
|
|
2890
|
-
tmp_3.
|
|
2890
|
+
tmp_3.z54_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2891
2891
|
var tmp_4 = this;
|
|
2892
|
-
tmp_4.
|
|
2892
|
+
tmp_4.a55_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2893
2893
|
var tmp_5 = this;
|
|
2894
|
-
tmp_5.
|
|
2894
|
+
tmp_5.b55_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2895
2895
|
var tmp_6 = this;
|
|
2896
|
-
tmp_6.
|
|
2896
|
+
tmp_6.c55_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2897
2897
|
}
|
|
2898
|
-
protoOf(Url_0).
|
|
2898
|
+
protoOf(Url_0).v55 = function () {
|
|
2899
2899
|
// Inline function 'kotlin.takeUnless' call
|
|
2900
|
-
var this_0 = this.
|
|
2900
|
+
var this_0 = this.l54_1;
|
|
2901
2901
|
var tmp;
|
|
2902
2902
|
if (!(this_0 === 0)) {
|
|
2903
2903
|
tmp = this_0;
|
|
@@ -2905,24 +2905,24 @@ protoOf(Url_0).e4z = function () {
|
|
|
2905
2905
|
tmp = null;
|
|
2906
2906
|
}
|
|
2907
2907
|
var tmp0_elvis_lhs = tmp;
|
|
2908
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2908
|
+
return tmp0_elvis_lhs == null ? this.w54_1.i54_1 : tmp0_elvis_lhs;
|
|
2909
2909
|
};
|
|
2910
|
-
protoOf(Url_0).
|
|
2911
|
-
var tmp0 = this.
|
|
2910
|
+
protoOf(Url_0).w55 = function () {
|
|
2911
|
+
var tmp0 = this.a55_1;
|
|
2912
2912
|
var tmp = KProperty1;
|
|
2913
2913
|
// Inline function 'kotlin.getValue' call
|
|
2914
2914
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2915
2915
|
return tmp0.e1();
|
|
2916
2916
|
};
|
|
2917
|
-
protoOf(Url_0).
|
|
2918
|
-
var tmp0 = this.
|
|
2917
|
+
protoOf(Url_0).x55 = function () {
|
|
2918
|
+
var tmp0 = this.b55_1;
|
|
2919
2919
|
var tmp = KProperty1;
|
|
2920
2920
|
// Inline function 'kotlin.getValue' call
|
|
2921
2921
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2922
2922
|
return tmp0.e1();
|
|
2923
2923
|
};
|
|
2924
2924
|
protoOf(Url_0).toString = function () {
|
|
2925
|
-
return this.
|
|
2925
|
+
return this.r54_1;
|
|
2926
2926
|
};
|
|
2927
2927
|
protoOf(Url_0).equals = function (other) {
|
|
2928
2928
|
if (this === other)
|
|
@@ -2931,34 +2931,34 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2931
2931
|
return false;
|
|
2932
2932
|
if (!(other instanceof Url_0))
|
|
2933
2933
|
THROW_CCE();
|
|
2934
|
-
return this.
|
|
2934
|
+
return this.r54_1 === other.r54_1;
|
|
2935
2935
|
};
|
|
2936
2936
|
protoOf(Url_0).hashCode = function () {
|
|
2937
|
-
return getStringHashCode(this.
|
|
2937
|
+
return getStringHashCode(this.r54_1);
|
|
2938
2938
|
};
|
|
2939
2939
|
function get_authority_0(_this__u8e3s4) {
|
|
2940
2940
|
// Inline function 'kotlin.text.buildString' call
|
|
2941
2941
|
// Inline function 'kotlin.apply' call
|
|
2942
2942
|
var this_0 = StringBuilder_init_$Create$();
|
|
2943
|
-
this_0.
|
|
2944
|
-
this_0.
|
|
2943
|
+
this_0.s7(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2944
|
+
this_0.s7(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2945
2945
|
return this_0.toString();
|
|
2946
2946
|
}
|
|
2947
2947
|
function UrlSerializer() {
|
|
2948
2948
|
UrlSerializer_instance = this;
|
|
2949
|
-
this.
|
|
2949
|
+
this.y55_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2950
2950
|
}
|
|
2951
|
-
protoOf(UrlSerializer).
|
|
2952
|
-
return this.
|
|
2951
|
+
protoOf(UrlSerializer).i2t = function () {
|
|
2952
|
+
return this.y55_1;
|
|
2953
2953
|
};
|
|
2954
|
-
protoOf(UrlSerializer).
|
|
2955
|
-
return Url(decoder.
|
|
2954
|
+
protoOf(UrlSerializer).k2t = function (decoder) {
|
|
2955
|
+
return Url(decoder.o2w());
|
|
2956
2956
|
};
|
|
2957
|
-
protoOf(UrlSerializer).
|
|
2958
|
-
encoder.
|
|
2957
|
+
protoOf(UrlSerializer).z55 = function (encoder, value) {
|
|
2958
|
+
encoder.y2x(value.toString());
|
|
2959
2959
|
};
|
|
2960
|
-
protoOf(UrlSerializer).
|
|
2961
|
-
return this.
|
|
2960
|
+
protoOf(UrlSerializer).j2t = function (encoder, value) {
|
|
2961
|
+
return this.z55(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2962
2962
|
};
|
|
2963
2963
|
var UrlSerializer_instance;
|
|
2964
2964
|
function UrlSerializer_getInstance() {
|
|
@@ -2970,21 +2970,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2970
2970
|
// Inline function 'kotlin.text.buildString' call
|
|
2971
2971
|
// Inline function 'kotlin.apply' call
|
|
2972
2972
|
var this_0 = StringBuilder_init_$Create$();
|
|
2973
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2973
|
+
appendUserAndPassword(this_0, _this__u8e3s4.w55(), _this__u8e3s4.x55());
|
|
2974
2974
|
return this_0.toString();
|
|
2975
2975
|
}
|
|
2976
2976
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2977
|
-
this.
|
|
2978
|
-
this.
|
|
2977
|
+
this.a56_1 = encodedParametersBuilder;
|
|
2978
|
+
this.b56_1 = this.a56_1.d4q();
|
|
2979
2979
|
}
|
|
2980
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2981
|
-
return decodeParameters(this.
|
|
2980
|
+
protoOf(UrlDecodedParametersBuilder).r3x = function () {
|
|
2981
|
+
return decodeParameters(this.a56_1);
|
|
2982
2982
|
};
|
|
2983
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2984
|
-
return this.
|
|
2983
|
+
protoOf(UrlDecodedParametersBuilder).d4q = function () {
|
|
2984
|
+
return this.b56_1;
|
|
2985
2985
|
};
|
|
2986
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2987
|
-
var tmp0_safe_receiver = this.
|
|
2986
|
+
protoOf(UrlDecodedParametersBuilder).e4q = function (name) {
|
|
2987
|
+
var tmp0_safe_receiver = this.a56_1.e4q(encodeURLParameter(name));
|
|
2988
2988
|
var tmp;
|
|
2989
2989
|
if (tmp0_safe_receiver == null) {
|
|
2990
2990
|
tmp = null;
|
|
@@ -3002,9 +3002,9 @@ protoOf(UrlDecodedParametersBuilder).n4j = function (name) {
|
|
|
3002
3002
|
}
|
|
3003
3003
|
return tmp;
|
|
3004
3004
|
};
|
|
3005
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3005
|
+
protoOf(UrlDecodedParametersBuilder).f4q = function () {
|
|
3006
3006
|
// Inline function 'kotlin.collections.map' call
|
|
3007
|
-
var this_0 = this.
|
|
3007
|
+
var this_0 = this.a56_1.f4q();
|
|
3008
3008
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3009
3009
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3010
3010
|
var _iterator__ex2g4s = this_0.s();
|
|
@@ -3016,15 +3016,15 @@ protoOf(UrlDecodedParametersBuilder).o4j = function () {
|
|
|
3016
3016
|
return toSet(destination);
|
|
3017
3017
|
};
|
|
3018
3018
|
protoOf(UrlDecodedParametersBuilder).j = function () {
|
|
3019
|
-
return this.
|
|
3019
|
+
return this.a56_1.j();
|
|
3020
3020
|
};
|
|
3021
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3022
|
-
return decodeParameters(this.
|
|
3021
|
+
protoOf(UrlDecodedParametersBuilder).y4p = function () {
|
|
3022
|
+
return decodeParameters(this.a56_1).y4p();
|
|
3023
3023
|
};
|
|
3024
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3025
|
-
return this.
|
|
3024
|
+
protoOf(UrlDecodedParametersBuilder).i4q = function (name, value) {
|
|
3025
|
+
return this.a56_1.i4q(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3026
3026
|
};
|
|
3027
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3027
|
+
protoOf(UrlDecodedParametersBuilder).z4p = function (name, values) {
|
|
3028
3028
|
var tmp = encodeURLParameter(name);
|
|
3029
3029
|
// Inline function 'kotlin.collections.map' call
|
|
3030
3030
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3035,10 +3035,10 @@ protoOf(UrlDecodedParametersBuilder).i4j = function (name, values) {
|
|
|
3035
3035
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3036
3036
|
destination.p(tmp$ret$0);
|
|
3037
3037
|
}
|
|
3038
|
-
return this.
|
|
3038
|
+
return this.a56_1.z4p(tmp, destination);
|
|
3039
3039
|
};
|
|
3040
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3041
|
-
return this.
|
|
3040
|
+
protoOf(UrlDecodedParametersBuilder).i2 = function () {
|
|
3041
|
+
return this.a56_1.i2();
|
|
3042
3042
|
};
|
|
3043
3043
|
function encodeParameters(parameters) {
|
|
3044
3044
|
// Inline function 'kotlin.apply' call
|
|
@@ -3050,14 +3050,14 @@ function decodeParameters(parameters) {
|
|
|
3050
3050
|
// Inline function 'kotlin.apply' call
|
|
3051
3051
|
var this_0 = ParametersBuilder();
|
|
3052
3052
|
appendAllDecoded(this_0, parameters);
|
|
3053
|
-
return this_0.
|
|
3053
|
+
return this_0.r3x();
|
|
3054
3054
|
}
|
|
3055
3055
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3056
3056
|
// Inline function 'kotlin.collections.forEach' call
|
|
3057
|
-
var _iterator__ex2g4s = parameters.
|
|
3057
|
+
var _iterator__ex2g4s = parameters.f4q().s();
|
|
3058
3058
|
while (_iterator__ex2g4s.t()) {
|
|
3059
3059
|
var element = _iterator__ex2g4s.u();
|
|
3060
|
-
var tmp0_elvis_lhs = parameters.
|
|
3060
|
+
var tmp0_elvis_lhs = parameters.e4q(element);
|
|
3061
3061
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3062
3062
|
var tmp = encodeURLParameter(element);
|
|
3063
3063
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3069,15 +3069,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
3069
3069
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3070
3070
|
destination.p(tmp$ret$0);
|
|
3071
3071
|
}
|
|
3072
|
-
_this__u8e3s4.
|
|
3072
|
+
_this__u8e3s4.z4p(tmp, destination);
|
|
3073
3073
|
}
|
|
3074
3074
|
}
|
|
3075
3075
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3076
3076
|
// Inline function 'kotlin.collections.forEach' call
|
|
3077
|
-
var _iterator__ex2g4s = parameters.
|
|
3077
|
+
var _iterator__ex2g4s = parameters.f4q().s();
|
|
3078
3078
|
while (_iterator__ex2g4s.t()) {
|
|
3079
3079
|
var element = _iterator__ex2g4s.u();
|
|
3080
|
-
var tmp0_elvis_lhs = parameters.
|
|
3080
|
+
var tmp0_elvis_lhs = parameters.e4q(element);
|
|
3081
3081
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3082
3082
|
var tmp = decodeURLQueryComponent(element);
|
|
3083
3083
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3089,25 +3089,25 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
3089
3089
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3090
3090
|
destination.p(tmp$ret$0);
|
|
3091
3091
|
}
|
|
3092
|
-
_this__u8e3s4.
|
|
3092
|
+
_this__u8e3s4.z4p(tmp, destination);
|
|
3093
3093
|
}
|
|
3094
3094
|
}
|
|
3095
3095
|
function ByteArrayContent(bytes, contentType, status) {
|
|
3096
3096
|
contentType = contentType === VOID ? null : contentType;
|
|
3097
3097
|
status = status === VOID ? null : status;
|
|
3098
3098
|
ByteArrayContent_0.call(this);
|
|
3099
|
-
this.
|
|
3100
|
-
this.
|
|
3101
|
-
this.
|
|
3099
|
+
this.d56_1 = bytes;
|
|
3100
|
+
this.e56_1 = contentType;
|
|
3101
|
+
this.f56_1 = status;
|
|
3102
3102
|
}
|
|
3103
|
-
protoOf(ByteArrayContent).
|
|
3104
|
-
return this.
|
|
3103
|
+
protoOf(ByteArrayContent).g56 = function () {
|
|
3104
|
+
return this.e56_1;
|
|
3105
3105
|
};
|
|
3106
|
-
protoOf(ByteArrayContent).
|
|
3107
|
-
return fromInt(this.
|
|
3106
|
+
protoOf(ByteArrayContent).h56 = function () {
|
|
3107
|
+
return fromInt(this.d56_1.length);
|
|
3108
3108
|
};
|
|
3109
|
-
protoOf(ByteArrayContent).
|
|
3110
|
-
return this.
|
|
3109
|
+
protoOf(ByteArrayContent).i56 = function () {
|
|
3110
|
+
return this.d56_1;
|
|
3111
3111
|
};
|
|
3112
3112
|
function MultiPartData() {
|
|
3113
3113
|
}
|
|
@@ -3126,20 +3126,20 @@ function ProtocolUpgrade() {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
function ContentWrapper() {
|
|
3128
3128
|
}
|
|
3129
|
-
protoOf(ContentWrapper).
|
|
3130
|
-
return this.
|
|
3129
|
+
protoOf(ContentWrapper).r56 = function () {
|
|
3130
|
+
return this.q56_1;
|
|
3131
3131
|
};
|
|
3132
3132
|
function OutgoingContent() {
|
|
3133
|
-
this.
|
|
3133
|
+
this.j56_1 = null;
|
|
3134
3134
|
}
|
|
3135
|
-
protoOf(OutgoingContent).
|
|
3135
|
+
protoOf(OutgoingContent).g56 = function () {
|
|
3136
3136
|
return null;
|
|
3137
3137
|
};
|
|
3138
|
-
protoOf(OutgoingContent).
|
|
3138
|
+
protoOf(OutgoingContent).h56 = function () {
|
|
3139
3139
|
return null;
|
|
3140
3140
|
};
|
|
3141
|
-
protoOf(OutgoingContent).
|
|
3142
|
-
return Companion_getInstance_1().
|
|
3141
|
+
protoOf(OutgoingContent).w50 = function () {
|
|
3142
|
+
return Companion_getInstance_1().q50_1;
|
|
3143
3143
|
};
|
|
3144
3144
|
function NullBody() {
|
|
3145
3145
|
}
|
|
@@ -3153,7 +3153,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3153
3153
|
tmp = true;
|
|
3154
3154
|
} else {
|
|
3155
3155
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3156
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3156
|
+
tmp = isEmpty(_this__u8e3s4.r56());
|
|
3157
3157
|
} else {
|
|
3158
3158
|
tmp = false;
|
|
3159
3159
|
}
|
|
@@ -3163,27 +3163,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3163
3163
|
function TextContent(text, contentType, status) {
|
|
3164
3164
|
status = status === VOID ? null : status;
|
|
3165
3165
|
ByteArrayContent_0.call(this);
|
|
3166
|
-
this.
|
|
3167
|
-
this.
|
|
3168
|
-
this.
|
|
3166
|
+
this.t56_1 = text;
|
|
3167
|
+
this.u56_1 = contentType;
|
|
3168
|
+
this.v56_1 = status;
|
|
3169
3169
|
var tmp = this;
|
|
3170
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3171
|
-
tmp.
|
|
3170
|
+
var tmp0_elvis_lhs = charset(this.u56_1);
|
|
3171
|
+
tmp.w56_1 = toByteArray(this.t56_1, tmp0_elvis_lhs == null ? Charsets_getInstance().f4n_1 : tmp0_elvis_lhs);
|
|
3172
3172
|
}
|
|
3173
|
-
protoOf(TextContent).
|
|
3174
|
-
return this.
|
|
3173
|
+
protoOf(TextContent).g56 = function () {
|
|
3174
|
+
return this.u56_1;
|
|
3175
3175
|
};
|
|
3176
|
-
protoOf(TextContent).
|
|
3177
|
-
return fromInt(this.
|
|
3176
|
+
protoOf(TextContent).h56 = function () {
|
|
3177
|
+
return fromInt(this.w56_1.length);
|
|
3178
3178
|
};
|
|
3179
|
-
protoOf(TextContent).
|
|
3180
|
-
return this.
|
|
3179
|
+
protoOf(TextContent).i56 = function () {
|
|
3180
|
+
return this.w56_1;
|
|
3181
3181
|
};
|
|
3182
3182
|
protoOf(TextContent).toString = function () {
|
|
3183
|
-
return 'TextContent[' + this.
|
|
3183
|
+
return 'TextContent[' + this.u56_1.toString() + '] "' + take(this.t56_1, 30) + '"';
|
|
3184
3184
|
};
|
|
3185
3185
|
function get_origin(_this__u8e3s4) {
|
|
3186
|
-
return PlatformUtils_getInstance().
|
|
3186
|
+
return PlatformUtils_getInstance().q4p_1 ? locationOrigin() : 'http://localhost';
|
|
3187
3187
|
}
|
|
3188
3188
|
function locationOrigin() {
|
|
3189
3189
|
return function () {
|
|
@@ -3201,10 +3201,10 @@ function locationOrigin() {
|
|
|
3201
3201
|
}();
|
|
3202
3202
|
}
|
|
3203
3203
|
//region block: post-declaration
|
|
3204
|
-
protoOf(EmptyHeaders).
|
|
3205
|
-
protoOf(EmptyHeaders).
|
|
3206
|
-
protoOf(EmptyParameters).
|
|
3207
|
-
protoOf(EmptyParameters).
|
|
3204
|
+
protoOf(EmptyHeaders).x3h = get;
|
|
3205
|
+
protoOf(EmptyHeaders).k4q = forEach;
|
|
3206
|
+
protoOf(EmptyParameters).x3h = get;
|
|
3207
|
+
protoOf(EmptyParameters).k4q = forEach;
|
|
3208
3208
|
//endregion
|
|
3209
3209
|
//region block: init
|
|
3210
3210
|
Companion_instance_0 = new Companion_0();
|