@indiscale/linkahead-webui-ext-map 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +45 -0
- package/.gitlab-ci.yml +44 -0
- package/CHANGELOG.md +78 -0
- package/README.md +97 -0
- package/RELEASE_GUIDELINES.md +45 -0
- package/__mocks__/fileMock.js +3 -0
- package/__mocks__/styleMock.js +1 -0
- package/babel.config.js +22 -0
- package/cypress/e2e/standalone-map.cy.js +55 -0
- package/cypress/support/commands.js +25 -0
- package/cypress/support/e2e.js +17 -0
- package/cypress.config.js +10 -0
- package/dist/2b3e1faf89f94a483539.png +0 -0
- package/dist/416d91365b44e4b4f477.png +0 -0
- package/dist/8f2c4d11474275fbc161.png +0 -0
- package/dist/index.html +1 -0
- package/dist/linkahead-webui-ext-map.js +3 -0
- package/dist/linkahead-webui-ext-map.js.LICENSE.txt +45 -0
- package/dist/linkahead-webui-ext-map.js.map +1 -0
- package/iframe/index.html +6 -0
- package/indiscale-linkahead-webui-ext-map-0.4.1.tgz +0 -0
- package/jest.config.js +23 -0
- package/jest.setup.js +2 -0
- package/package.json +105 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +11 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/map_tile_caosdb_logo.png +0 -0
- package/public/mock.js +41 -0
- package/public/robots.txt +3 -0
- package/select_query.json +3 -0
- package/src/AllMapEntities.tsx +294 -0
- package/src/CurrentPageEntities.js +318 -0
- package/src/Map.helpers.css +8 -0
- package/src/Map.helpers.js +536 -0
- package/src/Map.js +288 -0
- package/src/Map.test.js +252 -0
- package/src/MapConfig.js +75 -0
- package/src/__snapshots__/Map.test.js.snap +1725 -0
- package/src/components/Coordinates.js +24 -0
- package/src/components/ErrorComponent.tsx +2 -0
- package/src/components/Graticule.js +27 -0
- package/src/components/Loader.module.css +17 -0
- package/src/components/Loader.tsx +36 -0
- package/src/components/PathDropDown.js +108 -0
- package/src/components/SearchControl.js +502 -0
- package/src/components/ToggleMapButton.js +194 -0
- package/src/components/ViewChangeControl.js +104 -0
- package/src/constants/index.js +1 -0
- package/src/context/ConfigProvider.test.js +232 -0
- package/src/context/ConfigProvider.tsx +189 -0
- package/src/context/LoadingProvider.test.js +124 -0
- package/src/context/LoadingProvider.tsx +117 -0
- package/src/context/PathIdProvider.js +102 -0
- package/src/contrib/latlnggraticule/LICENSE +20 -0
- package/src/contrib/latlnggraticule/README.md +68 -0
- package/src/contrib/latlnggraticule/leaflet.latlng-graticule.js +528 -0
- package/src/contrib/simplegraticule/L.Graticule.js +138 -0
- package/src/default_config.json +57 -0
- package/src/global.d.ts +8 -0
- package/src/index.js +6 -0
- package/src/index.scss +133 -0
- package/src/logging.js +7 -0
- package/src/renderHtmlTemplate.test.js +60 -0
- package/src/select-search.min.svg +1 -0
- package/src/select-search.svg +46 -0
- package/src/setupTests.js +5 -0
- package/src/utils/GenerateQueryString.js +200 -0
- package/src/utils/GenerateQueryString.test.js +304 -0
- package/src/utils/index.ts +3 -0
- package/standalone.config.js +5 -0
- package/static/map_tile_caosdb_logo.png +0 -0
- package/tsconfig.json +25 -0
- package/webpack.config.js +193 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see linkahead-webui-ext-map.js.LICENSE.txt */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@indiscale/linkahead-webui-core-components")):"function"==typeof define&&define.amd?define(["React","LinkAheadCoreComponents"],e):"object"==typeof exports?exports.LinkAheadExtMap=e(require("react"),require("@indiscale/linkahead-webui-core-components")):t.LinkAheadExtMap=e(t.React,t.LinkAheadCoreComponents)}(self,(t,e)=>(()=>{var n={2897(t){var e;self,e=()=>(()=>{var t={840(t,e,n){var i={};i.v1=n(281),e.F=i},281(t,e,n){var i={};i.web=n(154);var r={linkahead:{}};r.linkahead.entity={},r.linkahead.entity.v1=n(347),r.linkahead.entity.v1.EntityTransactionServiceClient=function(t,e,n){n||(n={}),n.format="text",this.client_=new i.web.GrpcWebClientBase(n),this.hostname_=t.replace(/\/+$/,"")},r.linkahead.entity.v1.EntityTransactionServicePromiseClient=function(t,e,n){n||(n={}),n.format="text",this.client_=new i.web.GrpcWebClientBase(n),this.hostname_=t.replace(/\/+$/,"")};var o=new i.web.MethodDescriptor("/linkahead.entity.v1.EntityTransactionService/MultiTransaction",i.web.MethodType.UNARY,r.linkahead.entity.v1.MultiTransactionRequest,r.linkahead.entity.v1.MultiTransactionResponse,function(t){return t.serializeBinary()},r.linkahead.entity.v1.MultiTransactionResponse.deserializeBinary);r.linkahead.entity.v1.EntityTransactionServiceClient.prototype.multiTransaction=function(t,e,n){return this.client_.rpcCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiTransaction",t,e||{},o,n)},r.linkahead.entity.v1.EntityTransactionServicePromiseClient.prototype.multiTransaction=function(t,e){return this.client_.unaryCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiTransaction",t,e||{},o)};var a=new i.web.MethodDescriptor("/linkahead.entity.v1.EntityTransactionService/MultiRetrieveEntityACL",i.web.MethodType.UNARY,r.linkahead.entity.v1.MultiRetrieveEntityACLRequest,r.linkahead.entity.v1.MultiRetrieveEntityACLResponse,function(t){return t.serializeBinary()},r.linkahead.entity.v1.MultiRetrieveEntityACLResponse.deserializeBinary);r.linkahead.entity.v1.EntityTransactionServiceClient.prototype.multiRetrieveEntityACL=function(t,e,n){return this.client_.rpcCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiRetrieveEntityACL",t,e||{},a,n)},r.linkahead.entity.v1.EntityTransactionServicePromiseClient.prototype.multiRetrieveEntityACL=function(t,e){return this.client_.unaryCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiRetrieveEntityACL",t,e||{},a)};var s=new i.web.MethodDescriptor("/linkahead.entity.v1.EntityTransactionService/MultiUpdateEntityACL",i.web.MethodType.UNARY,r.linkahead.entity.v1.MultiUpdateEntityACLRequest,r.linkahead.entity.v1.MultiUpdateEntityACLResponse,function(t){return t.serializeBinary()},r.linkahead.entity.v1.MultiUpdateEntityACLResponse.deserializeBinary);r.linkahead.entity.v1.EntityTransactionServiceClient.prototype.multiUpdateEntityACL=function(t,e,n){return this.client_.rpcCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiUpdateEntityACL",t,e||{},s,n)},r.linkahead.entity.v1.EntityTransactionServicePromiseClient.prototype.multiUpdateEntityACL=function(t,e){return this.client_.unaryCall(this.hostname_+"/linkahead.entity.v1.EntityTransactionService/MultiUpdateEntityACL",t,e||{},s)},r.linkahead.entity.v1.FileTransmissionServiceClient=function(t,e,n){n||(n={}),n.format="text",this.client_=new i.web.GrpcWebClientBase(n),this.hostname_=t.replace(/\/+$/,"")},r.linkahead.entity.v1.FileTransmissionServicePromiseClient=function(t,e,n){n||(n={}),n.format="text",this.client_=new i.web.GrpcWebClientBase(n),this.hostname_=t.replace(/\/+$/,"")};var l=new i.web.MethodDescriptor("/linkahead.entity.v1.FileTransmissionService/RegisterFileUpload",i.web.MethodType.UNARY,r.linkahead.entity.v1.RegisterFileUploadRequest,r.linkahead.entity.v1.RegisterFileUploadResponse,function(t){return t.serializeBinary()},r.linkahead.entity.v1.RegisterFileUploadResponse.deserializeBinary);r.linkahead.entity.v1.FileTransmissionServiceClient.prototype.registerFileUpload=function(t,e,n){return this.client_.rpcCall(this.hostname_+"/linkahead.entity.v1.FileTransmissionService/RegisterFileUpload",t,e||{},l,n)},r.linkahead.entity.v1.FileTransmissionServicePromiseClient.prototype.registerFileUpload=function(t,e){return this.client_.unaryCall(this.hostname_+"/linkahead.entity.v1.FileTransmissionService/RegisterFileUpload",t,e||{},l)};var u=new i.web.MethodDescriptor("/linkahead.entity.v1.FileTransmissionService/FileDownload",i.web.MethodType.SERVER_STREAMING,r.linkahead.entity.v1.FileDownloadRequest,r.linkahead.entity.v1.FileDownloadResponse,function(t){return t.serializeBinary()},r.linkahead.entity.v1.FileDownloadResponse.deserializeBinary);r.linkahead.entity.v1.FileTransmissionServiceClient.prototype.fileDownload=function(t,e){return this.client_.serverStreaming(this.hostname_+"/linkahead.entity.v1.FileTransmissionService/FileDownload",t,e||{},u)},r.linkahead.entity.v1.FileTransmissionServicePromiseClient.prototype.fileDownload=function(t,e){return this.client_.serverStreaming(this.hostname_+"/linkahead.entity.v1.FileTransmissionService/FileDownload",t,e||{},u)},t.exports=r.linkahead.entity.v1},347(t,e,n){var i=n(339),r=i,o=function(){return this?this:"undefined"!=typeof window?window:void 0!==o?o:"undefined"!=typeof self?self:Function("return this")()}.call(null);r.exportSymbol("proto.linkahead.entity.v1.AtomicDataType",null,o),r.exportSymbol("proto.linkahead.entity.v1.CollectionValues",null,o),r.exportSymbol("proto.linkahead.entity.v1.DataType",null,o),r.exportSymbol("proto.linkahead.entity.v1.DataType.DataTypeCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.DeleteRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.DeleteRequest.WrappedRequestCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.DeleteResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.DeleteResponse.WrappedResponseCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.Entity",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityACL",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityAclPermission",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityPermission",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityPermissionRule",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityPermissionRuleCapability",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.EntityRole",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileChunk",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileDescriptor",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileDownloadRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileDownloadResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileTransmissionId",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileTransmissionSettings",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileUploadRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.FileUploadResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.FindQueryResult",null,o),r.exportSymbol("proto.linkahead.entity.v1.Hash",null,o),r.exportSymbol("proto.linkahead.entity.v1.IdResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.Importance",null,o),r.exportSymbol("proto.linkahead.entity.v1.InsertRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.InsertResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.InsertResponse.WrappedResponseCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.ListDataType",null,o),r.exportSymbol("proto.linkahead.entity.v1.ListDataType.ListDataTypeCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.Message",null,o),r.exportSymbol("proto.linkahead.entity.v1.MessageCode",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiTransactionRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiTransactionResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiUpdateEntityACLRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.MultiUpdateEntityACLResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.Parent",null,o),r.exportSymbol("proto.linkahead.entity.v1.Property",null,o),r.exportSymbol("proto.linkahead.entity.v1.Query",null,o),r.exportSymbol("proto.linkahead.entity.v1.ReferenceDataType",null,o),r.exportSymbol("proto.linkahead.entity.v1.RegisterFileUploadRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.RegisterFileUploadResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.RegistrationStatus",null,o),r.exportSymbol("proto.linkahead.entity.v1.RetrieveRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.RetrieveRequest.WrappedRequestCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.RetrieveResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.RetrieveResponse.RetrieveResponseCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.ScalarValue",null,o),r.exportSymbol("proto.linkahead.entity.v1.ScalarValue.ScalarValueCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.SelectQueryColumn",null,o),r.exportSymbol("proto.linkahead.entity.v1.SelectQueryHeader",null,o),r.exportSymbol("proto.linkahead.entity.v1.SelectQueryResult",null,o),r.exportSymbol("proto.linkahead.entity.v1.SelectQueryRow",null,o),r.exportSymbol("proto.linkahead.entity.v1.SpecialValue",null,o),r.exportSymbol("proto.linkahead.entity.v1.TransactionRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.TransactionRequest.WrappedRequestsCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.TransactionResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.TransactionResponse.TransactionResponseCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.TransmissionStatus",null,o),r.exportSymbol("proto.linkahead.entity.v1.UpdateRequest",null,o),r.exportSymbol("proto.linkahead.entity.v1.UpdateResponse",null,o),r.exportSymbol("proto.linkahead.entity.v1.UpdateResponse.WrappedResponseCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.Value",null,o),r.exportSymbol("proto.linkahead.entity.v1.Value.ValueCase",null,o),r.exportSymbol("proto.linkahead.entity.v1.Version",null,o),proto.linkahead.entity.v1.ReferenceDataType=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.ReferenceDataType,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.ReferenceDataType.displayName="proto.linkahead.entity.v1.ReferenceDataType"),proto.linkahead.entity.v1.ListDataType=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.ListDataType.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.ListDataType,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.ListDataType.displayName="proto.linkahead.entity.v1.ListDataType"),proto.linkahead.entity.v1.DataType=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.DataType.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.DataType,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.DataType.displayName="proto.linkahead.entity.v1.DataType"),proto.linkahead.entity.v1.CollectionValues=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.CollectionValues.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.CollectionValues,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.CollectionValues.displayName="proto.linkahead.entity.v1.CollectionValues"),proto.linkahead.entity.v1.ScalarValue=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.ScalarValue.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.ScalarValue,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.ScalarValue.displayName="proto.linkahead.entity.v1.ScalarValue"),proto.linkahead.entity.v1.Value=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.Value.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.Value,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Value.displayName="proto.linkahead.entity.v1.Value"),proto.linkahead.entity.v1.Message=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.Message,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Message.displayName="proto.linkahead.entity.v1.Message"),proto.linkahead.entity.v1.Version=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.Version,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Version.displayName="proto.linkahead.entity.v1.Version"),proto.linkahead.entity.v1.Entity=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.Entity.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.Entity,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Entity.displayName="proto.linkahead.entity.v1.Entity"),proto.linkahead.entity.v1.FileDescriptor=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.FileDescriptor.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.FileDescriptor,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileDescriptor.displayName="proto.linkahead.entity.v1.FileDescriptor"),proto.linkahead.entity.v1.Hash=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.Hash,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Hash.displayName="proto.linkahead.entity.v1.Hash"),proto.linkahead.entity.v1.Property=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.Property.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.Property,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Property.displayName="proto.linkahead.entity.v1.Property"),proto.linkahead.entity.v1.Parent=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.Parent.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.Parent,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Parent.displayName="proto.linkahead.entity.v1.Parent"),proto.linkahead.entity.v1.EntityRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.EntityRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.EntityRequest.displayName="proto.linkahead.entity.v1.EntityRequest"),proto.linkahead.entity.v1.EntityResponse=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.EntityResponse.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.EntityResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.EntityResponse.displayName="proto.linkahead.entity.v1.EntityResponse"),proto.linkahead.entity.v1.IdResponse=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.IdResponse.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.IdResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.IdResponse.displayName="proto.linkahead.entity.v1.IdResponse"),proto.linkahead.entity.v1.Query=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.Query,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.Query.displayName="proto.linkahead.entity.v1.Query"),proto.linkahead.entity.v1.FindQueryResult=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.FindQueryResult.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.FindQueryResult,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FindQueryResult.displayName="proto.linkahead.entity.v1.FindQueryResult"),proto.linkahead.entity.v1.SelectQueryRow=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.SelectQueryRow.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.SelectQueryRow,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.SelectQueryRow.displayName="proto.linkahead.entity.v1.SelectQueryRow"),proto.linkahead.entity.v1.SelectQueryColumn=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.SelectQueryColumn,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.SelectQueryColumn.displayName="proto.linkahead.entity.v1.SelectQueryColumn"),proto.linkahead.entity.v1.SelectQueryHeader=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.SelectQueryHeader.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.SelectQueryHeader,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.SelectQueryHeader.displayName="proto.linkahead.entity.v1.SelectQueryHeader"),proto.linkahead.entity.v1.SelectQueryResult=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.SelectQueryResult.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.SelectQueryResult,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.SelectQueryResult.displayName="proto.linkahead.entity.v1.SelectQueryResult"),proto.linkahead.entity.v1.RetrieveRequest=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.RetrieveRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.RetrieveRequest.displayName="proto.linkahead.entity.v1.RetrieveRequest"),proto.linkahead.entity.v1.RetrieveResponse=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.RetrieveResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.RetrieveResponse.displayName="proto.linkahead.entity.v1.RetrieveResponse"),proto.linkahead.entity.v1.DeleteRequest=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.DeleteRequest.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.DeleteRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.DeleteRequest.displayName="proto.linkahead.entity.v1.DeleteRequest"),proto.linkahead.entity.v1.DeleteResponse=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.DeleteResponse.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.DeleteResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.DeleteResponse.displayName="proto.linkahead.entity.v1.DeleteResponse"),proto.linkahead.entity.v1.UpdateRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.UpdateRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.UpdateRequest.displayName="proto.linkahead.entity.v1.UpdateRequest"),proto.linkahead.entity.v1.UpdateResponse=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.UpdateResponse.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.UpdateResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.UpdateResponse.displayName="proto.linkahead.entity.v1.UpdateResponse"),proto.linkahead.entity.v1.InsertRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.InsertRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.InsertRequest.displayName="proto.linkahead.entity.v1.InsertRequest"),proto.linkahead.entity.v1.InsertResponse=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.InsertResponse.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.InsertResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.InsertResponse.displayName="proto.linkahead.entity.v1.InsertResponse"),proto.linkahead.entity.v1.TransactionRequest=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.TransactionRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.TransactionRequest.displayName="proto.linkahead.entity.v1.TransactionRequest"),proto.linkahead.entity.v1.TransactionResponse=function(t){i.Message.initialize(this,t,0,-1,null,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_)},r.inherits(proto.linkahead.entity.v1.TransactionResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.TransactionResponse.displayName="proto.linkahead.entity.v1.TransactionResponse"),proto.linkahead.entity.v1.MultiTransactionRequest=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.MultiTransactionRequest.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.MultiTransactionRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiTransactionRequest.displayName="proto.linkahead.entity.v1.MultiTransactionRequest"),proto.linkahead.entity.v1.MultiTransactionResponse=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.MultiTransactionResponse.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.MultiTransactionResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiTransactionResponse.displayName="proto.linkahead.entity.v1.MultiTransactionResponse"),proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.displayName="proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest"),proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.displayName="proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse"),proto.linkahead.entity.v1.MultiUpdateEntityACLRequest=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.MultiUpdateEntityACLRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.displayName="proto.linkahead.entity.v1.MultiUpdateEntityACLRequest"),proto.linkahead.entity.v1.MultiUpdateEntityACLResponse=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.MultiUpdateEntityACLResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.displayName="proto.linkahead.entity.v1.MultiUpdateEntityACLResponse"),proto.linkahead.entity.v1.EntityACL=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.EntityACL.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.EntityACL,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.EntityACL.displayName="proto.linkahead.entity.v1.EntityACL"),proto.linkahead.entity.v1.EntityPermissionRule=function(t){i.Message.initialize(this,t,0,-1,proto.linkahead.entity.v1.EntityPermissionRule.repeatedFields_,null)},r.inherits(proto.linkahead.entity.v1.EntityPermissionRule,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.EntityPermissionRule.displayName="proto.linkahead.entity.v1.EntityPermissionRule"),proto.linkahead.entity.v1.FileChunk=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileChunk,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileChunk.displayName="proto.linkahead.entity.v1.FileChunk"),proto.linkahead.entity.v1.FileTransmissionId=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileTransmissionId,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileTransmissionId.displayName="proto.linkahead.entity.v1.FileTransmissionId"),proto.linkahead.entity.v1.FileTransmissionSettings=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileTransmissionSettings,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileTransmissionSettings.displayName="proto.linkahead.entity.v1.FileTransmissionSettings"),proto.linkahead.entity.v1.RegisterFileUploadRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.RegisterFileUploadRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.RegisterFileUploadRequest.displayName="proto.linkahead.entity.v1.RegisterFileUploadRequest"),proto.linkahead.entity.v1.RegisterFileUploadResponse=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.RegisterFileUploadResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.RegisterFileUploadResponse.displayName="proto.linkahead.entity.v1.RegisterFileUploadResponse"),proto.linkahead.entity.v1.FileUploadRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileUploadRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileUploadRequest.displayName="proto.linkahead.entity.v1.FileUploadRequest"),proto.linkahead.entity.v1.FileUploadResponse=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileUploadResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileUploadResponse.displayName="proto.linkahead.entity.v1.FileUploadResponse"),proto.linkahead.entity.v1.FileDownloadRequest=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileDownloadRequest,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileDownloadRequest.displayName="proto.linkahead.entity.v1.FileDownloadRequest"),proto.linkahead.entity.v1.FileDownloadResponse=function(t){i.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.linkahead.entity.v1.FileDownloadResponse,i.Message),r.DEBUG&&!COMPILED&&(proto.linkahead.entity.v1.FileDownloadResponse.displayName="proto.linkahead.entity.v1.FileDownloadResponse"),i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.ReferenceDataType.prototype.toObject=function(t){return proto.linkahead.entity.v1.ReferenceDataType.toObject(t,this)},proto.linkahead.entity.v1.ReferenceDataType.toObject=function(t,e){var n={name:i.Message.getFieldWithDefault(e,1,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.ReferenceDataType.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.ReferenceDataType;return proto.linkahead.entity.v1.ReferenceDataType.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.ReferenceDataType.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.setName(n)}else e.skipField();return t},proto.linkahead.entity.v1.ReferenceDataType.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.ReferenceDataType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.ReferenceDataType.serializeBinaryToWriter=function(t,e){var n;(n=t.getName()).length>0&&e.writeString(1,n)},proto.linkahead.entity.v1.ReferenceDataType.prototype.getName=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.ReferenceDataType.prototype.setName=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.ListDataType.oneofGroups_=[[1,2]],proto.linkahead.entity.v1.ListDataType.ListDataTypeCase={LIST_DATA_TYPE_NOT_SET:0,ATOMIC_DATA_TYPE:1,REFERENCE_DATA_TYPE:2},proto.linkahead.entity.v1.ListDataType.prototype.getListDataTypeCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.ListDataType.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.ListDataType.prototype.toObject=function(t){return proto.linkahead.entity.v1.ListDataType.toObject(t,this)},proto.linkahead.entity.v1.ListDataType.toObject=function(t,e){var n,r={atomicDataType:i.Message.getFieldWithDefault(e,1,0),referenceDataType:(n=e.getReferenceDataType())&&proto.linkahead.entity.v1.ReferenceDataType.toObject(t,n)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.ListDataType.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.ListDataType;return proto.linkahead.entity.v1.ListDataType.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.ListDataType.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readEnum();t.setAtomicDataType(n);break;case 2:n=new proto.linkahead.entity.v1.ReferenceDataType,e.readMessage(n,proto.linkahead.entity.v1.ReferenceDataType.deserializeBinaryFromReader),t.setReferenceDataType(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.ListDataType.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.ListDataType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.ListDataType.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=i.Message.getField(t,1))&&e.writeEnum(1,n),null!=(n=t.getReferenceDataType())&&e.writeMessage(2,n,proto.linkahead.entity.v1.ReferenceDataType.serializeBinaryToWriter)},proto.linkahead.entity.v1.ListDataType.prototype.getAtomicDataType=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.ListDataType.prototype.setAtomicDataType=function(t){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.ListDataType.oneofGroups_[0],t)},proto.linkahead.entity.v1.ListDataType.prototype.clearAtomicDataType=function(){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.ListDataType.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ListDataType.prototype.hasAtomicDataType=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.ListDataType.prototype.getReferenceDataType=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.ReferenceDataType,2)},proto.linkahead.entity.v1.ListDataType.prototype.setReferenceDataType=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.ListDataType.oneofGroups_[0],t)},proto.linkahead.entity.v1.ListDataType.prototype.clearReferenceDataType=function(){return this.setReferenceDataType(void 0)},proto.linkahead.entity.v1.ListDataType.prototype.hasReferenceDataType=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.DataType.oneofGroups_=[[1,2,3]],proto.linkahead.entity.v1.DataType.DataTypeCase={DATA_TYPE_NOT_SET:0,ATOMIC_DATA_TYPE:1,LIST_DATA_TYPE:2,REFERENCE_DATA_TYPE:3},proto.linkahead.entity.v1.DataType.prototype.getDataTypeCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.DataType.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.DataType.prototype.toObject=function(t){return proto.linkahead.entity.v1.DataType.toObject(t,this)},proto.linkahead.entity.v1.DataType.toObject=function(t,e){var n,r={atomicDataType:i.Message.getFieldWithDefault(e,1,0),listDataType:(n=e.getListDataType())&&proto.linkahead.entity.v1.ListDataType.toObject(t,n),referenceDataType:(n=e.getReferenceDataType())&&proto.linkahead.entity.v1.ReferenceDataType.toObject(t,n)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.DataType.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.DataType;return proto.linkahead.entity.v1.DataType.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.DataType.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readEnum();t.setAtomicDataType(n);break;case 2:n=new proto.linkahead.entity.v1.ListDataType,e.readMessage(n,proto.linkahead.entity.v1.ListDataType.deserializeBinaryFromReader),t.setListDataType(n);break;case 3:n=new proto.linkahead.entity.v1.ReferenceDataType,e.readMessage(n,proto.linkahead.entity.v1.ReferenceDataType.deserializeBinaryFromReader),t.setReferenceDataType(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.DataType.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.DataType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.DataType.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=i.Message.getField(t,1))&&e.writeEnum(1,n),null!=(n=t.getListDataType())&&e.writeMessage(2,n,proto.linkahead.entity.v1.ListDataType.serializeBinaryToWriter),null!=(n=t.getReferenceDataType())&&e.writeMessage(3,n,proto.linkahead.entity.v1.ReferenceDataType.serializeBinaryToWriter)},proto.linkahead.entity.v1.DataType.prototype.getAtomicDataType=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.DataType.prototype.setAtomicDataType=function(t){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.DataType.oneofGroups_[0],t)},proto.linkahead.entity.v1.DataType.prototype.clearAtomicDataType=function(){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.DataType.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.DataType.prototype.hasAtomicDataType=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.DataType.prototype.getListDataType=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.ListDataType,2)},proto.linkahead.entity.v1.DataType.prototype.setListDataType=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.DataType.oneofGroups_[0],t)},proto.linkahead.entity.v1.DataType.prototype.clearListDataType=function(){return this.setListDataType(void 0)},proto.linkahead.entity.v1.DataType.prototype.hasListDataType=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.DataType.prototype.getReferenceDataType=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.ReferenceDataType,3)},proto.linkahead.entity.v1.DataType.prototype.setReferenceDataType=function(t){return i.Message.setOneofWrapperField(this,3,proto.linkahead.entity.v1.DataType.oneofGroups_[0],t)},proto.linkahead.entity.v1.DataType.prototype.clearReferenceDataType=function(){return this.setReferenceDataType(void 0)},proto.linkahead.entity.v1.DataType.prototype.hasReferenceDataType=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.CollectionValues.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.CollectionValues.prototype.toObject=function(t){return proto.linkahead.entity.v1.CollectionValues.toObject(t,this)},proto.linkahead.entity.v1.CollectionValues.toObject=function(t,e){var n={valuesList:i.Message.toObjectList(e.getValuesList(),proto.linkahead.entity.v1.ScalarValue.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.CollectionValues.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.CollectionValues;return proto.linkahead.entity.v1.CollectionValues.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.CollectionValues.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.ScalarValue;e.readMessage(n,proto.linkahead.entity.v1.ScalarValue.deserializeBinaryFromReader),t.addValues(n)}else e.skipField();return t},proto.linkahead.entity.v1.CollectionValues.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.CollectionValues.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.CollectionValues.serializeBinaryToWriter=function(t,e){var n;(n=t.getValuesList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.ScalarValue.serializeBinaryToWriter)},proto.linkahead.entity.v1.CollectionValues.prototype.getValuesList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.ScalarValue,1)},proto.linkahead.entity.v1.CollectionValues.prototype.setValuesList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.CollectionValues.prototype.addValues=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.ScalarValue,e)},proto.linkahead.entity.v1.CollectionValues.prototype.clearValuesList=function(){return this.setValuesList([])},proto.linkahead.entity.v1.ScalarValue.oneofGroups_=[[1,2,3,4,5]],proto.linkahead.entity.v1.ScalarValue.ScalarValueCase={SCALAR_VALUE_NOT_SET:0,INTEGER_VALUE:1,DOUBLE_VALUE:2,BOOLEAN_VALUE:3,STRING_VALUE:4,SPECIAL_VALUE:5},proto.linkahead.entity.v1.ScalarValue.prototype.getScalarValueCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.ScalarValue.prototype.toObject=function(t){return proto.linkahead.entity.v1.ScalarValue.toObject(t,this)},proto.linkahead.entity.v1.ScalarValue.toObject=function(t,e){var n={integerValue:i.Message.getFieldWithDefault(e,1,0),doubleValue:i.Message.getFloatingPointFieldWithDefault(e,2,0),booleanValue:i.Message.getBooleanFieldWithDefault(e,3,!1),stringValue:i.Message.getFieldWithDefault(e,4,""),specialValue:i.Message.getFieldWithDefault(e,5,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.ScalarValue.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.ScalarValue;return proto.linkahead.entity.v1.ScalarValue.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.ScalarValue.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readInt64();t.setIntegerValue(n);break;case 2:n=e.readDouble(),t.setDoubleValue(n);break;case 3:n=e.readBool(),t.setBooleanValue(n);break;case 4:n=e.readString(),t.setStringValue(n);break;case 5:n=e.readEnum(),t.setSpecialValue(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.ScalarValue.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.ScalarValue.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.ScalarValue.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=i.Message.getField(t,1))&&e.writeInt64(1,n),null!=(n=i.Message.getField(t,2))&&e.writeDouble(2,n),null!=(n=i.Message.getField(t,3))&&e.writeBool(3,n),null!=(n=i.Message.getField(t,4))&&e.writeString(4,n),null!=(n=i.Message.getField(t,5))&&e.writeEnum(5,n)},proto.linkahead.entity.v1.ScalarValue.prototype.getIntegerValue=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.ScalarValue.prototype.setIntegerValue=function(t){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],t)},proto.linkahead.entity.v1.ScalarValue.prototype.clearIntegerValue=function(){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ScalarValue.prototype.hasIntegerValue=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.ScalarValue.prototype.getDoubleValue=function(){return i.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.linkahead.entity.v1.ScalarValue.prototype.setDoubleValue=function(t){return i.Message.setOneofField(this,2,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],t)},proto.linkahead.entity.v1.ScalarValue.prototype.clearDoubleValue=function(){return i.Message.setOneofField(this,2,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ScalarValue.prototype.hasDoubleValue=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.ScalarValue.prototype.getBooleanValue=function(){return i.Message.getBooleanFieldWithDefault(this,3,!1)},proto.linkahead.entity.v1.ScalarValue.prototype.setBooleanValue=function(t){return i.Message.setOneofField(this,3,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],t)},proto.linkahead.entity.v1.ScalarValue.prototype.clearBooleanValue=function(){return i.Message.setOneofField(this,3,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ScalarValue.prototype.hasBooleanValue=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.ScalarValue.prototype.getStringValue=function(){return i.Message.getFieldWithDefault(this,4,"")},proto.linkahead.entity.v1.ScalarValue.prototype.setStringValue=function(t){return i.Message.setOneofField(this,4,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],t)},proto.linkahead.entity.v1.ScalarValue.prototype.clearStringValue=function(){return i.Message.setOneofField(this,4,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ScalarValue.prototype.hasStringValue=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.ScalarValue.prototype.getSpecialValue=function(){return i.Message.getFieldWithDefault(this,5,0)},proto.linkahead.entity.v1.ScalarValue.prototype.setSpecialValue=function(t){return i.Message.setOneofField(this,5,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],t)},proto.linkahead.entity.v1.ScalarValue.prototype.clearSpecialValue=function(){return i.Message.setOneofField(this,5,proto.linkahead.entity.v1.ScalarValue.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.ScalarValue.prototype.hasSpecialValue=function(){return null!=i.Message.getField(this,5)},proto.linkahead.entity.v1.Value.oneofGroups_=[[1,2]],proto.linkahead.entity.v1.Value.ValueCase={VALUE_NOT_SET:0,SCALAR_VALUE:1,LIST_VALUES:2},proto.linkahead.entity.v1.Value.prototype.getValueCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.Value.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Value.prototype.toObject=function(t){return proto.linkahead.entity.v1.Value.toObject(t,this)},proto.linkahead.entity.v1.Value.toObject=function(t,e){var n,i={scalarValue:(n=e.getScalarValue())&&proto.linkahead.entity.v1.ScalarValue.toObject(t,n),listValues:(n=e.getListValues())&&proto.linkahead.entity.v1.CollectionValues.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.Value.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Value;return proto.linkahead.entity.v1.Value.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Value.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.ScalarValue;e.readMessage(n,proto.linkahead.entity.v1.ScalarValue.deserializeBinaryFromReader),t.setScalarValue(n);break;case 2:n=new proto.linkahead.entity.v1.CollectionValues,e.readMessage(n,proto.linkahead.entity.v1.CollectionValues.deserializeBinaryFromReader),t.setListValues(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Value.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Value.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Value.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getScalarValue())&&e.writeMessage(1,n,proto.linkahead.entity.v1.ScalarValue.serializeBinaryToWriter),null!=(n=t.getListValues())&&e.writeMessage(2,n,proto.linkahead.entity.v1.CollectionValues.serializeBinaryToWriter)},proto.linkahead.entity.v1.Value.prototype.getScalarValue=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.ScalarValue,1)},proto.linkahead.entity.v1.Value.prototype.setScalarValue=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.Value.oneofGroups_[0],t)},proto.linkahead.entity.v1.Value.prototype.clearScalarValue=function(){return this.setScalarValue(void 0)},proto.linkahead.entity.v1.Value.prototype.hasScalarValue=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.Value.prototype.getListValues=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.CollectionValues,2)},proto.linkahead.entity.v1.Value.prototype.setListValues=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.Value.oneofGroups_[0],t)},proto.linkahead.entity.v1.Value.prototype.clearListValues=function(){return this.setListValues(void 0)},proto.linkahead.entity.v1.Value.prototype.hasListValues=function(){return null!=i.Message.getField(this,2)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Message.prototype.toObject=function(t){return proto.linkahead.entity.v1.Message.toObject(t,this)},proto.linkahead.entity.v1.Message.toObject=function(t,e){var n={code:i.Message.getFieldWithDefault(e,1,0),description:i.Message.getFieldWithDefault(e,2,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.Message.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Message;return proto.linkahead.entity.v1.Message.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Message.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readInt32();t.setCode(n);break;case 2:n=e.readString(),t.setDescription(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Message.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Message.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Message.serializeBinaryToWriter=function(t,e){var n=void 0;0!==(n=t.getCode())&&e.writeInt32(1,n),(n=t.getDescription()).length>0&&e.writeString(2,n)},proto.linkahead.entity.v1.Message.prototype.getCode=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.Message.prototype.setCode=function(t){return i.Message.setProto3IntField(this,1,t)},proto.linkahead.entity.v1.Message.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.Message.prototype.setDescription=function(t){return i.Message.setProto3StringField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Version.prototype.toObject=function(t){return proto.linkahead.entity.v1.Version.toObject(t,this)},proto.linkahead.entity.v1.Version.toObject=function(t,e){var n={id:i.Message.getFieldWithDefault(e,1,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.Version.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Version;return proto.linkahead.entity.v1.Version.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Version.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.setId(n)}else e.skipField();return t},proto.linkahead.entity.v1.Version.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Version.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Version.serializeBinaryToWriter=function(t,e){var n;(n=t.getId()).length>0&&e.writeString(1,n)},proto.linkahead.entity.v1.Version.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Version.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.Entity.repeatedFields_=[9,10],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Entity.prototype.toObject=function(t){return proto.linkahead.entity.v1.Entity.toObject(t,this)},proto.linkahead.entity.v1.Entity.toObject=function(t,e){var n,r={id:i.Message.getFieldWithDefault(e,1,""),name:i.Message.getFieldWithDefault(e,2,""),description:i.Message.getFieldWithDefault(e,3,""),version:(n=e.getVersion())&&proto.linkahead.entity.v1.Version.toObject(t,n),role:i.Message.getFieldWithDefault(e,5,0),unit:i.Message.getFieldWithDefault(e,6,""),dataType:(n=e.getDataType())&&proto.linkahead.entity.v1.DataType.toObject(t,n),value:(n=e.getValue())&&proto.linkahead.entity.v1.Value.toObject(t,n),propertiesList:i.Message.toObjectList(e.getPropertiesList(),proto.linkahead.entity.v1.Property.toObject,t),parentsList:i.Message.toObjectList(e.getParentsList(),proto.linkahead.entity.v1.Parent.toObject,t),fileDescriptor:(n=e.getFileDescriptor())&&proto.linkahead.entity.v1.FileDescriptor.toObject(t,n)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.Entity.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Entity;return proto.linkahead.entity.v1.Entity.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Entity.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 2:n=e.readString(),t.setName(n);break;case 3:n=e.readString(),t.setDescription(n);break;case 4:n=new proto.linkahead.entity.v1.Version,e.readMessage(n,proto.linkahead.entity.v1.Version.deserializeBinaryFromReader),t.setVersion(n);break;case 5:n=e.readEnum(),t.setRole(n);break;case 6:n=e.readString(),t.setUnit(n);break;case 7:n=new proto.linkahead.entity.v1.DataType,e.readMessage(n,proto.linkahead.entity.v1.DataType.deserializeBinaryFromReader),t.setDataType(n);break;case 8:n=new proto.linkahead.entity.v1.Value,e.readMessage(n,proto.linkahead.entity.v1.Value.deserializeBinaryFromReader),t.setValue(n);break;case 9:n=new proto.linkahead.entity.v1.Property,e.readMessage(n,proto.linkahead.entity.v1.Property.deserializeBinaryFromReader),t.addProperties(n);break;case 10:n=new proto.linkahead.entity.v1.Parent,e.readMessage(n,proto.linkahead.entity.v1.Parent.deserializeBinaryFromReader),t.addParents(n);break;case 14:n=new proto.linkahead.entity.v1.FileDescriptor,e.readMessage(n,proto.linkahead.entity.v1.FileDescriptor.deserializeBinaryFromReader),t.setFileDescriptor(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Entity.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Entity.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Entity.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getId()).length>0&&e.writeString(1,n),(n=t.getName()).length>0&&e.writeString(2,n),(n=t.getDescription()).length>0&&e.writeString(3,n),null!=(n=t.getVersion())&&e.writeMessage(4,n,proto.linkahead.entity.v1.Version.serializeBinaryToWriter),0!==(n=t.getRole())&&e.writeEnum(5,n),(n=t.getUnit()).length>0&&e.writeString(6,n),null!=(n=t.getDataType())&&e.writeMessage(7,n,proto.linkahead.entity.v1.DataType.serializeBinaryToWriter),null!=(n=t.getValue())&&e.writeMessage(8,n,proto.linkahead.entity.v1.Value.serializeBinaryToWriter),(n=t.getPropertiesList()).length>0&&e.writeRepeatedMessage(9,n,proto.linkahead.entity.v1.Property.serializeBinaryToWriter),(n=t.getParentsList()).length>0&&e.writeRepeatedMessage(10,n,proto.linkahead.entity.v1.Parent.serializeBinaryToWriter),null!=(n=t.getFileDescriptor())&&e.writeMessage(14,n,proto.linkahead.entity.v1.FileDescriptor.serializeBinaryToWriter)},proto.linkahead.entity.v1.Entity.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Entity.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.Entity.prototype.getName=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.Entity.prototype.setName=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.Entity.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,3,"")},proto.linkahead.entity.v1.Entity.prototype.setDescription=function(t){return i.Message.setProto3StringField(this,3,t)},proto.linkahead.entity.v1.Entity.prototype.getVersion=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Version,4)},proto.linkahead.entity.v1.Entity.prototype.setVersion=function(t){return i.Message.setWrapperField(this,4,t)},proto.linkahead.entity.v1.Entity.prototype.clearVersion=function(){return this.setVersion(void 0)},proto.linkahead.entity.v1.Entity.prototype.hasVersion=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.Entity.prototype.getRole=function(){return i.Message.getFieldWithDefault(this,5,0)},proto.linkahead.entity.v1.Entity.prototype.setRole=function(t){return i.Message.setProto3EnumField(this,5,t)},proto.linkahead.entity.v1.Entity.prototype.getUnit=function(){return i.Message.getFieldWithDefault(this,6,"")},proto.linkahead.entity.v1.Entity.prototype.setUnit=function(t){return i.Message.setProto3StringField(this,6,t)},proto.linkahead.entity.v1.Entity.prototype.getDataType=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.DataType,7)},proto.linkahead.entity.v1.Entity.prototype.setDataType=function(t){return i.Message.setWrapperField(this,7,t)},proto.linkahead.entity.v1.Entity.prototype.clearDataType=function(){return this.setDataType(void 0)},proto.linkahead.entity.v1.Entity.prototype.hasDataType=function(){return null!=i.Message.getField(this,7)},proto.linkahead.entity.v1.Entity.prototype.getValue=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Value,8)},proto.linkahead.entity.v1.Entity.prototype.setValue=function(t){return i.Message.setWrapperField(this,8,t)},proto.linkahead.entity.v1.Entity.prototype.clearValue=function(){return this.setValue(void 0)},proto.linkahead.entity.v1.Entity.prototype.hasValue=function(){return null!=i.Message.getField(this,8)},proto.linkahead.entity.v1.Entity.prototype.getPropertiesList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Property,9)},proto.linkahead.entity.v1.Entity.prototype.setPropertiesList=function(t){return i.Message.setRepeatedWrapperField(this,9,t)},proto.linkahead.entity.v1.Entity.prototype.addProperties=function(t,e){return i.Message.addToRepeatedWrapperField(this,9,t,proto.linkahead.entity.v1.Property,e)},proto.linkahead.entity.v1.Entity.prototype.clearPropertiesList=function(){return this.setPropertiesList([])},proto.linkahead.entity.v1.Entity.prototype.getParentsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Parent,10)},proto.linkahead.entity.v1.Entity.prototype.setParentsList=function(t){return i.Message.setRepeatedWrapperField(this,10,t)},proto.linkahead.entity.v1.Entity.prototype.addParents=function(t,e){return i.Message.addToRepeatedWrapperField(this,10,t,proto.linkahead.entity.v1.Parent,e)},proto.linkahead.entity.v1.Entity.prototype.clearParentsList=function(){return this.setParentsList([])},proto.linkahead.entity.v1.Entity.prototype.getFileDescriptor=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileDescriptor,14)},proto.linkahead.entity.v1.Entity.prototype.setFileDescriptor=function(t){return i.Message.setWrapperField(this,14,t)},proto.linkahead.entity.v1.Entity.prototype.clearFileDescriptor=function(){return this.setFileDescriptor(void 0)},proto.linkahead.entity.v1.Entity.prototype.hasFileDescriptor=function(){return null!=i.Message.getField(this,14)},proto.linkahead.entity.v1.FileDescriptor.repeatedFields_=[4],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileDescriptor.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileDescriptor.toObject(t,this)},proto.linkahead.entity.v1.FileDescriptor.toObject=function(t,e){var n={entityId:i.Message.getFieldWithDefault(e,1,""),path:i.Message.getFieldWithDefault(e,2,""),size:i.Message.getFieldWithDefault(e,3,0),hashesList:i.Message.toObjectList(e.getHashesList(),proto.linkahead.entity.v1.Hash.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.FileDescriptor.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileDescriptor;return proto.linkahead.entity.v1.FileDescriptor.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileDescriptor.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setEntityId(n);break;case 2:n=e.readString(),t.setPath(n);break;case 3:n=e.readInt64(),t.setSize(n);break;case 4:n=new proto.linkahead.entity.v1.Hash,e.readMessage(n,proto.linkahead.entity.v1.Hash.deserializeBinaryFromReader),t.addHashes(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.FileDescriptor.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileDescriptor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileDescriptor.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getEntityId()).length>0&&e.writeString(1,n),(n=t.getPath()).length>0&&e.writeString(2,n),0!==(n=t.getSize())&&e.writeInt64(3,n),(n=t.getHashesList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.Hash.serializeBinaryToWriter)},proto.linkahead.entity.v1.FileDescriptor.prototype.getEntityId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.FileDescriptor.prototype.setEntityId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.FileDescriptor.prototype.getPath=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.FileDescriptor.prototype.setPath=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.FileDescriptor.prototype.getSize=function(){return i.Message.getFieldWithDefault(this,3,0)},proto.linkahead.entity.v1.FileDescriptor.prototype.setSize=function(t){return i.Message.setProto3IntField(this,3,t)},proto.linkahead.entity.v1.FileDescriptor.prototype.getHashesList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Hash,4)},proto.linkahead.entity.v1.FileDescriptor.prototype.setHashesList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.FileDescriptor.prototype.addHashes=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.Hash,e)},proto.linkahead.entity.v1.FileDescriptor.prototype.clearHashesList=function(){return this.setHashesList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Hash.prototype.toObject=function(t){return proto.linkahead.entity.v1.Hash.toObject(t,this)},proto.linkahead.entity.v1.Hash.toObject=function(t,e){var n={algorithm:i.Message.getFieldWithDefault(e,1,""),value:i.Message.getFieldWithDefault(e,2,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.Hash.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Hash;return proto.linkahead.entity.v1.Hash.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Hash.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setAlgorithm(n);break;case 2:n=e.readString(),t.setValue(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Hash.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Hash.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Hash.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getAlgorithm()).length>0&&e.writeString(1,n),(n=t.getValue()).length>0&&e.writeString(2,n)},proto.linkahead.entity.v1.Hash.prototype.getAlgorithm=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Hash.prototype.setAlgorithm=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.Hash.prototype.getValue=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.Hash.prototype.setValue=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.Property.repeatedFields_=[8,9,10],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Property.prototype.toObject=function(t){return proto.linkahead.entity.v1.Property.toObject(t,this)},proto.linkahead.entity.v1.Property.toObject=function(t,e){var n,r={id:i.Message.getFieldWithDefault(e,1,""),name:i.Message.getFieldWithDefault(e,2,""),description:i.Message.getFieldWithDefault(e,3,""),value:(n=e.getValue())&&proto.linkahead.entity.v1.Value.toObject(t,n),importance:i.Message.getFieldWithDefault(e,5,0),unit:i.Message.getFieldWithDefault(e,6,""),dataType:(n=e.getDataType())&&proto.linkahead.entity.v1.DataType.toObject(t,n),errorsList:i.Message.toObjectList(e.getErrorsList(),proto.linkahead.entity.v1.Message.toObject,t),warningsList:i.Message.toObjectList(e.getWarningsList(),proto.linkahead.entity.v1.Message.toObject,t),infosList:i.Message.toObjectList(e.getInfosList(),proto.linkahead.entity.v1.Message.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.Property.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Property;return proto.linkahead.entity.v1.Property.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Property.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 2:n=e.readString(),t.setName(n);break;case 3:n=e.readString(),t.setDescription(n);break;case 4:n=new proto.linkahead.entity.v1.Value,e.readMessage(n,proto.linkahead.entity.v1.Value.deserializeBinaryFromReader),t.setValue(n);break;case 5:n=e.readEnum(),t.setImportance(n);break;case 6:n=e.readString(),t.setUnit(n);break;case 7:n=new proto.linkahead.entity.v1.DataType,e.readMessage(n,proto.linkahead.entity.v1.DataType.deserializeBinaryFromReader),t.setDataType(n);break;case 8:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addErrors(n);break;case 9:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addWarnings(n);break;case 10:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addInfos(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Property.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Property.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Property.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getId()).length>0&&e.writeString(1,n),(n=t.getName()).length>0&&e.writeString(2,n),(n=t.getDescription()).length>0&&e.writeString(3,n),null!=(n=t.getValue())&&e.writeMessage(4,n,proto.linkahead.entity.v1.Value.serializeBinaryToWriter),0!==(n=t.getImportance())&&e.writeEnum(5,n),(n=t.getUnit()).length>0&&e.writeString(6,n),null!=(n=t.getDataType())&&e.writeMessage(7,n,proto.linkahead.entity.v1.DataType.serializeBinaryToWriter),(n=t.getErrorsList()).length>0&&e.writeRepeatedMessage(8,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getWarningsList()).length>0&&e.writeRepeatedMessage(9,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getInfosList()).length>0&&e.writeRepeatedMessage(10,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter)},proto.linkahead.entity.v1.Property.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Property.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.Property.prototype.getName=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.Property.prototype.setName=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.Property.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,3,"")},proto.linkahead.entity.v1.Property.prototype.setDescription=function(t){return i.Message.setProto3StringField(this,3,t)},proto.linkahead.entity.v1.Property.prototype.getValue=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Value,4)},proto.linkahead.entity.v1.Property.prototype.setValue=function(t){return i.Message.setWrapperField(this,4,t)},proto.linkahead.entity.v1.Property.prototype.clearValue=function(){return this.setValue(void 0)},proto.linkahead.entity.v1.Property.prototype.hasValue=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.Property.prototype.getImportance=function(){return i.Message.getFieldWithDefault(this,5,0)},proto.linkahead.entity.v1.Property.prototype.setImportance=function(t){return i.Message.setProto3EnumField(this,5,t)},proto.linkahead.entity.v1.Property.prototype.getUnit=function(){return i.Message.getFieldWithDefault(this,6,"")},proto.linkahead.entity.v1.Property.prototype.setUnit=function(t){return i.Message.setProto3StringField(this,6,t)},proto.linkahead.entity.v1.Property.prototype.getDataType=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.DataType,7)},proto.linkahead.entity.v1.Property.prototype.setDataType=function(t){return i.Message.setWrapperField(this,7,t)},proto.linkahead.entity.v1.Property.prototype.clearDataType=function(){return this.setDataType(void 0)},proto.linkahead.entity.v1.Property.prototype.hasDataType=function(){return null!=i.Message.getField(this,7)},proto.linkahead.entity.v1.Property.prototype.getErrorsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,8)},proto.linkahead.entity.v1.Property.prototype.setErrorsList=function(t){return i.Message.setRepeatedWrapperField(this,8,t)},proto.linkahead.entity.v1.Property.prototype.addErrors=function(t,e){return i.Message.addToRepeatedWrapperField(this,8,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Property.prototype.clearErrorsList=function(){return this.setErrorsList([])},proto.linkahead.entity.v1.Property.prototype.getWarningsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,9)},proto.linkahead.entity.v1.Property.prototype.setWarningsList=function(t){return i.Message.setRepeatedWrapperField(this,9,t)},proto.linkahead.entity.v1.Property.prototype.addWarnings=function(t,e){return i.Message.addToRepeatedWrapperField(this,9,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Property.prototype.clearWarningsList=function(){return this.setWarningsList([])},proto.linkahead.entity.v1.Property.prototype.getInfosList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,10)},proto.linkahead.entity.v1.Property.prototype.setInfosList=function(t){return i.Message.setRepeatedWrapperField(this,10,t)},proto.linkahead.entity.v1.Property.prototype.addInfos=function(t,e){return i.Message.addToRepeatedWrapperField(this,10,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Property.prototype.clearInfosList=function(){return this.setInfosList([])},proto.linkahead.entity.v1.Parent.repeatedFields_=[4,5,6],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Parent.prototype.toObject=function(t){return proto.linkahead.entity.v1.Parent.toObject(t,this)},proto.linkahead.entity.v1.Parent.toObject=function(t,e){var n={id:i.Message.getFieldWithDefault(e,1,""),name:i.Message.getFieldWithDefault(e,2,""),description:i.Message.getFieldWithDefault(e,3,""),errorsList:i.Message.toObjectList(e.getErrorsList(),proto.linkahead.entity.v1.Message.toObject,t),warningsList:i.Message.toObjectList(e.getWarningsList(),proto.linkahead.entity.v1.Message.toObject,t),infosList:i.Message.toObjectList(e.getInfosList(),proto.linkahead.entity.v1.Message.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.Parent.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Parent;return proto.linkahead.entity.v1.Parent.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Parent.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 2:n=e.readString(),t.setName(n);break;case 3:n=e.readString(),t.setDescription(n);break;case 4:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addErrors(n);break;case 5:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addWarnings(n);break;case 6:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addInfos(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.Parent.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Parent.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Parent.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getId()).length>0&&e.writeString(1,n),(n=t.getName()).length>0&&e.writeString(2,n),(n=t.getDescription()).length>0&&e.writeString(3,n),(n=t.getErrorsList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getWarningsList()).length>0&&e.writeRepeatedMessage(5,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getInfosList()).length>0&&e.writeRepeatedMessage(6,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter)},proto.linkahead.entity.v1.Parent.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Parent.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.Parent.prototype.getName=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.Parent.prototype.setName=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.Parent.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,3,"")},proto.linkahead.entity.v1.Parent.prototype.setDescription=function(t){return i.Message.setProto3StringField(this,3,t)},proto.linkahead.entity.v1.Parent.prototype.getErrorsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,4)},proto.linkahead.entity.v1.Parent.prototype.setErrorsList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.Parent.prototype.addErrors=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Parent.prototype.clearErrorsList=function(){return this.setErrorsList([])},proto.linkahead.entity.v1.Parent.prototype.getWarningsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,5)},proto.linkahead.entity.v1.Parent.prototype.setWarningsList=function(t){return i.Message.setRepeatedWrapperField(this,5,t)},proto.linkahead.entity.v1.Parent.prototype.addWarnings=function(t,e){return i.Message.addToRepeatedWrapperField(this,5,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Parent.prototype.clearWarningsList=function(){return this.setWarningsList([])},proto.linkahead.entity.v1.Parent.prototype.getInfosList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,6)},proto.linkahead.entity.v1.Parent.prototype.setInfosList=function(t){return i.Message.setRepeatedWrapperField(this,6,t)},proto.linkahead.entity.v1.Parent.prototype.addInfos=function(t,e){return i.Message.addToRepeatedWrapperField(this,6,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.Parent.prototype.clearInfosList=function(){return this.setInfosList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.EntityRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.EntityRequest.toObject(t,this)},proto.linkahead.entity.v1.EntityRequest.toObject=function(t,e){var n,i={entity:(n=e.getEntity())&&proto.linkahead.entity.v1.Entity.toObject(t,n),uploadId:(n=e.getUploadId())&&proto.linkahead.entity.v1.FileTransmissionId.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.EntityRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.EntityRequest;return proto.linkahead.entity.v1.EntityRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.EntityRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.Entity;e.readMessage(n,proto.linkahead.entity.v1.Entity.deserializeBinaryFromReader),t.setEntity(n);break;case 2:n=new proto.linkahead.entity.v1.FileTransmissionId,e.readMessage(n,proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader),t.setUploadId(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.EntityRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.EntityRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.EntityRequest.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getEntity())&&e.writeMessage(1,n,proto.linkahead.entity.v1.Entity.serializeBinaryToWriter),null!=(n=t.getUploadId())&&e.writeMessage(2,n,proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter)},proto.linkahead.entity.v1.EntityRequest.prototype.getEntity=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Entity,1)},proto.linkahead.entity.v1.EntityRequest.prototype.setEntity=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.EntityRequest.prototype.clearEntity=function(){return this.setEntity(void 0)},proto.linkahead.entity.v1.EntityRequest.prototype.hasEntity=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.EntityRequest.prototype.getUploadId=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileTransmissionId,2)},proto.linkahead.entity.v1.EntityRequest.prototype.setUploadId=function(t){return i.Message.setWrapperField(this,2,t)},proto.linkahead.entity.v1.EntityRequest.prototype.clearUploadId=function(){return this.setUploadId(void 0)},proto.linkahead.entity.v1.EntityRequest.prototype.hasUploadId=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.EntityResponse.repeatedFields_=[3,4,5],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.EntityResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.EntityResponse.toObject(t,this)},proto.linkahead.entity.v1.EntityResponse.toObject=function(t,e){var n,r={entity:(n=e.getEntity())&&proto.linkahead.entity.v1.Entity.toObject(t,n),downloadId:(n=e.getDownloadId())&&proto.linkahead.entity.v1.FileTransmissionId.toObject(t,n),errorsList:i.Message.toObjectList(e.getErrorsList(),proto.linkahead.entity.v1.Message.toObject,t),warningsList:i.Message.toObjectList(e.getWarningsList(),proto.linkahead.entity.v1.Message.toObject,t),infosList:i.Message.toObjectList(e.getInfosList(),proto.linkahead.entity.v1.Message.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.EntityResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.EntityResponse;return proto.linkahead.entity.v1.EntityResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.EntityResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.Entity;e.readMessage(n,proto.linkahead.entity.v1.Entity.deserializeBinaryFromReader),t.setEntity(n);break;case 2:n=new proto.linkahead.entity.v1.FileTransmissionId,e.readMessage(n,proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader),t.setDownloadId(n);break;case 3:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addErrors(n);break;case 4:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addWarnings(n);break;case 5:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addInfos(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.EntityResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.EntityResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.EntityResponse.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getEntity())&&e.writeMessage(1,n,proto.linkahead.entity.v1.Entity.serializeBinaryToWriter),null!=(n=t.getDownloadId())&&e.writeMessage(2,n,proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter),(n=t.getErrorsList()).length>0&&e.writeRepeatedMessage(3,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getWarningsList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getInfosList()).length>0&&e.writeRepeatedMessage(5,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter)},proto.linkahead.entity.v1.EntityResponse.prototype.getEntity=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Entity,1)},proto.linkahead.entity.v1.EntityResponse.prototype.setEntity=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.EntityResponse.prototype.clearEntity=function(){return this.setEntity(void 0)},proto.linkahead.entity.v1.EntityResponse.prototype.hasEntity=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.EntityResponse.prototype.getDownloadId=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileTransmissionId,2)},proto.linkahead.entity.v1.EntityResponse.prototype.setDownloadId=function(t){return i.Message.setWrapperField(this,2,t)},proto.linkahead.entity.v1.EntityResponse.prototype.clearDownloadId=function(){return this.setDownloadId(void 0)},proto.linkahead.entity.v1.EntityResponse.prototype.hasDownloadId=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.EntityResponse.prototype.getErrorsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,3)},proto.linkahead.entity.v1.EntityResponse.prototype.setErrorsList=function(t){return i.Message.setRepeatedWrapperField(this,3,t)},proto.linkahead.entity.v1.EntityResponse.prototype.addErrors=function(t,e){return i.Message.addToRepeatedWrapperField(this,3,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.EntityResponse.prototype.clearErrorsList=function(){return this.setErrorsList([])},proto.linkahead.entity.v1.EntityResponse.prototype.getWarningsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,4)},proto.linkahead.entity.v1.EntityResponse.prototype.setWarningsList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.EntityResponse.prototype.addWarnings=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.EntityResponse.prototype.clearWarningsList=function(){return this.setWarningsList([])},proto.linkahead.entity.v1.EntityResponse.prototype.getInfosList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,5)},proto.linkahead.entity.v1.EntityResponse.prototype.setInfosList=function(t){return i.Message.setRepeatedWrapperField(this,5,t)},proto.linkahead.entity.v1.EntityResponse.prototype.addInfos=function(t,e){return i.Message.addToRepeatedWrapperField(this,5,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.EntityResponse.prototype.clearInfosList=function(){return this.setInfosList([])},proto.linkahead.entity.v1.IdResponse.repeatedFields_=[2,3,4],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.IdResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.IdResponse.toObject(t,this)},proto.linkahead.entity.v1.IdResponse.toObject=function(t,e){var n,r={id:i.Message.getFieldWithDefault(e,1,""),version:(n=e.getVersion())&&proto.linkahead.entity.v1.Version.toObject(t,n),errorsList:i.Message.toObjectList(e.getErrorsList(),proto.linkahead.entity.v1.Message.toObject,t),warningsList:i.Message.toObjectList(e.getWarningsList(),proto.linkahead.entity.v1.Message.toObject,t),infosList:i.Message.toObjectList(e.getInfosList(),proto.linkahead.entity.v1.Message.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.IdResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.IdResponse;return proto.linkahead.entity.v1.IdResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.IdResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 5:n=new proto.linkahead.entity.v1.Version,e.readMessage(n,proto.linkahead.entity.v1.Version.deserializeBinaryFromReader),t.setVersion(n);break;case 2:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addErrors(n);break;case 3:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addWarnings(n);break;case 4:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addInfos(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.IdResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.IdResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.IdResponse.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getId()).length>0&&e.writeString(1,n),null!=(n=t.getVersion())&&e.writeMessage(5,n,proto.linkahead.entity.v1.Version.serializeBinaryToWriter),(n=t.getErrorsList()).length>0&&e.writeRepeatedMessage(2,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getWarningsList()).length>0&&e.writeRepeatedMessage(3,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getInfosList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter)},proto.linkahead.entity.v1.IdResponse.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.IdResponse.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.IdResponse.prototype.getVersion=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Version,5)},proto.linkahead.entity.v1.IdResponse.prototype.setVersion=function(t){return i.Message.setWrapperField(this,5,t)},proto.linkahead.entity.v1.IdResponse.prototype.clearVersion=function(){return this.setVersion(void 0)},proto.linkahead.entity.v1.IdResponse.prototype.hasVersion=function(){return null!=i.Message.getField(this,5)},proto.linkahead.entity.v1.IdResponse.prototype.getErrorsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,2)},proto.linkahead.entity.v1.IdResponse.prototype.setErrorsList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},proto.linkahead.entity.v1.IdResponse.prototype.addErrors=function(t,e){return i.Message.addToRepeatedWrapperField(this,2,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.IdResponse.prototype.clearErrorsList=function(){return this.setErrorsList([])},proto.linkahead.entity.v1.IdResponse.prototype.getWarningsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,3)},proto.linkahead.entity.v1.IdResponse.prototype.setWarningsList=function(t){return i.Message.setRepeatedWrapperField(this,3,t)},proto.linkahead.entity.v1.IdResponse.prototype.addWarnings=function(t,e){return i.Message.addToRepeatedWrapperField(this,3,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.IdResponse.prototype.clearWarningsList=function(){return this.setWarningsList([])},proto.linkahead.entity.v1.IdResponse.prototype.getInfosList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,4)},proto.linkahead.entity.v1.IdResponse.prototype.setInfosList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.IdResponse.prototype.addInfos=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.IdResponse.prototype.clearInfosList=function(){return this.setInfosList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.Query.prototype.toObject=function(t){return proto.linkahead.entity.v1.Query.toObject(t,this)},proto.linkahead.entity.v1.Query.toObject=function(t,e){var n={query:i.Message.getFieldWithDefault(e,1,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.Query.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.Query;return proto.linkahead.entity.v1.Query.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.Query.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.setQuery(n)}else e.skipField();return t},proto.linkahead.entity.v1.Query.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.Query.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.Query.serializeBinaryToWriter=function(t,e){var n;(n=t.getQuery()).length>0&&e.writeString(1,n)},proto.linkahead.entity.v1.Query.prototype.getQuery=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.Query.prototype.setQuery=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.FindQueryResult.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FindQueryResult.prototype.toObject=function(t){return proto.linkahead.entity.v1.FindQueryResult.toObject(t,this)},proto.linkahead.entity.v1.FindQueryResult.toObject=function(t,e){var n={resultSetList:i.Message.toObjectList(e.getResultSetList(),proto.linkahead.entity.v1.EntityResponse.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.FindQueryResult.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FindQueryResult;return proto.linkahead.entity.v1.FindQueryResult.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FindQueryResult.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.EntityResponse;e.readMessage(n,proto.linkahead.entity.v1.EntityResponse.deserializeBinaryFromReader),t.addResultSet(n)}else e.skipField();return t},proto.linkahead.entity.v1.FindQueryResult.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FindQueryResult.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FindQueryResult.serializeBinaryToWriter=function(t,e){var n;(n=t.getResultSetList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.EntityResponse.serializeBinaryToWriter)},proto.linkahead.entity.v1.FindQueryResult.prototype.getResultSetList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.EntityResponse,1)},proto.linkahead.entity.v1.FindQueryResult.prototype.setResultSetList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.FindQueryResult.prototype.addResultSet=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.EntityResponse,e)},proto.linkahead.entity.v1.FindQueryResult.prototype.clearResultSetList=function(){return this.setResultSetList([])},proto.linkahead.entity.v1.SelectQueryRow.repeatedFields_=[2],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.SelectQueryRow.prototype.toObject=function(t){return proto.linkahead.entity.v1.SelectQueryRow.toObject(t,this)},proto.linkahead.entity.v1.SelectQueryRow.toObject=function(t,e){var n={cellsList:i.Message.toObjectList(e.getCellsList(),proto.linkahead.entity.v1.Value.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.SelectQueryRow.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.SelectQueryRow;return proto.linkahead.entity.v1.SelectQueryRow.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.SelectQueryRow.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(2===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.Value;e.readMessage(n,proto.linkahead.entity.v1.Value.deserializeBinaryFromReader),t.addCells(n)}else e.skipField();return t},proto.linkahead.entity.v1.SelectQueryRow.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.SelectQueryRow.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.SelectQueryRow.serializeBinaryToWriter=function(t,e){var n;(n=t.getCellsList()).length>0&&e.writeRepeatedMessage(2,n,proto.linkahead.entity.v1.Value.serializeBinaryToWriter)},proto.linkahead.entity.v1.SelectQueryRow.prototype.getCellsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Value,2)},proto.linkahead.entity.v1.SelectQueryRow.prototype.setCellsList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},proto.linkahead.entity.v1.SelectQueryRow.prototype.addCells=function(t,e){return i.Message.addToRepeatedWrapperField(this,2,t,proto.linkahead.entity.v1.Value,e)},proto.linkahead.entity.v1.SelectQueryRow.prototype.clearCellsList=function(){return this.setCellsList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.SelectQueryColumn.prototype.toObject=function(t){return proto.linkahead.entity.v1.SelectQueryColumn.toObject(t,this)},proto.linkahead.entity.v1.SelectQueryColumn.toObject=function(t,e){var n={name:i.Message.getFieldWithDefault(e,1,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.SelectQueryColumn.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.SelectQueryColumn;return proto.linkahead.entity.v1.SelectQueryColumn.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.SelectQueryColumn.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.setName(n)}else e.skipField();return t},proto.linkahead.entity.v1.SelectQueryColumn.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.SelectQueryColumn.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.SelectQueryColumn.serializeBinaryToWriter=function(t,e){var n;(n=t.getName()).length>0&&e.writeString(1,n)},proto.linkahead.entity.v1.SelectQueryColumn.prototype.getName=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.SelectQueryColumn.prototype.setName=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.SelectQueryHeader.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.SelectQueryHeader.prototype.toObject=function(t){return proto.linkahead.entity.v1.SelectQueryHeader.toObject(t,this)},proto.linkahead.entity.v1.SelectQueryHeader.toObject=function(t,e){var n={columnsList:i.Message.toObjectList(e.getColumnsList(),proto.linkahead.entity.v1.SelectQueryColumn.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.SelectQueryHeader.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.SelectQueryHeader;return proto.linkahead.entity.v1.SelectQueryHeader.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.SelectQueryHeader.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.SelectQueryColumn;e.readMessage(n,proto.linkahead.entity.v1.SelectQueryColumn.deserializeBinaryFromReader),t.addColumns(n)}else e.skipField();return t},proto.linkahead.entity.v1.SelectQueryHeader.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.SelectQueryHeader.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.SelectQueryHeader.serializeBinaryToWriter=function(t,e){var n;(n=t.getColumnsList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.SelectQueryColumn.serializeBinaryToWriter)},proto.linkahead.entity.v1.SelectQueryHeader.prototype.getColumnsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.SelectQueryColumn,1)},proto.linkahead.entity.v1.SelectQueryHeader.prototype.setColumnsList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.SelectQueryHeader.prototype.addColumns=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.SelectQueryColumn,e)},proto.linkahead.entity.v1.SelectQueryHeader.prototype.clearColumnsList=function(){return this.setColumnsList([])},proto.linkahead.entity.v1.SelectQueryResult.repeatedFields_=[4],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.SelectQueryResult.prototype.toObject=function(t){return proto.linkahead.entity.v1.SelectQueryResult.toObject(t,this)},proto.linkahead.entity.v1.SelectQueryResult.toObject=function(t,e){var n,r={header:(n=e.getHeader())&&proto.linkahead.entity.v1.SelectQueryHeader.toObject(t,n),dataRowsList:i.Message.toObjectList(e.getDataRowsList(),proto.linkahead.entity.v1.SelectQueryRow.toObject,t)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.SelectQueryResult.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.SelectQueryResult;return proto.linkahead.entity.v1.SelectQueryResult.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.SelectQueryResult.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 3:var n=new proto.linkahead.entity.v1.SelectQueryHeader;e.readMessage(n,proto.linkahead.entity.v1.SelectQueryHeader.deserializeBinaryFromReader),t.setHeader(n);break;case 4:n=new proto.linkahead.entity.v1.SelectQueryRow,e.readMessage(n,proto.linkahead.entity.v1.SelectQueryRow.deserializeBinaryFromReader),t.addDataRows(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.SelectQueryResult.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.SelectQueryResult.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.SelectQueryResult.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getHeader())&&e.writeMessage(3,n,proto.linkahead.entity.v1.SelectQueryHeader.serializeBinaryToWriter),(n=t.getDataRowsList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.SelectQueryRow.serializeBinaryToWriter)},proto.linkahead.entity.v1.SelectQueryResult.prototype.getHeader=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.SelectQueryHeader,3)},proto.linkahead.entity.v1.SelectQueryResult.prototype.setHeader=function(t){return i.Message.setWrapperField(this,3,t)},proto.linkahead.entity.v1.SelectQueryResult.prototype.clearHeader=function(){return this.setHeader(void 0)},proto.linkahead.entity.v1.SelectQueryResult.prototype.hasHeader=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.SelectQueryResult.prototype.getDataRowsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.SelectQueryRow,4)},proto.linkahead.entity.v1.SelectQueryResult.prototype.setDataRowsList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.SelectQueryResult.prototype.addDataRows=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.SelectQueryRow,e)},proto.linkahead.entity.v1.SelectQueryResult.prototype.clearDataRowsList=function(){return this.setDataRowsList([])},proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_=[[1,2]],proto.linkahead.entity.v1.RetrieveRequest.WrappedRequestCase={WRAPPED_REQUEST_NOT_SET:0,ID:1,QUERY:2},proto.linkahead.entity.v1.RetrieveRequest.prototype.getWrappedRequestCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.RetrieveRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.RetrieveRequest.toObject(t,this)},proto.linkahead.entity.v1.RetrieveRequest.toObject=function(t,e){var n,r={id:i.Message.getFieldWithDefault(e,1,""),query:(n=e.getQuery())&&proto.linkahead.entity.v1.Query.toObject(t,n),registerFileDownload:i.Message.getBooleanFieldWithDefault(e,3,!1)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.RetrieveRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.RetrieveRequest;return proto.linkahead.entity.v1.RetrieveRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.RetrieveRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 2:n=new proto.linkahead.entity.v1.Query,e.readMessage(n,proto.linkahead.entity.v1.Query.deserializeBinaryFromReader),t.setQuery(n);break;case 3:n=e.readBool(),t.setRegisterFileDownload(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.RetrieveRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.RetrieveRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.RetrieveRequest.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=i.Message.getField(t,1))&&e.writeString(1,n),null!=(n=t.getQuery())&&e.writeMessage(2,n,proto.linkahead.entity.v1.Query.serializeBinaryToWriter),(n=t.getRegisterFileDownload())&&e.writeBool(3,n)},proto.linkahead.entity.v1.RetrieveRequest.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.RetrieveRequest.prototype.setId=function(t){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveRequest.prototype.clearId=function(){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.RetrieveRequest.prototype.hasId=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.RetrieveRequest.prototype.getQuery=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.Query,2)},proto.linkahead.entity.v1.RetrieveRequest.prototype.setQuery=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.RetrieveRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveRequest.prototype.clearQuery=function(){return this.setQuery(void 0)},proto.linkahead.entity.v1.RetrieveRequest.prototype.hasQuery=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.RetrieveRequest.prototype.getRegisterFileDownload=function(){return i.Message.getBooleanFieldWithDefault(this,3,!1)},proto.linkahead.entity.v1.RetrieveRequest.prototype.setRegisterFileDownload=function(t){return i.Message.setProto3BooleanField(this,3,t)},proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_=[[1,2,3,4]],proto.linkahead.entity.v1.RetrieveResponse.RetrieveResponseCase={RETRIEVE_RESPONSE_NOT_SET:0,ENTITY_RESPONSE:1,FIND_RESULT:2,SELECT_RESULT:3,COUNT_RESULT:4},proto.linkahead.entity.v1.RetrieveResponse.prototype.getRetrieveResponseCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.RetrieveResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.RetrieveResponse.toObject(t,this)},proto.linkahead.entity.v1.RetrieveResponse.toObject=function(t,e){var n,r={entityResponse:(n=e.getEntityResponse())&&proto.linkahead.entity.v1.EntityResponse.toObject(t,n),findResult:(n=e.getFindResult())&&proto.linkahead.entity.v1.FindQueryResult.toObject(t,n),selectResult:(n=e.getSelectResult())&&proto.linkahead.entity.v1.SelectQueryResult.toObject(t,n),countResult:i.Message.getFieldWithDefault(e,4,0)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.RetrieveResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.RetrieveResponse;return proto.linkahead.entity.v1.RetrieveResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.RetrieveResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.EntityResponse;e.readMessage(n,proto.linkahead.entity.v1.EntityResponse.deserializeBinaryFromReader),t.setEntityResponse(n);break;case 2:n=new proto.linkahead.entity.v1.FindQueryResult,e.readMessage(n,proto.linkahead.entity.v1.FindQueryResult.deserializeBinaryFromReader),t.setFindResult(n);break;case 3:n=new proto.linkahead.entity.v1.SelectQueryResult,e.readMessage(n,proto.linkahead.entity.v1.SelectQueryResult.deserializeBinaryFromReader),t.setSelectResult(n);break;case 4:n=e.readInt64(),t.setCountResult(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.RetrieveResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.RetrieveResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.RetrieveResponse.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getEntityResponse())&&e.writeMessage(1,n,proto.linkahead.entity.v1.EntityResponse.serializeBinaryToWriter),null!=(n=t.getFindResult())&&e.writeMessage(2,n,proto.linkahead.entity.v1.FindQueryResult.serializeBinaryToWriter),null!=(n=t.getSelectResult())&&e.writeMessage(3,n,proto.linkahead.entity.v1.SelectQueryResult.serializeBinaryToWriter),null!=(n=i.Message.getField(t,4))&&e.writeInt64(4,n)},proto.linkahead.entity.v1.RetrieveResponse.prototype.getEntityResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.EntityResponse,1)},proto.linkahead.entity.v1.RetrieveResponse.prototype.setEntityResponse=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveResponse.prototype.clearEntityResponse=function(){return this.setEntityResponse(void 0)},proto.linkahead.entity.v1.RetrieveResponse.prototype.hasEntityResponse=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.RetrieveResponse.prototype.getFindResult=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FindQueryResult,2)},proto.linkahead.entity.v1.RetrieveResponse.prototype.setFindResult=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveResponse.prototype.clearFindResult=function(){return this.setFindResult(void 0)},proto.linkahead.entity.v1.RetrieveResponse.prototype.hasFindResult=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.RetrieveResponse.prototype.getSelectResult=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.SelectQueryResult,3)},proto.linkahead.entity.v1.RetrieveResponse.prototype.setSelectResult=function(t){return i.Message.setOneofWrapperField(this,3,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveResponse.prototype.clearSelectResult=function(){return this.setSelectResult(void 0)},proto.linkahead.entity.v1.RetrieveResponse.prototype.hasSelectResult=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.RetrieveResponse.prototype.getCountResult=function(){return i.Message.getFieldWithDefault(this,4,0)},proto.linkahead.entity.v1.RetrieveResponse.prototype.setCountResult=function(t){return i.Message.setOneofField(this,4,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.RetrieveResponse.prototype.clearCountResult=function(){return i.Message.setOneofField(this,4,proto.linkahead.entity.v1.RetrieveResponse.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.RetrieveResponse.prototype.hasCountResult=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.DeleteRequest.oneofGroups_=[[1]],proto.linkahead.entity.v1.DeleteRequest.WrappedRequestCase={WRAPPED_REQUEST_NOT_SET:0,ID:1},proto.linkahead.entity.v1.DeleteRequest.prototype.getWrappedRequestCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.DeleteRequest.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.DeleteRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.DeleteRequest.toObject(t,this)},proto.linkahead.entity.v1.DeleteRequest.toObject=function(t,e){var n={id:i.Message.getFieldWithDefault(e,1,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.DeleteRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.DeleteRequest;return proto.linkahead.entity.v1.DeleteRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.DeleteRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.setId(n)}else e.skipField();return t},proto.linkahead.entity.v1.DeleteRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.DeleteRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.DeleteRequest.serializeBinaryToWriter=function(t,e){var n;null!=(n=i.Message.getField(t,1))&&e.writeString(1,n)},proto.linkahead.entity.v1.DeleteRequest.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.DeleteRequest.prototype.setId=function(t){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.DeleteRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.DeleteRequest.prototype.clearId=function(){return i.Message.setOneofField(this,1,proto.linkahead.entity.v1.DeleteRequest.oneofGroups_[0],void 0)},proto.linkahead.entity.v1.DeleteRequest.prototype.hasId=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.DeleteResponse.oneofGroups_=[[1]],proto.linkahead.entity.v1.DeleteResponse.WrappedResponseCase={WRAPPED_RESPONSE_NOT_SET:0,ID_RESPONSE:1},proto.linkahead.entity.v1.DeleteResponse.prototype.getWrappedResponseCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.DeleteResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.DeleteResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.DeleteResponse.toObject(t,this)},proto.linkahead.entity.v1.DeleteResponse.toObject=function(t,e){var n,i={idResponse:(n=e.getIdResponse())&&proto.linkahead.entity.v1.IdResponse.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.DeleteResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.DeleteResponse;return proto.linkahead.entity.v1.DeleteResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.DeleteResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.IdResponse;e.readMessage(n,proto.linkahead.entity.v1.IdResponse.deserializeBinaryFromReader),t.setIdResponse(n)}else e.skipField();return t},proto.linkahead.entity.v1.DeleteResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.DeleteResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.DeleteResponse.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getIdResponse())&&e.writeMessage(1,n,proto.linkahead.entity.v1.IdResponse.serializeBinaryToWriter)},proto.linkahead.entity.v1.DeleteResponse.prototype.getIdResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.IdResponse,1)},proto.linkahead.entity.v1.DeleteResponse.prototype.setIdResponse=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.DeleteResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.DeleteResponse.prototype.clearIdResponse=function(){return this.setIdResponse(void 0)},proto.linkahead.entity.v1.DeleteResponse.prototype.hasIdResponse=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.UpdateRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.UpdateRequest.toObject(t,this)},proto.linkahead.entity.v1.UpdateRequest.toObject=function(t,e){var n,i={entityRequest:(n=e.getEntityRequest())&&proto.linkahead.entity.v1.EntityRequest.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.UpdateRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.UpdateRequest;return proto.linkahead.entity.v1.UpdateRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.UpdateRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.EntityRequest;e.readMessage(n,proto.linkahead.entity.v1.EntityRequest.deserializeBinaryFromReader),t.setEntityRequest(n)}else e.skipField();return t},proto.linkahead.entity.v1.UpdateRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.UpdateRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.UpdateRequest.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getEntityRequest())&&e.writeMessage(1,n,proto.linkahead.entity.v1.EntityRequest.serializeBinaryToWriter)},proto.linkahead.entity.v1.UpdateRequest.prototype.getEntityRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.EntityRequest,1)},proto.linkahead.entity.v1.UpdateRequest.prototype.setEntityRequest=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.UpdateRequest.prototype.clearEntityRequest=function(){return this.setEntityRequest(void 0)},proto.linkahead.entity.v1.UpdateRequest.prototype.hasEntityRequest=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.UpdateResponse.oneofGroups_=[[1]],proto.linkahead.entity.v1.UpdateResponse.WrappedResponseCase={WRAPPED_RESPONSE_NOT_SET:0,ID_RESPONSE:1},proto.linkahead.entity.v1.UpdateResponse.prototype.getWrappedResponseCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.UpdateResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.UpdateResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.UpdateResponse.toObject(t,this)},proto.linkahead.entity.v1.UpdateResponse.toObject=function(t,e){var n,i={idResponse:(n=e.getIdResponse())&&proto.linkahead.entity.v1.IdResponse.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.UpdateResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.UpdateResponse;return proto.linkahead.entity.v1.UpdateResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.UpdateResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.IdResponse;e.readMessage(n,proto.linkahead.entity.v1.IdResponse.deserializeBinaryFromReader),t.setIdResponse(n)}else e.skipField();return t},proto.linkahead.entity.v1.UpdateResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.UpdateResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.UpdateResponse.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getIdResponse())&&e.writeMessage(1,n,proto.linkahead.entity.v1.IdResponse.serializeBinaryToWriter)},proto.linkahead.entity.v1.UpdateResponse.prototype.getIdResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.IdResponse,1)},proto.linkahead.entity.v1.UpdateResponse.prototype.setIdResponse=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.UpdateResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.UpdateResponse.prototype.clearIdResponse=function(){return this.setIdResponse(void 0)},proto.linkahead.entity.v1.UpdateResponse.prototype.hasIdResponse=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.InsertRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.InsertRequest.toObject(t,this)},proto.linkahead.entity.v1.InsertRequest.toObject=function(t,e){var n,i={entityRequest:(n=e.getEntityRequest())&&proto.linkahead.entity.v1.EntityRequest.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.InsertRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.InsertRequest;return proto.linkahead.entity.v1.InsertRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.InsertRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.EntityRequest;e.readMessage(n,proto.linkahead.entity.v1.EntityRequest.deserializeBinaryFromReader),t.setEntityRequest(n)}else e.skipField();return t},proto.linkahead.entity.v1.InsertRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.InsertRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.InsertRequest.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getEntityRequest())&&e.writeMessage(1,n,proto.linkahead.entity.v1.EntityRequest.serializeBinaryToWriter)},proto.linkahead.entity.v1.InsertRequest.prototype.getEntityRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.EntityRequest,1)},proto.linkahead.entity.v1.InsertRequest.prototype.setEntityRequest=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.InsertRequest.prototype.clearEntityRequest=function(){return this.setEntityRequest(void 0)},proto.linkahead.entity.v1.InsertRequest.prototype.hasEntityRequest=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.InsertResponse.oneofGroups_=[[1]],proto.linkahead.entity.v1.InsertResponse.WrappedResponseCase={WRAPPED_RESPONSE_NOT_SET:0,ID_RESPONSE:1},proto.linkahead.entity.v1.InsertResponse.prototype.getWrappedResponseCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.InsertResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.InsertResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.InsertResponse.toObject(t,this)},proto.linkahead.entity.v1.InsertResponse.toObject=function(t,e){var n,i={idResponse:(n=e.getIdResponse())&&proto.linkahead.entity.v1.IdResponse.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.InsertResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.InsertResponse;return proto.linkahead.entity.v1.InsertResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.InsertResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.IdResponse;e.readMessage(n,proto.linkahead.entity.v1.IdResponse.deserializeBinaryFromReader),t.setIdResponse(n)}else e.skipField();return t},proto.linkahead.entity.v1.InsertResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.InsertResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.InsertResponse.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getIdResponse())&&e.writeMessage(1,n,proto.linkahead.entity.v1.IdResponse.serializeBinaryToWriter)},proto.linkahead.entity.v1.InsertResponse.prototype.getIdResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.IdResponse,1)},proto.linkahead.entity.v1.InsertResponse.prototype.setIdResponse=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.InsertResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.InsertResponse.prototype.clearIdResponse=function(){return this.setIdResponse(void 0)},proto.linkahead.entity.v1.InsertResponse.prototype.hasIdResponse=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.TransactionRequest.oneofGroups_=[[1,2,3,4]],proto.linkahead.entity.v1.TransactionRequest.WrappedRequestsCase={WRAPPED_REQUESTS_NOT_SET:0,RETRIEVE_REQUEST:1,UPDATE_REQUEST:2,INSERT_REQUEST:3,DELETE_REQUEST:4},proto.linkahead.entity.v1.TransactionRequest.prototype.getWrappedRequestsCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.TransactionRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.TransactionRequest.toObject(t,this)},proto.linkahead.entity.v1.TransactionRequest.toObject=function(t,e){var n,i={retrieveRequest:(n=e.getRetrieveRequest())&&proto.linkahead.entity.v1.RetrieveRequest.toObject(t,n),updateRequest:(n=e.getUpdateRequest())&&proto.linkahead.entity.v1.UpdateRequest.toObject(t,n),insertRequest:(n=e.getInsertRequest())&&proto.linkahead.entity.v1.InsertRequest.toObject(t,n),deleteRequest:(n=e.getDeleteRequest())&&proto.linkahead.entity.v1.DeleteRequest.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.TransactionRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.TransactionRequest;return proto.linkahead.entity.v1.TransactionRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.TransactionRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.RetrieveRequest;e.readMessage(n,proto.linkahead.entity.v1.RetrieveRequest.deserializeBinaryFromReader),t.setRetrieveRequest(n);break;case 2:n=new proto.linkahead.entity.v1.UpdateRequest,e.readMessage(n,proto.linkahead.entity.v1.UpdateRequest.deserializeBinaryFromReader),t.setUpdateRequest(n);break;case 3:n=new proto.linkahead.entity.v1.InsertRequest,e.readMessage(n,proto.linkahead.entity.v1.InsertRequest.deserializeBinaryFromReader),t.setInsertRequest(n);break;case 4:n=new proto.linkahead.entity.v1.DeleteRequest,e.readMessage(n,proto.linkahead.entity.v1.DeleteRequest.deserializeBinaryFromReader),t.setDeleteRequest(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.TransactionRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.TransactionRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.TransactionRequest.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getRetrieveRequest())&&e.writeMessage(1,n,proto.linkahead.entity.v1.RetrieveRequest.serializeBinaryToWriter),null!=(n=t.getUpdateRequest())&&e.writeMessage(2,n,proto.linkahead.entity.v1.UpdateRequest.serializeBinaryToWriter),null!=(n=t.getInsertRequest())&&e.writeMessage(3,n,proto.linkahead.entity.v1.InsertRequest.serializeBinaryToWriter),null!=(n=t.getDeleteRequest())&&e.writeMessage(4,n,proto.linkahead.entity.v1.DeleteRequest.serializeBinaryToWriter)},proto.linkahead.entity.v1.TransactionRequest.prototype.getRetrieveRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.RetrieveRequest,1)},proto.linkahead.entity.v1.TransactionRequest.prototype.setRetrieveRequest=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionRequest.prototype.clearRetrieveRequest=function(){return this.setRetrieveRequest(void 0)},proto.linkahead.entity.v1.TransactionRequest.prototype.hasRetrieveRequest=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.TransactionRequest.prototype.getUpdateRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.UpdateRequest,2)},proto.linkahead.entity.v1.TransactionRequest.prototype.setUpdateRequest=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionRequest.prototype.clearUpdateRequest=function(){return this.setUpdateRequest(void 0)},proto.linkahead.entity.v1.TransactionRequest.prototype.hasUpdateRequest=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.TransactionRequest.prototype.getInsertRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.InsertRequest,3)},proto.linkahead.entity.v1.TransactionRequest.prototype.setInsertRequest=function(t){return i.Message.setOneofWrapperField(this,3,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionRequest.prototype.clearInsertRequest=function(){return this.setInsertRequest(void 0)},proto.linkahead.entity.v1.TransactionRequest.prototype.hasInsertRequest=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.TransactionRequest.prototype.getDeleteRequest=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.DeleteRequest,4)},proto.linkahead.entity.v1.TransactionRequest.prototype.setDeleteRequest=function(t){return i.Message.setOneofWrapperField(this,4,proto.linkahead.entity.v1.TransactionRequest.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionRequest.prototype.clearDeleteRequest=function(){return this.setDeleteRequest(void 0)},proto.linkahead.entity.v1.TransactionRequest.prototype.hasDeleteRequest=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.TransactionResponse.oneofGroups_=[[1,2,3,4]],proto.linkahead.entity.v1.TransactionResponse.TransactionResponseCase={TRANSACTION_RESPONSE_NOT_SET:0,DELETE_RESPONSE:1,UPDATE_RESPONSE:2,RETRIEVE_RESPONSE:3,INSERT_RESPONSE:4},proto.linkahead.entity.v1.TransactionResponse.prototype.getTransactionResponseCase=function(){return i.Message.computeOneofCase(this,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.TransactionResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.TransactionResponse.toObject(t,this)},proto.linkahead.entity.v1.TransactionResponse.toObject=function(t,e){var n,i={deleteResponse:(n=e.getDeleteResponse())&&proto.linkahead.entity.v1.DeleteResponse.toObject(t,n),updateResponse:(n=e.getUpdateResponse())&&proto.linkahead.entity.v1.UpdateResponse.toObject(t,n),retrieveResponse:(n=e.getRetrieveResponse())&&proto.linkahead.entity.v1.RetrieveResponse.toObject(t,n),insertResponse:(n=e.getInsertResponse())&&proto.linkahead.entity.v1.InsertResponse.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.TransactionResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.TransactionResponse;return proto.linkahead.entity.v1.TransactionResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.TransactionResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.DeleteResponse;e.readMessage(n,proto.linkahead.entity.v1.DeleteResponse.deserializeBinaryFromReader),t.setDeleteResponse(n);break;case 2:n=new proto.linkahead.entity.v1.UpdateResponse,e.readMessage(n,proto.linkahead.entity.v1.UpdateResponse.deserializeBinaryFromReader),t.setUpdateResponse(n);break;case 3:n=new proto.linkahead.entity.v1.RetrieveResponse,e.readMessage(n,proto.linkahead.entity.v1.RetrieveResponse.deserializeBinaryFromReader),t.setRetrieveResponse(n);break;case 4:n=new proto.linkahead.entity.v1.InsertResponse,e.readMessage(n,proto.linkahead.entity.v1.InsertResponse.deserializeBinaryFromReader),t.setInsertResponse(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.TransactionResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.TransactionResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.TransactionResponse.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getDeleteResponse())&&e.writeMessage(1,n,proto.linkahead.entity.v1.DeleteResponse.serializeBinaryToWriter),null!=(n=t.getUpdateResponse())&&e.writeMessage(2,n,proto.linkahead.entity.v1.UpdateResponse.serializeBinaryToWriter),null!=(n=t.getRetrieveResponse())&&e.writeMessage(3,n,proto.linkahead.entity.v1.RetrieveResponse.serializeBinaryToWriter),null!=(n=t.getInsertResponse())&&e.writeMessage(4,n,proto.linkahead.entity.v1.InsertResponse.serializeBinaryToWriter)},proto.linkahead.entity.v1.TransactionResponse.prototype.getDeleteResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.DeleteResponse,1)},proto.linkahead.entity.v1.TransactionResponse.prototype.setDeleteResponse=function(t){return i.Message.setOneofWrapperField(this,1,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionResponse.prototype.clearDeleteResponse=function(){return this.setDeleteResponse(void 0)},proto.linkahead.entity.v1.TransactionResponse.prototype.hasDeleteResponse=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.TransactionResponse.prototype.getUpdateResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.UpdateResponse,2)},proto.linkahead.entity.v1.TransactionResponse.prototype.setUpdateResponse=function(t){return i.Message.setOneofWrapperField(this,2,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionResponse.prototype.clearUpdateResponse=function(){return this.setUpdateResponse(void 0)},proto.linkahead.entity.v1.TransactionResponse.prototype.hasUpdateResponse=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.TransactionResponse.prototype.getRetrieveResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.RetrieveResponse,3)},proto.linkahead.entity.v1.TransactionResponse.prototype.setRetrieveResponse=function(t){return i.Message.setOneofWrapperField(this,3,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionResponse.prototype.clearRetrieveResponse=function(){return this.setRetrieveResponse(void 0)},proto.linkahead.entity.v1.TransactionResponse.prototype.hasRetrieveResponse=function(){return null!=i.Message.getField(this,3)},proto.linkahead.entity.v1.TransactionResponse.prototype.getInsertResponse=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.InsertResponse,4)},proto.linkahead.entity.v1.TransactionResponse.prototype.setInsertResponse=function(t){return i.Message.setOneofWrapperField(this,4,proto.linkahead.entity.v1.TransactionResponse.oneofGroups_[0],t)},proto.linkahead.entity.v1.TransactionResponse.prototype.clearInsertResponse=function(){return this.setInsertResponse(void 0)},proto.linkahead.entity.v1.TransactionResponse.prototype.hasInsertResponse=function(){return null!=i.Message.getField(this,4)},proto.linkahead.entity.v1.MultiTransactionRequest.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiTransactionRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiTransactionRequest.toObject(t,this)},proto.linkahead.entity.v1.MultiTransactionRequest.toObject=function(t,e){var n={requestsList:i.Message.toObjectList(e.getRequestsList(),proto.linkahead.entity.v1.TransactionRequest.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.MultiTransactionRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiTransactionRequest;return proto.linkahead.entity.v1.MultiTransactionRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiTransactionRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.TransactionRequest;e.readMessage(n,proto.linkahead.entity.v1.TransactionRequest.deserializeBinaryFromReader),t.addRequests(n)}else e.skipField();return t},proto.linkahead.entity.v1.MultiTransactionRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiTransactionRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiTransactionRequest.serializeBinaryToWriter=function(t,e){var n;(n=t.getRequestsList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.TransactionRequest.serializeBinaryToWriter)},proto.linkahead.entity.v1.MultiTransactionRequest.prototype.getRequestsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.TransactionRequest,1)},proto.linkahead.entity.v1.MultiTransactionRequest.prototype.setRequestsList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.MultiTransactionRequest.prototype.addRequests=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.TransactionRequest,e)},proto.linkahead.entity.v1.MultiTransactionRequest.prototype.clearRequestsList=function(){return this.setRequestsList([])},proto.linkahead.entity.v1.MultiTransactionResponse.repeatedFields_=[1,2,3,4],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiTransactionResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiTransactionResponse.toObject(t,this)},proto.linkahead.entity.v1.MultiTransactionResponse.toObject=function(t,e){var n={responsesList:i.Message.toObjectList(e.getResponsesList(),proto.linkahead.entity.v1.TransactionResponse.toObject,t),transactionErrorsList:i.Message.toObjectList(e.getTransactionErrorsList(),proto.linkahead.entity.v1.Message.toObject,t),transactionWarningsList:i.Message.toObjectList(e.getTransactionWarningsList(),proto.linkahead.entity.v1.Message.toObject,t),transactionInfosList:i.Message.toObjectList(e.getTransactionInfosList(),proto.linkahead.entity.v1.Message.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.MultiTransactionResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiTransactionResponse;return proto.linkahead.entity.v1.MultiTransactionResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiTransactionResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.TransactionResponse;e.readMessage(n,proto.linkahead.entity.v1.TransactionResponse.deserializeBinaryFromReader),t.addResponses(n);break;case 2:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addTransactionErrors(n);break;case 3:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addTransactionWarnings(n);break;case 4:n=new proto.linkahead.entity.v1.Message,e.readMessage(n,proto.linkahead.entity.v1.Message.deserializeBinaryFromReader),t.addTransactionInfos(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiTransactionResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiTransactionResponse.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getResponsesList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.TransactionResponse.serializeBinaryToWriter),(n=t.getTransactionErrorsList()).length>0&&e.writeRepeatedMessage(2,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getTransactionWarningsList()).length>0&&e.writeRepeatedMessage(3,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter),(n=t.getTransactionInfosList()).length>0&&e.writeRepeatedMessage(4,n,proto.linkahead.entity.v1.Message.serializeBinaryToWriter)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.getResponsesList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.TransactionResponse,1)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.setResponsesList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.addResponses=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.TransactionResponse,e)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.clearResponsesList=function(){return this.setResponsesList([])},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.getTransactionErrorsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,2)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.setTransactionErrorsList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.addTransactionErrors=function(t,e){return i.Message.addToRepeatedWrapperField(this,2,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.clearTransactionErrorsList=function(){return this.setTransactionErrorsList([])},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.getTransactionWarningsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,3)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.setTransactionWarningsList=function(t){return i.Message.setRepeatedWrapperField(this,3,t)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.addTransactionWarnings=function(t,e){return i.Message.addToRepeatedWrapperField(this,3,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.clearTransactionWarningsList=function(){return this.setTransactionWarningsList([])},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.getTransactionInfosList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.Message,4)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.setTransactionInfosList=function(t){return i.Message.setRepeatedWrapperField(this,4,t)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.addTransactionInfos=function(t,e){return i.Message.addToRepeatedWrapperField(this,4,t,proto.linkahead.entity.v1.Message,e)},proto.linkahead.entity.v1.MultiTransactionResponse.prototype.clearTransactionInfosList=function(){return this.setTransactionInfosList([])},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.toObject(t,this)},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.toObject=function(t,e){var n,r={idList:null==(n=i.Message.getRepeatedField(e,1))?void 0:n};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest;return proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readString();t.addId(n)}else e.skipField();return t},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.serializeBinaryToWriter=function(t,e){var n;(n=t.getIdList()).length>0&&e.writeRepeatedString(1,n)},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.getIdList=function(){return i.Message.getRepeatedField(this,1)},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.setIdList=function(t){return i.Message.setField(this,1,t||[])},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.addId=function(t,e){return i.Message.addToRepeatedField(this,1,t,e)},proto.linkahead.entity.v1.MultiRetrieveEntityACLRequest.prototype.clearIdList=function(){return this.setIdList([])},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.toObject(t,this)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.toObject=function(t,e){var n={aclsList:i.Message.toObjectList(e.getAclsList(),proto.linkahead.entity.v1.EntityACL.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse;return proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.EntityACL;e.readMessage(n,proto.linkahead.entity.v1.EntityACL.deserializeBinaryFromReader),t.addAcls(n)}else e.skipField();return t},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.serializeBinaryToWriter=function(t,e){var n;(n=t.getAclsList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.EntityACL.serializeBinaryToWriter)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.getAclsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.EntityACL,1)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.setAclsList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.addAcls=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.EntityACL,e)},proto.linkahead.entity.v1.MultiRetrieveEntityACLResponse.prototype.clearAclsList=function(){return this.setAclsList([])},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.toObject(t,this)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.toObject=function(t,e){var n={aclsList:i.Message.toObjectList(e.getAclsList(),proto.linkahead.entity.v1.EntityACL.toObject,t)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiUpdateEntityACLRequest;return proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.EntityACL;e.readMessage(n,proto.linkahead.entity.v1.EntityACL.deserializeBinaryFromReader),t.addAcls(n)}else e.skipField();return t},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.serializeBinaryToWriter=function(t,e){var n;(n=t.getAclsList()).length>0&&e.writeRepeatedMessage(1,n,proto.linkahead.entity.v1.EntityACL.serializeBinaryToWriter)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.getAclsList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.EntityACL,1)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.setAclsList=function(t){return i.Message.setRepeatedWrapperField(this,1,t)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.addAcls=function(t,e){return i.Message.addToRepeatedWrapperField(this,1,t,proto.linkahead.entity.v1.EntityACL,e)},proto.linkahead.entity.v1.MultiUpdateEntityACLRequest.prototype.clearAclsList=function(){return this.setAclsList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.toObject(t,this)},proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.toObject=function(t,e){var n={};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.MultiUpdateEntityACLResponse;return proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)e.getFieldNumber(),e.skipField();return t},proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.MultiUpdateEntityACLResponse.serializeBinaryToWriter=function(t,e){};proto.linkahead.entity.v1.EntityACL.repeatedFields_=[2],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.EntityACL.prototype.toObject=function(t){return proto.linkahead.entity.v1.EntityACL.toObject(t,this)},proto.linkahead.entity.v1.EntityACL.toObject=function(t,e){var n={id:i.Message.getFieldWithDefault(e,1,""),rulesList:i.Message.toObjectList(e.getRulesList(),proto.linkahead.entity.v1.EntityPermissionRule.toObject,t),permission:i.Message.getFieldWithDefault(e,3,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.EntityACL.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.EntityACL;return proto.linkahead.entity.v1.EntityACL.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.EntityACL.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setId(n);break;case 2:n=new proto.linkahead.entity.v1.EntityPermissionRule,e.readMessage(n,proto.linkahead.entity.v1.EntityPermissionRule.deserializeBinaryFromReader),t.addRules(n);break;case 3:n=e.readEnum(),t.setPermission(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.EntityACL.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.EntityACL.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.EntityACL.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getId()).length>0&&e.writeString(1,n),(n=t.getRulesList()).length>0&&e.writeRepeatedMessage(2,n,proto.linkahead.entity.v1.EntityPermissionRule.serializeBinaryToWriter),0!==(n=t.getPermission())&&e.writeEnum(3,n)},proto.linkahead.entity.v1.EntityACL.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.EntityACL.prototype.setId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.EntityACL.prototype.getRulesList=function(){return i.Message.getRepeatedWrapperField(this,proto.linkahead.entity.v1.EntityPermissionRule,2)},proto.linkahead.entity.v1.EntityACL.prototype.setRulesList=function(t){return i.Message.setRepeatedWrapperField(this,2,t)},proto.linkahead.entity.v1.EntityACL.prototype.addRules=function(t,e){return i.Message.addToRepeatedWrapperField(this,2,t,proto.linkahead.entity.v1.EntityPermissionRule,e)},proto.linkahead.entity.v1.EntityACL.prototype.clearRulesList=function(){return this.setRulesList([])},proto.linkahead.entity.v1.EntityACL.prototype.getPermission=function(){return i.Message.getFieldWithDefault(this,3,0)},proto.linkahead.entity.v1.EntityACL.prototype.setPermission=function(t){return i.Message.setProto3EnumField(this,3,t)},proto.linkahead.entity.v1.EntityPermissionRule.repeatedFields_=[4,5],i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.EntityPermissionRule.prototype.toObject=function(t){return proto.linkahead.entity.v1.EntityPermissionRule.toObject(t,this)},proto.linkahead.entity.v1.EntityPermissionRule.toObject=function(t,e){var n,r={role:i.Message.getFieldWithDefault(e,1,""),priority:i.Message.getBooleanFieldWithDefault(e,2,!1),grant:i.Message.getBooleanFieldWithDefault(e,3,!1),permissionsList:null==(n=i.Message.getRepeatedField(e,4))?void 0:n,capabilitiesList:null==(n=i.Message.getRepeatedField(e,5))?void 0:n};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.EntityPermissionRule.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.EntityPermissionRule;return proto.linkahead.entity.v1.EntityPermissionRule.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.EntityPermissionRule.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setRole(n);break;case 2:n=e.readBool(),t.setPriority(n);break;case 3:n=e.readBool(),t.setGrant(n);break;case 4:for(var i=e.isDelimited()?e.readPackedEnum():[e.readEnum()],r=0;r<i.length;r++)t.addPermissions(i[r]);break;case 5:for(i=e.isDelimited()?e.readPackedEnum():[e.readEnum()],r=0;r<i.length;r++)t.addCapabilities(i[r]);break;default:e.skipField()}return t},proto.linkahead.entity.v1.EntityPermissionRule.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.EntityPermissionRule.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.EntityPermissionRule.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getRole()).length>0&&e.writeString(1,n),(n=t.getPriority())&&e.writeBool(2,n),(n=t.getGrant())&&e.writeBool(3,n),(n=t.getPermissionsList()).length>0&&e.writePackedEnum(4,n),(n=t.getCapabilitiesList()).length>0&&e.writePackedEnum(5,n)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.getRole=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.EntityPermissionRule.prototype.setRole=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.getPriority=function(){return i.Message.getBooleanFieldWithDefault(this,2,!1)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.setPriority=function(t){return i.Message.setProto3BooleanField(this,2,t)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.getGrant=function(){return i.Message.getBooleanFieldWithDefault(this,3,!1)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.setGrant=function(t){return i.Message.setProto3BooleanField(this,3,t)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,4)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.setPermissionsList=function(t){return i.Message.setField(this,4,t||[])},proto.linkahead.entity.v1.EntityPermissionRule.prototype.addPermissions=function(t,e){return i.Message.addToRepeatedField(this,4,t,e)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},proto.linkahead.entity.v1.EntityPermissionRule.prototype.getCapabilitiesList=function(){return i.Message.getRepeatedField(this,5)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.setCapabilitiesList=function(t){return i.Message.setField(this,5,t||[])},proto.linkahead.entity.v1.EntityPermissionRule.prototype.addCapabilities=function(t,e){return i.Message.addToRepeatedField(this,5,t,e)},proto.linkahead.entity.v1.EntityPermissionRule.prototype.clearCapabilitiesList=function(){return this.setCapabilitiesList([])},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileChunk.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileChunk.toObject(t,this)},proto.linkahead.entity.v1.FileChunk.toObject=function(t,e){var n,i={fileTransmissionId:(n=e.getFileTransmissionId())&&proto.linkahead.entity.v1.FileTransmissionId.toObject(t,n),data:e.getData_asB64()};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.FileChunk.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileChunk;return proto.linkahead.entity.v1.FileChunk.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileChunk.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=new proto.linkahead.entity.v1.FileTransmissionId;e.readMessage(n,proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader),t.setFileTransmissionId(n);break;case 2:n=e.readBytes(),t.setData(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.FileChunk.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileChunk.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileChunk.serializeBinaryToWriter=function(t,e){var n=void 0;null!=(n=t.getFileTransmissionId())&&e.writeMessage(1,n,proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter),(n=t.getData_asU8()).length>0&&e.writeBytes(2,n)},proto.linkahead.entity.v1.FileChunk.prototype.getFileTransmissionId=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileTransmissionId,1)},proto.linkahead.entity.v1.FileChunk.prototype.setFileTransmissionId=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.FileChunk.prototype.clearFileTransmissionId=function(){return this.setFileTransmissionId(void 0)},proto.linkahead.entity.v1.FileChunk.prototype.hasFileTransmissionId=function(){return null!=i.Message.getField(this,1)},proto.linkahead.entity.v1.FileChunk.prototype.getData=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.FileChunk.prototype.getData_asB64=function(){return i.Message.bytesAsB64(this.getData())},proto.linkahead.entity.v1.FileChunk.prototype.getData_asU8=function(){return i.Message.bytesAsU8(this.getData())},proto.linkahead.entity.v1.FileChunk.prototype.setData=function(t){return i.Message.setProto3BytesField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileTransmissionId.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileTransmissionId.toObject(t,this)},proto.linkahead.entity.v1.FileTransmissionId.toObject=function(t,e){var n={registrationId:i.Message.getFieldWithDefault(e,1,""),fileId:i.Message.getFieldWithDefault(e,2,"")};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.FileTransmissionId.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileTransmissionId;return proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readString();t.setRegistrationId(n);break;case 2:n=e.readString(),t.setFileId(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.FileTransmissionId.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter=function(t,e){var n=void 0;(n=t.getRegistrationId()).length>0&&e.writeString(1,n),(n=t.getFileId()).length>0&&e.writeString(2,n)},proto.linkahead.entity.v1.FileTransmissionId.prototype.getRegistrationId=function(){return i.Message.getFieldWithDefault(this,1,"")},proto.linkahead.entity.v1.FileTransmissionId.prototype.setRegistrationId=function(t){return i.Message.setProto3StringField(this,1,t)},proto.linkahead.entity.v1.FileTransmissionId.prototype.getFileId=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.FileTransmissionId.prototype.setFileId=function(t){return i.Message.setProto3StringField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileTransmissionSettings.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileTransmissionSettings.toObject(t,this)},proto.linkahead.entity.v1.FileTransmissionSettings.toObject=function(t,e){var n={maxChunkSize:i.Message.getFieldWithDefault(e,1,0),maxFileSize:i.Message.getFieldWithDefault(e,2,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.FileTransmissionSettings.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileTransmissionSettings;return proto.linkahead.entity.v1.FileTransmissionSettings.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileTransmissionSettings.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readInt64();t.setMaxChunkSize(n);break;case 2:n=e.readInt64(),t.setMaxFileSize(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.FileTransmissionSettings.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileTransmissionSettings.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileTransmissionSettings.serializeBinaryToWriter=function(t,e){var n=void 0;0!==(n=t.getMaxChunkSize())&&e.writeInt64(1,n),0!==(n=t.getMaxFileSize())&&e.writeInt64(2,n)},proto.linkahead.entity.v1.FileTransmissionSettings.prototype.getMaxChunkSize=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.FileTransmissionSettings.prototype.setMaxChunkSize=function(t){return i.Message.setProto3IntField(this,1,t)},proto.linkahead.entity.v1.FileTransmissionSettings.prototype.getMaxFileSize=function(){return i.Message.getFieldWithDefault(this,2,0)},proto.linkahead.entity.v1.FileTransmissionSettings.prototype.setMaxFileSize=function(t){return i.Message.setProto3IntField(this,2,t)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.RegisterFileUploadRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.RegisterFileUploadRequest.toObject(t,this)},proto.linkahead.entity.v1.RegisterFileUploadRequest.toObject=function(t,e){var n={};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.RegisterFileUploadRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.RegisterFileUploadRequest;return proto.linkahead.entity.v1.RegisterFileUploadRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.RegisterFileUploadRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)e.getFieldNumber(),e.skipField();return t},proto.linkahead.entity.v1.RegisterFileUploadRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.RegisterFileUploadRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.RegisterFileUploadRequest.serializeBinaryToWriter=function(t,e){},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.RegisterFileUploadResponse.toObject(t,this)},proto.linkahead.entity.v1.RegisterFileUploadResponse.toObject=function(t,e){var n,r={status:i.Message.getFieldWithDefault(e,1,0),registrationId:i.Message.getFieldWithDefault(e,2,""),uploadSettings:(n=e.getUploadSettings())&&proto.linkahead.entity.v1.FileTransmissionSettings.toObject(t,n)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.RegisterFileUploadResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.RegisterFileUploadResponse;return proto.linkahead.entity.v1.RegisterFileUploadResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.RegisterFileUploadResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readEnum();t.setStatus(n);break;case 2:n=e.readString(),t.setRegistrationId(n);break;case 4:n=new proto.linkahead.entity.v1.FileTransmissionSettings,e.readMessage(n,proto.linkahead.entity.v1.FileTransmissionSettings.deserializeBinaryFromReader),t.setUploadSettings(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.RegisterFileUploadResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.RegisterFileUploadResponse.serializeBinaryToWriter=function(t,e){var n=void 0;0!==(n=t.getStatus())&&e.writeEnum(1,n),(n=t.getRegistrationId()).length>0&&e.writeString(2,n),null!=(n=t.getUploadSettings())&&e.writeMessage(4,n,proto.linkahead.entity.v1.FileTransmissionSettings.serializeBinaryToWriter)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.getStatus=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.setStatus=function(t){return i.Message.setProto3EnumField(this,1,t)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.getRegistrationId=function(){return i.Message.getFieldWithDefault(this,2,"")},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.setRegistrationId=function(t){return i.Message.setProto3StringField(this,2,t)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.getUploadSettings=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileTransmissionSettings,4)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.setUploadSettings=function(t){return i.Message.setWrapperField(this,4,t)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.clearUploadSettings=function(){return this.setUploadSettings(void 0)},proto.linkahead.entity.v1.RegisterFileUploadResponse.prototype.hasUploadSettings=function(){return null!=i.Message.getField(this,4)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileUploadRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileUploadRequest.toObject(t,this)},proto.linkahead.entity.v1.FileUploadRequest.toObject=function(t,e){var n,i={chunk:(n=e.getChunk())&&proto.linkahead.entity.v1.FileChunk.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.FileUploadRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileUploadRequest;return proto.linkahead.entity.v1.FileUploadRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileUploadRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.FileChunk;e.readMessage(n,proto.linkahead.entity.v1.FileChunk.deserializeBinaryFromReader),t.setChunk(n)}else e.skipField();return t},proto.linkahead.entity.v1.FileUploadRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileUploadRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileUploadRequest.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getChunk())&&e.writeMessage(1,n,proto.linkahead.entity.v1.FileChunk.serializeBinaryToWriter)},proto.linkahead.entity.v1.FileUploadRequest.prototype.getChunk=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileChunk,1)},proto.linkahead.entity.v1.FileUploadRequest.prototype.setChunk=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.FileUploadRequest.prototype.clearChunk=function(){return this.setChunk(void 0)},proto.linkahead.entity.v1.FileUploadRequest.prototype.hasChunk=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileUploadResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileUploadResponse.toObject(t,this)},proto.linkahead.entity.v1.FileUploadResponse.toObject=function(t,e){var n={status:i.Message.getFieldWithDefault(e,1,0)};return t&&(n.$jspbMessageInstance=e),n}),proto.linkahead.entity.v1.FileUploadResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileUploadResponse;return proto.linkahead.entity.v1.FileUploadResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileUploadResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=e.readEnum();t.setStatus(n)}else e.skipField();return t},proto.linkahead.entity.v1.FileUploadResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileUploadResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileUploadResponse.serializeBinaryToWriter=function(t,e){var n;0!==(n=t.getStatus())&&e.writeEnum(1,n)},proto.linkahead.entity.v1.FileUploadResponse.prototype.getStatus=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.FileUploadResponse.prototype.setStatus=function(t){return i.Message.setProto3EnumField(this,1,t)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileDownloadRequest.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileDownloadRequest.toObject(t,this)},proto.linkahead.entity.v1.FileDownloadRequest.toObject=function(t,e){var n,i={fileTransmissionId:(n=e.getFileTransmissionId())&&proto.linkahead.entity.v1.FileTransmissionId.toObject(t,n)};return t&&(i.$jspbMessageInstance=e),i}),proto.linkahead.entity.v1.FileDownloadRequest.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileDownloadRequest;return proto.linkahead.entity.v1.FileDownloadRequest.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileDownloadRequest.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)if(1===e.getFieldNumber()){var n=new proto.linkahead.entity.v1.FileTransmissionId;e.readMessage(n,proto.linkahead.entity.v1.FileTransmissionId.deserializeBinaryFromReader),t.setFileTransmissionId(n)}else e.skipField();return t},proto.linkahead.entity.v1.FileDownloadRequest.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileDownloadRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileDownloadRequest.serializeBinaryToWriter=function(t,e){var n;null!=(n=t.getFileTransmissionId())&&e.writeMessage(1,n,proto.linkahead.entity.v1.FileTransmissionId.serializeBinaryToWriter)},proto.linkahead.entity.v1.FileDownloadRequest.prototype.getFileTransmissionId=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileTransmissionId,1)},proto.linkahead.entity.v1.FileDownloadRequest.prototype.setFileTransmissionId=function(t){return i.Message.setWrapperField(this,1,t)},proto.linkahead.entity.v1.FileDownloadRequest.prototype.clearFileTransmissionId=function(){return this.setFileTransmissionId(void 0)},proto.linkahead.entity.v1.FileDownloadRequest.prototype.hasFileTransmissionId=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(proto.linkahead.entity.v1.FileDownloadResponse.prototype.toObject=function(t){return proto.linkahead.entity.v1.FileDownloadResponse.toObject(t,this)},proto.linkahead.entity.v1.FileDownloadResponse.toObject=function(t,e){var n,r={status:i.Message.getFieldWithDefault(e,1,0),chunk:(n=e.getChunk())&&proto.linkahead.entity.v1.FileChunk.toObject(t,n)};return t&&(r.$jspbMessageInstance=e),r}),proto.linkahead.entity.v1.FileDownloadResponse.deserializeBinary=function(t){var e=new i.BinaryReader(t),n=new proto.linkahead.entity.v1.FileDownloadResponse;return proto.linkahead.entity.v1.FileDownloadResponse.deserializeBinaryFromReader(n,e)},proto.linkahead.entity.v1.FileDownloadResponse.deserializeBinaryFromReader=function(t,e){for(;e.nextField()&&!e.isEndGroup();)switch(e.getFieldNumber()){case 1:var n=e.readEnum();t.setStatus(n);break;case 2:n=new proto.linkahead.entity.v1.FileChunk,e.readMessage(n,proto.linkahead.entity.v1.FileChunk.deserializeBinaryFromReader),t.setChunk(n);break;default:e.skipField()}return t},proto.linkahead.entity.v1.FileDownloadResponse.prototype.serializeBinary=function(){var t=new i.BinaryWriter;return proto.linkahead.entity.v1.FileDownloadResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.linkahead.entity.v1.FileDownloadResponse.serializeBinaryToWriter=function(t,e){var n=void 0;0!==(n=t.getStatus())&&e.writeEnum(1,n),null!=(n=t.getChunk())&&e.writeMessage(2,n,proto.linkahead.entity.v1.FileChunk.serializeBinaryToWriter)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.getStatus=function(){return i.Message.getFieldWithDefault(this,1,0)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.setStatus=function(t){return i.Message.setProto3EnumField(this,1,t)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.getChunk=function(){return i.Message.getWrapperField(this,proto.linkahead.entity.v1.FileChunk,2)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.setChunk=function(t){return i.Message.setWrapperField(this,2,t)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.clearChunk=function(){return this.setChunk(void 0)},proto.linkahead.entity.v1.FileDownloadResponse.prototype.hasChunk=function(){return null!=i.Message.getField(this,2)},proto.linkahead.entity.v1.AtomicDataType={ATOMIC_DATA_TYPE_UNSPECIFIED:0,ATOMIC_DATA_TYPE_TEXT:1,ATOMIC_DATA_TYPE_DOUBLE:2,ATOMIC_DATA_TYPE_DATETIME:3,ATOMIC_DATA_TYPE_INTEGER:4,ATOMIC_DATA_TYPE_BOOLEAN:5},proto.linkahead.entity.v1.SpecialValue={SPECIAL_VALUE_UNSPECIFIED:0,SPECIAL_VALUE_EMPTY_STRING:1},proto.linkahead.entity.v1.EntityRole={ENTITY_ROLE_UNSPECIFIED:0,ENTITY_ROLE_RECORD_TYPE:1,ENTITY_ROLE_RECORD:2,ENTITY_ROLE_PROPERTY:3,ENTITY_ROLE_FILE:4},proto.linkahead.entity.v1.MessageCode={MESSAGE_CODE_UNSPECIFIED:0,MESSAGE_CODE_UNKNOWN:1,MESSAGE_CODE_ENTITY_DOES_NOT_EXIST:2,MESSAGE_CODE_ENTITY_HAS_NO_PROPERTIES:3,MESSAGE_CODE_ENTITY_HAS_BEEN_DELETED_SUCCESSFULLY:4,MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_PROPERTIES:5,MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_PARENTS:6,MESSAGE_CODE_ENTITY_HAS_NO_ID:7,MESSAGE_CODE_REQUIRED_BY_PERSISTENT_ENTITY:8,MESSAGE_CODE_PROPERTY_HAS_NO_DATA_TYPE:9,MESSAGE_CODE_ENTITY_HAS_NO_DESCRIPTION:10,MESSAGE_CODE_ENTITY_HAS_NO_NAME:11,MESSAGE_CODE_OBLIGATORY_PROPERTY_MISSING:12,MESSAGE_CODE_ENTITY_HAS_NO_PARENTS:13,MESSAGE_CODE_FILE_HAS_NO_TARGET_PATH:14,MESSAGE_CODE_TARGET_PATH_NOT_ALLOWED:15,MESSAGE_CODE_TARGET_PATH_EXISTS:16,MESSAGE_CODE_PROPERTY_HAS_NO_UNIT:17,MESSAGE_CODE_CANNOT_PARSE_VALUE:18,MESSAGE_CODE_CHECKSUM_TEST_FAILED:19,MESSAGE_CODE_SIZE_TEST_FAILED:20,MESSAGE_CODE_CANNOT_CREATE_PARENT_FOLDER:21,MESSAGE_CODE_FILE_HAS_NOT_BEEN_UPLOAED:22,MESSAGE_CODE_CANNOT_MOVE_FILE_TO_TARGET_PATH:23,MESSAGE_CODE_CANNOT_PARSE_DATETIME_VALUE:24,MESSAGE_CODE_CANNOT_PARSE_DOUBLE_VALUE:25,MESSAGE_CODE_CANNOT_PARSE_INT_VALUE:26,MESSAGE_CODE_CANNOT_PARSE_BOOL_VALUE:27,MESSAGE_CODE_FILE_NOT_FOUND:28,MESSAGE_CODE_WARNING_OCCURED:29,MESSAGE_CODE_ENTITY_NAME_IS_NOT_UNIQUE:30,MESSAGE_CODE_QUERY_EXCEPTION:31,MESSAGE_CODE_TRANSACTION_ROLL_BACK:32,MESSAGE_CODE_UNKNOWN_UNIT:34,MESSAGE_CODE_AUTHORIZATION_ERROR:35,MESSAGE_CODE_REFERENCE_IS_NOT_ALLOWED_BY_DATA_TYPE:36,MESSAGE_CODE_ENTITY_NAME_DUPLICATES:37,MESSAGE_CODE_DATA_TYPE_NAME_DUPLICATES:38,MESSAGE_CODE_ENTITY_HAS_NO_NAME_OR_ID:39,MESSAGE_CODE_AFFILIATION_ERROR:40,MESSAGE_CODE_QUERY_PARSING_ERROR:41,MESSAGE_CODE_NAME_PROPERTIES_MUST_BE_TEXT:42,MESSAGE_CODE_PARENT_DUPLICATES_WARNING:43,MESSAGE_CODE_PARENT_DUPLICATES_ERROR:44,MESSAGE_CODE_ATOMICITY_ERROR:45,MESSAGE_CODE_NO_SUCH_ENTITY_ROLE:46,MESSAGE_CODE_REQUIRED_BY_UNQUALIFIED:47,MESSAGE_CODE_ENTITY_HAS_UNQUALIFIED_REFERENCE:48,MESSAGE_CODE_REFERENCED_ENTITY_DOES_NOT_EXIST:49,MESSAGE_CODE_REFERENCE_NAME_DUPLICATES:50,MESSAGE_CODE_DATA_TYPE_INHERITANCE_AMBIGUOUS:51,MESSAGE_CODE_DATA_TYPE_DOES_NOT_ACCEPT_COLLECTION_VALUES:52,MESSAGE_CODE_CANNOT_PARSE_UNIT:53,MESSAGE_CODE_ADDITIONAL_PROPERTY:54,MESSAGE_CODE_PROPERTY_WITH_DATA_TYPE_OVERRIDE:55,MESSAGE_CODE_PROPERTY_WITH_DESCRIPTION_OVERRIDE:56,MESSAGE_CODE_PROPERTY_WITH_NAME_OVERRIDE:57,MESSAGE_CODE_INTEGER_VALUE_OUT_OF_RANGE:58,MESSAGE_CODE_INTEGRITY_VIOLATION:59,MESSAGE_CODE_NONPROPERTY_WITH_VALUE:60},proto.linkahead.entity.v1.Importance={IMPORTANCE_UNSPECIFIED:0,IMPORTANCE_OBLIGATORY:1,IMPORTANCE_RECOMMENDED:2,IMPORTANCE_SUGGESTED:3,IMPORTANCE_FIX:4},proto.linkahead.entity.v1.EntityAclPermission={ENTITY_ACL_PERMISSION_UNSPECIFIED:0,ENTITY_ACL_PERMISSION_EDIT_ACL:1,ENTITY_ACL_PERMISSION_EDIT_PRIORITY_ACL:2},proto.linkahead.entity.v1.EntityPermissionRuleCapability={ENTITY_PERMISSION_RULE_CAPABILITY_UNSPECIFIED:0,ENTITY_PERMISSION_RULE_CAPABILITY_DELETE:1},proto.linkahead.entity.v1.EntityPermission={ENTITY_PERMISSION_UNSPECIFIED:0,ENTITY_PERMISSION_RETRIEVE_ENTITY:1,ENTITY_PERMISSION_RETRIEVE_ACL:2,ENTITY_PERMISSION_RETRIEVE_HISTORY:3,ENTITY_PERMISSION_RETRIEVE_OWNER:4,ENTITY_PERMISSION_RETRIEVE_FILE:5,ENTITY_PERMISSION_DELETE:6,ENTITY_PERMISSION_EDIT_ACL:7,ENTITY_PERMISSION_UPDATE_DESCRIPTION:8,ENTITY_PERMISSION_UPDATE_VALUE:9,ENTITY_PERMISSION_UPDATE_ROLE:10,ENTITY_PERMISSION_UPDATE_REMOVE_PARENT:11,ENTITY_PERMISSION_UPDATE_ADD_PARENT:12,ENTITY_PERMISSION_UPDATE_REMOVE_PROPERTY:13,ENTITY_PERMISSION_UPDATE_ADD_PROPERTY:14,ENTITY_PERMISSION_UPDATE_NAME:15,ENTITY_PERMISSION_UPDATE_DATA_TYPE:16,ENTITY_PERMISSION_UPDATE_REMOVE_FILE:17,ENTITY_PERMISSION_UPDATE_ADD_FILE:18,ENTITY_PERMISSION_UPDATE_MOVE_FILE:19,ENTITY_PERMISSION_USE_AS_REFERENCE:20,ENTITY_PERMISSION_USE_AS_PROPERTY:21,ENTITY_PERMISSION_USE_AS_PARENT:22,ENTITY_PERMISSION_USE_AS_DATA_TYPE:23,ENTITY_PERMISSION_UPDATE_QUERY_TEMPLATE_DEFINITION:24},proto.linkahead.entity.v1.RegistrationStatus={REGISTRATION_STATUS_UNSPECIFIED:0,REGISTRATION_STATUS_ACCEPTED:1,REGISTRATION_STATUS_REJECTED:2},proto.linkahead.entity.v1.TransmissionStatus={TRANSMISSION_STATUS_UNSPECIFIED:0,TRANSMISSION_STATUS_SUCCESS:1,TRANSMISSION_STATUS_ERROR:2,TRANSMISSION_STATUS_GO_ON:3},r.object.extend(e,proto.linkahead.entity.v1)},339(t,e,n){var i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},r="undefined"!=typeof window&&window===this?this:void 0!==n.g&&null!=n.g?n.g:this;function o(){o=function(){},r.Symbol||(r.Symbol=l)}function a(t,e){this.a=t,i(this,"description",{configurable:!0,writable:!0,value:e})}a.prototype.toString=function(){return this.a};var s,l=(s=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(e||"")+"_"+s++,e)});function u(){o();var t=r.Symbol.iterator;t||(t=r.Symbol.iterator=r.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&i(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return u(),(t={next:t})[r.Symbol.iterator]=function(){return this},t}(function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}(this))}}),u=function(){}}!function(t,e){if(e){var n=r;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in n||(n[a]={}),n=n[a]}(e=e(o=n[t=t[t.length-1]]))!=o&&null!=e&&i(n,t,{configurable:!0,writable:!0,value:e})}}("Array.prototype.entries",function(t){return t||function(){return function(t,e){u(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var r=n++;return{value:e(r,t[r]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i}(this,function(t,e){return[t,e]})}});var h=this||self;function c(t,e,n){t=t.split("."),n=n||h,t[0]in n||void 0===n.execScript||n.execScript("var "+t[0]);for(var i;t.length&&(i=t.shift());)t.length||void 0===e?n=n[i]&&n[i]!==Object.prototype[i]?n[i]:n[i]={}:n[i]=e}function p(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function d(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var f="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),y=Array.prototype.forEach?function(t,e){Array.prototype.forEach.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)r in i&&e.call(void 0,i[r],r,t)},g=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),r="string"==typeof t?t.split(""):t,o=0;o<n;o++)o in r&&(i[o]=e.call(void 0,r[o],o,t));return i};function v(t,e,n){return 2>=arguments.length?Array.prototype.slice.call(t,e):Array.prototype.slice.call(t,e,n)}function m(t,e,n,i){var r="Assertion failed";if(n){r+=": "+n;var o=i}else t&&(r+=": "+t,o=e);throw Error(r,o||[])}function _(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];return t||m("",null,e,i),t}function b(t,e){for(var n=[],i=1;i<arguments.length;++i)n[i-1]=arguments[i];throw Error("Failure"+(t?": "+t:""),n)}function w(t,e,n,i){for(var r=[],o=3;o<arguments.length;++o)r[o-3]=arguments[o];t instanceof e||m("Expected instanceof %s but got %s.",[E(e),E(t)],n,r)}function E(t){return t instanceof Function?t.displayName||t.name||"unknown type name":t instanceof Object?t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t):null===t?"null":typeof t}function k(t,e){if(this.c=t,this.b=e,this.a={},this.arrClean=!0,0<this.c.length){for(t=0;t<this.c.length;t++){var n=(e=this.c[t])[0];this.a[n.toString()]=new S(n,e[1])}this.arrClean=!0}}function A(t){this.a=0,this.b=t}function M(t,e){return t.b?(e.a||(e.a=new t.b(e.value)),e.a):e.value}function C(t){t=t.a;var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}function S(t,e){this.key=t,this.value=e,this.a=void 0}function R(t){if(8192>=t.length)return String.fromCharCode.apply(null,t);for(var e="",n=0;n<t.length;n+=8192)e+=String.fromCharCode.apply(null,v(t,n,n+8192));return e}c("jspb.Map",k,void 0),k.prototype.g=function(){if(this.arrClean){if(this.b){var t,e=this.a;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t].a;n&&n.g()}}}else{for(this.c.length=0,(e=C(this)).sort(),t=0;t<e.length;t++){var i=this.a[e[t]];(n=i.a)&&n.g(),this.c.push([i.key,i.value])}this.arrClean=!0}return this.c},k.prototype.toArray=k.prototype.g,k.prototype.Mc=function(t,e){for(var n=this.g(),i=[],r=0;r<n.length;r++){var o=this.a[n[r][0].toString()];M(this,o);var a=o.a;a?(_(e),i.push([o.key,e(t,a)])):i.push([o.key,o.value])}return i},k.prototype.toObject=k.prototype.Mc,k.fromObject=function(t,e,n){e=new k([],e);for(var i=0;i<t.length;i++){var r=t[i][0],o=n(t[i][1]);e.set(r,o)}return e},A.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(A.prototype[Symbol.iterator]=function(){return this}),k.prototype.Jb=function(){return C(this).length},k.prototype.getLength=k.prototype.Jb,k.prototype.clear=function(){this.a={},this.arrClean=!1},k.prototype.clear=k.prototype.clear,k.prototype.Cb=function(t){t=t.toString();var e=this.a.hasOwnProperty(t);return delete this.a[t],this.arrClean=!1,e},k.prototype.del=k.prototype.Cb,k.prototype.Eb=function(){var t=[],e=C(this);e.sort();for(var n=0;n<e.length;n++){var i=this.a[e[n]];t.push([i.key,i.value])}return t},k.prototype.getEntryList=k.prototype.Eb,k.prototype.entries=function(){var t=[],e=C(this);e.sort();for(var n=0;n<e.length;n++){var i=this.a[e[n]];t.push([i.key,M(this,i)])}return new A(t)},k.prototype.entries=k.prototype.entries,k.prototype.keys=function(){var t=[],e=C(this);e.sort();for(var n=0;n<e.length;n++)t.push(this.a[e[n]].key);return new A(t)},k.prototype.keys=k.prototype.keys,k.prototype.values=function(){var t=[],e=C(this);e.sort();for(var n=0;n<e.length;n++)t.push(M(this,this.a[e[n]]));return new A(t)},k.prototype.values=k.prototype.values,k.prototype.forEach=function(t,e){var n=C(this);n.sort();for(var i=0;i<n.length;i++){var r=this.a[n[i]];t.call(e,M(this,r),r.key,this)}},k.prototype.forEach=k.prototype.forEach,k.prototype.set=function(t,e){var n=new S(t);return this.b?(n.a=e,n.value=e.g()):n.value=e,this.a[t.toString()]=n,this.arrClean=!1,this},k.prototype.set=k.prototype.set,k.prototype.get=function(t){if(t=this.a[t.toString()])return M(this,t)},k.prototype.get=k.prototype.get,k.prototype.has=function(t){return t.toString()in this.a},k.prototype.has=k.prototype.has,k.prototype.Jc=function(t,e,n,i,r){var o=C(this);o.sort();for(var a=0;a<o.length;a++){var s=this.a[o[a]];e.Va(t),n.call(e,1,s.key),this.b?i.call(e,2,M(this,s),r):i.call(e,2,s.value),e.Ya()}},k.prototype.serializeBinary=k.prototype.Jc,k.deserializeBinary=function(t,e,n,i,r,o,a){for(;e.oa()&&!e.bb();){var s=e.c;1==s?o=n.call(e):2==s&&(t.b?(_(r),a||(a=new t.b),i.call(e,a,r)):a=i.call(e))}_(null!=o),_(null!=a),t.set(o,a)};var x={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},T={"'":"\\'"},P={},L=null;function B(t,e){void 0===e&&(e=0),F(),e=P[e];for(var n=[],i=0;i<t.length;i+=3){var r=t[i],o=i+1<t.length,a=o?t[i+1]:0,s=i+2<t.length,l=s?t[i+2]:0,u=r>>2;r=(3&r)<<4|a>>4,a=(15&a)<<2|l>>6,l&=63,s||(l=64,o||(a=64)),n.push(e[u],e[r],e[a]||"",e[l]||"")}return n.join("")}function I(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):-1!="=.".indexOf(t[e-1])&&(n=-1!="=.".indexOf(t[e-2])?n-2:n-1);var i=new Uint8Array(n),r=0;return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=L[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}F();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;e(r<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){i[r++]=t}),i.subarray(0,r)}function F(){if(!L){L={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var i=t.concat(e[n].split(""));P[n]=i;for(var r=0;r<i.length;r++){var o=i[r];void 0===L[o]&&(L[o]=r)}}}}c("jspb.ConstBinaryMessage",function(){},void 0),c("jspb.BinaryMessage",function(){},void 0),c("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),c("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),c("jspb.BinaryConstants.FieldTypeToWireType",function(t){switch(t){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),c("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),c("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),c("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),c("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),c("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),c("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),c("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),c("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),c("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),c("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),c("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),c("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),c("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),c("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),c("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var O=0,D=0;function z(t){var e=t>>>0;t=Math.floor((t-e)/4294967296)>>>0,O=e,D=t}function N(t){var e=0>t,n=(t=Math.abs(t))>>>0;t=Math.floor((t-n)/4294967296),t>>>=0,e&&(t=~t>>>0,4294967295<(n=(~n>>>0)+1)&&(n=0,4294967295<++t&&(t=0))),O=n,D=t}function j(t){var e=0>t;z(t=2*Math.abs(t)),t=O;var n=D;e&&(0==t?0==n?n=t=4294967295:(n--,t=4294967295):t--),O=t,D=n}function G(t){var e=0>t?1:0;if(0===(t=e?-t:t))0<1/t?O=D=0:(D=0,O=2147483648);else if(isNaN(t))D=0,O=2147483647;else if(34028234663852886e22<t)D=0,O=(e<<31|2139095040)>>>0;else if(11754943508222875e-54>t)t=Math.round(t/Math.pow(2,-149)),D=0,O=(e<<31|t)>>>0;else{var n=Math.floor(Math.log(t)/Math.LN2);t*=Math.pow(2,-n),16777216<=(t=Math.round(8388608*t))&&++n,D=0,O=(e<<31|n+127<<23|8388607&t)>>>0}}function U(t){var e=0>t?1:0;if(0===(t=e?-t:t))D=0<1/t?0:2147483648,O=0;else if(isNaN(t))D=2147483647,O=4294967295;else if(17976931348623157e292<t)D=(e<<31|2146435072)>>>0,O=0;else if(22250738585072014e-324>t)t/=Math.pow(2,-1074),D=(e<<31|t/4294967296)>>>0,O=t>>>0;else{var n=t,i=0;if(2<=n)for(;2<=n&&1023>i;)i++,n/=2;else for(;1>n&&-1022<i;)n*=2,i--;t*=Math.pow(2,-i),D=(e<<31|i+1023<<20|1048576*t&1048575)>>>0,O=4503599627370496*t>>>0}}function W(t){var e=t.charCodeAt(4),n=t.charCodeAt(5),i=t.charCodeAt(6),r=t.charCodeAt(7);O=t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)>>>0,D=e+(n<<8)+(i<<16)+(r<<24)>>>0}function q(t,e){return 4294967296*e+(t>>>0)}function V(t,e){var n=2147483648&e;return n&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=q(t,e),n?-t:t}function H(t,e,n){var i=e>>31;return n(t<<1^i,(e<<1|t>>>31)^i)}function Z(t,e){return Y(t,e,V)}function Y(t,e,n){var i=-(1&t);return n((t>>>1|e<<31)^i,e>>>1^i)}function Q(t){var e=2*(t>>31)+1,n=t>>>23&255;return t&=8388607,255==n?t?NaN:1/0*e:0==n?e*Math.pow(2,-149)*t:e*Math.pow(2,n-150)*(t+Math.pow(2,23))}function $(t,e){var n=2*(e>>31)+1,i=e>>>20&2047;return t=4294967296*(1048575&e)+t,2047==i?t?NaN:1/0*n:0==i?n*Math.pow(2,-1074)*t:n*Math.pow(2,i-1075)*(t+4503599627370496)}function X(t,e){return String.fromCharCode(t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255,e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255)}function J(t,e){function n(t,e){return t=t?String(t):"",e?"0000000".slice(t.length)+t:t}if(2097151>=e)return""+q(t,e);var i=(t>>>24|e<<8)>>>0&16777215;return t=(16777215&t)+6777216*i+6710656*(e=e>>16&65535),i+=8147497*e,e*=2,1e7<=t&&(i+=Math.floor(t/1e7),t%=1e7),1e7<=i&&(e+=Math.floor(i/1e7),i%=1e7),n(e,0)+n(i,e)+n(t,1)}function K(t,e){var n=2147483648&e;return n&&(e=~e+(0==(t=1+~t>>>0)?1:0)>>>0),t=J(t,e),n?"-"+t:t}function tt(t,e){W(t),t=O;var n=D;return e?K(t,n):J(t,n)}function et(t){function e(t,e){for(var n=0;8>n&&(1!==t||0<e);n++)e=t*i[n]+e,i[n]=255&e,e>>>=8}_(0<t.length);var n=!1;"-"===t[0]&&(n=!0,t=t.slice(1));for(var i=[0,0,0,0,0,0,0,0],r=0;r<t.length;r++)e(10,t.charCodeAt(r)-48);return n&&(function(){for(var t=0;8>t;t++)i[t]=255&~i[t]}(),e(1,1)),R(i)}function nt(t){return String.fromCharCode(10>t?48+t:87+t)}function it(t){return 97<=t?t-97+10:t-48}function rt(t,e,n,i,r){var o=0;if(128>i)for(;e<n&&t[e++]==i;)o++,e+=r;else for(;e<n;){for(var a=i;128<a;){if(t[e++]!=(127&a|128))return o;a>>=7}if(t[e++]!=a)break;o++,e+=r}return o}function ot(t){return t.constructor===Uint8Array?t:t.constructor===ArrayBuffer||t.constructor===Array?new Uint8Array(t):t.constructor===String?I(t):t instanceof Uint8Array?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):(b("Type not convertible to Uint8Array."),new Uint8Array(0))}function at(t,e,n){this.b=null,this.a=this.c=this.h=0,this.v=!1,t&&this.H(t,e,n)}c("jspb.utils.getSplit64Low",function(){return O},void 0),c("jspb.utils.getSplit64High",function(){return D},void 0),c("jspb.utils.splitUint64",z,void 0),c("jspb.utils.splitInt64",N,void 0),c("jspb.utils.splitZigzag64",j,void 0),c("jspb.utils.splitFloat32",G,void 0),c("jspb.utils.splitFloat64",U,void 0),c("jspb.utils.splitHash64",W,void 0),c("jspb.utils.joinUint64",q,void 0),c("jspb.utils.joinInt64",V,void 0),c("jspb.utils.toZigzag64",H,void 0),c("jspb.utils.joinZigzag64",Z,void 0),c("jspb.utils.fromZigzag64",Y,void 0),c("jspb.utils.joinFloat32",Q,void 0),c("jspb.utils.joinFloat64",$,void 0),c("jspb.utils.joinHash64",X,void 0),c("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),c("jspb.utils.joinUnsignedDecimalString",J,void 0),c("jspb.utils.joinSignedDecimalString",K,void 0),c("jspb.utils.hash64ToDecimalString",tt,void 0),c("jspb.utils.hash64ArrayToDecimalStrings",function(t,e){for(var n=Array(t.length),i=0;i<t.length;i++)n[i]=tt(t[i],e);return n},void 0),c("jspb.utils.decimalStringToHash64",et,void 0),c("jspb.utils.splitDecimalString",function(t){W(et(t))},void 0),c("jspb.utils.hash64ToHexString",function(t){var e=Array(18);e[0]="0",e[1]="x";for(var n=0;8>n;n++){var i=t.charCodeAt(7-n);e[2*n+2]=nt(i>>4),e[2*n+3]=nt(15&i)}return e.join("")},void 0),c("jspb.utils.hexStringToHash64",function(t){_(18==(t=t.toLowerCase()).length),_("0"==t[0]),_("x"==t[1]);for(var e="",n=0;8>n;n++)e=String.fromCharCode(16*it(t.charCodeAt(2*n+2))+it(t.charCodeAt(2*n+3)))+e;return e},void 0),c("jspb.utils.hash64ToNumber",function(t,e){W(t),t=O;var n=D;return e?V(t,n):q(t,n)},void 0),c("jspb.utils.numberToHash64",function(t){return N(t),X(O,D)},void 0),c("jspb.utils.countVarints",function(t,e,n){for(var i=0,r=e;r<n;r++)i+=t[r]>>7;return n-e-i},void 0),c("jspb.utils.countVarintFields",function(t,e,n,i){var r=0;if(128>(i*=8))for(;e<n&&t[e++]==i;)for(r++;;){var o=t[e++];if(!(128&o))break}else for(;e<n;){for(o=i;128<o;){if(t[e]!=(127&o|128))return r;e++,o>>=7}if(t[e++]!=o)break;for(r++;128&(o=t[e++]););}return r},void 0),c("jspb.utils.countFixed32Fields",function(t,e,n,i){return rt(t,e,n,8*i+5,4)},void 0),c("jspb.utils.countFixed64Fields",function(t,e,n,i){return rt(t,e,n,8*i+1,8)},void 0),c("jspb.utils.countDelimitedFields",function(t,e,n,i){var r=0;for(i=8*i+2;e<n;){for(var o=i;128<o;){if(t[e++]!=(127&o|128))return r;o>>=7}if(t[e++]!=o)break;r++;for(var a=0,s=1;a+=(127&(o=t[e++]))*s,s*=128,128&o;);e+=a}return r},void 0),c("jspb.utils.debugBytesToTextFormat",function(t){var e='"';if(t){t=ot(t);for(var n=0;n<t.length;n++)e+="\\x",16>t[n]&&(e+="0"),e+=t[n].toString(16)}return e+'"'},void 0),c("jspb.utils.debugScalarToTextFormat",function(t){if("string"==typeof t){t=String(t);for(var e=['"'],n=0;n<t.length;n++){var i,r=t.charAt(n),o=r.charCodeAt(0),a=n+1;(i=x[r])||(31<o&&127>o||((o=r)in T?r=T[o]:o in x?r=T[o]=x[o]:(31<(i=o.charCodeAt(0))&&127>i?r=o:(256>i?(r="\\x",(16>i||256<i)&&(r+="0")):(r="\\u",4096>i&&(r+="0")),r+=i.toString(16).toUpperCase()),r=T[o]=r)),i=r),e[a]=i}e.push('"'),t=e.join("")}else t=t.toString();return t},void 0),c("jspb.utils.stringToByteArray",function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var i=t.charCodeAt(n);if(255<i)throw Error("Conversion error: string contains codepoint outside of byte range");e[n]=i}return e},void 0),c("jspb.utils.byteSourceToUint8Array",ot,void 0),c("jspb.BinaryDecoder",at,void 0);var st=[];function lt(t,e,n){if(st.length){var i=st.pop();return t&&i.H(t,e,n),i}return new at(t,e,n)}function ut(t,e,n){this.a=lt(t,e,n),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}at.getInstanceCacheLength=function(){return st.length},at.alloc=lt,at.prototype.Ca=function(){this.clear(),100>st.length&&st.push(this)},at.prototype.free=at.prototype.Ca,at.prototype.clone=function(){return lt(this.b,this.h,this.c-this.h)},at.prototype.clone=at.prototype.clone,at.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},at.prototype.clear=at.prototype.clear,at.prototype.Y=function(){return this.b},at.prototype.getBuffer=at.prototype.Y,at.prototype.H=function(t,e,n){this.b=ot(t),this.h=void 0!==e?e:0,this.c=void 0!==n?this.h+n:this.b.length,this.a=this.h},at.prototype.setBlock=at.prototype.H,at.prototype.Db=function(){return this.c},at.prototype.getEnd=at.prototype.Db,at.prototype.setEnd=function(t){this.c=t},at.prototype.setEnd=at.prototype.setEnd,at.prototype.reset=function(){this.a=this.h},at.prototype.reset=at.prototype.reset,at.prototype.B=function(){return this.a},at.prototype.getCursor=at.prototype.B,at.prototype.Ma=function(t){this.a=t},at.prototype.setCursor=at.prototype.Ma,at.prototype.advance=function(t){this.a+=t,_(this.a<=this.c)},at.prototype.advance=at.prototype.advance,at.prototype.ya=function(){return this.a==this.c},at.prototype.atEnd=at.prototype.ya,at.prototype.Qb=function(){return this.a>this.c},at.prototype.pastEnd=at.prototype.Qb,at.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},at.prototype.getError=at.prototype.getError,at.prototype.w=function(t){for(var e=128,n=0,i=0,r=0;4>r&&128<=e;r++)n|=(127&(e=this.b[this.a++]))<<7*r;if(128<=e&&(n|=(127&(e=this.b[this.a++]))<<28,i|=(127&e)>>4),128<=e)for(r=0;5>r&&128<=e;r++)i|=(127&(e=this.b[this.a++]))<<7*r+3;if(128>e)return t(n>>>0,i>>>0);b("Failed to read varint, encoding is invalid."),this.v=!0},at.prototype.readSplitVarint64=at.prototype.w,at.prototype.ea=function(t){return this.w(function(e,n){return Y(e,n,t)})},at.prototype.readSplitZigzagVarint64=at.prototype.ea,at.prototype.ta=function(t){var e=this.b,n=this.a;this.a+=8;for(var i=0,r=0,o=n+7;o>=n;o--)i=i<<8|e[o],r=r<<8|e[o+4];return t(i,r)},at.prototype.readSplitFixed64=at.prototype.ta,at.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},at.prototype.skipVarint=at.prototype.kb,at.prototype.mb=function(t){for(;128<t;)this.a--,t>>>=7;this.a--},at.prototype.unskipVarint=at.prototype.mb,at.prototype.o=function(){var t=this.b,e=t[this.a],n=127&e;return 128>e?(this.a+=1,_(this.a<=this.c),n):(n|=(127&(e=t[this.a+1]))<<7,128>e?(this.a+=2,_(this.a<=this.c),n):(n|=(127&(e=t[this.a+2]))<<14,128>e?(this.a+=3,_(this.a<=this.c),n):(n|=(127&(e=t[this.a+3]))<<21,128>e?(this.a+=4,_(this.a<=this.c),n):(n|=(15&(e=t[this.a+4]))<<28,128>e?(this.a+=5,_(this.a<=this.c),n>>>0):(this.a+=5,128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&128<=t[this.a++]&&_(!1),_(this.a<=this.c),n)))))},at.prototype.readUnsignedVarint32=at.prototype.o,at.prototype.da=function(){return~~this.o()},at.prototype.readSignedVarint32=at.prototype.da,at.prototype.O=function(){return this.o().toString()},at.prototype.Ea=function(){return this.da().toString()},at.prototype.readSignedVarint32String=at.prototype.Ea,at.prototype.Ia=function(){var t=this.o();return t>>>1^-(1&t)},at.prototype.readZigzagVarint32=at.prototype.Ia,at.prototype.Ga=function(){return this.w(q)},at.prototype.readUnsignedVarint64=at.prototype.Ga,at.prototype.Ha=function(){return this.w(J)},at.prototype.readUnsignedVarint64String=at.prototype.Ha,at.prototype.sa=function(){return this.w(V)},at.prototype.readSignedVarint64=at.prototype.sa,at.prototype.Fa=function(){return this.w(K)},at.prototype.readSignedVarint64String=at.prototype.Fa,at.prototype.Ja=function(){return this.w(Z)},at.prototype.readZigzagVarint64=at.prototype.Ja,at.prototype.fb=function(){return this.ea(X)},at.prototype.readZigzagVarintHash64=at.prototype.fb,at.prototype.Ka=function(){return this.ea(K)},at.prototype.readZigzagVarint64String=at.prototype.Ka,at.prototype.Gc=function(){var t=this.b[this.a];return this.a+=1,_(this.a<=this.c),t},at.prototype.readUint8=at.prototype.Gc,at.prototype.Ec=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),t|e<<8},at.prototype.readUint16=at.prototype.Ec,at.prototype.m=function(){var t=this.b[this.a],e=this.b[this.a+1],n=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),(t|e<<8|n<<16|i<<24)>>>0},at.prototype.readUint32=at.prototype.m,at.prototype.ga=function(){return q(this.m(),this.m())},at.prototype.readUint64=at.prototype.ga,at.prototype.ha=function(){return J(this.m(),this.m())},at.prototype.readUint64String=at.prototype.ha,at.prototype.Xb=function(){var t=this.b[this.a];return this.a+=1,_(this.a<=this.c),t<<24>>24},at.prototype.readInt8=at.prototype.Xb,at.prototype.Vb=function(){var t=this.b[this.a],e=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),(t|e<<8)<<16>>16},at.prototype.readInt16=at.prototype.Vb,at.prototype.P=function(){var t=this.b[this.a],e=this.b[this.a+1],n=this.b[this.a+2],i=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),t|e<<8|n<<16|i<<24},at.prototype.readInt32=at.prototype.P,at.prototype.ba=function(){return V(this.m(),this.m())},at.prototype.readInt64=at.prototype.ba,at.prototype.ca=function(){return K(this.m(),this.m())},at.prototype.readInt64String=at.prototype.ca,at.prototype.aa=function(){return Q(this.m())},at.prototype.readFloat=at.prototype.aa,at.prototype.Z=function(){return $(this.m(),this.m())},at.prototype.readDouble=at.prototype.Z,at.prototype.pa=function(){return!!this.b[this.a++]},at.prototype.readBool=at.prototype.pa,at.prototype.ra=function(){return this.da()},at.prototype.readEnum=at.prototype.ra,at.prototype.fa=function(t){var e=this.b,n=this.a;t=n+t;for(var i=[],r="";n<t;){var o=e[n++];if(128>o)i.push(o);else{if(192>o)continue;if(224>o){var a=e[n++];i.push((31&o)<<6|63&a)}else if(240>o){a=e[n++];var s=e[n++];i.push((15&o)<<12|(63&a)<<6|63&s)}else 248>o&&(o=(7&o)<<18|(63&(a=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++],o-=65536,i.push(55296+(o>>10&1023),56320+(1023&o)))}8192<=i.length&&(r+=String.fromCharCode.apply(null,i),i.length=0)}return r+=R(i),this.a=n,r},at.prototype.readString=at.prototype.fa,at.prototype.Dc=function(){var t=this.o();return this.fa(t)},at.prototype.readStringWithLength=at.prototype.Dc,at.prototype.qa=function(t){if(0>t||this.a+t>this.b.length)return this.v=!0,b("Invalid byte length!"),new Uint8Array(0);var e=this.b.subarray(this.a,this.a+t);return this.a+=t,_(this.a<=this.c),e},at.prototype.readBytes=at.prototype.qa,at.prototype.ia=function(){return this.w(X)},at.prototype.readVarintHash64=at.prototype.ia,at.prototype.$=function(){var t=this.b,e=this.a,n=t[e],i=t[e+1],r=t[e+2],o=t[e+3],a=t[e+4],s=t[e+5],l=t[e+6];return t=t[e+7],this.a+=8,String.fromCharCode(n,i,r,o,a,s,l,t)},at.prototype.readFixedHash64=at.prototype.$,c("jspb.BinaryReader",ut,void 0);var ht=[];function ct(t,e,n){if(ht.length){var i=ht.pop();return t&&i.a.H(t,e,n),i}return new ut(t,e,n)}function pt(t,e){_(2==t.b);var n=t.a.o();n=t.a.B()+n;for(var i=[];t.a.B()<n;)i.push(e.call(t.a));return i}function dt(t,e,n,i,r){this.ma=t,this.Ba=e,this.la=n,this.Na=i,this.na=r}function ft(t,e,n,i,r,o){this.Za=t,this.za=e,this.Aa=n,this.Wa=i,this.Ab=r,this.Nb=o}function yt(){}ut.clearInstanceCache=function(){ht=[]},ut.getInstanceCacheLength=function(){return ht.length},ut.alloc=ct,ut.prototype.zb=ct,ut.prototype.alloc=ut.prototype.zb,ut.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ht.length&&ht.push(this)},ut.prototype.free=ut.prototype.Ca,ut.prototype.Fb=function(){return this.O},ut.prototype.getFieldCursor=ut.prototype.Fb,ut.prototype.B=function(){return this.a.B()},ut.prototype.getCursor=ut.prototype.B,ut.prototype.Y=function(){return this.a.Y()},ut.prototype.getBuffer=ut.prototype.Y,ut.prototype.Hb=function(){return this.c},ut.prototype.getFieldNumber=ut.prototype.Hb,ut.prototype.Lb=function(){return this.b},ut.prototype.getWireType=ut.prototype.Lb,ut.prototype.Mb=function(){return 2==this.b},ut.prototype.isDelimited=ut.prototype.Mb,ut.prototype.bb=function(){return 4==this.b},ut.prototype.isEndGroup=ut.prototype.bb,ut.prototype.getError=function(){return this.h||this.a.getError()},ut.prototype.getError=ut.prototype.getError,ut.prototype.H=function(t,e,n){this.a.H(t,e,n),this.b=this.c=-1},ut.prototype.setBlock=ut.prototype.H,ut.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ut.prototype.reset=ut.prototype.reset,ut.prototype.advance=function(t){this.a.advance(t)},ut.prototype.advance=ut.prototype.advance,ut.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return b("Decoder hit an error"),!1;this.O=this.a.B();var t=this.a.o(),e=t>>>3;return 0!=(t&=7)&&5!=t&&1!=t&&2!=t&&3!=t&&4!=t?(b("Invalid wire type: %s (at position %s)",t,this.O),this.h=!0,!1):(this.c=e,this.b=t,!0)},ut.prototype.nextField=ut.prototype.oa,ut.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ut.prototype.unskipHeader=ut.prototype.Oa,ut.prototype.Lc=function(){var t=this.c;for(this.Oa();this.oa()&&this.c==t;)this.C();this.a.ya()||this.Oa()},ut.prototype.skipMatchingFields=ut.prototype.Lc,ut.prototype.lb=function(){0!=this.b?(b("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ut.prototype.skipVarintField=ut.prototype.lb,ut.prototype.gb=function(){if(2!=this.b)b("Invalid wire type for skipDelimitedField"),this.C();else{var t=this.a.o();this.a.advance(t)}},ut.prototype.skipDelimitedField=ut.prototype.gb,ut.prototype.hb=function(){5!=this.b?(b("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ut.prototype.skipFixed32Field=ut.prototype.hb,ut.prototype.ib=function(){1!=this.b?(b("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ut.prototype.skipFixed64Field=ut.prototype.ib,ut.prototype.jb=function(){for(var t=this.c;;){if(!this.oa()){b("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=t&&(b("Unmatched end-group tag"),this.h=!0);break}this.C()}},ut.prototype.skipGroup=ut.prototype.jb,ut.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:b("Invalid wire encoding for field.")}},ut.prototype.skipField=ut.prototype.C,ut.prototype.Hc=function(t,e){null===this.v&&(this.v={}),_(!this.v[t]),this.v[t]=e},ut.prototype.registerReadCallback=ut.prototype.Hc,ut.prototype.Ic=function(t){return _(null!==this.v),_(t=this.v[t]),t(this)},ut.prototype.runReadCallback=ut.prototype.Ic,ut.prototype.Yb=function(t,e){_(2==this.b);var n=this.a.c,i=this.a.o();i=this.a.B()+i,this.a.setEnd(i),e(t,this),this.a.Ma(i),this.a.setEnd(n)},ut.prototype.readMessage=ut.prototype.Yb,ut.prototype.Ub=function(t,e,n){_(3==this.b),_(this.c==t),n(e,this),this.h||4==this.b||(b("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ut.prototype.readGroup=ut.prototype.Ub,ut.prototype.Gb=function(){_(2==this.b);var t=this.a.o(),e=this.a.B(),n=e+t;return t=lt(this.a.Y(),e,t),this.a.Ma(n),t},ut.prototype.getFieldDecoder=ut.prototype.Gb,ut.prototype.P=function(){return _(0==this.b),this.a.da()},ut.prototype.readInt32=ut.prototype.P,ut.prototype.Wb=function(){return _(0==this.b),this.a.Ea()},ut.prototype.readInt32String=ut.prototype.Wb,ut.prototype.ba=function(){return _(0==this.b),this.a.sa()},ut.prototype.readInt64=ut.prototype.ba,ut.prototype.ca=function(){return _(0==this.b),this.a.Fa()},ut.prototype.readInt64String=ut.prototype.ca,ut.prototype.m=function(){return _(0==this.b),this.a.o()},ut.prototype.readUint32=ut.prototype.m,ut.prototype.Fc=function(){return _(0==this.b),this.a.O()},ut.prototype.readUint32String=ut.prototype.Fc,ut.prototype.ga=function(){return _(0==this.b),this.a.Ga()},ut.prototype.readUint64=ut.prototype.ga,ut.prototype.ha=function(){return _(0==this.b),this.a.Ha()},ut.prototype.readUint64String=ut.prototype.ha,ut.prototype.zc=function(){return _(0==this.b),this.a.Ia()},ut.prototype.readSint32=ut.prototype.zc,ut.prototype.Ac=function(){return _(0==this.b),this.a.Ja()},ut.prototype.readSint64=ut.prototype.Ac,ut.prototype.Bc=function(){return _(0==this.b),this.a.Ka()},ut.prototype.readSint64String=ut.prototype.Bc,ut.prototype.Rb=function(){return _(5==this.b),this.a.m()},ut.prototype.readFixed32=ut.prototype.Rb,ut.prototype.Sb=function(){return _(1==this.b),this.a.ga()},ut.prototype.readFixed64=ut.prototype.Sb,ut.prototype.Tb=function(){return _(1==this.b),this.a.ha()},ut.prototype.readFixed64String=ut.prototype.Tb,ut.prototype.vc=function(){return _(5==this.b),this.a.P()},ut.prototype.readSfixed32=ut.prototype.vc,ut.prototype.wc=function(){return _(5==this.b),this.a.P().toString()},ut.prototype.readSfixed32String=ut.prototype.wc,ut.prototype.xc=function(){return _(1==this.b),this.a.ba()},ut.prototype.readSfixed64=ut.prototype.xc,ut.prototype.yc=function(){return _(1==this.b),this.a.ca()},ut.prototype.readSfixed64String=ut.prototype.yc,ut.prototype.aa=function(){return _(5==this.b),this.a.aa()},ut.prototype.readFloat=ut.prototype.aa,ut.prototype.Z=function(){return _(1==this.b),this.a.Z()},ut.prototype.readDouble=ut.prototype.Z,ut.prototype.pa=function(){return _(0==this.b),!!this.a.o()},ut.prototype.readBool=ut.prototype.pa,ut.prototype.ra=function(){return _(0==this.b),this.a.sa()},ut.prototype.readEnum=ut.prototype.ra,ut.prototype.fa=function(){_(2==this.b);var t=this.a.o();return this.a.fa(t)},ut.prototype.readString=ut.prototype.fa,ut.prototype.qa=function(){_(2==this.b);var t=this.a.o();return this.a.qa(t)},ut.prototype.readBytes=ut.prototype.qa,ut.prototype.ia=function(){return _(0==this.b),this.a.ia()},ut.prototype.readVarintHash64=ut.prototype.ia,ut.prototype.Cc=function(){return _(0==this.b),this.a.fb()},ut.prototype.readSintHash64=ut.prototype.Cc,ut.prototype.w=function(t){return _(0==this.b),this.a.w(t)},ut.prototype.readSplitVarint64=ut.prototype.w,ut.prototype.ea=function(t){return _(0==this.b),this.a.w(function(e,n){return Y(e,n,t)})},ut.prototype.readSplitZigzagVarint64=ut.prototype.ea,ut.prototype.$=function(){return _(1==this.b),this.a.$()},ut.prototype.readFixedHash64=ut.prototype.$,ut.prototype.ta=function(t){return _(1==this.b),this.a.ta(t)},ut.prototype.readSplitFixed64=ut.prototype.ta,ut.prototype.gc=function(){return pt(this,this.a.da)},ut.prototype.readPackedInt32=ut.prototype.gc,ut.prototype.hc=function(){return pt(this,this.a.Ea)},ut.prototype.readPackedInt32String=ut.prototype.hc,ut.prototype.ic=function(){return pt(this,this.a.sa)},ut.prototype.readPackedInt64=ut.prototype.ic,ut.prototype.jc=function(){return pt(this,this.a.Fa)},ut.prototype.readPackedInt64String=ut.prototype.jc,ut.prototype.qc=function(){return pt(this,this.a.o)},ut.prototype.readPackedUint32=ut.prototype.qc,ut.prototype.rc=function(){return pt(this,this.a.O)},ut.prototype.readPackedUint32String=ut.prototype.rc,ut.prototype.sc=function(){return pt(this,this.a.Ga)},ut.prototype.readPackedUint64=ut.prototype.sc,ut.prototype.tc=function(){return pt(this,this.a.Ha)},ut.prototype.readPackedUint64String=ut.prototype.tc,ut.prototype.nc=function(){return pt(this,this.a.Ia)},ut.prototype.readPackedSint32=ut.prototype.nc,ut.prototype.oc=function(){return pt(this,this.a.Ja)},ut.prototype.readPackedSint64=ut.prototype.oc,ut.prototype.pc=function(){return pt(this,this.a.Ka)},ut.prototype.readPackedSint64String=ut.prototype.pc,ut.prototype.bc=function(){return pt(this,this.a.m)},ut.prototype.readPackedFixed32=ut.prototype.bc,ut.prototype.cc=function(){return pt(this,this.a.ga)},ut.prototype.readPackedFixed64=ut.prototype.cc,ut.prototype.dc=function(){return pt(this,this.a.ha)},ut.prototype.readPackedFixed64String=ut.prototype.dc,ut.prototype.kc=function(){return pt(this,this.a.P)},ut.prototype.readPackedSfixed32=ut.prototype.kc,ut.prototype.lc=function(){return pt(this,this.a.ba)},ut.prototype.readPackedSfixed64=ut.prototype.lc,ut.prototype.mc=function(){return pt(this,this.a.ca)},ut.prototype.readPackedSfixed64String=ut.prototype.mc,ut.prototype.fc=function(){return pt(this,this.a.aa)},ut.prototype.readPackedFloat=ut.prototype.fc,ut.prototype.$b=function(){return pt(this,this.a.Z)},ut.prototype.readPackedDouble=ut.prototype.$b,ut.prototype.Zb=function(){return pt(this,this.a.pa)},ut.prototype.readPackedBool=ut.prototype.Zb,ut.prototype.ac=function(){return pt(this,this.a.ra)},ut.prototype.readPackedEnum=ut.prototype.ac,ut.prototype.uc=function(){return pt(this,this.a.ia)},ut.prototype.readPackedVarintHash64=ut.prototype.uc,ut.prototype.ec=function(){return pt(this,this.a.$)},ut.prototype.readPackedFixedHash64=ut.prototype.ec,c("jspb.ExtensionFieldInfo",dt,void 0),c("jspb.ExtensionFieldBinaryInfo",ft,void 0),dt.prototype.F=function(){return!!this.la},dt.prototype.isMessageType=dt.prototype.F,c("jspb.Message",yt,void 0),yt.GENERATE_TO_OBJECT=!0,yt.GENERATE_FROM_OBJECT=!0;var gt="function"==typeof Uint8Array;yt.prototype.Ib=function(){return this.b},yt.prototype.getJsPbMessageId=yt.prototype.Ib,yt.initialize=function(t,e,n,i,r,o){if(t.f=null,e||(e=n?[n]:[]),t.b=n?String(n):void 0,t.D=0===n?-1:0,t.u=e,e=-1,!(n=t.u.length)||(e=n-1,null===(n=t.u[e])||"object"!=typeof n||Array.isArray(n)||gt&&n instanceof Uint8Array)?-1<i?(t.G=Math.max(i,e+1-t.D),t.i=null):t.G=Number.MAX_VALUE:(t.G=e-t.D,t.i=n),t.a={},r)for(i=0;i<r.length;i++)(e=r[i])<t.G?(e+=t.D,t.u[e]=t.u[e]||vt):(mt(t),t.i[e]=t.i[e]||vt);if(o&&o.length)for(i=0;i<o.length;i++)Tt(t,o[i])};var vt=Object.freeze?Object.freeze([]):[];function mt(t){var e=t.G+t.D;t.u[e]||(t.i=t.u[e]={})}function _t(t,e,n){for(var i=[],r=0;r<t.length;r++)i[r]=e.call(t[r],n,t[r]);return i}function bt(t,e){if(e<t.G){e+=t.D;var n=t.u[e];return n===vt?t.u[e]=[]:n}if(t.i)return(n=t.i[e])===vt?t.i[e]=[]:n}function wt(t,e){return null==(t=bt(t,e))?t:+t}function Et(t,e){return null==(t=bt(t,e))?t:!!t}function kt(t){return null==t||"string"==typeof t?t:gt&&t instanceof Uint8Array?B(t):(b("Cannot coerce to b64 string: "+p(t)),null)}function At(t){return null==t||t instanceof Uint8Array?t:"string"==typeof t?I(t):(b("Cannot coerce to Uint8Array: "+p(t)),null)}function Mt(t){if(t&&1<t.length){var e=p(t[0]);y(t,function(t){p(t)!=e&&b("Inconsistent type in JSPB repeated field array. Got "+p(t)+" expected "+e)})}}function Ct(t,e,n){return(t=bt(t,e))??n}function St(t,e,n){return w(t,yt),e<t.G?t.u[e+t.D]=n:(mt(t),t.i[e]=n),t}function Rt(t,e,n,i){return w(t,yt),n!==i?St(t,e,n):e<t.G?t.u[e+t.D]=null:(mt(t),delete t.i[e]),t}function xt(t,e,n,i){return w(t,yt),(n=Tt(t,n))&&n!==e&&void 0!==i&&(t.f&&n in t.f&&(t.f[n]=void 0),St(t,n,void 0)),St(t,e,i)}function Tt(t,e){for(var n,i,r=0;r<e.length;r++){var o=e[r],a=bt(t,o);null!=a&&(n=o,i=a,St(t,o,void 0))}return n?(St(t,n,i),n):0}function Pt(t,e,n){if(t.f||(t.f={}),!t.f[n]){for(var i=bt(t,n),r=[],o=0;o<i.length;o++)r[o]=new e(i[o]);t.f[n]=r}}function Lt(t){if(t.f)for(var e in t.f){var n=t.f[e];if(Array.isArray(n))for(var i=0;i<n.length;i++)n[i]&&n[i].g();else n&&n.g()}}function Bt(t,e){t=t||{},e=e||{};var n,i={};for(n in t)i[n]=0;for(n in e)i[n]=0;for(n in i)if(!It(t[n],e[n]))return!1;return!0}function It(t,e){if(t==e)return!0;if(!d(t)||!d(e))return!!("number"==typeof t&&isNaN(t)||"number"==typeof e&&isNaN(e))&&String(t)==String(e);if(t.constructor!=e.constructor)return!1;if(gt&&t.constructor===Uint8Array){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}if(t.constructor===Array){var i=void 0,r=void 0,o=Math.max(t.length,e.length);for(n=0;n<o;n++){var a=t[n],s=e[n];if(a&&a.constructor==Object&&(_(void 0===i),_(n===t.length-1),i=a,a=void 0),s&&s.constructor==Object&&(_(void 0===r),_(n===e.length-1),r=s,s=void 0),!It(a,s))return!1}return!i&&!r||Bt(i=i||{},r=r||{})}if(t.constructor===Object)return Bt(t,e);throw Error("Invalid type in JSPB array")}function Ft(t){return new t.constructor(Ot(t.g()))}function Ot(t){if(Array.isArray(t)){for(var e=Array(t.length),n=0;n<t.length;n++){var i=t[n];null!=i&&(e[n]="object"==typeof i?Ot(_(i)):i)}return e}if(gt&&t instanceof Uint8Array)return new Uint8Array(t);for(n in e={},t)null!=(i=t[n])&&(e[n]="object"==typeof i?Ot(_(i)):i);return e}yt.toObjectList=_t,yt.toObjectExtension=function(t,e,n,i,r){for(var o in n){var a=n[o],s=i.call(t,a);if(null!=s){for(var l in a.Ba)if(a.Ba.hasOwnProperty(l))break;e[l]=a.Na?a.na?_t(s,a.Na,r):a.Na(r,s):s}}},yt.serializeBinaryExtensions=function(t,e,n,i){for(var r in n){var o=n[r],a=o.Za;if(!o.Aa)throw Error("Message extension present that was generated without binary serialization support");var s=i.call(t,a);if(null!=s)if(a.F()){if(!o.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");o.Aa.call(e,a.ma,s,o.Wa)}else o.Aa.call(e,a.ma,s)}},yt.readBinaryExtension=function(t,e,n,i,r){var o=n[e.c];if(o){if(n=o.Za,!o.za)throw Error("Deserializing extension whose generated code does not support binary format");if(n.F()){var a=new n.la;o.za.call(e,a,o.Ab)}else a=o.za.call(e);n.na&&!o.Nb?(e=i.call(t,n))?e.push(a):r.call(t,n,[a]):r.call(t,n,a)}else e.C()},yt.getField=bt,yt.getRepeatedField=function(t,e){return bt(t,e)},yt.getOptionalFloatingPointField=wt,yt.getBooleanField=Et,yt.getRepeatedFloatingPointField=function(t,e){var n=bt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var i=0;i<n.length;i++)n[i]=+n[i];t.a[e]=!0}return n},yt.getRepeatedBooleanField=function(t,e){var n=bt(t,e);if(t.a||(t.a={}),!t.a[e]){for(var i=0;i<n.length;i++)n[i]=!!n[i];t.a[e]=!0}return n},yt.bytesAsB64=kt,yt.bytesAsU8=At,yt.bytesListAsB64=function(t){return Mt(t),t.length&&"string"!=typeof t[0]?g(t,kt):t},yt.bytesListAsU8=function(t){return Mt(t),!t.length||t[0]instanceof Uint8Array?t:g(t,At)},yt.getFieldWithDefault=Ct,yt.getBooleanFieldWithDefault=function(t,e,n){return(t=Et(t,e))??n},yt.getFloatingPointFieldWithDefault=function(t,e,n){return(t=wt(t,e))??n},yt.getFieldProto3=Ct,yt.getMapField=function(t,e,n,i){if(t.f||(t.f={}),e in t.f)return t.f[e];var r=bt(t,e);if(!r){if(n)return;St(t,e,r=[])}return t.f[e]=new k(r,i)},yt.setField=St,yt.setProto3IntField=function(t,e,n){return Rt(t,e,n,0)},yt.setProto3FloatField=function(t,e,n){return Rt(t,e,n,0)},yt.setProto3BooleanField=function(t,e,n){return Rt(t,e,n,!1)},yt.setProto3StringField=function(t,e,n){return Rt(t,e,n,"")},yt.setProto3BytesField=function(t,e,n){return Rt(t,e,n,"")},yt.setProto3EnumField=function(t,e,n){return Rt(t,e,n,0)},yt.setProto3StringIntField=function(t,e,n){return Rt(t,e,n,"0")},yt.addToRepeatedField=function(t,e,n,i){return w(t,yt),e=bt(t,e),null!=i?e.splice(i,0,n):e.push(n),t},yt.setOneofField=xt,yt.computeOneofCase=Tt,yt.getWrapperField=function(t,e,n,i){if(t.f||(t.f={}),!t.f[n]){var r=bt(t,n);(i||r)&&(t.f[n]=new e(r))}return t.f[n]},yt.getRepeatedWrapperField=function(t,e,n){return Pt(t,e,n),(e=t.f[n])==vt&&(e=t.f[n]=[]),e},yt.setWrapperField=function(t,e,n){w(t,yt),t.f||(t.f={});var i=n?n.g():n;return t.f[e]=n,St(t,e,i)},yt.setOneofWrapperField=function(t,e,n,i){w(t,yt),t.f||(t.f={});var r=i?i.g():i;return t.f[e]=i,xt(t,e,n,r)},yt.setRepeatedWrapperField=function(t,e,n){w(t,yt),t.f||(t.f={}),n=n||[];for(var i=[],r=0;r<n.length;r++)i[r]=n[r].g();return t.f[e]=n,St(t,e,i)},yt.addToRepeatedWrapperField=function(t,e,n,i,r){Pt(t,i,e);var o=t.f[e];return o||(o=t.f[e]=[]),n=n||new i,t=bt(t,e),null!=r?(o.splice(r,0,n),t.splice(r,0,n.g())):(o.push(n),t.push(n.g())),n},yt.toMap=function(t,e,n,i){for(var r={},o=0;o<t.length;o++)r[e.call(t[o])]=n?n.call(t[o],i,t[o]):t[o];return r},yt.prototype.g=function(){return Lt(this),this.u},yt.prototype.toArray=yt.prototype.g,yt.prototype.toString=function(){return Lt(this),this.u.toString()},yt.prototype.getExtension=function(t){if(this.i){this.f||(this.f={});var e=t.ma;if(t.na){if(t.F())return this.f[e]||(this.f[e]=g(this.i[e]||[],function(e){return new t.la(e)})),this.f[e]}else if(t.F())return!this.f[e]&&this.i[e]&&(this.f[e]=new t.la(this.i[e])),this.f[e];return this.i[e]}},yt.prototype.getExtension=yt.prototype.getExtension,yt.prototype.Kc=function(t,e){this.f||(this.f={}),mt(this);var n=t.ma;return t.na?(e=e||[],t.F()?(this.f[n]=e,this.i[n]=g(e,function(t){return t.g()})):this.i[n]=e):t.F()?(this.f[n]=e,this.i[n]=e?e.g():e):this.i[n]=e,this},yt.prototype.setExtension=yt.prototype.Kc,yt.difference=function(t,e){if(!(t instanceof e.constructor))throw Error("Messages have different types.");var n=t.g();e=e.g();var i=[],r=0,o=n.length>e.length?n.length:e.length;for(t.b&&(i[0]=t.b,r=1);r<o;r++)It(n[r],e[r])||(i[r]=e[r]);return new t.constructor(i)},yt.equals=function(t,e){return t==e||!(!t||!e)&&t instanceof e.constructor&&It(t.g(),e.g())},yt.compareExtensions=Bt,yt.compareFields=It,yt.prototype.Bb=function(){return Ft(this)},yt.prototype.cloneMessage=yt.prototype.Bb,yt.prototype.clone=function(){return Ft(this)},yt.prototype.clone=yt.prototype.clone,yt.clone=function(t){return Ft(t)},yt.copyInto=function(t,e){w(t,yt),w(e,yt),_(t.constructor==e.constructor,"Copy source and target message should have the same type."),t=Ft(t);for(var n=e.g(),i=t.g(),r=n.length=0;r<i.length;r++)n[r]=i[r];e.f=t.f,e.i=t.i},yt.registerMessageType=function(t,e){e.we=t};var Dt={dump:function(t){return w(t,yt,"jspb.Message instance expected"),_(t.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),Dt.X(t)}};function zt(){this.a=[]}function Nt(t,e){this.lo=t,this.hi=e}function jt(t,e){var n=65535&t,i=65535&e,r=e>>>16;for(e=n*i+65536*(n*r&65535)+65536*((t>>>=16)*i&65535),n=t*r+(n*r>>>16)+(t*i>>>16);4294967296<=e;)e-=4294967296,n+=1;return new Nt(e>>>0,n>>>0)}function Gt(t){for(var e=new Nt(0,0),n=new Nt(0,0),i=0;i<t.length;i++){if("0">t[i]||"9"<t[i])return null;n.lo=parseInt(t[i],10),e=e.eb(10).add(n)}return e}function Ut(t,e){this.lo=t,this.hi=e}function Wt(t){var e=0<t.length&&"-"==t[0];return e&&(t=t.substring(1)),null===(t=Gt(t))?null:(e&&(t=new Nt(0,0).sub(t)),new Ut(t.lo,t.hi))}function qt(){this.c=[],this.b=0,this.a=new zt,this.h=[]}function Vt(t,e){var n=t.a.end();t.c.push(n),t.c.push(e),t.b+=n.length+e.length}function Ht(t,e){return Yt(t,e,2),e=t.a.end(),t.c.push(e),t.b+=e.length,e.push(t.b),e}function Zt(t,e){var n=e.pop();for(_(0<=(n=t.b+t.a.length()-n));127<n;)e.push(127&n|128),n>>>=7,t.b++;e.push(n),t.b++}function Yt(t,e,n){_(1<=e&&e==Math.floor(e)),t.a.j(8*e+n)}function Qt(t,e,n){null!=n&&(Yt(t,e,0),t.a.j(n))}function $t(t,e,n){null!=n&&(Yt(t,e,0),t.a.M(n))}c("jspb.debug.dump",Dt.dump,void 0),Dt.X=function(t){var e=p(t);if("number"==e||"string"==e||"boolean"==e||"null"==e||"undefined"==e||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array)return t;if("array"==e)return function(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];Array.isArray(t)||m("Expected array but got %s: %s.",[p(t),t],e,i)}(t),g(t,Dt.X);if(t instanceof k){for(var n={},i=(t=t.entries()).next();!i.done;i=t.next())n[i.value[0]]=Dt.X(i.value[1]);return n}w(t,yt,"Only messages expected: "+t);var r={$name:(e=t.constructor).name||e.displayName};for(s in e.prototype){var o=/^get([A-Z]\w*)/.exec(s);if(o&&"getExtension"!=s&&"getJsPbMessageId"!=s){var a="has"+o[1];t[a]&&!t[a]()||(a=t[s](),r[Dt.$a(o[1])]=Dt.X(a))}}if(t.extensionObject_)return r.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",r;for(i in e.extensions)if(/^\d+$/.test(i)){a=e.extensions[i];var s=t.getExtension(a);o=void 0,a=a.Ba;var l=[],u=0;for(o in a)l[u++]=o;o=l[0],null!=s&&(n||(n=r.$extensions={}),n[Dt.$a(o)]=Dt.X(s))}return r},Dt.$a=function(t){return t.replace(/^[A-Z]/,function(t){return t.toLowerCase()})},c("jspb.BinaryEncoder",zt,void 0),zt.prototype.length=function(){return this.a.length},zt.prototype.length=zt.prototype.length,zt.prototype.end=function(){var t=this.a;return this.a=[],t},zt.prototype.end=zt.prototype.end,zt.prototype.l=function(t,e){for(_(t==Math.floor(t)),_(e==Math.floor(e)),_(0<=t&&4294967296>t),_(0<=e&&4294967296>e);0<e||127<t;)this.a.push(127&t|128),t=(t>>>7|e<<25)>>>0,e>>>=7;this.a.push(t)},zt.prototype.writeSplitVarint64=zt.prototype.l,zt.prototype.A=function(t,e){_(t==Math.floor(t)),_(e==Math.floor(e)),_(0<=t&&4294967296>t),_(0<=e&&4294967296>e),this.s(t),this.s(e)},zt.prototype.writeSplitFixed64=zt.prototype.A,zt.prototype.j=function(t){for(_(t==Math.floor(t)),_(0<=t&&4294967296>t);127<t;)this.a.push(127&t|128),t>>>=7;this.a.push(t)},zt.prototype.writeUnsignedVarint32=zt.prototype.j,zt.prototype.M=function(t){if(_(t==Math.floor(t)),_(-2147483648<=t&&2147483648>t),0<=t)this.j(t);else{for(var e=0;9>e;e++)this.a.push(127&t|128),t>>=7;this.a.push(1)}},zt.prototype.writeSignedVarint32=zt.prototype.M,zt.prototype.va=function(t){_(t==Math.floor(t)),_(0<=t&&0x10000000000000000>t),N(t),this.l(O,D)},zt.prototype.writeUnsignedVarint64=zt.prototype.va,zt.prototype.ua=function(t){_(t==Math.floor(t)),_(-0x8000000000000000<=t&&0x8000000000000000>t),N(t),this.l(O,D)},zt.prototype.writeSignedVarint64=zt.prototype.ua,zt.prototype.wa=function(t){_(t==Math.floor(t)),_(-2147483648<=t&&2147483648>t),this.j((t<<1^t>>31)>>>0)},zt.prototype.writeZigzagVarint32=zt.prototype.wa,zt.prototype.xa=function(t){_(t==Math.floor(t)),_(-0x8000000000000000<=t&&0x8000000000000000>t),j(t),this.l(O,D)},zt.prototype.writeZigzagVarint64=zt.prototype.xa,zt.prototype.Ta=function(t){this.W(et(t))},zt.prototype.writeZigzagVarint64String=zt.prototype.Ta,zt.prototype.W=function(t){var e=this;W(t),H(O,D,function(t,n){e.l(t>>>0,n>>>0)})},zt.prototype.writeZigzagVarintHash64=zt.prototype.W,zt.prototype.be=function(t){_(t==Math.floor(t)),_(0<=t&&256>t),this.a.push(t>>>0&255)},zt.prototype.writeUint8=zt.prototype.be,zt.prototype.ae=function(t){_(t==Math.floor(t)),_(0<=t&&65536>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},zt.prototype.writeUint16=zt.prototype.ae,zt.prototype.s=function(t){_(t==Math.floor(t)),_(0<=t&&4294967296>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},zt.prototype.writeUint32=zt.prototype.s,zt.prototype.V=function(t){_(t==Math.floor(t)),_(0<=t&&0x10000000000000000>t),z(t),this.s(O),this.s(D)},zt.prototype.writeUint64=zt.prototype.V,zt.prototype.Qc=function(t){_(t==Math.floor(t)),_(-128<=t&&128>t),this.a.push(t>>>0&255)},zt.prototype.writeInt8=zt.prototype.Qc,zt.prototype.Pc=function(t){_(t==Math.floor(t)),_(-32768<=t&&32768>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255)},zt.prototype.writeInt16=zt.prototype.Pc,zt.prototype.S=function(t){_(t==Math.floor(t)),_(-2147483648<=t&&2147483648>t),this.a.push(t>>>0&255),this.a.push(t>>>8&255),this.a.push(t>>>16&255),this.a.push(t>>>24&255)},zt.prototype.writeInt32=zt.prototype.S,zt.prototype.T=function(t){_(t==Math.floor(t)),_(-0x8000000000000000<=t&&0x8000000000000000>t),N(t),this.A(O,D)},zt.prototype.writeInt64=zt.prototype.T,zt.prototype.ka=function(t){_(t==Math.floor(t)),_(-0x8000000000000000<=+t&&0x8000000000000000>+t),W(et(t)),this.A(O,D)},zt.prototype.writeInt64String=zt.prototype.ka,zt.prototype.L=function(t){_(1/0===t||-1/0===t||isNaN(t)||-34028234663852886e22<=t&&34028234663852886e22>=t),G(t),this.s(O)},zt.prototype.writeFloat=zt.prototype.L,zt.prototype.J=function(t){_(1/0===t||-1/0===t||isNaN(t)||-17976931348623157e292<=t&&17976931348623157e292>=t),U(t),this.s(O),this.s(D)},zt.prototype.writeDouble=zt.prototype.J,zt.prototype.I=function(t){_("boolean"==typeof t||"number"==typeof t),this.a.push(t?1:0)},zt.prototype.writeBool=zt.prototype.I,zt.prototype.R=function(t){_(t==Math.floor(t)),_(-2147483648<=t&&2147483648>t),this.M(t)},zt.prototype.writeEnum=zt.prototype.R,zt.prototype.ja=function(t){this.a.push.apply(this.a,t)},zt.prototype.writeBytes=zt.prototype.ja,zt.prototype.N=function(t){W(t),this.l(O,D)},zt.prototype.writeVarintHash64=zt.prototype.N,zt.prototype.K=function(t){W(t),this.s(O),this.s(D)},zt.prototype.writeFixedHash64=zt.prototype.K,zt.prototype.U=function(t){var e=this.a.length;!function(t,e,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];"string"!=typeof t&&m("Expected string but got %s: %s.",[p(t),t],e,i)}(t);for(var n=0;n<t.length;n++){var i=t.charCodeAt(n);if(128>i)this.a.push(i);else if(2048>i)this.a.push(i>>6|192),this.a.push(63&i|128);else if(65536>i)if(55296<=i&&56319>=i&&n+1<t.length){var r=t.charCodeAt(n+1);56320<=r&&57343>=r&&(i=1024*(i-55296)+r-56320+65536,this.a.push(i>>18|240),this.a.push(i>>12&63|128),this.a.push(i>>6&63|128),this.a.push(63&i|128),n++)}else this.a.push(i>>12|224),this.a.push(i>>6&63|128),this.a.push(63&i|128)}return this.a.length-e},zt.prototype.writeString=zt.prototype.U,c("jspb.arith.UInt64",Nt,void 0),Nt.prototype.cmp=function(t){return this.hi<t.hi||this.hi==t.hi&&this.lo<t.lo?-1:this.hi==t.hi&&this.lo==t.lo?0:1},Nt.prototype.cmp=Nt.prototype.cmp,Nt.prototype.La=function(){return new Nt((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Nt.prototype.rightShift=Nt.prototype.La,Nt.prototype.Da=function(){return new Nt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Nt.prototype.leftShift=Nt.prototype.Da,Nt.prototype.cb=function(){return!!(2147483648&this.hi)},Nt.prototype.msb=Nt.prototype.cb,Nt.prototype.Ob=function(){return!!(1&this.lo)},Nt.prototype.lsb=Nt.prototype.Ob,Nt.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Nt.prototype.zero=Nt.prototype.Ua,Nt.prototype.add=function(t){return new Nt((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Nt.prototype.add=Nt.prototype.add,Nt.prototype.sub=function(t){return new Nt((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Nt.prototype.sub=Nt.prototype.sub,Nt.mul32x32=jt,Nt.prototype.eb=function(t){var e=jt(this.lo,t);return(t=jt(this.hi,t)).hi=t.lo,t.lo=0,e.add(t)},Nt.prototype.mul=Nt.prototype.eb,Nt.prototype.Xa=function(t){if(0==t)return[];var e=new Nt(0,0),n=new Nt(this.lo,this.hi);t=new Nt(t,0);for(var i=new Nt(1,0);!t.cb();)t=t.Da(),i=i.Da();for(;!i.Ua();)0>=t.cmp(n)&&(e=e.add(i),n=n.sub(t)),t=t.La(),i=i.La();return[e,n]},Nt.prototype.div=Nt.prototype.Xa,Nt.prototype.toString=function(){for(var t="",e=this;!e.Ua();){var n=(e=e.Xa(10))[0];t=e[1].lo+t,e=n}return""==t&&(t="0"),t},Nt.prototype.toString=Nt.prototype.toString,Nt.fromString=Gt,Nt.prototype.clone=function(){return new Nt(this.lo,this.hi)},Nt.prototype.clone=Nt.prototype.clone,c("jspb.arith.Int64",Ut,void 0),Ut.prototype.add=function(t){return new Ut((this.lo+t.lo&4294967295)>>>0>>>0,((this.hi+t.hi&4294967295)>>>0)+(4294967296<=this.lo+t.lo?1:0)>>>0)},Ut.prototype.add=Ut.prototype.add,Ut.prototype.sub=function(t){return new Ut((this.lo-t.lo&4294967295)>>>0>>>0,((this.hi-t.hi&4294967295)>>>0)-(0>this.lo-t.lo?1:0)>>>0)},Ut.prototype.sub=Ut.prototype.sub,Ut.prototype.clone=function(){return new Ut(this.lo,this.hi)},Ut.prototype.clone=Ut.prototype.clone,Ut.prototype.toString=function(){var t=!!(2147483648&this.hi),e=new Nt(this.lo,this.hi);return t&&(e=new Nt(0,0).sub(e)),(t?"-":"")+e.toString()},Ut.prototype.toString=Ut.prototype.toString,Ut.fromString=Wt,c("jspb.BinaryWriter",qt,void 0),qt.prototype.pb=function(t,e,n){Vt(this,t.subarray(e,n))},qt.prototype.writeSerializedMessage=qt.prototype.pb,qt.prototype.Pb=function(t,e,n){null!=t&&null!=e&&null!=n&&this.pb(t,e,n)},qt.prototype.maybeWriteSerializedMessage=qt.prototype.Pb,qt.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},qt.prototype.reset=qt.prototype.reset,qt.prototype.ab=function(){_(0==this.h.length);for(var t=new Uint8Array(this.b+this.a.length()),e=this.c,n=e.length,i=0,r=0;r<n;r++){var o=e[r];t.set(o,i),i+=o.length}return e=this.a.end(),t.set(e,i),_((i+=e.length)==t.length),this.c=[t],t},qt.prototype.getResultBuffer=qt.prototype.ab,qt.prototype.Kb=function(t){return B(this.ab(),t)},qt.prototype.getResultBase64String=qt.prototype.Kb,qt.prototype.Va=function(t){this.h.push(Ht(this,t))},qt.prototype.beginSubMessage=qt.prototype.Va,qt.prototype.Ya=function(){_(0<=this.h.length),Zt(this,this.h.pop())},qt.prototype.endSubMessage=qt.prototype.Ya,qt.prototype.Nc=function(t,e,n){switch(t){case 1:this.J(e,n);break;case 2:this.L(e,n);break;case 3:this.T(e,n);break;case 4:this.V(e,n);break;case 5:this.S(e,n);break;case 6:this.Qa(e,n);break;case 7:this.Pa(e,n);break;case 8:this.I(e,n);break;case 9:this.U(e,n);break;case 10:b("Group field type not supported in writeAny()");break;case 11:b("Message field type not supported in writeAny()");break;case 12:this.ja(e,n);break;case 13:this.s(e,n);break;case 14:this.R(e,n);break;case 15:this.Ra(e,n);break;case 16:this.Sa(e,n);break;case 17:this.rb(e,n);break;case 18:this.sb(e,n);break;case 30:this.K(e,n);break;case 31:this.N(e,n);break;default:b("Invalid field type in writeAny()")}},qt.prototype.writeAny=qt.prototype.Nc,qt.prototype.S=function(t,e){null!=e&&(_(-2147483648<=e&&2147483648>e),$t(this,t,e))},qt.prototype.writeInt32=qt.prototype.S,qt.prototype.ob=function(t,e){null!=e&&(_(-2147483648<=(e=parseInt(e,10))&&2147483648>e),$t(this,t,e))},qt.prototype.writeInt32String=qt.prototype.ob,qt.prototype.T=function(t,e){null!=e&&(_(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Yt(this,t,0),this.a.ua(e)))},qt.prototype.writeInt64=qt.prototype.T,qt.prototype.ka=function(t,e){null!=e&&(e=Wt(e),Yt(this,t,0),this.a.l(e.lo,e.hi))},qt.prototype.writeInt64String=qt.prototype.ka,qt.prototype.s=function(t,e){null!=e&&(_(0<=e&&4294967296>e),Qt(this,t,e))},qt.prototype.writeUint32=qt.prototype.s,qt.prototype.ub=function(t,e){null!=e&&(_(0<=(e=parseInt(e,10))&&4294967296>e),Qt(this,t,e))},qt.prototype.writeUint32String=qt.prototype.ub,qt.prototype.V=function(t,e){null!=e&&(_(0<=e&&0x10000000000000000>e),null!=e&&(Yt(this,t,0),this.a.va(e)))},qt.prototype.writeUint64=qt.prototype.V,qt.prototype.vb=function(t,e){null!=e&&(e=Gt(e),Yt(this,t,0),this.a.l(e.lo,e.hi))},qt.prototype.writeUint64String=qt.prototype.vb,qt.prototype.rb=function(t,e){null!=e&&(_(-2147483648<=e&&2147483648>e),null!=e&&(Yt(this,t,0),this.a.wa(e)))},qt.prototype.writeSint32=qt.prototype.rb,qt.prototype.sb=function(t,e){null!=e&&(_(-0x8000000000000000<=e&&0x8000000000000000>e),null!=e&&(Yt(this,t,0),this.a.xa(e)))},qt.prototype.writeSint64=qt.prototype.sb,qt.prototype.$d=function(t,e){null!=e&&null!=e&&(Yt(this,t,0),this.a.W(e))},qt.prototype.writeSintHash64=qt.prototype.$d,qt.prototype.Zd=function(t,e){null!=e&&null!=e&&(Yt(this,t,0),this.a.Ta(e))},qt.prototype.writeSint64String=qt.prototype.Zd,qt.prototype.Pa=function(t,e){null!=e&&(_(0<=e&&4294967296>e),Yt(this,t,5),this.a.s(e))},qt.prototype.writeFixed32=qt.prototype.Pa,qt.prototype.Qa=function(t,e){null!=e&&(_(0<=e&&0x10000000000000000>e),Yt(this,t,1),this.a.V(e))},qt.prototype.writeFixed64=qt.prototype.Qa,qt.prototype.nb=function(t,e){null!=e&&(e=Gt(e),Yt(this,t,1),this.a.A(e.lo,e.hi))},qt.prototype.writeFixed64String=qt.prototype.nb,qt.prototype.Ra=function(t,e){null!=e&&(_(-2147483648<=e&&2147483648>e),Yt(this,t,5),this.a.S(e))},qt.prototype.writeSfixed32=qt.prototype.Ra,qt.prototype.Sa=function(t,e){null!=e&&(_(-0x8000000000000000<=e&&0x8000000000000000>e),Yt(this,t,1),this.a.T(e))},qt.prototype.writeSfixed64=qt.prototype.Sa,qt.prototype.qb=function(t,e){null!=e&&(e=Wt(e),Yt(this,t,1),this.a.A(e.lo,e.hi))},qt.prototype.writeSfixed64String=qt.prototype.qb,qt.prototype.L=function(t,e){null!=e&&(Yt(this,t,5),this.a.L(e))},qt.prototype.writeFloat=qt.prototype.L,qt.prototype.J=function(t,e){null!=e&&(Yt(this,t,1),this.a.J(e))},qt.prototype.writeDouble=qt.prototype.J,qt.prototype.I=function(t,e){null!=e&&(_("boolean"==typeof e||"number"==typeof e),Yt(this,t,0),this.a.I(e))},qt.prototype.writeBool=qt.prototype.I,qt.prototype.R=function(t,e){null!=e&&(_(-2147483648<=e&&2147483648>e),Yt(this,t,0),this.a.M(e))},qt.prototype.writeEnum=qt.prototype.R,qt.prototype.U=function(t,e){null!=e&&(t=Ht(this,t),this.a.U(e),Zt(this,t))},qt.prototype.writeString=qt.prototype.U,qt.prototype.ja=function(t,e){null!=e&&(e=ot(e),Yt(this,t,2),this.a.j(e.length),Vt(this,e))},qt.prototype.writeBytes=qt.prototype.ja,qt.prototype.Rc=function(t,e,n){null!=e&&(t=Ht(this,t),n(e,this),Zt(this,t))},qt.prototype.writeMessage=qt.prototype.Rc,qt.prototype.Sc=function(t,e,n){null!=e&&(Yt(this,1,3),Yt(this,2,0),this.a.M(t),t=Ht(this,3),n(e,this),Zt(this,t),Yt(this,1,4))},qt.prototype.writeMessageSet=qt.prototype.Sc,qt.prototype.Oc=function(t,e,n){null!=e&&(Yt(this,t,3),n(e,this),Yt(this,t,4))},qt.prototype.writeGroup=qt.prototype.Oc,qt.prototype.K=function(t,e){null!=e&&(_(8==e.length),Yt(this,t,1),this.a.K(e))},qt.prototype.writeFixedHash64=qt.prototype.K,qt.prototype.N=function(t,e){null!=e&&(_(8==e.length),Yt(this,t,0),this.a.N(e))},qt.prototype.writeVarintHash64=qt.prototype.N,qt.prototype.A=function(t,e,n){Yt(this,t,1),this.a.A(e,n)},qt.prototype.writeSplitFixed64=qt.prototype.A,qt.prototype.l=function(t,e,n){Yt(this,t,0),this.a.l(e,n)},qt.prototype.writeSplitVarint64=qt.prototype.l,qt.prototype.tb=function(t,e,n){Yt(this,t,0);var i=this.a;H(e,n,function(t,e){i.l(t>>>0,e>>>0)})},qt.prototype.writeSplitZigzagVarint64=qt.prototype.tb,qt.prototype.Ed=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)$t(this,t,e[n])},qt.prototype.writeRepeatedInt32=qt.prototype.Ed,qt.prototype.Fd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.ob(t,e[n])},qt.prototype.writeRepeatedInt32String=qt.prototype.Fd,qt.prototype.Gd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.ua(i))}},qt.prototype.writeRepeatedInt64=qt.prototype.Gd,qt.prototype.Qd=function(t,e,n,i){if(null!=e)for(var r=0;r<e.length;r++)this.A(t,n(e[r]),i(e[r]))},qt.prototype.writeRepeatedSplitFixed64=qt.prototype.Qd,qt.prototype.Rd=function(t,e,n,i){if(null!=e)for(var r=0;r<e.length;r++)this.l(t,n(e[r]),i(e[r]))},qt.prototype.writeRepeatedSplitVarint64=qt.prototype.Rd,qt.prototype.Sd=function(t,e,n,i){if(null!=e)for(var r=0;r<e.length;r++)this.tb(t,n(e[r]),i(e[r]))},qt.prototype.writeRepeatedSplitZigzagVarint64=qt.prototype.Sd,qt.prototype.Hd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.ka(t,e[n])},qt.prototype.writeRepeatedInt64String=qt.prototype.Hd,qt.prototype.Ud=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)Qt(this,t,e[n])},qt.prototype.writeRepeatedUint32=qt.prototype.Ud,qt.prototype.Vd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.ub(t,e[n])},qt.prototype.writeRepeatedUint32String=qt.prototype.Vd,qt.prototype.Wd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.va(i))}},qt.prototype.writeRepeatedUint64=qt.prototype.Wd,qt.prototype.Xd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.vb(t,e[n])},qt.prototype.writeRepeatedUint64String=qt.prototype.Xd,qt.prototype.Md=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.wa(i))}},qt.prototype.writeRepeatedSint32=qt.prototype.Md,qt.prototype.Nd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.xa(i))}},qt.prototype.writeRepeatedSint64=qt.prototype.Nd,qt.prototype.Od=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.Ta(i))}},qt.prototype.writeRepeatedSint64String=qt.prototype.Od,qt.prototype.Pd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++){var i=e[n];null!=i&&(Yt(this,t,0),this.a.W(i))}},qt.prototype.writeRepeatedSintHash64=qt.prototype.Pd,qt.prototype.yd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.Pa(t,e[n])},qt.prototype.writeRepeatedFixed32=qt.prototype.yd,qt.prototype.zd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.Qa(t,e[n])},qt.prototype.writeRepeatedFixed64=qt.prototype.zd,qt.prototype.Ad=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.nb(t,e[n])},qt.prototype.writeRepeatedFixed64String=qt.prototype.Ad,qt.prototype.Jd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.Ra(t,e[n])},qt.prototype.writeRepeatedSfixed32=qt.prototype.Jd,qt.prototype.Kd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.Sa(t,e[n])},qt.prototype.writeRepeatedSfixed64=qt.prototype.Kd,qt.prototype.Ld=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.qb(t,e[n])},qt.prototype.writeRepeatedSfixed64String=qt.prototype.Ld,qt.prototype.Cd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.L(t,e[n])},qt.prototype.writeRepeatedFloat=qt.prototype.Cd,qt.prototype.wd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.J(t,e[n])},qt.prototype.writeRepeatedDouble=qt.prototype.wd,qt.prototype.ud=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.I(t,e[n])},qt.prototype.writeRepeatedBool=qt.prototype.ud,qt.prototype.xd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.R(t,e[n])},qt.prototype.writeRepeatedEnum=qt.prototype.xd,qt.prototype.Td=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.U(t,e[n])},qt.prototype.writeRepeatedString=qt.prototype.Td,qt.prototype.vd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.ja(t,e[n])},qt.prototype.writeRepeatedBytes=qt.prototype.vd,qt.prototype.Id=function(t,e,n){if(null!=e)for(var i=0;i<e.length;i++){var r=Ht(this,t);n(e[i],this),Zt(this,r)}},qt.prototype.writeRepeatedMessage=qt.prototype.Id,qt.prototype.Dd=function(t,e,n){if(null!=e)for(var i=0;i<e.length;i++)Yt(this,t,3),n(e[i],this),Yt(this,t,4)},qt.prototype.writeRepeatedGroup=qt.prototype.Dd,qt.prototype.Bd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.K(t,e[n])},qt.prototype.writeRepeatedFixedHash64=qt.prototype.Bd,qt.prototype.Yd=function(t,e){if(null!=e)for(var n=0;n<e.length;n++)this.N(t,e[n])},qt.prototype.writeRepeatedVarintHash64=qt.prototype.Yd,qt.prototype.ad=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.M(e[n]);Zt(this,t)}},qt.prototype.writePackedInt32=qt.prototype.ad,qt.prototype.bd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.M(parseInt(e[n],10));Zt(this,t)}},qt.prototype.writePackedInt32String=qt.prototype.bd,qt.prototype.cd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.ua(e[n]);Zt(this,t)}},qt.prototype.writePackedInt64=qt.prototype.cd,qt.prototype.md=function(t,e,n,i){if(null!=e){t=Ht(this,t);for(var r=0;r<e.length;r++)this.a.A(n(e[r]),i(e[r]));Zt(this,t)}},qt.prototype.writePackedSplitFixed64=qt.prototype.md,qt.prototype.nd=function(t,e,n,i){if(null!=e){t=Ht(this,t);for(var r=0;r<e.length;r++)this.a.l(n(e[r]),i(e[r]));Zt(this,t)}},qt.prototype.writePackedSplitVarint64=qt.prototype.nd,qt.prototype.od=function(t,e,n,i){if(null!=e){t=Ht(this,t);for(var r=this.a,o=0;o<e.length;o++)H(n(e[o]),i(e[o]),function(t,e){r.l(t>>>0,e>>>0)});Zt(this,t)}},qt.prototype.writePackedSplitZigzagVarint64=qt.prototype.od,qt.prototype.dd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++){var i=Wt(e[n]);this.a.l(i.lo,i.hi)}Zt(this,t)}},qt.prototype.writePackedInt64String=qt.prototype.dd,qt.prototype.pd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.j(e[n]);Zt(this,t)}},qt.prototype.writePackedUint32=qt.prototype.pd,qt.prototype.qd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.j(parseInt(e[n],10));Zt(this,t)}},qt.prototype.writePackedUint32String=qt.prototype.qd,qt.prototype.rd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.va(e[n]);Zt(this,t)}},qt.prototype.writePackedUint64=qt.prototype.rd,qt.prototype.sd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++){var i=Gt(e[n]);this.a.l(i.lo,i.hi)}Zt(this,t)}},qt.prototype.writePackedUint64String=qt.prototype.sd,qt.prototype.hd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.wa(e[n]);Zt(this,t)}},qt.prototype.writePackedSint32=qt.prototype.hd,qt.prototype.jd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.xa(e[n]);Zt(this,t)}},qt.prototype.writePackedSint64=qt.prototype.jd,qt.prototype.kd=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.W(et(e[n]));Zt(this,t)}},qt.prototype.writePackedSint64String=qt.prototype.kd,qt.prototype.ld=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.W(e[n]);Zt(this,t)}},qt.prototype.writePackedSintHash64=qt.prototype.ld,qt.prototype.Wc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.s(e[t])},qt.prototype.writePackedFixed32=qt.prototype.Wc,qt.prototype.Xc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.V(e[t])},qt.prototype.writePackedFixed64=qt.prototype.Xc,qt.prototype.Yc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++){var n=Gt(e[t]);this.a.A(n.lo,n.hi)}},qt.prototype.writePackedFixed64String=qt.prototype.Yc,qt.prototype.ed=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.S(e[t])},qt.prototype.writePackedSfixed32=qt.prototype.ed,qt.prototype.fd=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.T(e[t])},qt.prototype.writePackedSfixed64=qt.prototype.fd,qt.prototype.gd=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.ka(e[t])},qt.prototype.writePackedSfixed64String=qt.prototype.gd,qt.prototype.$c=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(4*e.length),t=0;t<e.length;t++)this.a.L(e[t])},qt.prototype.writePackedFloat=qt.prototype.$c,qt.prototype.Uc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.J(e[t])},qt.prototype.writePackedDouble=qt.prototype.Uc,qt.prototype.Tc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(e.length),t=0;t<e.length;t++)this.a.I(e[t])},qt.prototype.writePackedBool=qt.prototype.Tc,qt.prototype.Vc=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.R(e[n]);Zt(this,t)}},qt.prototype.writePackedEnum=qt.prototype.Vc,qt.prototype.Zc=function(t,e){if(null!=e&&e.length)for(Yt(this,t,2),this.a.j(8*e.length),t=0;t<e.length;t++)this.a.K(e[t])},qt.prototype.writePackedFixedHash64=qt.prototype.Zc,qt.prototype.td=function(t,e){if(null!=e&&e.length){t=Ht(this,t);for(var n=0;n<e.length;n++)this.a.N(e[n]);Zt(this,t)}},qt.prototype.writePackedVarintHash64=qt.prototype.td,e.debug=Dt,e.Map=k,e.Message=yt,e.BinaryReader=ut,e.BinaryWriter=qt,e.ExtensionFieldInfo=dt,e.ExtensionFieldBinaryInfo=ft,e.exportSymbol=function(t,e,n){c(t,e,n)},e.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},e.object={extend:function(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<f.length;o++)n=f[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}},e.typeOf=p},154(t,e,n){var i;function r(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},a=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof n.g&&n.g,t];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(){s=function(){},a.Symbol||(a.Symbol=h)}function l(t,e){this.a=t,o(this,"description",{configurable:!0,writable:!0,value:e})}l.prototype.toString=function(){return this.a};var u,h=(u=0,function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new l("jscomp_symbol_"+(e||"")+"_"+u++,e)});function c(){s();var t=a.Symbol.iterator;t||(t=a.Symbol.iterator=a.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&o(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return function(t){return c(),(t={next:t})[a.Symbol.iterator]=function(){return this},t}(r(this))}}),c=function(){}}function p(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:r(t)}}var d,f="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};if("function"==typeof Object.setPrototypeOf)d=Object.setPrototypeOf;else{var y;t:{var g={};try{g.__proto__={V:!0},y=g.V;break t}catch(et){}y=!1}d=y?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var v=d;function m(t,e){if(t.prototype=f(e.prototype),t.prototype.constructor=t,v)v(t,e);else for(var n in e)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}else t[n]=e[n];t.O=e.prototype}function _(t,e){if(e){var n=a;t=t.split(".");for(var i=0;i<t.length-1;i++){var r=t[i];r in n||(n[r]={}),n=n[r]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&o(n,t,{configurable:!0,writable:!0,value:e})}}_("Array.prototype.keys",function(t){return t||function(){return function(t,e){c(),t instanceof String&&(t+="");var n=0,i={next:function(){if(n<t.length){var r=n++;return{value:e(r,t[r]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}};return i[Symbol.iterator]=function(){return i},i}(this,function(t){return t})}}),_("Array.prototype.find",function(t){return t||function(t,e){t:{var n=this;n instanceof String&&(n=String(n));for(var i=n.length,r=0;r<i;r++){var o=n[r];if(t.call(e,o,r,n)){t=o;break t}}t=void 0}return t}}),_("Object.is",function(t){return t||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}}),_("Array.prototype.includes",function(t){return t||function(t,e){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(0>(e=e||0)&&(e=Math.max(e+i,0));e<i;e++){var r=n[e];if(r===t||Object.is(r,t))return!0}return!1}}),_("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}}function n(){this.a=null}function i(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var r=a.setTimeout;n.prototype.c=function(t){r(t,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(t){this.f(t)}}}this.a=null},n.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.s),reject:t(this.g)}},e.prototype.s=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.v(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.m(t):this.h(t)}},e.prototype.m=function(t){var e=void 0;try{e=t.then}catch(t){return void this.g(t)}"function"==typeof e?this.w(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)o.b(this.a[t]);this.a=null}};var o=new n;return e.prototype.v=function(t){var e=this.f();t.F(e.resolve,e.reject)},e.prototype.w=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(t){n.reject(t)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(t){o(t)}}:e}var r,o,a=new e(function(t,e){r=t,o=e});return this.F(i(t,r),i(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.F=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?o.b(n):this.a.push(n)},e.resolve=i,e.reject=function(t){return new e(function(e,n){n(t)})},e.race=function(t){return new e(function(e,n){for(var r=p(t),o=r.next();!o.done;o=r.next())i(o.value).F(e,n)})},e.all=function(t){var n=p(t),r=n.next();return r.done?i([]):new e(function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,i(r.value).F(o(a.length-1),e),r=n.next()}while(!r.done)})},e});var b=b||{},w=this||self;function E(t,e){t=t.split("."),e=e||w;for(var n=0;n<t.length;n++)if(null==(e=e[t[n]]))return null;return e}function k(){}function A(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var M="closure_uid_"+(1e9*Math.random()>>>0),C=0;function S(t,e,n){return t.call.apply(t.bind,arguments)}function R(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function x(t,e,n){return(x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?S:R).apply(null,arguments)}function T(t,e){function n(){}n.prototype=e.prototype,t.O=e.prototype,t.prototype=new n,t.prototype.constructor=t}function P(t){this.a=t||{}}function L(t,e,n,i){this.f=t,this.c=e,this.b=n,this.a=i}function B(t,e,n,i){n=void 0===n?{}:n,this.c=t,this.a=n,this.b=e,this.f=void 0===i?null:i}function I(t,e,n,i,r,o){this.name=t,this.a=r,this.b=o}function F(t,e,n){n=void 0===n?{}:n;var i=void 0===i?new P:i;return new L(e,t,n,i)}function O(t,e,n){n=void 0===n?{}:n,e=Error.call(this,e),this.message=e.message,"stack"in e&&(this.stack=e.stack),this.code=t,this.metadata=n}function D(t){this.a=t}function z(t){if(Error.captureStackTrace)Error.captureStackTrace(this,z);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function N(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");z.call(this,n+t[i])}function j(){this.l=null,this.i=[],this.m=0,this.b=G,this.f=this.a=this.h=0,this.c=null,this.g=0}P.prototype.get=function(t){return this.a[t]},P.prototype.G=function(){return Object.keys(this.a)},L.prototype.getRequestMessage=function(){return this.f},L.prototype.getMethodDescriptor=function(){return this.c},L.prototype.getMetadata=function(){return this.b},L.prototype.getCallOptions=function(){return this.a},B.prototype.getResponseMessage=function(){return this.c},B.prototype.getMetadata=function(){return this.a},B.prototype.getMethodDescriptor=function(){return this.b},B.prototype.getStatus=function(){return this.f},I.prototype.getName=function(){return this.name},I.prototype.getName=I.prototype.getName,m(O,Error),O.prototype.toString=function(){var t="RpcError("+(function(t){switch(t){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";default:return""}}(this.code)||String(this.code))+")";return this.message&&(t+=": "+this.message),t},O.prototype.name="RpcError",D.prototype.on=function(t,e){return"data"==t||"error"==t?this:this.a.on(t,e)},D.prototype.removeListener=function(t,e){return this.a.removeListener(t,e)},D.prototype.cancel=function(){this.a.cancel()},T(z,Error),z.prototype.name="CustomError",T(N,z),N.prototype.name="AssertionError";var G=0,U=128;function W(t,e,n,i){throw t.b=3,t.l="The stream is broken @"+t.m+"/"+n+". Error: "+i+". With input:\n"+e,Error(t.l)}var q,V=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},H=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function Z(t,e){return-1!=t.indexOf(e)}function Y(t,e){return t<e?-1:t>e?1:0}t:{var Q=w.navigator;if(Q){var $=Q.userAgent;if($){q=$;break t}}q=""}var X="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function J(t){var e=1;t=t.split(":");for(var n=[];0<e&&t.length;)n.push(t.shift()),e--;return t.length&&n.push(t.join(":")),n}function K(t){return K[" "](t),t}K[" "]=k;var tt,et,nt=Z(q,"Opera"),it=Z(q,"Trident")||Z(q,"MSIE"),rt=Z(q,"Edge"),ot=Z(q,"Gecko")&&!(Z(q.toLowerCase(),"webkit")&&!Z(q,"Edge"))&&!(Z(q,"Trident")||Z(q,"MSIE"))&&!Z(q,"Edge"),at=Z(q.toLowerCase(),"webkit")&&!Z(q,"Edge");t:{var st="",lt=(et=q,ot?/rv:([^\);]+)(\)|;)/.exec(et):rt?/Edge\/([\d\.]+)/.exec(et):it?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(et):at?/WebKit\/(\S+)/.exec(et):nt?/(?:Version)[ \/]?(\S+)/.exec(et):void 0);if(lt&&(st=lt?lt[1]:""),it){var ut,ht=w.document;if(null!=(ut=ht?ht.documentMode:void 0)&&ut>parseFloat(st)){tt=String(ut);break t}}tt=st}var ct={};function pt(){0!=dt&&(Object.prototype.hasOwnProperty.call(this,M)&&this[M]||(this[M]=++C)),this.K=this.K}var dt=0;pt.prototype.K=!1;var ft=Object.freeze||function(t){return t};function yt(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}yt.prototype.b=function(){this.defaultPrevented=!0};var gt=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{w.addEventListener("test",k,e),w.removeEventListener("test",k,e)}catch(t){}return t}();function vt(t,e){if(yt.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(ot){t:{try{K(e.nodeName);var r=!0;break t}catch(t){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:mt[t.pointerType]||"",this.c=t,t.defaultPrevented&&vt.O.b.call(this)}}T(vt,yt);var mt=ft({2:"touch",3:"pen",4:"mouse"});vt.prototype.b=function(){vt.O.b.call(this);var t=this.c;t.preventDefault?t.preventDefault():t.returnValue=!1};var _t="closure_listenable_"+(1e6*Math.random()|0),bt=0;function wt(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.H=r,this.key=++bt,this.A=this.D=!1}function Et(t){t.A=!0,t.listener=null,t.proxy=null,t.src=null,t.H=null}function kt(t){this.src=t,this.a={},this.b=0}function At(t,e){var n=e.type;if(n in t.a){var i,r=t.a[n],o=V(r,e);(i=0<=o)&&Array.prototype.splice.call(r,o,1),i&&(Et(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function Mt(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.A&&o.listener==e&&o.capture==!!n&&o.H==i)return r}return-1}kt.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=Mt(t,e,i,r);return-1<a?(e=t[a],n||(e.D=!1)):((e=new wt(e,this.src,o,!!i,r)).D=n,t.push(e)),e},kt.prototype.remove=function(t,e,n,i){if(!((t=t.toString())in this.a))return!1;var r=this.a[t];return-1<(e=Mt(r,e,n,i))&&(Et(r[e]),Array.prototype.splice.call(r,e,1),0==r.length&&(delete this.a[t],this.b--),!0)};var Ct="closure_lm_"+(1e6*Math.random()|0),St={};function Rt(t,e,n,i,r){if(i&&i.once)Tt(t,e,n,i,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)Rt(t,e[o],n,i,r);else n=Dt(n),t&&t[_t]?t.f.add(String(e),n,!1,A(i)?!!i.capture:!!i,r):xt(t,e,n,!1,i,r)}function xt(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var a=A(r)?!!r.capture:!!r,s=Ft(t);if(s||(t[Ct]=s=new kt(t)),!(n=s.add(e,n,i,a,o)).proxy)if(i=function(){var t=It;return function e(n){return t.call(e.src,e.listener,n)}}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)gt||(r=a),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(Bt(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function Tt(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)Tt(t,e[o],n,i,r);else n=Dt(n),t&&t[_t]?t.f.add(String(e),n,!0,A(i)?!!i.capture:!!i,r):xt(t,e,n,!0,i,r)}function Pt(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)Pt(t,e[o],n,i,r);else i=A(i)?!!i.capture:!!i,n=Dt(n),t&&t[_t]?t.f.remove(String(e),n,i,r):t&&(t=Ft(t))&&(e=t.a[e.toString()],t=-1,e&&(t=Mt(e,n,i,r)),(n=-1<t?e[t]:null)&&Lt(n))}function Lt(t){if("number"!=typeof t&&t&&!t.A){var e=t.src;if(e&&e[_t])At(e.f,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(Bt(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=Ft(e))?(At(n,t),0==n.b&&(n.src=null,e[Ct]=null)):Et(t)}}}function Bt(t){return t in St?St[t]:St[t]="on"+t}function It(t,e){if(t.A)t=!0;else{e=new vt(e,this);var n=t.listener,i=t.H||t.src;t.D&&Lt(t),t=n.call(i,e)}return t}function Ft(t){return(t=t[Ct])instanceof kt?t:null}var Ot="__closure_events_fn_"+(1e9*Math.random()>>>0);function Dt(t){return"function"==typeof t?t:(t[Ot]||(t[Ot]=function(e){return t.handleEvent(e)}),t[Ot])}function zt(){pt.call(this),this.f=new kt(this),this.U=this}function Nt(t,e){t=t.U;var n=e.type||e;if("string"==typeof e)e=new yt(e,t);else if(e instanceof yt)e.target=e.target||t;else{var i=e;!function(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<X.length;o++)n=X[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}(e=new yt(n,t),i)}jt(t=e.a=t,n,!0,e),jt(t,n,!1,e)}function jt(t,e,n,i){if(e=t.f.a[String(e)]){e=e.concat();for(var r=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.A&&a.capture==n){var s=a.listener,l=a.H||a.src;a.D&&At(t.f,a),r=!1!==s.call(l,i)&&r}}}}T(zt,pt),zt.prototype[_t]=!0,zt.prototype.addEventListener=function(t,e,n,i){Rt(this,t,e,n,i)},zt.prototype.removeEventListener=function(t,e,n,i){Pt(this,t,e,n,i)};var Gt=w;function Ut(t,e,n){if("function"==typeof t)n&&(t=x(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=x(t.handleEvent,t)}return 2147483647<Number(e)?-1:Gt.setTimeout(t,e||0)}function Wt(t,e){this.name=t,this.value=e}Wt.prototype.toString=function(){return this.name};var qt,Vt,Ht,Zt=new Wt("OFF",1/0),Yt=new Wt("SEVERE",1e3),Qt=new Wt("CONFIG",700),$t=new Wt("FINE",500);function Xt(){this.clear()}function Jt(t,e,n){this.reset(t||Zt,e,n,void 0,void 0)}function Kt(t,e){this.a=null,this.f=[],this.b=(void 0===e?null:e)||null,this.c=[],this.g={getName:function(){return t}}}function te(t){return t.a?t.a:t.b?te(t.b):(function(t,e){throw new N("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),Zt)}function ee(){this.entries={};var t=new Kt("");t.a=Qt,this.entries[""]=t}function ne(t,e,n){var i=t.entries[e];if(i)return void 0!==n&&(i.a=n),i;i=ne(t,e.substr(0,e.lastIndexOf(".")));var r=new Kt(e,i);return t.entries[e]=r,i.c.push(r),void 0!==n&&(r.a=n),r}function ie(){return Vt||(Vt=new ee),Vt}function re(t,e,n){var i;(i=t)&&(i=t&&e)&&(i=(i=e.value)>=(t?te(ne(ie(),t.getName())):Zt).value),i&&(e=e||Zt,i=ne(ie(),t.getName()),"function"==typeof n&&(n=n()),qt||(qt=new Xt),function(t,e){for(;t;)t.f.forEach(function(t){t(e)}),t=t.b}(i,t=new Jt(e,n,t=t.getName())))}function oe(t,e){t&&re(t,$t,e)}function ae(){}function se(t){var e;return(e=t.a)||(e={},he(t)&&(e[0]=!0,e[1]=!0),e=t.a=e),e}function le(){}function ue(t){return(t=he(t))?new ActiveXObject(t):new XMLHttpRequest}function he(t){if(!t.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var i=e[n];try{return new ActiveXObject(i),t.b=i}catch(t){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.b}function ce(t,e){this.b=t[w.Symbol.iterator](),this.c=e,this.f=0}Xt.prototype.clear=function(){},Jt.prototype.reset=function(){},ae.prototype.a=null,T(le,ae),Ht=new le,s(),c(),ce.prototype[Symbol.iterator]=function(){return this},ce.prototype.next=function(){var t=this.b.next();return{value:t.done?void 0:this.c.call(void 0,t.value,this.f++),done:t.done}},s(),c(),s(),c();var pe="StopIteration"in w?w.StopIteration:{message:"StopIteration",stack:""};function de(){}function fe(t){if(t instanceof ge||t instanceof ve||t instanceof me)return t;if("function"==typeof t.next)return new ge(function(){return ye(t)});if(s(),c(),"function"==typeof t[Symbol.iterator])return s(),c(),new ge(function(){return t[Symbol.iterator]()});if("function"==typeof t.u)return new ge(function(){return ye(t.u())});throw Error("Not an iterator or iterable.")}function ye(t){if(!(t instanceof de))return t;var e=!1;return{next:function(){for(var n;!e;)try{n=t.a();break}catch(t){if(t!==pe)throw t;e=!0}return{value:n,done:e}}}}function ge(t){this.b=t}function ve(t){this.b=t}function me(t){ge.call(this,function(){return t}),this.f=t}function _e(t,e){this.o={},this.j=[],this.B=this.size=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else t&&this.addAll(t)}function be(t){if(t.size!=t.j.length){for(var e=0,n=0;e<t.j.length;){var i=t.j[e];we(t.o,i)&&(t.j[n++]=i),e++}t.j.length=n}if(t.size!=t.j.length){var r={};for(n=e=0;e<t.j.length;)we(r,i=t.j[e])||(t.j[n++]=i,r[i]=1),e++;t.j.length=n}}function we(t,e){return Object.prototype.hasOwnProperty.call(t,e)}de.prototype.next=function(){return de.prototype.a.call(this)},de.prototype.a=function(){throw pe},de.prototype.u=function(){return this},s(),c(),ge.prototype.u=function(){return new ve(this.b())},ge.prototype[Symbol.iterator]=function(){return new me(this.b())},ge.prototype.c=function(){return new me(this.b())},s(),c(),m(ve,de),ve.prototype.a=function(){var t=this.b.next();if(t.done)throw pe;return t.value},ve.prototype.next=function(){return ve.prototype.a.call(this)},ve.prototype[Symbol.iterator]=function(){return new me(this.b)},ve.prototype.c=function(){return new me(this.b)},m(me,ge),me.prototype.next=function(){return this.f.next()},(i=_e.prototype).G=function(){return be(this),this.j.concat()},i.has=function(t){return we(this.o,t)},i.clear=function(){this.o={},this.B=this.size=this.j.length=0},i.remove=function(t){return this.delete(t)},i.delete=function(t){return!!we(this.o,t)&&(delete this.o[t],--this.size,this.B++,this.j.length>2*this.size&&be(this),!0)},i.get=function(t,e){return we(this.o,t)?this.o[t]:e},i.set=function(t,e){we(this.o,t)||(this.size+=1,this.j.push(t),this.B++),this.o[t]=e},i.addAll=function(t){if(t instanceof _e)for(var e=t.G(),n=0;n<e.length;n++)this.set(e[n],t.get(e[n]));else for(e in t)this.set(e,t[e])},i.forEach=function(t,e){for(var n=this.G(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}},i.clone=function(){return new _e(this)},i.keys=function(){return fe(this.u(!0)).c()},i.values=function(){return fe(this.u(!1)).c()},i.entries=function(){var t=this;return function(t,e){return new ce(t,e)}(this.keys(),function(e){return[e,t.get(e)]})},i.u=function(t){be(this);var e=0,n=this.B,i=this,r=new de;return r.a=function(){if(n!=i.B)throw Error("The map has changed since the iterator was created");if(e>=i.j.length)throw pe;var r=i.j[e++];return t?r:i.o[r]},r.next=r.a.bind(r),r};var Ee=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ke(t){zt.call(this),this.headers=new _e,this.C=t||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=Ae,this.I=this.M=!1}T(ke,zt);var Ae="";ke.prototype.b=ne(ie(),"goog.net.XhrIo",void 0).g;var Me=/^https?$/i,Ce=["POST","PUT"];function Se(t,e){t.c=!1,t.a&&(t.i=!0,t.a.abort(),t.i=!1),t.l=e,t.g=5,Re(t),Te(t)}function Re(t){t.L||(t.L=!0,Nt(t,"complete"),Nt(t,"error"))}function xe(t){if(t.c&&void 0!==b)if(t.J[1]&&4==Le(t)&&2==t.getStatus())oe(t.b,Be(t,"Local request error detected and ignored"));else if(t.s&&4==Le(t))Ut(t.R,0,t);else if(Nt(t,"readystatechange"),4==Le(t)){oe(t.b,Be(t,"Request complete")),t.c=!1;try{var e,n=t.getStatus();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var o=String(t.v).match(Ee)[1]||null;if(!o&&w.self&&w.self.location){var a=w.self.location.protocol;o=a.substr(0,a.length-1)}r=!Me.test(o?o.toLowerCase():"")}e=r}if(e)Nt(t,"complete"),Nt(t,"success");else{t.g=6;try{var s=2<Le(t)?t.a.statusText:""}catch(e){oe(t.b,"Can not get status: "+e.message),s=""}t.l=s+" ["+t.getStatus()+"]",Re(t)}}finally{Te(t)}}}function Te(t){if(t.a){Pe(t);var e=t.a,n=t.J[0]?k:null;t.a=null,t.J=null,Nt(t,"ready");try{e.onreadystatechange=n}catch(e){(t=t.b)&&re(t,Yt,"Problem encountered resetting onreadystatechange: "+e.message)}}}function Pe(t){t.a&&t.I&&(t.a.ontimeout=null),t.w&&(Gt.clearTimeout(t.w),t.w=null)}function Le(t){return t.a?t.a.readyState:0}function Be(t,e){return e+" ["+t.P+" "+t.v+" "+t.getStatus()+"]"}(i=ke.prototype).T=function(){void 0!==b&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,oe(this.b,Be(this,this.l)),Nt(this,"timeout"),this.abort(8))},i.abort=function(t){this.a&&this.c&&(oe(this.b,Be(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=t||7,Nt(this,"complete"),Nt(this,"abort"),Te(this))},i.R=function(){this.K||(this.N||this.s||this.i?xe(this):this.W())},i.W=function(){xe(this)},i.getStatus=function(){try{return 2<Le(this)?this.a.status:-1}catch(t){return-1}};var Ie={},Fe=null;function Oe(){if(!Fe){Fe={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var i=t.concat(e[n].split(""));Ie[n]=i;for(var r=0;r<i.length;r++){var o=i[r];void 0===Fe[o]&&(Fe[o]=r)}}}}var De=["content-type","grpc-status","grpc-message"];function ze(t){this.a=t.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new j;var e=this;Rt(this.a,"readystatechange",function(){var t=e.a;if(t=t.a?t.a.getResponseHeader("Content-Type"):null){if(0==(t=t.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){t=e.a;try{var n=t.a?t.a.responseText:""}catch(e){oe(t.b,"Can not get responseText: "+e.message),n=""}if(n=(t=n||"").length-t.length%4,0==(t=t.substr(e.i,n-e.i)).length)return;e.i=n,t=function(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):Z("=.",t[e-1])&&(n=Z("=.",t[e-2])?n-2:n-1);var i=new Uint8Array(n),r=0;return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=Fe[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}Oe();for(var i=0;;){var r=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===r)break;e(r<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,function(t){i[r++]=t}),i.subarray(0,r)}(t)}else{if(0!=t.lastIndexOf("application/grpc",0))return void je(e,new O(2,"Unknown Content-type received."));t=new Uint8Array(function(t){try{if(!t.a)return null;if("response"in t.a)return t.a.response;switch(t.m){case Ae:case"text":return t.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.a)return t.a.mozResponseArrayBuffer}var e=t.b;return e&&re(e,Yt,"Response type "+t.m+" is not supported on this browser"),null}catch(e){return oe(t.b,"Can not get response: "+e.message),null}}(e.a))}n=null;try{n=function(t,e){function n(t){0==t||t==U?s.h=t:W(s,a,l,"invalid frame byte"),s.b=1,s.a=0,s.f=0}function i(t){s.f++,s.a=(s.a<<8)+t,4==s.f&&(s.b=2,s.g=0,"undefined"!=typeof Uint8Array?s.c=new Uint8Array(s.a):s.c=Array(s.a),0==s.a&&o())}function r(t){s.c[s.g++]=t,s.g==s.a&&o()}function o(){var t={};t[s.h]=s.c,s.i.push(t),s.b=G}var a,s=t,l=0;for(a=e instanceof Uint8Array||e instanceof Array?e:new Uint8Array(e);l<a.length;){switch(s.b){case 3:W(s,a,l,"stream already broken");break;case G:n(a[l]);break;case 1:i(a[l]);break;case 2:r(a[l]);break;default:throw Error("unexpected parser state: "+s.b)}s.m++,l++}return t=s.i,s.i=[],0<t.length?t:null}(e.s,t)}catch(t){je(e,new O(2,"Error in parsing response body"))}if(n)for(t=0;t<n.length;t++){if(0 in n[t]){var i=n[t][0];if(i){var r=!1,o=void 0;try{o=e.m(i),r=!0}catch(t){je(e,new O(13,"Error when deserializing response data; error: "+t+", response: "+o))}if(r)for(i=o,r=0;r<e.b.length;r++)e.b[r](i)}}if(U in n[t]&&0<n[t][U].length){for(i="",r=0;r<n[t][U].length;r++)i+=String.fromCharCode(n[t][U][r]);for(i=i.trim().split("\r\n"),r={},o=0;o<i.length;o++){var a=i[o].indexOf(":");r[i[o].substring(0,a).trim()]=i[o].substring(a+1).trim()}i=r,r=0,o="","grpc-status"in i&&(r=Number(i["grpc-status"]),delete i["grpc-status"]),"grpc-message"in i&&(o=i["grpc-message"],delete i["grpc-message"]),je(e,new O(r,o,i))}}}}),Rt(this.a,"complete",function(){var t=e.a.g,n=2,i="",r={};n=function(t){var e={};t=(t.a&&4==Le(t)&&t.a.getAllResponseHeaders()||"").split("\r\n");for(var n=0;n<t.length;n++)if(!/^[\s\xa0]*$/.test(t[n])){var i=J(t[n]),r=i[0];if("string"==typeof(i=i[1])){i=i.trim();var o=e[r]||[];e[r]=o,o.push(i)}}return function(t,e){var n,i={};for(n in t)i[n]=e.call(void 0,t[n],n,t);return i}(e,function(t){return t.join(", ")})}(e.a);var o={};for(a in n)n.hasOwnProperty(a)&&(o[a.toLowerCase()]=n[a]);Object.keys(o).forEach(function(t){De.includes(t)||(r[t]=o[t])}),function(t,e){for(var n=0;n<t.g.length;n++)t.g[n](e)}(e,r);var a=-1;if(0!=t){switch(t){case 7:n=10;break;case 8:n=4;break;case 6:n=function(t){switch(t){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:default:return 2;case 501:return 12;case 503:return 14;case 504:return 4}}(a=e.a.getStatus());break;default:n=14}10==n&&e.l||(i=function(t){switch(t){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}(t),-1!=a&&(i+=", http status code: "+a),je(e,new O(n,i)))}else t=!1,"grpc-status"in o&&(n=Number(o["grpc-status"]),"grpc-message"in o&&(i=o["grpc-message"]),0!=n&&(je(e,new O(n,i||"",o)),t=!0)),t||function(t){for(var e=0;e<t.c.length;e++)t.c[e]()}(e)})}function Ne(t,e){-1<(e=t.indexOf(e))&&t.splice(e,1)}function je(t,e){if(0!=e.code)for(var n=new O(e.code,decodeURIComponent(e.message||""),e.metadata),i=0;i<t.f.length;i++)t.f[i](n);for(e={code:e.code,details:decodeURIComponent(e.message||""),metadata:e.metadata},n=0;n<t.h.length;n++)t.h[n](e)}function Ge(t,e){t=void 0===t?{}:t,this.a=t.format||E("format",t)||"text",this.g=t.aa||E("suppressCorsPreflight",t)||!1,this.f=t.withCredentials||E("withCredentials",t)||!1,this.b=t.$||E("streamInterceptors",t)||[],this.h=t.ba||E("unaryInterceptors",t)||[],this.c=e||null}function Ue(t,e,n){var i=e.getMethodDescriptor(),r=n+i.getName();(n=t.c?t.c:new ke).M=t.f;var o=new ze({Z:n});o.m=i.b;var a=e.getMetadata();for(s in a)n.headers.set(s,a[s]);if("text"==t.a?(n.headers.set("Content-Type","application/grpc-web-text"),n.headers.set("Accept","application/grpc-web-text")):n.headers.set("Content-Type","application/grpc-web+proto"),n.headers.set("X-User-Agent","grpc-web-javascript/0.1"),n.headers.set("X-Grpc-Web","1"),n.headers.has("deadline")){var s=Number(n.headers.get("deadline"));s=Math.ceil(s-(new Date).getTime()),n.headers.delete("deadline"),1/0===s&&(s=0),0<s&&(n.headers.set("grpc-timeout",s+"m"),n.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*s))))}if(t.g){s={};for(var l=p((a=n.headers).keys()),u=l.next();!u.done;u=l.next())s[u=u.value]=a.get(u);n.headers.clear();t:{for(h in s){var h=!1;break t}h=!0}h||(s=function(t){var e="";return function(t,e){for(var n in t)e.call(void 0,t[n],n,t)}(t,function(t,n){e+=n,e+=":",e+=t,e+="\r\n"}),e}(s),"string"==typeof r?(h=encodeURIComponent("$httpHeaders"),(h+=s=null!=s?"="+encodeURIComponent(String(s)):"")&&(0>(s=r.indexOf("#"))&&(s=r.length),0>(a=r.indexOf("?"))||a>s?(a=s,l=""):l=r.substring(a+1,s),s=(r=[r.substr(0,a),l,r.substr(s)])[1],r[1]=h?s?s+"&"+h:h:s,r=r[0]+(r[1]?"?"+r[1]:"")+r[2])):r.a("$httpHeaders",s))}for(i=(e=(0,i.a)(e.getRequestMessage())).length,h=[0,0,0,0],s=new Uint8Array(5+i),a=3;0<=a;a--)h[a]=i%256,i>>>=8;if(s.set(new Uint8Array(h),1),s.set(e,5),e=s,"text"==t.a){var c;for(t=e,void 0===c&&(c=0),Oe(),c=Ie[c],e=Array(Math.floor(t.length/3)),i=c[64]||"",h=s=0;s<t.length-2;s+=3){u=t[s];var d=t[s+1];l=t[s+2],a=c[u>>2],u=c[(3&u)<<4|d>>4],d=c[(15&d)<<2|l>>6],l=c[63&l],e[h++]=a+u+d+l}switch(a=0,l=i,t.length-s){case 2:l=c[(15&(a=t[s+1]))<<2]||i;case 1:t=t[s],e[h]=c[t>>2]+c[(3&t)<<4|a>>4]+l+i}e=e.join("")}else"binary"==t.a&&(n.m="arraybuffer");return function(t,e,n){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.v+"; newUri="+e);t.v=e,t.l="",t.g=0,t.P="POST",t.L=!1,t.c=!0,t.a=t.C?ue(t.C):ue(Ht),t.J=t.C?se(t.C):se(Ht),t.a.onreadystatechange=x(t.R,t);try{oe(t.b,Be(t,"Opening Xhr")),t.N=!0,t.a.open("POST",String(e),!0),t.N=!1}catch(e){return oe(t.b,Be(t,"Error opening Xhr: "+e.message)),void Se(t,e)}e=n||"";var i=(n=t.headers.clone()).G().find(function(t){return"content-type"==t.toLowerCase()}),r=w.FormData&&e instanceof w.FormData;!(0<=V(Ce,"POST"))||i||r||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.M&&(t.a.withCredentials=t.M);try{Pe(t),0<t.h&&(t.I=function(t){return it&&function(){var t=ct;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var t=0,e=H(String(tt)).split("."),n=H("9").split("."),i=Math.max(e.length,n.length),r=0;0==t&&r<i;r++){var o=e[r]||"",a=n[r]||"";do{if(o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==o[0].length&&0==a[0].length)break;t=Y(0==o[1].length?0:parseInt(o[1],10),0==a[1].length?0:parseInt(a[1],10))||Y(0==o[2].length,0==a[2].length)||Y(o[2],a[2]),o=o[3],a=a[3]}while(0==t)}return 0<=t}()}()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),oe(t.b,Be(t,"Will abort after "+t.h+"ms if incomplete, xhr2 "+t.I)),t.I?(t.a.timeout=t.h,t.a.ontimeout=x(t.T,t)):t.w=Ut(t.T,t.h,t)),oe(t.b,Be(t,"Sending request")),t.s=!0,t.a.send(e),t.s=!1}catch(e){oe(t.b,Be(t,"Send error: "+e.message)),Se(t,e)}}(n,r,e),o}function We(t,e,n){var i=!1,r=null,o=!1;t.on("data",function(t){i=!0,r=t}),t.on("error",function(t){0==t.code||o||(o=!0,e(t,null))}),t.on("status",function(t){0==t.code||o?n&&e(null,null,t):(o=!0,e({code:t.code,message:t.details,metadata:t.metadata},null))}),n&&t.on("metadata",function(t){e(null,null,null,t)}),t.on("end",function(){o||(i?n?e(null,r,null,null,!0):e(null,r):e({code:2,message:"Incomplete response"})),n&&e(null,null)})}function qe(t,e){var n=t;return e.forEach(function(t){var e=n;n=function(n){return t.intercept(n,e)}}),n}ze.prototype.on=function(t,e){return"data"==t?this.b.push(e):"status"==t?this.h.push(e):"metadata"==t?this.g.push(e):"end"==t?this.c.push(e):"error"==t&&this.f.push(e),this},ze.prototype.removeListener=function(t,e){return"data"==t?Ne(this.b,e):"status"==t?Ne(this.h,e):"metadata"==t?Ne(this.g,e):"end"==t?Ne(this.c,e):"error"==t&&Ne(this.f,e),this},ze.prototype.cancel=function(){this.l=!0,this.a.abort()},ze.prototype.cancel=ze.prototype.cancel,ze.prototype.removeListener=ze.prototype.removeListener,ze.prototype.on=ze.prototype.on,Ge.prototype.X=function(t,e,n,i,r){var o=this,a=t.substr(0,t.length-i.name.length);return We(t=qe(function(t){return Ue(o,t,a)},this.b).call(this,F(i,e,n)),r,!1),new D(t)},Ge.prototype.S=function(t,e,n,i){var r=this,o=t.substr(0,t.length-i.name.length);return qe(function(t){return new Promise(function(e,n){var i,a,s;We(Ue(r,t,o),function(r,o,l,u,h){r?n(r):h?s=o:l?a=l:u?i=u:(r=t.getMethodDescriptor(),e(new B(s,r,o=void 0===(o=i)?{}:o,void 0===a?null:a)))},!0)})},this.h).call(this,F(i,e,n)).then(function(t){return t.getResponseMessage()})},Ge.prototype.unaryCall=function(t,e,n,i){return this.S(t,e,n,i)},Ge.prototype.Y=function(t,e,n,i){var r=this,o=t.substr(0,t.length-i.name.length);return qe(function(t){return Ue(r,t,o)},this.b).call(this,F(i,e,n))},Ge.prototype.serverStreaming=Ge.prototype.Y,Ge.prototype.unaryCall=Ge.prototype.unaryCall,Ge.prototype.thenableCall=Ge.prototype.S,Ge.prototype.rpcCall=Ge.prototype.X,t.exports.CallOptions=P,t.exports.MethodDescriptor=I,t.exports.GrpcWebClientBase=Ge,t.exports.RpcError=O,t.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},t.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},Gt="undefined"!=typeof globalThis&&globalThis||self}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{Entity:()=>h,EntityACI:()=>_,EntityACL:()=>b,Property:()=>a,TransactionService:()=>F});var t=n(840);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function o(e){var n=t.F.v1.ScalarValue.ScalarValueCase;switch(e.getScalarValueCase()){case n.SCALAR_VALUE_NOT_SET:return;case n.INTEGER_VALUE:return e.getIntegerValue();case n.DOUBLE_VALUE:return e.getDoubleValue();case n.BOOLEAN_VALUE:return e.getBooleanValue();case n.STRING_VALUE:return e.getStringValue();case n.SPECIAL_VALUE:return e.getSpecialValue();default:throw new Error("Unkown value type ".concat(e.getScalarValueCase(),"."))}}var a=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrappedProperty=e},(n=[{key:"getName",value:function(){return this.wrappedProperty.getName()}},{key:"getId",value:function(){return this.wrappedProperty.getId()}},{key:"getUnit",value:function(){return this.wrappedProperty.getUnit()}},{key:"getValue",value:function(){var e=this.wrappedProperty.getValue();if(void 0!==e){var n=t.F.v1.Value.ValueCase;switch(e.getValueCase()){case n.VALUE_NOT_SET:return;case n.SCALAR_VALUE:return o(e.getScalarValue());case n.LIST_VALUES:return e.getListValues().getValuesList().map(function(t){return o(t)});default:throw new Error("Unknown value type ".concat(e.getValueCase(),"."))}}}},{key:"isList",value:function(){return this.wrappedProperty.getDataType().getDataTypeCase()===t.F.v1.DataType.DataTypeCase.LIST_DATA_TYPE}},{key:"isReference",value:function(){var e=this.wrappedProperty.getDataType(),n=e.getDataTypeCase();return n===t.F.v1.DataType.DataTypeCase.REFERENCE_DATA_TYPE||n===t.F.v1.DataType.DataTypeCase.LIST_DATA_TYPE&&e.getListDataType().getListDataTypeCase()===t.F.v1.ListDataType.ListDataTypeCase.REFERENCE_DATA_TYPE}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function u(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}var h=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrappedEntity=e},(n=[{key:"getDescription",value:function(){return this.wrappedEntity.getDescription()}},{key:"getFilePath",value:function(){if(!this.isFile())throw new Error("Only FILE entities can have a file path.");return this.wrappedEntity.getFileDescriptor().getPath()}},{key:"getId",value:function(){return this.wrappedEntity.getId()}},{key:"getName",value:function(){return this.wrappedEntity.getName()}},{key:"getParents",value:function(){return this.wrappedEntity.getParentsList()}},{key:"getProperties",value:function(){return this.wrappedEntity.getPropertiesList().map(function(t){return new a(t)})}},{key:"getProperty",value:function(t){var e=this.getProperties();if(e){var n,i=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw r}}}}(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.getName().toLowerCase()===t.toLowerCase())return r}}catch(t){i.e(t)}finally{i.f()}}}},{key:"getRole",value:function(){return function(e){var n=t.F.v1.EntityRole;switch(e){case n.ENTITY_ROLE_UNSPECIFIED:return;case n.ENTITY_ROLE_RECORD_TYPE:return"RECORD_TYPE";case n.ENTITY_ROLE_RECORD:return"RECORD";case n.ENTITY_ROLE_PROPERTY:return"PROPERTY";case n.ENTITY_ROLE_FILE:return"FILE";default:throw new Error("Unknown role ".concat(e,"."))}}(this.wrappedEntity.getRole())}},{key:"isRecord",value:function(){return this.wrappedEntity.getRole()===t.F.v1.EntityRole.ENTITY_ROLE_RECORD}},{key:"isFile",value:function(){return this.wrappedEntity.getRole()===t.F.v1.EntityRole.ENTITY_ROLE_FILE}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function g(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}var m,_=g(function t(e){var n=e.role,i=e.grant,r=e.priority,o=e.permissions,a=e.capabilities;f(this,t),this.role=n,this.grant=i,this.priority=r,this.permissions=o||{retrieve_entity:!1,retrieve_acl:!1,retrieve_history:!1,retrieve_owner:!1,retrieve_file:!1,delete_entity:!1,edit_acl:!1,update_description:!1,update_value:!1,update_role:!1,update_remove_parent:!1,update_add_parent:!1,update_remove_property:!1,update_add_property:!1,update_name:!1,update_data_type:!1,update_query_template_definition:!1,update_remove_file:!1,update_add_file:!1,update_move_file:!1,use_as_reference:!1,use_as_property:!1,use_as_parent:!1,use_as_data_type:!1},this.capabilities=a||{delete_aci:!1}},[{key:"isEditAcl",value:function(){return this.permissions.edit_acl}},{key:"setEditAcl",value:function(t){t=void 0===t||t,this.permissions.edit_acl=t}},{key:"isDelete",value:function(){return this.permissions.delete_entity}},{key:"setDelete",value:function(t){t=void 0===t||t,this.permissions.delete_entity=t}},{key:"isFullRetrieve",value:function(){return this.permissions.retrieve_entity&&this.permissions.retrieve_acl&&this.permissions.retrieve_history&&this.permissions.retrieve_owner&&this.permissions.retrieve_file}},{key:"setFullRetrieve",value:function(t){t=void 0===t||t,this.permissions.retrieve_entity=t,this.permissions.retrieve_acl=t,this.permissions.retrieve_history=t,this.permissions.retrieve_owner=t,this.permissions.retrieve_file=t}},{key:"isPartialRetrieve",value:function(){return this.permissions.retrieve_entity||this.permissions.retrieve_acl||this.permissions.retrieve_history||this.permissions.retrieve_owner||this.permissions.retrieve_file}},{key:"isFullUse",value:function(){return this.permissions.use_as_reference&&this.permissions.use_as_property&&this.permissions.use_as_parent&&this.permissions.use_as_data_type}},{key:"setFullUse",value:function(t){t=void 0===t||t,this.permissions.use_as_reference=t,this.permissions.use_as_property=t,this.permissions.use_as_parent=t,this.permissions.use_as_data_type=t}},{key:"isPartialUse",value:function(){return this.permissions.use_as_reference||this.permissions.use_as_property||this.permissions.use_as_parent||this.permissions.use_as_data_type}},{key:"isFullUpdate",value:function(){return this.permissions.update_description&&this.permissions.update_value&&this.permissions.update_role&&this.permissions.update_remove_parent&&this.permissions.update_add_parent&&this.permissions.update_remove_property&&this.permissions.update_add_property&&this.permissions.update_name&&this.permissions.update_data_type&&this.permissions.update_query_template_definition&&this.permissions.update_remove_file&&this.permissions.update_add_file&&this.permissions.update_move_file}},{key:"setFullUpdate",value:function(t){t=void 0===t||t,this.permissions.update_description=t,this.permissions.update_value=t,this.permissions.update_role=t,this.permissions.update_remove_parent=t,this.permissions.update_add_parent=t,this.permissions.update_remove_property=t,this.permissions.update_add_property=t,this.permissions.update_name=t,this.permissions.update_data_type=t,this.permissions.update_query_template_definition=t,this.permissions.update_remove_file=t,this.permissions.update_add_file=t,this.permissions.update_move_file=t}},{key:"isPartialUpdate",value:function(){return this.permissions.update_description||this.permissions.update_value||this.permissions.update_role||this.permissions.update_remove_parent||this.permissions.update_add_parent||this.permissions.update_remove_property||this.permissions.update_add_property||this.permissions.update_name||this.permissions.update_data_type||this.permissions.update_query_template_definition||this.permissions.update_remove_file||this.permissions.update_add_file||this.permissions.update_move_file}},{key:"impliesOwnership",value:function(){return this.grant&&!this.isOtherRole()&&!this.isOwnerRole()&&this.permissions.edit_acl}},{key:"isOtherRole",value:function(){return"?OTHER?"===this.role}},{key:"isOwnerRole",value:function(){return"?OWNER?"===this.role}}]),b=g(function t(e){var n=e.id,i=e.acis,r=e.current_permissions;f(this,t),this.id=n,this.acis=i||[],this.current_permissions=r||{}},[{key:"getOwners",value:function(){return this.acis.filter(function(t){return t.impliesOwnership()}).map(function(t){return t.role})}}]),w={retrieve_entity:t.F.v1.EntityPermission.ENTITY_PERMISSION_RETRIEVE_ENTITY,retrieve_acl:t.F.v1.EntityPermission.ENTITY_PERMISSION_RETRIEVE_ACL,retrieve_history:t.F.v1.EntityPermission.ENTITY_PERMISSION_RETRIEVE_HISTORY,retrieve_owner:t.F.v1.EntityPermission.ENTITY_PERMISSION_RETRIEVE_OWNER,retrieve_file:t.F.v1.EntityPermission.ENTITY_PERMISSION_RETRIEVE_FILE,delete_entity:t.F.v1.EntityPermission.ENTITY_PERMISSION_DELETE,edit_acl:t.F.v1.EntityPermission.ENTITY_PERMISSION_EDIT_ACL,update_description:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_DESCRIPTION,update_value:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_VALUE,update_role:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_ROLE,update_remove_parent:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_REMOVE_PARENT,update_add_parent:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_ADD_PARENT,update_remove_property:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_REMOVE_PROPERTY,update_add_property:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_ADD_PROPERTY,update_name:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_NAME,update_data_type:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_DATA_TYPE,update_query_template_definition:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_QUERY_TEMPLATE_DEFINITION,update_remove_file:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_REMOVE_FILE,update_add_file:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_ADD_FILE,update_move_file:t.F.v1.EntityPermission.ENTITY_PERMISSION_UPDATE_MOVE_FILE,use_as_reference:t.F.v1.EntityPermission.ENTITY_PERMISSION_USE_AS_REFERENCE,use_as_property:t.F.v1.EntityPermission.ENTITY_PERMISSION_USE_AS_PROPERTY,use_as_parent:t.F.v1.EntityPermission.ENTITY_PERMISSION_USE_AS_PARENT,use_as_data_type:t.F.v1.EntityPermission.ENTITY_PERMISSION_USE_AS_DATA_TYPE},E=(m={},Object.keys(w).forEach(function(t){m[w[t]]=t}),m);function k(e){var n=e.getRole(),i=e.getGrant(),r=e.getPriority(),o=e.getPermissionsList(),a=e.getCapabilitiesList(),s=new _({role:n,grant:i,priority:r});return s.permissions=function(t){var e,n={},i=p(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n[E[r]]=!0}}catch(t){i.e(t)}finally{i.f()}return n}(o),s.capabilities=function(e){var n,i={},r=p(e);try{for(r.s();!(n=r.n()).done;)n.value===t.F.v1.EntityPermissionRuleCapability.ENTITY_PERMISSION_RULE_CAPABILITY_DELETE&&(i.delete_aci=!0)}catch(t){r.e(t)}finally{r.f()}return i}(a),s}function A(e){var n={edit_acl:!1,edit_priority_acl:!1};return e===t.F.v1.EntityAclPermission.ENTITY_ACL_PERMISSION_EDIT_ACL?n.edit_acl=!0:e===t.F.v1.EntityAclPermission.ENTITY_ACL_PERMISSION_EDIT_PRIORITY_ACL&&(n.edit_acl=!0,n.edit_priority_acl=!0),n}function M(t){var e=t.getId(),n=t.getRulesList(),i=t.getPermission();return new b({id:e,acis:n.map(k),current_permissions:A(i)})}function C(e){var n=new t.F.v1.EntityPermissionRule;return n.setRole(e.role),n.setPriority(e.priority),n.setGrant(e.grant),n.setPermissionsList(Object.keys(e.permissions).filter(function(t){return e.permissions[t]&&w[t]}).map(function(t){return w[t]})),n}function S(e){var n=new t.F.v1.EntityACL;return n.setId(e.id),n.setRulesList(e.acis.map(C)),n}function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function x(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,u=Object.create(l.prototype);return T(u,"_invoke",function(n,i,r){var o,s,l,u=0,h=r||[],c=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,s=0,l=t,p.n=n,a}};function d(n,i){for(s=n,l=i,e=0;!c&&u&&!r&&e<h.length;e++){var r,o=h[e],d=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=d&&((r=n<2&&d<o[1])?(s=0,p.v=i,p.n=o[1]):d<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw c=!0,i}return function(r,h,f){if(u>1)throw TypeError("Generator is already running");for(c&&1===h&&d(h,f),s=h,l=f;(e=s<2?t:l)||!c;){o||(s?s<3?(s>1&&(p.n=-1),d(s,l)):p.n=l:p.v=l);try{if(u=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(c=p.n<0)?l:n.call(i,p))!==a)break}catch(e){o=t,s=1,l=e}finally{u=1}}return{value:e,done:c}}}(n,r,o),!0),u}var a={};function s(){}function l(){}function u(){}e=Object.getPrototypeOf;var h=[][i]?e(e([][i]())):(T(e={},i,function(){return this}),e),c=u.prototype=s.prototype=Object.create(h);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,T(t,r,"GeneratorFunction")),t.prototype=Object.create(c),t}return l.prototype=u,T(c,"constructor",u),T(u,"constructor",l),l.displayName="GeneratorFunction",T(u,r,"GeneratorFunction"),T(c),T(c,r,"Generator"),T(c,i,function(){return this}),T(c,"toString",function(){return"[object Generator]"}),(x=function(){return{w:o,m:p}})()}function T(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}T=function(t,e,n,i){function o(e,n){T(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},T(t,e,n,i)}function P(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function L(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(t){P(o,i,r,a,s,"next",t)}function s(t){P(o,i,r,a,s,"throw",t)}a(void 0)})}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function I(t){var e=function(t){if("object"!=R(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}var F=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.uri=e||"/api"},n=[{key:"_PrepareTransaction",value:function(e){Array.isArray(e)||(e=[e]);var n,i,r=new t.F.v1.EntityTransactionServiceClient(this.uri,null,null),o=new t.F.v1.MultiTransactionRequest,a=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t))){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw r}}}}(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;(n=new t.F.v1.TransactionRequest).setRetrieveRequest(s),o.addRequests(n)}}catch(t){a.e(t)}finally{a.f()}var l={};return function(t,e){r.multiTransaction(o,l,function(n,i){n&&e(n),t(i)})}}},{key:"_CreateRetrieveRequest",value:function(e){var n=new t.F.v1.RetrieveRequest;return n.setId(e),n.setRegisterFileDownload(!1),n}},{key:"_CreateQueryRequest",value:function(e){var n=new t.F.v1.Query;n.setQuery(e);var i=new t.F.v1.RetrieveRequest;return i.setQuery(n),i.setRegisterFileDownload(!1),i}},{key:"retrieve",value:(a=L(x().m(function t(e){var n,i=this;return x().w(function(t){for(;;)if(0===t.n)return Array.isArray(e)||(e=[e]),n=e.map(function(t){return i._CreateRetrieveRequest(t)}),t.a(2,new Promise(this._PrepareTransaction(n)))},t,this)})),function(t){return a.apply(this,arguments)})},{key:"executeQuery",value:(o=L(x().m(function t(e){var n;return x().w(function(t){for(;;)if(0===t.n)return n=this._CreateQueryRequest(e),t.a(2,new Promise(this._PrepareTransaction(n)))},t,this)})),function(t){return o.apply(this,arguments)})},{key:"retrieveEntityAcl",value:(r=L(x().m(function e(n){var i,r,o;return x().w(function(e){for(;;)switch(e.n){case 0:return i=new t.F.v1.EntityTransactionServicePromiseClient(this.uri,null,null),(r=new t.F.v1.MultiRetrieveEntityACLRequest).addId(n),e.n=1,i.multiRetrieveEntityACL(r,{});case 1:return o=e.v,e.a(2,M(o.getAclsList()[0]))}},e,this)})),function(t){return r.apply(this,arguments)})},{key:"updateEntityAcl",value:(i=L(x().m(function e(n){var i,r,o,a;return x().w(function(e){for(;;)switch(e.n){case 0:return i=S(n),r=new t.F.v1.EntityTransactionServicePromiseClient(this.uri,null,null),(o=new t.F.v1.MultiUpdateEntityACLRequest).setAclsList([i]),e.n=1,r.multiUpdateEntityACL(o,{});case 1:return a=e.v,e.a(2,a)}},e,this)})),function(t){return i.apply(this,arguments)})}],n&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,I(i.key),i)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i,r,o,a}()})(),i})(),t.exports=e()},4979(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.AllMapEntities=void 0;var i=n(156),r=n(2750),o=n(8567),a=n(3050),s=n(1276),l=n(5924),u=n(1926),h=n(9771),c=n(3833),p=n(4947),d=n(4848);const f=({hideLayerSwitch:t})=>{const{startLoading:e,stopLoading:n}=(0,l.useLoading)(),{pathId:f}=(0,s.usePathId)(),[y,g]=(0,i.useState)(null),[v,m]=(0,i.useState)(null),{config:_}=(0,a.useConfig)(),{iframeSettings:b={},datamodel:w,entityLayers:{all_map_entities:{zIndexOffset:E=0,icon_options:k,name:A,description:M,active:C}},select:S}=_,R=S.paths[f]||[];r.logger.trace("AllMapEntities",R,E,k,w);const x=Array.isArray(R)?R.join("/"):"",T=JSON.stringify(b),P=JSON.stringify(w);(0,i.useEffect)(()=>{let t=!1,i=!1;return e(),g(null),m(null),async function(t,e,n={}){const i=(0,u.get_transaction_service)(),o=(0,p.isStandaloneMode)()?(0,c.generateQueryString)(n):function(t,e){if(e?.length)return(0,u.get_select_with_path)(t,e);let n=`SELECT id,name,parent,${t.lat},${t.lng} FROM ${t.role}`;return t.entity&&(n+=` "${t.entity}"`),n+=` WITH "${t.lat}" AND "${t.lng}"`,n}(t,e);r.logger.debug(`get_all_map_entities query: ${o}`,t,e);const a=await i.executeQuery(o);try{const i=a?.getResponsesList?.()?.[0]?.getRetrieveResponse?.()?.getSelectResult?.(),o=(await(0,u.get_select_results)(i)).map(i=>{const r=(0,p.isStandaloneMode)()?n?.selector||"":(0,u.get_selector)(e)??"";return{parents:i.parent,id:i.id,name:i.name,lat:i[`${r}${t.lat}`],lng:i[`${r}${t.lng}`]}});return r.logger.debug("get_all_map_entities entities: ",o),o}catch(t){r.logger.error(t,a)}return[]}(w,R,b).then(e=>{t||g(e)}).catch(e=>{t||(r.logger.error("[AllMapEntities] error fetching entities",e),m(e||new Error("Unknown error")))}).finally(()=>{i||(i=!0,n())}),()=>{t=!0,i||(i=!0,n())}},[x,P,T,e,n]);const L=Boolean(C)||(0,p.isStandaloneMode)()&&Boolean(t),B={name:(0,u.make_layer_chooser_html)(k.html,A,M),checked:L};return(0,d.jsxs)(o.LayersControl.Overlay,{...B,children:[(0,d.jsx)(h.ErrorComponent,{error:v}),y&&(0,d.jsx)(o.LayerGroup,{children:(0,d.jsx)(u.EntityMarkers,{path:R,entities:y,zIndexOffset:E,icon_options:k})})]})};e.AllMapEntities=f,e.default=f},6958(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CurrentPageEntities=function(){const{startLoading:t,stopLoading:e}=(0,l.useLoading)(),{pathId:n}=(0,s.usePathId)(),{config:{datamodel:g,entityLayers:{current_page_entities:{zIndexOffset:v=0,icon_options:m,name:_,description:b,active:w}},select:E}}=(0,a.useConfig)(),k=E.paths[n]||[],[A,M]=(0,i.useState)(null),[C,S]=(0,i.useState)(null),R=Array.isArray(k)?k.join("/"):"",x=JSON.stringify(g);(0,i.useEffect)(()=>{let n=!1,i=!1;return t(),M(null),S(null),Promise.resolve().then(()=>async function(t,e){if(r.logger.trace("get_current_page_entities",t,e),e&&e.length){const n=[];for(let t of function(){if(window.getEntities)return window.getEntities();throw new Error("no implementation for getEntities")}())n.push(f(t));if(!n.length)return[];const i=(0,u.get_transaction_service)(),o=(0,u.get_select_with_path)(t,e,n);r.logger.trace(`get_current_page_entities query: ${o}`);const a=await i.executeQuery(o);try{const n=a.getResponsesList()[0].getRetrieveResponse().getSelectResult(),i=(0,u.get_select_results)(n).map(n=>{const i=(0,u.get_selector)(e);return{parents:n.parent,id:n.id,name:n.name,lat:n[`${i}${t.lat}`],lng:n[`${i}${t.lng}`]}});return r.logger.trace("get_current_page_entities: ",i),i}catch(t){return r.logger.error(t,a),[]}}return function(t,e){if(!t)return[];return[...t.getElementsByClassName("caosdb-entity-panel")].filter(t=>{let n=0;for(let i of t.getElementsByClassName("caosdb-property-name")){const t=i.textContent.trim();(t===e.lat||t===e.lng)&&(n+=1)}return 2===n})}(document.getElementsByClassName("caosdb-f-main-entities")[0],t).map(e=>({name:p(e),id:f(e),parents:y(e).map(t=>t.name),lat:d(e,t.lat),lng:d(e,t.lng)}))}(g,k)).then(t=>{n||M(t)}).catch(t=>{if(n)return;const e=t&&t.message?t.message:String(t);r.logger.error("[CurrentPageEntities] error fetching entities",e),S(e)}).finally(()=>{i||(i=!0,e())}),()=>{n=!0,i||(i=!0,e())}},[R,x]);const T={name:(0,u.make_layer_chooser_html)(m.html,_,b),checked:!!w};return(0,c.jsxs)(o.LayersControl.Overlay,{...T,children:[(0,c.jsx)(h.ErrorComponent,{error:C}),A&&(0,c.jsx)(o.LayerGroup,{children:(0,c.jsx)(u.EntityMarkers,{path:k,entities:A,zIndexOffset:v,icon_options:m})})]})};var i=n(156),r=n(2750),o=n(8567),a=n(3050),s=n(1276),l=n(5924),u=n(1926),h=n(9771),c=n(4848);function p(t){if(window.getEntityName)return window.getEntityName(t);throw new Error("no implementation for getEntityName")}function d(t,e){if(window.getProperty)return window.getProperty(t,e);throw new Error("no implementation for getProperty")}function f(t){if(window.getEntityID)return window.getEntityID(t);throw new Error("no implementation for getEntityID")}function y(t){if(window.getParents)return window.getParents(t);throw new Error("no implementation for getParents")}},1926(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EntityMarker=A,e.EntityMarkers=C,e.get_id_POV=void 0,e.get_select_results=R,e.get_selector=e.get_select_with_path=void 0,e.get_transaction_service=E,e.make_entity_name_label=e.get_with_POV=void 0,e.make_layer_chooser_html=function(t,e,n){return`<span title="${n}">${t} ${e}</span>`},e.make_parent_labels=void 0,e.renderHtmlTemplate=b;var i,r=n(156),o=(i=n(5556))&&i.__esModule?i:{default:i},a=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var n,i,r={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return r;if(n=e){if(n.has(t))return n.get(t);n.set(t,r)}for(const e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(i.get||i.set)?n(r,e,i):r[e]=t[e]);return r}(t)}(n(3481)),s=n(8567),l=n(2750),u=n(2897),h=n(3050),c=n(1276),p=n(2543),d=n(6161);n(9463);var f=n(4848);const y=function(t){return l.logger.trace("make_parent_labels",t),t&&Array.isArray(t)&&0!==t.length?(0,f.jsx)(f.Fragment,{children:t.map((t,e)=>(0,f.jsx)("span",{className:"badge caosdb-f-map-parent-badge",children:t},e))}):null};e.make_parent_labels=y;const g=function(t){var e="";for(let n of t)e+=` WITH "${n}" `;return e};e.get_with_POV=g;const v=function(t){return"WITH "+(t=t.map(t=>"id="+t)).join(" or ")};e.get_id_POV=v;const m=function(t){var e=t.slice(1,t.length).join(".");return""!=e&&(e+="."),e};e.get_selector=m,e.get_select_with_path=function(t,e,n){if(void 0===t)throw new Error("Supply the datamodel.");if(void 0===e||0==e.length)throw new Error("Supply at least a RecordType.");const i=e[0],r=m(e);var o=void 0;if(void 0===n){const n=e.slice(1,e.length);o=g(n)+` WITH ( "${t.lat}" AND "${t.lng}" )`}else o=v(n);return`SELECT id,name,parent,${r}${t.lat},${r}${t.lng} FROM ENTITY "${i}" ${o} `};const _='<div class="linebreak"></div>';function b({format:t},e,{missing:n=""}={}){return String(t).replace(/<\s*br\s*>\s*<\s*\/\s*br\s*>/gi,_).replace(/<\s*br\s*\/?\s*>/gi,_).replace(/\{([^}]+)\}/g,(t,i)=>{const r=i.trim(),o=e?.[r];return null==o?n:String(o)})}function w({lat:t,lng:e,entity:n,path:i,customContent:r}){const{pathId:o}=(0,c.usePathId)(),l=a.default.NumberFormatter.toDMS(t).replace("°","°"),u=a.default.NumberFormatter.toDMS(e).replace("°","°");let h="";i&&i.length>1&&(h=(0,f.jsx)("div",{children:`Location of related ${i[i.length-1]}`}));const p=y(n.parents),d=k(n.id,n.name);return(0,f.jsxs)(s.Popup,{children:[p,d,(0,f.jsxs)("div",{className:"small text-muted",children:[h,`Lat: ${l} Lng: ${u}`]}),r?(0,f.jsx)("div",{style:{display:"flex",flexDirection:"column"},className:"customEntityPreview small text-muted",dangerouslySetInnerHTML:{__html:r}}):null]},`${n.id}-${o}`)}function E(){return new u.TransactionService("/api")}w.propTypes={path:o.default.arrayOf(o.default.string),customContent:o.default.string,entity:o.default.shape({id:o.default.string,name:o.default.string,parents:o.default.arrayOf(o.default.string),customEntityPreview:o.default.object}),lat:o.default.oneOfType([o.default.string,o.default.number]),lng:o.default.oneOfType([o.default.string,o.default.number])};const k=function(t,e){const n=!!document.getElementById(t),i=n?`#${t}`:(window.connection?.getBasePath?window.connection.getBasePath():"/")+`Entity/${t}`,r=n?"_self":"_blank",o=n?"Jump to this entity.":"Browse to this entity.";return(0,f.jsxs)("div",{className:"caosdb-f-map-entity-name-label",children:[e,(0,f.jsx)("a",{href:i,title:o,target:r,className:"caosdb-f-map-popup-entity-link",children:(0,f.jsx)("i",{className:"bi bi-box-arrow-up-right"})})]})};function A({icon_options:t,zIndexOffset:e,lat:n,lng:i,path:o,entity:l}){const{pathId:u}=(0,c.usePathId)(),{config:y}=(0,h.useConfig)(),[g,v]=(0,r.useState)(),m=Object.keys(y?.entityPreview??{})[0];t.className||(t.className="");const _=!0===process.env.STANDALONE_MODE,k=y?.iframeSettings?.entityPreviewPath||d.DEFAULT_IFRAMESETTINGS_PATHID,A=new a.DivIcon(t);return(0,f.jsx)(s.Marker,{icon:A,zIndexOffset:e,position:[n,i],eventHandlers:{click:()=>{const t=_?k:u;m===t?(async({config:t,saveContent:e,entityId:n,pathId:i})=>{const r=E(),o=Object.keys(t?.entityPreview??{}).find(t=>t===i),a=(0,p.get)(t?.entityPreview,o)||{},s=a?.query&&a.query.replace("{id}",String(n));if(o&&s)try{const t=await r.executeQuery(s);e(b(a,(await R(t.getResponsesList()[0].getRetrieveResponse().getSelectResult()))[0]))}catch(t){throw Error(`There was an issue executing the custom query: ${s}`,t)}else e(null)})({config:y,saveContent:v,entityId:l.id,pathId:t}):v(null)}},children:(0,f.jsx)(w,{lat:n,lng:i,path:o,entity:l,pathId:u,customContent:g})})}function M(t){return void 0===t||t.length&&0==t.length}function C({path:t,entities:e,zIndexOffset:n,icon_options:i}){var r=[];for(const c of e){var o=c.lat,a=c.lng;if(M(a)||M(o)){l.logger.debug("undefined latitude or longitude",c,o,a);continue}var s=!0;Array.isArray(o)||(o=[o],s=!1);var u=!0;if(Array.isArray(a)||(a=[a],u=!1),u!==s||s&&u&&o.length!==a.length){l.logger.error("Cannot show this entity on the map. Its lat/long properties have different lenghts: ",c);continue}const e=a;var h=o.map(function(t,n){return[t,e[n]]});l.logger.debug(`create point marker(s) at ${h} for`,c,n,i);for(let e of h)r.push((0,f.jsx)(A,{icon_options:i,zIndexOffset:n,lat:e[0],lng:e[1],path:t,entity:c},`${c.id}-${e[0]}-${e[1]}-${r.length}`))}return(0,f.jsx)(f.Fragment,{children:r})}function S(t){return new u.Property({getValue:()=>t}).getValue()}function R(t){const e=t.getHeader();if(!e)return[];const n=t.getDataRowsList();if(!n)return[];const i=e.getColumnsList().map(t=>t.getName()),r=n.map(t=>{const e={},n=t.getCellsList();for(let t=0;t<n.length;t++){console.assert(i.length===n.length,"broken select result. columns don't match data_rows");const r=i[t],o=S(n[t]);e[r]=o}return e});return l.logger.trace("get_select_results",i,r),r}e.make_entity_name_label=k,A.propTypes={path:o.default.arrayOf(o.default.string),entity:o.default.shape({id:o.default.string,name:o.default.string,parents:o.default.arrayOf(o.default.string)}),lat:o.default.oneOfType([o.default.string,o.default.number]),lng:o.default.oneOfType([o.default.string,o.default.number]),icon_options:o.default.object,zIndexOffset:o.default.number},C.propTypes={path:o.default.arrayOf(o.default.string),zIndexOffset:o.default.number,icon_options:o.default.object,entities:o.default.arrayOf(o.default.shape({id:o.default.string,name:o.default.string,parents:o.default.arrayOf(o.default.string),lat:o.default.oneOfType([o.default.string,o.default.number,o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number]))]),lng:o.default.oneOfType([o.default.string,o.default.number,o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number]))])}))}},8445(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Map=R;var i=n(156),r=k(n(5556)),o=n(8567),a=n(3050),s=n(1276),l=n(5924),u=k(n(3481)),h=k(n(7142)),c=n(6958),p=n(4979),d=n(9627),f=n(726),y=n(7501),g=n(3311),v=n(6820),m=n(9676),_=n(5586),b=n(2750),w=n(4493),E=n(4848);function k(t){return t&&t.__esModule?t:{default:t}}function A(){const t=(0,o.useMap)();return(0,i.useEffect)(()=>{t.getContainer().parentElement.addEventListener("caosdb-webui-ext-map.after-toggle",e=>{b.logger.trace("ResizeListener",e),t.invalidateSize(!0)})},[t]),null}function M({queryCallback:t,standaloneConfig:e}){const{config:n}=(0,a.useConfig)(),{pathId:r,setPathId:u}=(0,s.usePathId)(),{loading:h}=(0,l.useLoading)(),{hidePathSwitch:d,hideLayerSwitch:f,hideQuerySelector:g}=e||{};(0,i.useEffect)(()=>{const t=document.querySelector(".leaflet-control-layers");t&&(t.style.display=f?"none":"block")},[f]);const v=n.select.paths[r]||[];return b.logger.trace("EntityLayers",t,n,r,v),(0,i.useEffect)(()=>{"same"!==r?sessionStorage.setItem("caosdb_map.display_path",r):sessionStorage.removeItem("caosdb_map.display_path")},[r]),(0,E.jsxs)(E.Fragment,{children:[!g&&(0,E.jsx)(y.SearchControl,{queryCallback:t,currentPath:v}),(0,E.jsxs)(o.LayersControl,{children:[h&&(0,E.jsx)(w.Loader,{dataTestId:"mapLoader",inMap:!0}),!n.entityLayers.current_page_entities||(0,E.jsx)(c.CurrentPageEntities,{}),!n.entityLayers.all_map_entities||(0,E.jsx)(p.AllMapEntities,{hideLayerSwitch:f})]}),!d&&(0,E.jsx)(m.PathDropDown,{currentPath:r,setCurrentPath:u})]})}function C({initialView:t,queryCallback:e,standaloneConfig:n}){const{config:r}=(0,a.useConfig)();b.logger.trace(r,t,e);const[s,l]=(0,i.useState)(t||r.default_view),h=(0,i.useCallback)(t=>{b.logger.trace("_setMapView",t),t?sessionStorage.setItem("caosdb_map.view",JSON.stringify(t)):sessionStorage.removeItem("caosdb_map.view"),l(t||r.default_view)},[l,r.default_view]);if(r.disabled||"true"===window.localStorage.edit_mode||"false"===sessionStorage.getItem("caosdb_map.show"))return b.logger.trace("map not rendered, disabled or in edit mode"),(0,E.jsx)("div",{});var c=void 0;r.views.forEach(t=>{t.id===s&&(c=t)});const p=function(t){if(b.logger.trace("enter create_tile_layer",t),t.options=t.options||{},t.type&&"wms"===t.type)return(0,E.jsx)(o.WMSTileLayer,{url:t.url,...t.options});if("osm"===t.type||void 0===t.type)return(0,E.jsx)(o.TileLayer,{url:t.url,...t.options});throw new Error("unknown tileLayer type: "+t.type)}(c.tileLayer),d={};d.boxZoom=c.boxZoom||!1,d.center=c.center||[0,0],d.zoom=c.zoom||10;const y=function(t){var e=u.default.CRS.EPSG3857;return"string"==typeof t.crs||t.crs instanceof String?(e=u.default.CRS[t.crs.replace(":","")],b.logger.debug("use pre-defined CRS ",e)):"object"==typeof t.crs&&(e=new u.default.Proj.CRS(t.crs.code,t.crs.proj4def,t.crs.options),b.logger.debug("use custom proj4 CRS ",e)),e}(c);return y&&(d.crs=y),(0,E.jsxs)(o.MapContainer,{className:"map",scrollWheelZoom:!0,...d,children:[p,(0,E.jsx)(A,{}),(0,E.jsx)(g.Coordinates,{}),c.graticule&&(0,E.jsx)(v.Graticule,{config:c.graticule}),(0,E.jsx)(f.ViewChangeControl,{mapView:s,setMapView:h}),(0,E.jsx)(M,{queryCallback:e,config:r,standaloneConfig:n})]},s)}u.default.Proj=u.default.Proj||h.default,M.propTypes={queryCallback:r.default.func,standaloneConfig:r.default.shape({hidePathSwitch:r.default.bool,hideLayerSwitch:r.default.bool,hideQuerySelector:r.default.bool})},C.propTypes={queryCallback:r.default.func,initialView:r.default.string,standaloneConfig:r.default.shape({hidePathSwitch:r.default.bool,hideLayerSwitch:r.default.bool,hideQuerySelector:r.default.bool})},C.defaultProps={queryCallback:t=>{b.logger.error("Unconfigured queryCallback",t)},config:void 0};const S=t=>{const{mapConfigFromApi:e,...n}=t,{config:r,setConfig:o}=(0,a.useConfig)();return(0,i.useEffect)(()=>{o(e)},[e,o]),r?(0,E.jsx)(C,{...n}):null};function R({queryCallback:t,initialView:e,standaloneConfig:n}){return(0,E.jsx)(s.PathIdProvider,{children:(0,E.jsx)(a.ConfigProvider,{children:(0,E.jsx)(l.LoadingProvider,{children:(0,E.jsx)(_.Await,{loading:(0,E.jsx)(w.Loader,{dataTestId:"mapLoader"}),promise:(0,d.get_map_config)(),then:i=>(0,E.jsx)(S,{mapConfigFromApi:i,initialView:e,queryCallback:t,standaloneConfig:n})})})})})}S.propTypes={mapConfigFromApi:r.default.shape({datamodel:r.default.object.isRequired,select:r.default.object.isRequired,entityLayers:r.default.object.isRequired,iframeSettings:r.default.shape({formatString:r.default.string})})},R.propTypes={queryCallback:r.default.func,initialView:r.default.string,pathSwitch:r.default.bool,standaloneConfig:r.default.shape({hidePathSwitch:r.default.bool,hideLayerSwitch:r.default.bool,hideQuerySelector:r.default.bool})}},9627(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get_local_config=s,e.get_map_config=async function(){return l||(l=await async function(){const t=await async function(){try{let t;return process.env.STANDALONE_MODE||process.env.DEVELOPMENT_MODE,t=await fetch("/webinterface/conf/json/ext_map.json"),404===t.status?(r.logger.warn("couldn't find the map config file"),{}):await t.json()}catch(t){return r.logger.error(t),{}}}(),e=s();return{...o.default,...t,...e}}()),l};var i,r=n(2750),o=(i=n(7241))&&i.__esModule?i:{default:i};const a=function(t){try{let e=sessionStorage.getItem(t);if(e&&"undefined"!==e)try{return JSON.parse(e)}catch{return e}}catch(t){r.logger.error(t)}};function s(){const t={};let e=a("caosdb_map.view");return e&&(t.view=e),e=a("caosdb_map.show"),e&&(t.show=e),t}var l=void 0},3311(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinates=function(){const t=(0,o.useMap)(),e=r.default.control.coordinates({position:"bottomleft",decimals:2,enableUserInput:!1,useDMS:!0});return t._coordinates||(a.logger.trace("Coordinates",t),t._coordinates=e,e.addTo(t)),null};var i,r=(i=n(3481))&&i.__esModule?i:{default:i},o=n(8567);n(8103);var a=n(2750)},9771(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorComponent=void 0;var i=n(4848);e.ErrorComponent=({error:t})=>t&&(0,i.jsx)("div",{className:"map-error",children:String(t)})},6820(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graticule=l;var i=s(n(5556)),r=s(n(3481));n(8372),n(2038);var o=n(8567),a=n(2750);function s(t){return t&&t.__esModule?t:{default:t}}function l({config:t}){const e=(0,o.useMap)();return"latlngGraticule"===t.type?r.default.latlngGraticule(t.options).addTo(e):void 0===t.type||"simple"===t.type?r.default.graticule(t.options).addTo(e):a.logger.warn("unknown graticule type: ",t.type),null}l.propTypes={config:i.default.shape({options:i.default.object,type:i.default.oneOf(["simple","latlngGraticule"])})}},4493(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var i,r=(i=n(1079))&&i.__esModule?i:{default:i},o=n(5586),a=n(4848);e.Loader=({className:t=r.default.spinnerM,size:e,color:n="primary",title:i,inMap:s=!1,dataTestId:l="loader"})=>{const u={className:t,size:e,color:n,title:i};return(0,a.jsx)("div",{"data-testid":l,className:s?`${r.default.loader} ${r.default.loaderInMap}`:`${r.default.loader} ${r.default.loaderFullScreen}`,children:(0,a.jsx)(o.LoadingInfo,{...u})})}},9676(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PathDropDown=h;var i=l(n(5556)),r=n(2750),o=l(n(3481)),a=n(8567),s=n(3050);function l(t){return t&&t.__esModule?t:{default:t}}const u={_control:void 0,_callback:console.log,_paths:[],_current_path:void 0,addHooks:function(){var t,e;this._control=(t=this._callback,e=this._paths,r.logger.trace("get_path_ddm",t,e),new(o.default.Control.extend({options:{position:"bottomright"},onAdd:function(){return this.button},setValue:function(t){this.button.value=t},button:function(){var n=o.default.DomUtil.create("select","leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-path-drop-down");n.title="Show the location of related entities.\nBy default ('Same Entity') entities are shown that have\na geographic location. The other options allow to show\nentities on the map using the location of a related\nentity.";let i='<option value="same">Same Entity</option>';for(let t in e)i+=`<option value="${t}">${t}</option>`;return n.innerHTML=i,o.default.DomEvent.on(n,"change",e=>{t(e)}),n}()}))),this._map.addControl(this._control)},removeHooks:function(){this._map.removeControl(this._control)},setCurrentPath:function(t){r.logger.trace("setCurrentPath",this,t),this._control.setValue(t)}};function h({setCurrentPath:t,currentPath:e}){const{config:{select:{paths:n}}}=(0,s.useConfig)();r.logger.trace("PathDropDown",t,e,n);const i=(0,a.useMap)();if(!i.path_drop_down){u._callback=e=>{t(e.target.value)},u._paths=n;const e=o.default.Handler.extend(u);i.addHandler("path_drop_down",e),i.path_drop_down.enable()}return i.path_drop_down.setCurrentPath(e),null}h.propTypes={setCurrentPath:i.default.func,currentPath:i.default.string}},7501(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchControl=p;var i=h(n(5556)),r=n(2750),o=h(n(3481)),a=n(8567),s=n(1926),l=n(3050),u=h(n(572));function h(t){return t&&t.__esModule?t:{default:t}}const c={addHooks:function(){const t=this._get_select_button(t=>{r.logger.trace("select button clicked",this),t.preventDefault(),t.stopPropagation(),this._toggle_select_mode()});this._select_button=t,this._map.addControl(t),this._map.on("mousedown",this._mousedown_listener)},removeHooks:function(){this._select_button.remove(),this._map.off("mousedown",this._mousedown_listener)},_highlight_select_button:function(){this._select_button.button.classList.add("highlight")},_unhighlight_select_button:function(){this._select_button.button.classList.remove("highlight")},_toggle_select_mode:function(){r.logger.trace("toggle select mode",this),this._select_mode_on?(this._unhighlight_select_button(),this._map.dragging.enable(),this._reset_selection(),this._select_mode_on=!1):(this._highlight_select_button(),this._map.dragging.disable(),this._select_mode_on=!0)},_get_select_button:function(t){return new(o.default.Control.extend({options:{position:"topleft"},onAdd:function(){return this.button},button:function(){var e=o.default.DomUtil.create("div","leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-select-search-btn");e.title="Select and area and search.",e.addEventListener("click",t);const n=o.default.DomUtil.create("img","");return n.src=u.default,e.appendChild(n),e.onmousedown=t=>{t.stopPropagation()},e.onmouseup=t=>{t.stopPropagation()},e}()}))},_get_query_button:function(t){var e;return new(o.default.Control.extend({options:{position:"topleft"},onAdd:function(){return this.button},button:(e=o.default.DomUtil.create("div","leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-search-btn"),e.title="Search within this area",e.innerHTML='<i class="bi-search"></i>',e.onclick=t,e.onmousedown=t=>{t.stopPropagation()},e.onmouseup=t=>{t.stopPropagation()},e)}))},_mousedown_listener:function(t){r.logger.trace("mousedown",t,"on",this),(t.originalEvent.shiftKey||this.select._select_mode_on)&&(t.originalEvent.preventDefault(),t.originalEvent.stopPropagation(),this.select._startSelect(t.latlng))},_startSelect:function(t){this._reset_selection(),this._point1=t,r.logger.trace("point1",this._point1),this._map.on("mousemove",this._drawRect),this._map.on("mouseup",this._endSelect)},_reset_selection:function(){this._point1=void 0,this._rectangle&&this._rectangle.remove(),this._remove_query_button()},_drawRect:function(t){r.logger.trace("mousemove",t,"on",this),t.originalEvent.preventDefault(),t.originalEvent.stopPropagation(),this.select._rectangle&&this.select._rectangle.remove();const e=t.latlng,n=this.select._get_area(this.select._point1,e);this.select._rectangle=this.select._get_select_rectangle(n),this.select._rectangle.addTo(this)},_get_select_rectangle:function(t){return o.default.rectangle(t,{color:"#ff7800",weight:1})},_endSelect:function(t){r.logger.trace("mouseup",t,"on",this),t.originalEvent.preventDefault(),t.originalEvent.stopPropagation(),this.off("mouseup",this.select._endSelect),this.off("mousemove",this.select._drawRect);const e=t.latlng,n=this.select._point1;if(r.logger.trace("point1",n),r.logger.trace("point2",e),this.select._point1=void 0,e.lat===n.lat&&e.lng===n.lng)return;const i=this.select._get_area(n,e);this.select._add_query_button(i)},_add_query_button:function(t){r.logger.trace("_add_query_button",t,this),this._remove_query_button();const e=this._round(t.getNorth()),n=this._round(t.getSouth()),i=this._round(t.getEast()),o=this._round(t.getWest()),a=this.generate_query_from_bounds(e,n,o,i);return this._query_button=this._get_query_button(t=>{r.logger.trace("click query_button",a,this),t.stopPropagation(),this._query_callback(a)}),this._map.addControl(this._query_button),this._query_button},_remove_query_button:function(){const t=this._query_button;if(t)return t.remove(),this._query_button=void 0,t},_get_area:function(t,e){return o.default.latLngBounds(t,e)},_round:function(t){return Math.round(1e3*t)/1e3},_point1:void 0,_select_mode_on:!1,_datamodel:void 0,generate_query_from_bounds:function(t,e,n,i){const r=this._datamodel.role;var o=this._datamodel.entity;const a=this._datamodel.lat,l=this._datamodel.lng;let u=this._current_path;u&&u.length>0&&""==o&&(o=u[0]);var h="";return u&&u.length>1&&(h=(0,s.get_with_POV)(u.slice(1,u.length))),"FIND "+r+" "+o+h+" WITH ( "+a+" < '"+t+"' AND "+a+" > '"+e+"' AND "+l+" > '"+n+"' AND "+l+" < '"+i+"' ) "},_query_callback:t=>{r.logger.error("Unconfigured queryCallback",t)}};function p({currentPath:t,queryCallback:e}){const{config:{datamodel:n}}=(0,l.useConfig)(),i=(0,a.useMap)();return i.select||(i.addHandler("select",o.default.Handler.extend(c)),i.select.enable()),i.select._datamodel=n,i.select._query_callback=e,i.select._current_path=t,null}p.propTypes={currentPath:i.default.arrayOf(i.default.string),queryCallback:i.default.func}},7582(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleMapButton=void 0;var i,r=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var n,i,r={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return r;if(n=e){if(n.has(t))return n.get(t);n.set(t,r)}for(const e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(i.get||i.set)?n(r,e,i):r[e]=t[e]);return r}(t)}(n(156)),o=(i=n(5556))&&i.__esModule?i:{default:i},a=n(2750),s=n(5586),l=n(9627),u=n(4848);const h="on",c="off",p="switch_on",d="switch_off",f="error",y=t=>{const e=t===h;sessionStorage.setItem("caosdb_map.show",JSON.stringify(e))},g=({tag:t,showInitial:e,className:n,mapContainer:i,labelOn:o,labelOff:s,delay:g,titleOn:v,titleOff:m,config:_={}})=>{const[b,w]=(0,r.useState)((void 0===(E=_.show||e)&&(E=(0,l.get_local_config)().show),E?p:d));var E;const k=(0,r.useCallback)(()=>{w(t=>t===h?(a.logger.trace("setState",d),y(c),d):t===c?((!document.querySelector(i)||document.querySelector(i).children.length<=1)&&(a.logger.trace("Map container not found or only one child."),document.dispatchEvent(new Event("map:reload"))),a.logger.trace("setState",p),y(h),p):void 0)},[i]);if((0,r.useEffect)(()=>{b!==p&&b!==d||((t,e,n)=>{if(e!==d&&e!==p)throw new Error(`Illegal state transition from current state '${e}'`);const i=document.querySelector(t);if(!i)throw new Error(`Map container not found: ${t}.`);return new Promise((t,r)=>{try{let r=c;e===p?(r=h,i.classList.remove("d-none")):i.classList.add("d-none"),i.dispatchEvent(new Event("caosdb-webui-ext-map.after-toggle")),setTimeout(()=>{t(r)},n)}catch(t){r(t)}})})(i,b,g).then(t=>{a.logger.trace("setState",t),w(t)},t=>{a.logger.error(t),w(f)})},[b,w,i,g]),b===f)return(0,u.jsx)("span",{children:"ERROR"});const A=b===h||b===p?o:s,M={title:b===h||b===p?v:m,role:"button",href:"#",onClick:k};return n&&(M.className=n),r.default.createElement(t,M,(0,u.jsx)("span",{children:A}))};g.propTypes={tag:o.default.oneOf(["a","button"]),showInitial:o.default.bool,className:o.default.string,mapContainer:o.default.string,labelOn:o.default.string,labelOff:o.default.string,delay:o.default.number,titleOn:o.default.string,titleOff:o.default.string,config:o.default.object};const v=t=>(0,u.jsx)(s.Await,{promise:(0,l.get_map_config)(),then:e=>e.disabled||(0,u.jsx)(g,{...t,config:e}),loading:(0,u.jsx)("span",{})});e.ToggleMapButton=v,v.propTypes={tag:o.default.oneOf(["a","button"]),className:o.default.string,mapContainer:o.default.string,labelOn:o.default.string,labelOff:o.default.string,titleOn:o.default.string,titleOff:o.default.string,delay:o.default.number,showInitial:o.default.bool},v.defaultProps={tag:"a",className:void 0,mapContainer:".caosdb-f-map-panel",labelOn:"Hide Map",labelOff:"Show Map",titleOn:"Click to hide the map.",titleOff:"Click to show the map.",delay:500,showInitial:void 0}},726(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewChangeControl=u;var i=l(n(5556)),r=n(2750),o=l(n(3481)),a=n(8567),s=n(3050);function l(t){return t&&t.__esModule?t:{default:t}}function u({mapView:t,setMapView:e}){const{config:{views:n}}=(0,s.useConfig)(),i=(0,a.useMap)(),r=o.default.control.viewChangeControl({position:"bottomleft"});return i._viewChangeControl||(i._viewChangeControl=r,r.setViews(n,t,e),r.addTo(i)),null}o.default.Control.ViewChangeControl=o.default.Control.extend({_button:void 0,_make_view_menu:function(){var t=o.default.DomUtil.create("form","viewMenu d-none");return t.addEventListener("click",function(t){t.stopPropagation()}),t},onAdd:function(){const t=this._view_menu;var e=o.default.DomUtil.create("div","leaflet-bar leaflet-control leaflet-control-custom caosdb-f-map-change-view-btn");e.title="Change the view",e.addEventListener("click",e=>{e.stopPropagation(),o.default.DomUtil.hasClass(t,"d-none")?o.default.DomUtil.removeClass(t,"d-none"):o.default.DomUtil.addClass(t,"d-none")}),e.appendChild(t);const n=o.default.DomUtil.create("i","bi-three-dots-vertical");return e.appendChild(n),this._button=e,this._button},setViews:function(t,e,n){r.logger.trace("setViews",t,e,n),this._view_menu=this._make_view_menu(),t.forEach(t=>{const n=o.default.DomUtil.create("div","caosdb-f-map-view-select");n.title=t.description||t.name||t.id;const i=o.default.DomUtil.create("input");i.name="view",i.type="radio",i.value=t.id,t.id===e&&(i.checked=!0);const r=o.default.DomUtil.create("label");r.innerHTML=t.name||t.description||t.id,n.appendChild(i),n.appendChild(r),this._view_menu.appendChild(n)}),this._view_menu.addEventListener("change",t=>{r.logger.trace("ViewChangeControl.onChange",t),n(t.target.value)})}}),o.default.control.viewChangeControl=function(t){return new o.default.Control.ViewChangeControl(t)},u.propTypes={mapView:i.default.string,setMapView:i.default.func}},6161(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_IFRAMESETTINGS_PATHID=void 0,e.DEFAULT_IFRAMESETTINGS_PATHID="same"},3050(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useConfig=e.ConfigProvider=void 0;var i,r=n(156),o=n(2543),a=(i=n(7241))&&i.__esModule?i:{default:i},s=n(4848);const l=(0,r.createContext)(null);e.ConfigProvider=({initialConfig:t=null,children:e})=>{const[n,i]=(0,r.useState)(t),u=(0,r.useCallback)(t=>{const e="true"===String(process.env.STANDALONE_MODE),n={...t.select||{},query:t.select&&t.select.query||a.default.select?.query},r={...t.datamodel||{},role:n.query?.role,entity:n.query?.entity},s={...t,select:n,datamodel:r};if(e&&(!s?.iframeSettings||!s?.iframeSettings.formatString))throw new Error("In standalone mode a query must be defined under iframeSettings.formatString");const l=(0,o.get)(s,"iframeSettings.view.default_view");if(e&&l){const t=(s?.views??[]).map(t=>{if(t?.id===l){const{default_view:e,...n}=s?.iframeSettings?.view??{};return{...t,...n}}return t}),e={...s,views:t};i(e)}else i(s)},[]),h=(0,r.useMemo)(()=>({config:n,setConfig:u}),[n,u]);return(0,s.jsx)(l.Provider,{value:h,children:e})},e.useConfig=()=>{const t=(0,r.useContext)(l);if(!t)throw new Error("useConfig must be used within a <ConfigProvider>");return t}},5924(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useLoading=e.LoadingProvider=void 0;var i=n(156),r=n(4848);const o=(0,i.createContext)(null);e.LoadingProvider=({children:t})=>{const[e,n]=(0,i.useState)(!1),a=(0,i.useRef)(0),s=(0,i.useCallback)(()=>{a.current+=1,n(!0)},[]),l=(0,i.useCallback)(()=>{a.current=Math.max(0,a.current-1),0===a.current&&n(!1)},[]),u=(0,i.useMemo)(()=>({loading:e,startLoading:s,stopLoading:l}),[e,s,l]);return(0,r.jsx)(o.Provider,{value:u,children:t})},e.useLoading=()=>{const t=(0,i.useContext)(o);if(!t)throw new Error("useLoading must be used within a <LoadingProvider>");return t}},1276(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.usePathId=e.PathIdProvider=void 0;var i=n(156),r=n(4848);const o=(0,i.createContext)(null),a=({children:t})=>{const[e,n]=(0,i.useState)(()=>(()=>{const t=sessionStorage.getItem("caosdb_map.display_path");return"undefined"===t?null:t})()??"same"),a=(0,i.useMemo)(()=>({pathId:e,setPathId:n}),[e]);return(0,r.jsx)(o.Provider,{value:a,children:t})};e.PathIdProvider=a,a.propTypes={children:(t,e,n)=>t[e]?null:new Error(`${n} requires children`)},e.usePathId=()=>{const t=(0,i.useContext)(o);if(!t)throw new Error("usePathId must be used within a <PathIdProvider>");return t}},8372(t,e,n){"use strict";var i,r=(i=n(3481))&&i.__esModule?i:{default:i};document,r.default.LatLngGraticule=r.default.Layer.extend({includes:r.default.Evented.prototype||r.default.Mixin.Events,options:{showLabel:!0,opacity:1,weight:.8,color:"#aaa",font:"12px Verdana",dashArray:[0,0],lngLineCurved:0,latLineCurved:0,zoomInterval:[{start:2,end:2,interval:40},{start:3,end:3,interval:20},{start:4,end:4,interval:10},{start:5,end:7,interval:5},{start:8,end:20,interval:1}],sides:["N","S","E","W"]},initialize:function(t){r.default.setOptions(this,t),this.options.font.split(" ").length<2&&(this.options.font+=" Verdana"),this.options.fontColor||(this.options.fontColor=this.options.color),this.options.zoomInterval&&(this.options.zoomInterval.latitude&&(this.options.latInterval=this.options.zoomInterval.latitude,this.options.zoomInterval.longitude||(this.options.lngInterval=this.options.zoomInterval.latitude)),this.options.zoomInterval.longitude&&(this.options.lngInterval=this.options.zoomInterval.longitude,this.options.zoomInterval.latitude||(this.options.latInterval=this.options.zoomInterval.longitude)),this.options.latInterval||(this.options.latInterval=this.options.zoomInterval),this.options.lngInterval||(this.options.lngInterval=this.options.zoomInterval))},onAdd:function(t){this._map=t,this._canvas||this._initCanvas(),t._panes.overlayPane.appendChild(this._canvas),t.on("viewreset",this._reset,this),t.on("move",this._reset,this),t.on("moveend",this._reset,this),t.options.zoomAnimation&&r.default.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){r.default.DomUtil.remove(this._canvas),t.off("viewreset",this._reset,this),t.off("move",this._reset,this),t.off("moveend",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this},bringToBack:function(){return this},getAttribution:function(){return this.options.attribution},_initCanvas:function(){this._canvas=r.default.DomUtil.create("canvas",""),this._map.options.zoomAnimation&&r.default.Browser.any3d?r.default.DomUtil.addClass(this._canvas,"leaflet-zoom-animated"):r.default.DomUtil.addClass(this._canvas,"leaflet-zoom-hide"),this._updateOpacity(),r.default.extend(this._canvas,{onselectstart:r.default.Util.falseFn,onmousemove:r.default.Util.falseFn,onload:r.default.bind(this._onCanvasLoad,this)})},_animateZoom:function(t){var e=this._map,n=this._canvas,i=e.getZoomScale(t.zoom),o=e.containerPointToLatLng([0,0]),a=e.containerPointToLatLng([n.width,n.height]),s=e._latLngToNewLayerPoint(o,t.zoom,t.center),l=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(s),u=s._add(l._multiplyBy(.5*(1-1/i)));r.default.DomUtil.setTransform(n,u,i)},_reset:function(){var t=this._canvas,e=this._map.getSize(),n=this._map.containerPointToLayerPoint([0,0]);r.default.DomUtil.setPosition(t,n),t.width=e.x,t.height=e.y,t.style.width=e.x+"px",t.style.height=e.y+"px",this.__calcInterval(),this.__draw(!0)},_onCanvasLoad:function(){this.fire("load")},_updateOpacity:function(){r.default.DomUtil.setOpacity(this._canvas,this.options.opacity)},__format_lat:function(t){return this.options.latFormatTickLabel?this.options.latFormatTickLabel(t):t<0?""+-1*t+this.options.sides[1]:t>0?""+t+this.options.sides[0]:""+t},__format_lng:function(t){return this.options.lngFormatTickLabel?this.options.lngFormatTickLabel(t):t>180?""+(360-t)+this.options.sides[3]:t>0&&t<180?""+t+this.options.sides[2]:t<0&&t>-180?""+-1*t+this.options.sides[3]:-180===t?""+-1*t:t<-180?""+(360+t)+this.options.sides[3]:""+t},__calcInterval:function(){var t=this._map.getZoom();if(this._currZoom!==t&&(this._currLngInterval=0,this._currLatInterval=0,this._currZoom=t),!this._currLngInterval)try{for(var e in this.options.lngInterval)if((n=this.options.lngInterval[e]).start<=t&&n.end&&n.end>=t){this._currLngInterval=n.interval;break}}catch(t){this._currLngInterval=0}if(!this._currLatInterval)try{for(var e in this.options.latInterval){var n;if((n=this.options.latInterval[e]).start<=t&&n.end&&n.end>=t){this._currLatInterval=n.interval;break}}}catch(t){this._currLatInterval=0}},__draw:function(t){var e=this._canvas,n=this._map,i=this.options.lngLineCurved,o=this.options.latLineCurved;if(r.default.Browser.canvas&&n){this._currLngInterval&&this._currLatInterval||this.__calcInterval();var a=this._currLatInterval,s=this._currLngInterval,l=e.getContext("2d");l.clearRect(0,0,e.width,e.height),l.lineWidth=this.options.weight,l.strokeStyle=this.options.color,l.fillStyle=this.options.fontColor,l.setLineDash(this.options.dashArray),this.options.font&&(l.font=this.options.font);var u=l.measureText("0").width,h=12;try{var c=l.font.trim().split(" ")[0];h=function(t){t.length>2&&"p"===t.charAt(t.length-2)&&(t=t.substr(0,t.length-2));try{return parseInt(t,10)}catch(t){}return 0}(c)}catch(x){}var p=e.width,d=e.height,f=n.containerPointToLatLng(r.default.point(0,0)),y=n.containerPointToLatLng(r.default.point(p,0)),g=n.containerPointToLatLng(r.default.point(p,d)).lat,v=f.lat,m=f.lng,_=y.lng,b=(v-g)/(.2*d);if(isNaN(b))return;b<1&&(b=1),g=g<-90?-90:parseInt(g-b,10),v=v>90?90:parseInt(v+b,10);var w=(_-m)/(.2*p);w<1&&(w=1),m>0&&_<0&&(_+=360),_=parseInt(_+w,10),m=parseInt(m-w,10);var E,k,A,M=.5;function S(e,a){E=e._latLngToCanvasPoint(r.default.latLng(a,m)),k=e.__format_lat(a),u=l.measureText(k).width;var s=e.options.showLabel&&t?u+10:0;if(o){"number"==typeof o&&(M=o);var c=m,d=_;E.x>0&&(c=(c=n.containerPointToLatLng(r.default.point(0,E.y))).lng-w,E.x=0),(b=e._latLngToCanvasPoint(r.default.latLng(a,d))).x<p&&(d=(d=n.containerPointToLatLng(r.default.point(p,b.y))).lng+w,c>0&&d<0&&(d+=360)),l.beginPath(),l.moveTo(E.x+s,E.y);for(var f=null,y=c;y<=d;y+=M){if(b=e._latLngToCanvasPoint(r.default.latLng(a,y)),l.lineTo(b.x-s,b.y),e.options.showLabel&&t&&null!=f)if(f.x<0&&b.x>=0){var g=(b.x-0)/(b.x-f.x),v=b.y-(b.y-f.y)*g;l.fillText(k,0,v+h/2)}else f.x<=p-u&&b.x>p-u&&(g=(b.x-p)/(b.x-f.x),v=b.y-(b.y-f.y)*g,l.fillText(k,p-u,v+h/2-2));f={x:b.x,y:b.y,lon:y,lat:C}}l.stroke()}else{d=_;var b=e._latLngToCanvasPoint(r.default.latLng(a,d));if(i&&(d=(d=n.containerPointToLatLng(r.default.point(0,b.y))).lng,b=e._latLngToCanvasPoint(r.default.latLng(a,d)),c=(c=n.containerPointToLatLng(r.default.point(p,b.y))).lng,E=e._latLngToCanvasPoint(r.default.latLng(a,c))),l.beginPath(),l.moveTo(1+s,E.y),l.lineTo(b.x-1-s,b.y),l.stroke(),e.options.showLabel&&t){var A=E.y+h/2-2;l.fillText(k,0,A),l.fillText(k,p-u,A)}}}if(a>0){for(var C=a;C<=v;C+=a)C>=g&&S(this,C);for(C=0;C>=g;C-=a)C<=v&&S(this,C)}function R(e,a){A=e.__format_lng(a),u=l.measureText(A).width;var s=e._latLngToCanvasPoint(r.default.latLng(g,a)),c=e.options.showLabel&&t?h+5:0;if(i){var p;"number"==typeof i&&(p=i),l.beginPath(),l.moveTo(s.x,5+c);for(var f=null,y=g;y<v;y+=p){var m=e._latLngToCanvasPoint(r.default.latLng(y,a));l.lineTo(m.x,m.y-c),e.options.showLabel&&t&&null!=f&&(f.y>8&&m.y<=8?l.fillText(A,m.x-u/2,h+5):f.y>=d&&m.y<d&&l.fillText(A,m.x-u/2,d-2)),f={x:m.x,y:m.y,lon:a,lat:y}}l.stroke()}else{var _=v;if(m=e._latLngToCanvasPoint(r.default.latLng(_,a)),o){(_=(_=n.containerPointToLatLng(r.default.point(m.x,0))).lat)>90&&(_=90),m=e._latLngToCanvasPoint(r.default.latLng(_,a));var b=n.containerPointToLatLng(r.default.point(s.x,d));(b=b.lat)<-90&&(b=-90),s=e._latLngToCanvasPoint(r.default.latLng(b,a))}l.beginPath(),l.moveTo(m.x,5+c),l.lineTo(s.x,d-1-c),l.stroke(),e.options.showLabel&&t&&(l.fillText(A,m.x-u/2,h+5),l.fillText(A,s.x-u/2,d-3))}}if(s>0){for(C=s;C<=_;C+=s)C>=m&&R(this,C);for(C=0;C>=m;C-=s)C<=_&&R(this,C)}}},_latLngToCanvasPoint:function(t){var e=this._map,n=e.project(r.default.latLng(t));return n._subtract(e.getPixelOrigin()),r.default.point(n).add(e._getMapPanePos())}}),r.default.latlngGraticule=function(t){return new r.default.LatLngGraticule(t)}},2038(t,e,n){"use strict";var i=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}return function(t){if(t&&t.__esModule)return t;var n,i,r={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return r;if(n=e){if(n.has(t))return n.get(t);n.set(t,r)}for(const e in t)"default"!==e&&{}.hasOwnProperty.call(t,e)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,e))&&(i.get||i.set)?n(r,e,i):r[e]=t[e]);return r}(t)}(n(3481));i.Graticule=i.GeoJSON.extend({options:{style:{color:"#333",weight:1},interval:20},initialize:function(t){i.Util.setOptions(this,t),this._layers={},this.options.sphere?this.addData(this._getFrame()):this.addData(this._getGraticule())},_getFrame:function(){return{type:"Polygon",coordinates:[this._getMeridian(-180).concat(this._getMeridian(180).reverse())]}},_getGraticule:function(){for(var t=[],e=this.options.interval,n=0;n<=180;n+=e)t.push(this._getFeature(this._getMeridian(n),{name:n?n.toString()+"° E":"Prime meridian"})),0!==n&&t.push(this._getFeature(this._getMeridian(-n),{name:n.toString()+"° W"}));for(var i=0;i<=90;i+=e)t.push(this._getFeature(this._getParallel(i),{name:i?i.toString()+"° N":"Equator"})),0!==i&&t.push(this._getFeature(this._getParallel(-i),{name:i.toString()+"° S"}));return{type:"FeatureCollection",features:t}},_getMeridian:function(t){t=this._lngFix(t);for(var e=[],n=-90;n<=90;n++)e.push([t,n]);return e},_getParallel:function(t){for(var e=[],n=-180;n<=180;n++)e.push([this._lngFix(n),t]);return e},_getFeature:function(t,e){return{type:"Feature",geometry:{type:"LineString",coordinates:t},properties:e}},_lngFix:function(t){return t>=180?179.999999:t<=-180?-179.999999:t}}),i.graticule=function(t){return new i.Graticule(t)}},2750(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.logger=void 0;var i,r=(i=n(3065))&&i.__esModule?i:{default:i};e.logger=r.default.getLogger("caosdb-webui-ext-map"),process.env.DEVELOPMENT_MODE&&(window.log=r.default)},3833(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateQueryString=void 0;const n=/\$\{(.*?)\}/g,i=/\[\[([\s\S]*?)\]\]/g,r=t=>String(t).split(/[,\s;]+/g).map(t=>t.trim()).filter(Boolean),o=(t,e,n)=>{e.has(t)||e.set(t,n.getAll(t).flatMap(r))},a=(t,e,i)=>t.replace(n,(t,n)=>{const r=String(n).trim(),a=((t,e,n)=>{o(t,e,n);const i=e.get(t);return i?.length?i.shift():void 0})(r,e,i);if(void 0===a)throw new Error(`Missing value for placeholder \${${r}} in URL parameters`);return a});e.generateQueryString=t=>{if(!t?.formatString)throw new Error("formatString is required");const e=String(t.formatString),r=new URLSearchParams(window.location.search),s=new Map,l=Array.from(e.matchAll(i));if(l.length>1)throw new Error("Only one optional block [[ ... ]] is supported");let u="";if(0===l.length)u=a(e,s,r);else{const t=l[0],i=t[0],h=t[1],c=t.index??0,p=c+i.length,d=e.slice(0,c),f=e.slice(p);u=`${u}${a(d,s,r)}`;const y=((t,e,i)=>{const r=(t=>{const e=[];for(const i of t.matchAll(n))e.push(String(i[1]).trim());return e})(t);if(0===r.length)return 1;const a=new Map;for(const t of r)a.set(t,(a.get(t)||0)+1);let s=1/0;for(const[t,n]of a.entries()){o(t,e,i);const r=(e.get(t)||[]).length;s=Math.min(s,Math.floor(r/n))}return Number.isFinite(s)?s:0})(h,s,r);for(let t=0;t<y;t++)u=`${u}${a(h,s,r)}`;u=`${u}${a(f,s,r)}`}for(const[t,e]of s.entries())if(e.length)throw new Error(`Unused values for "${t}": ${e.join(", ")}`);return u.replace(/\s+/g," ").trim()}},4947(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStandaloneMode=void 0,e.isStandaloneMode=()=>"true"===String(process.env.STANDALONE_MODE)},8989(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(1354),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([t.id,"\n.leaflet-control-coordinates {\n\tbackground-color:#D8D8D8;\n\tbackground-color:rgba(255, 255, 255, 0.8);\n\tcursor:pointer;\n}\n.leaflet-control-coordinates,\n.leaflet-control-coordinates .uiElement input {\n\t-webkit-border-radius:5px;\n\t-moz-border-radius:5px;\n\tborder-radius:5px;\n}\n\n.leaflet-control-coordinates .uiElement {\n\tmargin:4px;\n}\n\n.leaflet-control-coordinates .uiElement .labelFirst {\n\tmargin-right:4px;\n}\n\n.leaflet-control-coordinates .uiHidden{\n\tdisplay:none;\n}\n\n.leaflet-control-coordinates .uiElement.label {\n\tcolor:inherit;\n\tfont-weight: inherit;\n\tfont-size: inherit;\n\tpadding: 0;\n\tdisplay: inherit;\n}\n","",{version:3,sources:["webpack://./node_modules/leaflet.coordinates/src/Control.Coordinates.css"],names:[],mappings:";AACA;CACC,wBAAwB;CACxB,yCAAyC;CACzC,cAAc;AACf;AACA;;CAEC,yBAAyB;CACzB,sBAAsB;CACtB,iBAAiB;AAClB;;AAEA;CACC,UAAU;AACX;;AAEA;CACC,gBAAgB;AACjB;;AAEA;CACC,YAAY;AACb;;AAEA;CACC,aAAa;CACb,oBAAoB;CACpB,kBAAkB;CAClB,UAAU;CACV,gBAAgB;AACjB",sourcesContent:["\n.leaflet-control-coordinates {\n\tbackground-color:#D8D8D8;\n\tbackground-color:rgba(255, 255, 255, 0.8);\n\tcursor:pointer;\n}\n.leaflet-control-coordinates,\n.leaflet-control-coordinates .uiElement input {\n\t-webkit-border-radius:5px;\n\t-moz-border-radius:5px;\n\tborder-radius:5px;\n}\n\n.leaflet-control-coordinates .uiElement {\n\tmargin:4px;\n}\n\n.leaflet-control-coordinates .uiElement .labelFirst {\n\tmargin-right:4px;\n}\n\n.leaflet-control-coordinates .uiHidden{\n\tdisplay:none;\n}\n\n.leaflet-control-coordinates .uiElement.label {\n\tcolor:inherit;\n\tfont-weight: inherit;\n\tfont-size: inherit;\n\tpadding: 0;\n\tdisplay: inherit;\n}\n"],sourceRoot:""}]);const s=a},1519(t,e,n){"use strict";n.d(e,{A:()=>g});var i=n(1354),r=n.n(i),o=n(6314),a=n.n(o),s=n(4417),l=n.n(s),u=new URL(n(1601),n.b),h=new URL(n(6426),n.b),c=new URL(n(9927),n.b),p=a()(r()),d=l()(u),f=l()(h),y=l()(c);p.push([t.id,`/* required styles */\n\n.leaflet-pane,\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-tile-container,\n.leaflet-pane > svg,\n.leaflet-pane > canvas,\n.leaflet-zoom-box,\n.leaflet-image-layer,\n.leaflet-layer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t}\n.leaflet-container {\n\toverflow: hidden;\n\t}\n.leaflet-tile,\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t user-select: none;\n\t -webkit-user-drag: none;\n\t}\n/* Prevents IE11 from highlighting tiles in blue */\n.leaflet-tile::selection {\n\tbackground: transparent;\n}\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\n.leaflet-safari .leaflet-tile {\n\timage-rendering: -webkit-optimize-contrast;\n\t}\n/* hack that prevents hw layers "stretching" when loading new tiles */\n.leaflet-safari .leaflet-tile-container {\n\twidth: 1600px;\n\theight: 1600px;\n\t-webkit-transform-origin: 0 0;\n\t}\n.leaflet-marker-icon,\n.leaflet-marker-shadow {\n\tdisplay: block;\n\t}\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\n.leaflet-container .leaflet-overlay-pane svg {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\t}\n.leaflet-container .leaflet-marker-pane img,\n.leaflet-container .leaflet-shadow-pane img,\n.leaflet-container .leaflet-tile-pane img,\n.leaflet-container img.leaflet-image-layer,\n.leaflet-container .leaflet-tile {\n\tmax-width: none !important;\n\tmax-height: none !important;\n\twidth: auto;\n\tpadding: 0;\n\t}\n\n.leaflet-container img.leaflet-tile {\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\n\tmix-blend-mode: plus-lighter;\n}\n\n.leaflet-container.leaflet-touch-zoom {\n\t-ms-touch-action: pan-x pan-y;\n\ttouch-action: pan-x pan-y;\n\t}\n.leaflet-container.leaflet-touch-drag {\n\t-ms-touch-action: pinch-zoom;\n\t/* Fallback for FF which doesn't support pinch-zoom */\n\ttouch-action: none;\n\ttouch-action: pinch-zoom;\n}\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\n\t-ms-touch-action: none;\n\ttouch-action: none;\n}\n.leaflet-container {\n\t-webkit-tap-highlight-color: transparent;\n}\n.leaflet-container a {\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\n}\n.leaflet-tile {\n\tfilter: inherit;\n\tvisibility: hidden;\n\t}\n.leaflet-tile-loaded {\n\tvisibility: inherit;\n\t}\n.leaflet-zoom-box {\n\twidth: 0;\n\theight: 0;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tz-index: 800;\n\t}\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\n.leaflet-overlay-pane svg {\n\t-moz-user-select: none;\n\t}\n\n.leaflet-pane { z-index: 400; }\n\n.leaflet-tile-pane { z-index: 200; }\n.leaflet-overlay-pane { z-index: 400; }\n.leaflet-shadow-pane { z-index: 500; }\n.leaflet-marker-pane { z-index: 600; }\n.leaflet-tooltip-pane { z-index: 650; }\n.leaflet-popup-pane { z-index: 700; }\n\n.leaflet-map-pane canvas { z-index: 100; }\n.leaflet-map-pane svg { z-index: 200; }\n\n.leaflet-vml-shape {\n\twidth: 1px;\n\theight: 1px;\n\t}\n.lvml {\n\tbehavior: url(#default#VML);\n\tdisplay: inline-block;\n\tposition: absolute;\n\t}\n\n\n/* control positioning */\n\n.leaflet-control {\n\tposition: relative;\n\tz-index: 800;\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n.leaflet-top,\n.leaflet-bottom {\n\tposition: absolute;\n\tz-index: 1000;\n\tpointer-events: none;\n\t}\n.leaflet-top {\n\ttop: 0;\n\t}\n.leaflet-right {\n\tright: 0;\n\t}\n.leaflet-bottom {\n\tbottom: 0;\n\t}\n.leaflet-left {\n\tleft: 0;\n\t}\n.leaflet-control {\n\tfloat: left;\n\tclear: both;\n\t}\n.leaflet-right .leaflet-control {\n\tfloat: right;\n\t}\n.leaflet-top .leaflet-control {\n\tmargin-top: 10px;\n\t}\n.leaflet-bottom .leaflet-control {\n\tmargin-bottom: 10px;\n\t}\n.leaflet-left .leaflet-control {\n\tmargin-left: 10px;\n\t}\n.leaflet-right .leaflet-control {\n\tmargin-right: 10px;\n\t}\n\n\n/* zoom and fade animations */\n\n.leaflet-fade-anim .leaflet-popup {\n\topacity: 0;\n\t-webkit-transition: opacity 0.2s linear;\n\t -moz-transition: opacity 0.2s linear;\n\t transition: opacity 0.2s linear;\n\t}\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\n\topacity: 1;\n\t}\n.leaflet-zoom-animated {\n\t-webkit-transform-origin: 0 0;\n\t -ms-transform-origin: 0 0;\n\t transform-origin: 0 0;\n\t}\nsvg.leaflet-zoom-animated {\n\twill-change: transform;\n}\n\n.leaflet-zoom-anim .leaflet-zoom-animated {\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\n\t}\n.leaflet-zoom-anim .leaflet-tile,\n.leaflet-pan-anim .leaflet-tile {\n\t-webkit-transition: none;\n\t -moz-transition: none;\n\t transition: none;\n\t}\n\n.leaflet-zoom-anim .leaflet-zoom-hide {\n\tvisibility: hidden;\n\t}\n\n\n/* cursors */\n\n.leaflet-interactive {\n\tcursor: pointer;\n\t}\n.leaflet-grab {\n\tcursor: -webkit-grab;\n\tcursor: -moz-grab;\n\tcursor: grab;\n\t}\n.leaflet-crosshair,\n.leaflet-crosshair .leaflet-interactive {\n\tcursor: crosshair;\n\t}\n.leaflet-popup-pane,\n.leaflet-control {\n\tcursor: auto;\n\t}\n.leaflet-dragging .leaflet-grab,\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\n.leaflet-dragging .leaflet-marker-draggable {\n\tcursor: move;\n\tcursor: -webkit-grabbing;\n\tcursor: -moz-grabbing;\n\tcursor: grabbing;\n\t}\n\n/* marker & overlays interactivity */\n.leaflet-marker-icon,\n.leaflet-marker-shadow,\n.leaflet-image-layer,\n.leaflet-pane > svg path,\n.leaflet-tile-container {\n\tpointer-events: none;\n\t}\n\n.leaflet-marker-icon.leaflet-interactive,\n.leaflet-image-layer.leaflet-interactive,\n.leaflet-pane > svg path.leaflet-interactive,\nsvg.leaflet-image-layer.leaflet-interactive path {\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\n\tpointer-events: auto;\n\t}\n\n/* visual tweaks */\n\n.leaflet-container {\n\tbackground: #ddd;\n\toutline-offset: 1px;\n\t}\n.leaflet-container a {\n\tcolor: #0078A8;\n\t}\n.leaflet-zoom-box {\n\tborder: 2px dotted #38f;\n\tbackground: rgba(255,255,255,0.5);\n\t}\n\n\n/* general typography */\n.leaflet-container {\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\n\tfont-size: 12px;\n\tfont-size: 0.75rem;\n\tline-height: 1.5;\n\t}\n\n\n/* general toolbar styles */\n\n.leaflet-bar {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\n\tborder-radius: 4px;\n\t}\n.leaflet-bar a {\n\tbackground-color: #fff;\n\tborder-bottom: 1px solid #ccc;\n\twidth: 26px;\n\theight: 26px;\n\tline-height: 26px;\n\tdisplay: block;\n\ttext-align: center;\n\ttext-decoration: none;\n\tcolor: black;\n\t}\n.leaflet-bar a,\n.leaflet-control-layers-toggle {\n\tbackground-position: 50% 50%;\n\tbackground-repeat: no-repeat;\n\tdisplay: block;\n\t}\n.leaflet-bar a:hover,\n.leaflet-bar a:focus {\n\tbackground-color: #f4f4f4;\n\t}\n.leaflet-bar a:first-child {\n\tborder-top-left-radius: 4px;\n\tborder-top-right-radius: 4px;\n\t}\n.leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tborder-bottom: none;\n\t}\n.leaflet-bar a.leaflet-disabled {\n\tcursor: default;\n\tbackground-color: #f4f4f4;\n\tcolor: #bbb;\n\t}\n\n.leaflet-touch .leaflet-bar a {\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n\t}\n.leaflet-touch .leaflet-bar a:first-child {\n\tborder-top-left-radius: 2px;\n\tborder-top-right-radius: 2px;\n\t}\n.leaflet-touch .leaflet-bar a:last-child {\n\tborder-bottom-left-radius: 2px;\n\tborder-bottom-right-radius: 2px;\n\t}\n\n/* zoom control */\n\n.leaflet-control-zoom-in,\n.leaflet-control-zoom-out {\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\n\ttext-indent: 1px;\n\t}\n\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\n\tfont-size: 22px;\n\t}\n\n\n/* layers control */\n\n.leaflet-control-layers {\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\n\tbackground: #fff;\n\tborder-radius: 5px;\n\t}\n.leaflet-control-layers-toggle {\n\tbackground-image: url(${d});\n\twidth: 36px;\n\theight: 36px;\n\t}\n.leaflet-retina .leaflet-control-layers-toggle {\n\tbackground-image: url(${f});\n\tbackground-size: 26px 26px;\n\t}\n.leaflet-touch .leaflet-control-layers-toggle {\n\twidth: 44px;\n\theight: 44px;\n\t}\n.leaflet-control-layers .leaflet-control-layers-list,\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\n\tdisplay: none;\n\t}\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\n\tdisplay: block;\n\tposition: relative;\n\t}\n.leaflet-control-layers-expanded {\n\tpadding: 6px 10px 6px 6px;\n\tcolor: #333;\n\tbackground: #fff;\n\t}\n.leaflet-control-layers-scrollbar {\n\toverflow-y: scroll;\n\toverflow-x: hidden;\n\tpadding-right: 5px;\n\t}\n.leaflet-control-layers-selector {\n\tmargin-top: 2px;\n\tposition: relative;\n\ttop: 1px;\n\t}\n.leaflet-control-layers label {\n\tdisplay: block;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\t}\n.leaflet-control-layers-separator {\n\theight: 0;\n\tborder-top: 1px solid #ddd;\n\tmargin: 5px -10px 5px -6px;\n\t}\n\n/* Default icon URLs */\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\n\tbackground-image: url(${y});\n\t}\n\n\n/* attribution and scale controls */\n\n.leaflet-container .leaflet-control-attribution {\n\tbackground: #fff;\n\tbackground: rgba(255, 255, 255, 0.8);\n\tmargin: 0;\n\t}\n.leaflet-control-attribution,\n.leaflet-control-scale-line {\n\tpadding: 0 5px;\n\tcolor: #333;\n\tline-height: 1.4;\n\t}\n.leaflet-control-attribution a {\n\ttext-decoration: none;\n\t}\n.leaflet-control-attribution a:hover,\n.leaflet-control-attribution a:focus {\n\ttext-decoration: underline;\n\t}\n.leaflet-attribution-flag {\n\tdisplay: inline !important;\n\tvertical-align: baseline !important;\n\twidth: 1em;\n\theight: 0.6669em;\n\t}\n.leaflet-left .leaflet-control-scale {\n\tmargin-left: 5px;\n\t}\n.leaflet-bottom .leaflet-control-scale {\n\tmargin-bottom: 5px;\n\t}\n.leaflet-control-scale-line {\n\tborder: 2px solid #777;\n\tborder-top: none;\n\tline-height: 1.1;\n\tpadding: 2px 5px 1px;\n\twhite-space: nowrap;\n\t-moz-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: rgba(255, 255, 255, 0.8);\n\ttext-shadow: 1px 1px #fff;\n\t}\n.leaflet-control-scale-line:not(:first-child) {\n\tborder-top: 2px solid #777;\n\tborder-bottom: none;\n\tmargin-top: -2px;\n\t}\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\n\tborder-bottom: 2px solid #777;\n\t}\n\n.leaflet-touch .leaflet-control-attribution,\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tbox-shadow: none;\n\t}\n.leaflet-touch .leaflet-control-layers,\n.leaflet-touch .leaflet-bar {\n\tborder: 2px solid rgba(0,0,0,0.2);\n\tbackground-clip: padding-box;\n\t}\n\n\n/* popup */\n\n.leaflet-popup {\n\tposition: absolute;\n\ttext-align: center;\n\tmargin-bottom: 20px;\n\t}\n.leaflet-popup-content-wrapper {\n\tpadding: 1px;\n\ttext-align: left;\n\tborder-radius: 12px;\n\t}\n.leaflet-popup-content {\n\tmargin: 13px 24px 13px 20px;\n\tline-height: 1.3;\n\tfont-size: 13px;\n\tfont-size: 1.08333em;\n\tmin-height: 1px;\n\t}\n.leaflet-popup-content p {\n\tmargin: 17px 0;\n\tmargin: 1.3em 0;\n\t}\n.leaflet-popup-tip-container {\n\twidth: 40px;\n\theight: 20px;\n\tposition: absolute;\n\tleft: 50%;\n\tmargin-top: -1px;\n\tmargin-left: -20px;\n\toverflow: hidden;\n\tpointer-events: none;\n\t}\n.leaflet-popup-tip {\n\twidth: 17px;\n\theight: 17px;\n\tpadding: 1px;\n\n\tmargin: -10px auto 0;\n\tpointer-events: auto;\n\n\t-webkit-transform: rotate(45deg);\n\t -moz-transform: rotate(45deg);\n\t -ms-transform: rotate(45deg);\n\t transform: rotate(45deg);\n\t}\n.leaflet-popup-content-wrapper,\n.leaflet-popup-tip {\n\tbackground: white;\n\tcolor: #333;\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\n\t}\n.leaflet-container a.leaflet-popup-close-button {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tborder: none;\n\ttext-align: center;\n\twidth: 24px;\n\theight: 24px;\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\n\tcolor: #757575;\n\ttext-decoration: none;\n\tbackground: transparent;\n\t}\n.leaflet-container a.leaflet-popup-close-button:hover,\n.leaflet-container a.leaflet-popup-close-button:focus {\n\tcolor: #585858;\n\t}\n.leaflet-popup-scrolled {\n\toverflow: auto;\n\t}\n\n.leaflet-oldie .leaflet-popup-content-wrapper {\n\t-ms-zoom: 1;\n\t}\n.leaflet-oldie .leaflet-popup-tip {\n\twidth: 24px;\n\tmargin: 0 auto;\n\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\n\t}\n\n.leaflet-oldie .leaflet-control-zoom,\n.leaflet-oldie .leaflet-control-layers,\n.leaflet-oldie .leaflet-popup-content-wrapper,\n.leaflet-oldie .leaflet-popup-tip {\n\tborder: 1px solid #999;\n\t}\n\n\n/* div icon */\n\n.leaflet-div-icon {\n\tbackground: #fff;\n\tborder: 1px solid #666;\n\t}\n\n\n/* Tooltip */\n/* Base styles for the element that has a tooltip */\n.leaflet-tooltip {\n\tposition: absolute;\n\tpadding: 6px;\n\tbackground-color: #fff;\n\tborder: 1px solid #fff;\n\tborder-radius: 3px;\n\tcolor: #222;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\tpointer-events: none;\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\n\t}\n.leaflet-tooltip.leaflet-interactive {\n\tcursor: pointer;\n\tpointer-events: auto;\n\t}\n.leaflet-tooltip-top:before,\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\tposition: absolute;\n\tpointer-events: none;\n\tborder: 6px solid transparent;\n\tbackground: transparent;\n\tcontent: "";\n\t}\n\n/* Directions */\n\n.leaflet-tooltip-bottom {\n\tmargin-top: 6px;\n}\n.leaflet-tooltip-top {\n\tmargin-top: -6px;\n}\n.leaflet-tooltip-bottom:before,\n.leaflet-tooltip-top:before {\n\tleft: 50%;\n\tmargin-left: -6px;\n\t}\n.leaflet-tooltip-top:before {\n\tbottom: 0;\n\tmargin-bottom: -12px;\n\tborder-top-color: #fff;\n\t}\n.leaflet-tooltip-bottom:before {\n\ttop: 0;\n\tmargin-top: -12px;\n\tmargin-left: -6px;\n\tborder-bottom-color: #fff;\n\t}\n.leaflet-tooltip-left {\n\tmargin-left: -6px;\n}\n.leaflet-tooltip-right {\n\tmargin-left: 6px;\n}\n.leaflet-tooltip-left:before,\n.leaflet-tooltip-right:before {\n\ttop: 50%;\n\tmargin-top: -6px;\n\t}\n.leaflet-tooltip-left:before {\n\tright: 0;\n\tmargin-right: -12px;\n\tborder-left-color: #fff;\n\t}\n.leaflet-tooltip-right:before {\n\tleft: 0;\n\tmargin-left: -12px;\n\tborder-right-color: #fff;\n\t}\n\n/* Printing */\n\n@media print {\n\t/* Prevent printers from removing background-images of controls. */\n\t.leaflet-control {\n\t\t-webkit-print-color-adjust: exact;\n\t\tprint-color-adjust: exact;\n\t\t}\n\t}\n`,"",{version:3,sources:["webpack://./node_modules/leaflet/dist/leaflet.css"],names:[],mappings:"AAAA,oBAAoB;;AAEpB;;;;;;;;;;CAUC,kBAAkB;CAClB,OAAO;CACP,MAAM;CACN;AACD;CACC,gBAAgB;CAChB;AACD;;;CAGC,yBAAyB;IACtB,sBAAsB;SACjB,iBAAiB;GACvB,uBAAuB;CACzB;AACD,kDAAkD;AAClD;CACC,uBAAuB;AACxB;AACA,mFAAmF;AACnF;CACC,0CAA0C;CAC1C;AACD,qEAAqE;AACrE;CACC,aAAa;CACb,cAAc;CACd,6BAA6B;CAC7B;AACD;;CAEC,cAAc;CACd;AACD,gGAAgG;AAChG,qFAAqF;AACrF;CACC,0BAA0B;CAC1B,2BAA2B;CAC3B;AACD;;;;;CAKC,0BAA0B;CAC1B,2BAA2B;CAC3B,WAAW;CACX,UAAU;CACV;;AAED;CACC,sEAAsE;CACtE,4BAA4B;AAC7B;;AAEA;CACC,6BAA6B;CAC7B,yBAAyB;CACzB;AACD;CACC,4BAA4B;CAC5B,qDAAqD;CACrD,kBAAkB;CAClB,wBAAwB;AACzB;AACA;CACC,sBAAsB;CACtB,kBAAkB;AACnB;AACA;CACC,wCAAwC;AACzC;AACA;CACC,oDAAoD;AACrD;AACA;CACC,eAAe;CACf,kBAAkB;CAClB;AACD;CACC,mBAAmB;CACnB;AACD;CACC,QAAQ;CACR,SAAS;CACT,2BAA2B;MACtB,sBAAsB;CAC3B,YAAY;CACZ;AACD,uEAAuE;AACvE;CACC,sBAAsB;CACtB;;AAED,wBAAwB,YAAY,EAAE;;AAEtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,wBAAwB,YAAY,EAAE;AACtC,0BAA0B,YAAY,EAAE;AACxC,wBAAwB,YAAY,EAAE;;AAEtC,2BAA2B,YAAY,EAAE;AACzC,2BAA2B,YAAY,EAAE;;AAEzC;CACC,UAAU;CACV,WAAW;CACX;AACD;CACC,2BAA2B;CAC3B,qBAAqB;CACrB,kBAAkB;CAClB;;;AAGD,wBAAwB;;AAExB;CACC,kBAAkB;CAClB,YAAY;CACZ,8BAA8B,EAAE,8BAA8B;CAC9D,oBAAoB;CACpB;AACD;;CAEC,kBAAkB;CAClB,aAAa;CACb,oBAAoB;CACpB;AACD;CACC,MAAM;CACN;AACD;CACC,QAAQ;CACR;AACD;CACC,SAAS;CACT;AACD;CACC,OAAO;CACP;AACD;CACC,WAAW;CACX,WAAW;CACX;AACD;CACC,YAAY;CACZ;AACD;CACC,gBAAgB;CAChB;AACD;CACC,mBAAmB;CACnB;AACD;CACC,iBAAiB;CACjB;AACD;CACC,kBAAkB;CAClB;;;AAGD,6BAA6B;;AAE7B;CACC,UAAU;CACV,uCAAuC;IACpC,oCAAoC;SAC/B,+BAA+B;CACvC;AACD;CACC,UAAU;CACV;AACD;CACC,6BAA6B;KACzB,yBAAyB;SACrB,qBAAqB;CAC7B;AACD;CACC,sBAAsB;AACvB;;AAEA;CACC,oEAAoE;IACjE,iEAAiE;SAC5D,4DAA4D;CACpE;AACD;;CAEC,wBAAwB;IACrB,qBAAqB;SAChB,gBAAgB;CACxB;;AAED;CACC,kBAAkB;CAClB;;;AAGD,YAAY;;AAEZ;CACC,eAAe;CACf;AACD;CACC,oBAAoB;CACpB,oBAAoB;CACpB,oBAAoB;CACpB;AACD;;CAEC,iBAAiB;CACjB;AACD;;CAEC,YAAY;CACZ;AACD;;;CAGC,YAAY;CACZ,wBAAwB;CACxB,wBAAwB;CACxB,wBAAwB;CACxB;;AAED,oCAAoC;AACpC;;;;;CAKC,oBAAoB;CACpB;;AAED;;;;CAIC,8BAA8B,EAAE,8BAA8B;CAC9D,oBAAoB;CACpB;;AAED,kBAAkB;;AAElB;CACC,gBAAgB;CAChB,mBAAmB;CACnB;AACD;CACC,cAAc;CACd;AACD;CACC,uBAAuB;CACvB,iCAAiC;CACjC;;;AAGD,uBAAuB;AACvB;CACC,2DAA2D;CAC3D,eAAe;CACf,kBAAkB;CAClB,gBAAgB;CAChB;;;AAGD,2BAA2B;;AAE3B;CACC,sCAAsC;CACtC,kBAAkB;CAClB;AACD;CACC,sBAAsB;CACtB,6BAA6B;CAC7B,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,qBAAqB;CACrB,YAAY;CACZ;AACD;;CAEC,4BAA4B;CAC5B,4BAA4B;CAC5B,cAAc;CACd;AACD;;CAEC,yBAAyB;CACzB;AACD;CACC,2BAA2B;CAC3B,4BAA4B;CAC5B;AACD;CACC,8BAA8B;CAC9B,+BAA+B;CAC/B,mBAAmB;CACnB;AACD;CACC,eAAe;CACf,yBAAyB;CACzB,WAAW;CACX;;AAED;CACC,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB;AACD;CACC,2BAA2B;CAC3B,4BAA4B;CAC5B;AACD;CACC,8BAA8B;CAC9B,+BAA+B;CAC/B;;AAED,iBAAiB;;AAEjB;;CAEC,mDAAmD;CACnD,gBAAgB;CAChB;;AAED;CACC,eAAe;CACf;;;AAGD,mBAAmB;;AAEnB;CACC,qCAAqC;CACrC,gBAAgB;CAChB,kBAAkB;CAClB;AACD;CACC,yDAAwC;CACxC,WAAW;CACX,YAAY;CACZ;AACD;CACC,yDAA2C;CAC3C,0BAA0B;CAC1B;AACD;CACC,WAAW;CACX,YAAY;CACZ;AACD;;CAEC,aAAa;CACb;AACD;CACC,cAAc;CACd,kBAAkB;CAClB;AACD;CACC,yBAAyB;CACzB,WAAW;CACX,gBAAgB;CAChB;AACD;CACC,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB;AACD;CACC,eAAe;CACf,kBAAkB;CAClB,QAAQ;CACR;AACD;CACC,cAAc;CACd,eAAe;CACf,oBAAoB;CACpB;AACD;CACC,SAAS;CACT,0BAA0B;CAC1B,0BAA0B;CAC1B;;AAED,sBAAsB;AACtB,6BAA6B,6DAA6D;CACzF,yDAA6C;CAC7C;;;AAGD,mCAAmC;;AAEnC;CACC,gBAAgB;CAChB,oCAAoC;CACpC,SAAS;CACT;AACD;;CAEC,cAAc;CACd,WAAW;CACX,gBAAgB;CAChB;AACD;CACC,qBAAqB;CACrB;AACD;;CAEC,0BAA0B;CAC1B;AACD;CACC,0BAA0B;CAC1B,mCAAmC;CACnC,UAAU;CACV,gBAAgB;CAChB;AACD;CACC,gBAAgB;CAChB;AACD;CACC,kBAAkB;CAClB;AACD;CACC,sBAAsB;CACtB,gBAAgB;CAChB,gBAAgB;CAChB,oBAAoB;CACpB,mBAAmB;CACnB,2BAA2B;MACtB,sBAAsB;CAC3B,oCAAoC;CACpC,yBAAyB;CACzB;AACD;CACC,0BAA0B;CAC1B,mBAAmB;CACnB,gBAAgB;CAChB;AACD;CACC,6BAA6B;CAC7B;;AAED;;;CAGC,gBAAgB;CAChB;AACD;;CAEC,iCAAiC;CACjC,4BAA4B;CAC5B;;;AAGD,UAAU;;AAEV;CACC,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CACnB;AACD;CACC,YAAY;CACZ,gBAAgB;CAChB,mBAAmB;CACnB;AACD;CACC,2BAA2B;CAC3B,gBAAgB;CAChB,eAAe;CACf,oBAAoB;CACpB,eAAe;CACf;AACD;CACC,cAAc;CACd,eAAe;CACf;AACD;CACC,WAAW;CACX,YAAY;CACZ,kBAAkB;CAClB,SAAS;CACT,gBAAgB;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,oBAAoB;CACpB;AACD;CACC,WAAW;CACX,YAAY;CACZ,YAAY;;CAEZ,oBAAoB;CACpB,oBAAoB;;CAEpB,gCAAgC;IAC7B,6BAA6B;KAC5B,4BAA4B;SACxB,wBAAwB;CAChC;AACD;;CAEC,iBAAiB;CACjB,WAAW;CACX,sCAAsC;CACtC;AACD;CACC,kBAAkB;CAClB,MAAM;CACN,QAAQ;CACR,YAAY;CACZ,kBAAkB;CAClB,WAAW;CACX,YAAY;CACZ,2CAA2C;CAC3C,cAAc;CACd,qBAAqB;CACrB,uBAAuB;CACvB;AACD;;CAEC,cAAc;CACd;AACD;CACC,cAAc;CACd;;AAED;CACC,WAAW;CACX;AACD;CACC,WAAW;CACX,cAAc;;CAEd,uHAAuH;CACvH,iHAAiH;CACjH;;AAED;;;;CAIC,sBAAsB;CACtB;;;AAGD,aAAa;;AAEb;CACC,gBAAgB;CAChB,sBAAsB;CACtB;;;AAGD,YAAY;AACZ,mDAAmD;AACnD;CACC,kBAAkB;CAClB,YAAY;CACZ,sBAAsB;CACtB,sBAAsB;CACtB,kBAAkB;CAClB,WAAW;CACX,mBAAmB;CACnB,yBAAyB;CACzB,sBAAsB;CACtB,qBAAqB;CACrB,iBAAiB;CACjB,oBAAoB;CACpB,qCAAqC;CACrC;AACD;CACC,eAAe;CACf,oBAAoB;CACpB;AACD;;;;CAIC,kBAAkB;CAClB,oBAAoB;CACpB,6BAA6B;CAC7B,uBAAuB;CACvB,WAAW;CACX;;AAED,eAAe;;AAEf;CACC,eAAe;AAChB;AACA;CACC,gBAAgB;AACjB;AACA;;CAEC,SAAS;CACT,iBAAiB;CACjB;AACD;CACC,SAAS;CACT,oBAAoB;CACpB,sBAAsB;CACtB;AACD;CACC,MAAM;CACN,iBAAiB;CACjB,iBAAiB;CACjB,yBAAyB;CACzB;AACD;CACC,iBAAiB;AAClB;AACA;CACC,gBAAgB;AACjB;AACA;;CAEC,QAAQ;CACR,gBAAgB;CAChB;AACD;CACC,QAAQ;CACR,mBAAmB;CACnB,uBAAuB;CACvB;AACD;CACC,OAAO;CACP,kBAAkB;CAClB,wBAAwB;CACxB;;AAED,aAAa;;AAEb;CACC,kEAAkE;CAClE;EACC,iCAAiC;EACjC,yBAAyB;EACzB;CACD",sourcesContent:['/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers "stretching" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container img.leaflet-tile {\r\n\t/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */\r\n\tmix-blend-mode: plus-lighter;\r\n}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn\'t support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane { z-index: 500; }\r\n.leaflet-marker-pane { z-index: 600; }\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn\'t have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont-family: "Helvetica Neue", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px \'Lucida Console\', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers.png);\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers-2x.png);\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url(images/marker-icon.png);\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n'],sourceRoot:""}]);const g=p},9689(t,e,n){"use strict";n.d(e,{A:()=>h});var i=n(1354),r=n.n(i),o=n(6314),a=n.n(o),s=n(1519),l=n(8989),u=a()(r());u.i(s.A),u.i(l.A),u.push([t.id,'.map{width:100%;height:500px;position:relative}.map .viewMenu{padding:4px 10px;text-align:left;background-color:#fff;position:absolute;bottom:0px;left:34px;border:1px solid rgba(0,0,0,.2);border-radius:4px;min-width:100px}.map .leaflet-popup-content{position:relative}.map .leaflet-popup-content .caosdb-f-map-popup-entity-link{position:absolute;top:0;right:0}.map .leaflet-control.leaflet-control-layers{height:34px;width:34px}.map .leaflet-control.leaflet-control-layers.leaflet-control-layers-expanded{height:unset;width:unset}.map .leaflet-control.leaflet-control-layers.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.map .leaflet-control.leaflet-control-layers .leaflet-control-layers-toggle{display:flex;justify-content:center;align-items:center;width:unset;height:unset;font-size:20px;color:#333;text-decoration:none;background-image:unset}.map .leaflet-control.leaflet-control-layers .leaflet-control-layers-toggle::before{display:inline-block;font-family:bootstrap-icons !important;font-style:normal;font-weight:normal !important;font-variant:normal;text-transform:none;content:""}.caosdb-f-map-change-view-btn,.caosdb-f-map-search-btn,.caosdb-f-map-select-search-btn{background-color:#fff;width:34px;height:34px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid rgba(0,0,0,.2);border-radius:4px}.caosdb-f-map-select-search-btn img{width:80%;height:80%}.caosdb-f-map-select-search-btn+.caosdb-f-map-search-btn{margin-top:2px}.caosdb-f-map-select-search-btn.highlight{background-color:#90ee90}.caosdb-f-map-search-btn{background-color:#ff8700}.caosdb-f-map-search-btn i{font-size:15px}.caosdb-f-map-parent-badge{color:#333;border:1px solid #333}.caosdb-f-map-entity-name-label{margin-top:4px;margin-bottom:4px}.caosdb-f-map-path-drop-down{height:34px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:4px}.caosdb-f-map-change-view-btn i{font-size:20px}.caosdb-f-map-view-select{width:max-content}.caosdb-f-map-view-select label{margin-left:8px}',"",{version:3,sources:["webpack://./src/index.scss"],names:[],mappings:"AACQ,KAER,UACE,CAAA,YACA,CAAA,iBACA,CAAA,eAEA,gBACE,CAAA,eACA,CAAA,qBACA,CAAA,iBACA,CAAA,UACA,CAAA,SACA,CAAA,+BACA,CAAA,iBACA,CAAA,eACA,CAAA,4BAGF,iBACE,CAAA,4DAEA,iBACE,CAAA,KACA,CAAA,OACA,CAAA,6CAIJ,WACE,CAAA,UACA,CAAA,6EAEA,YACE,CAAA,WACA,CAAA,4GAEA,YACE,CAAA,4EAIJ,YACE,CAAA,sBACA,CAAA,kBACA,CAAA,WACA,CAAA,YACA,CAAA,cACA,CAAA,UACA,CAAA,oBACA,CAAA,sBACA,CAAA,oFACA,oBACE,CAAA,sCACA,CAAA,iBACA,CAAA,6BACA,CAAA,mBACA,CAAA,mBACA,CAAA,WACA,CAAA,uFAMR,qBAGE,CAAA,UACA,CAAA,WACA,CAAA,YACA,CAAA,kBACA,CAAA,sBACA,CAAA,qBACA,CAAA,+BACA,CAAA,iBACA,CAAA,oCAIA,SACE,CAAA,UACA,CAAA,yDAGF,cACE,CAAA,0CAGF,wBACE,CAAA,yBAIJ,wBACE,CAAA,2BAEA,cACE,CAAA,2BAIJ,UACE,CAAA,qBACA,CAAA,gCAGF,cACE,CAAA,iBACA,CAAA,6BAGF,WACE,CAAA,qBACA,CAAA,+BACA,CAAA,iBACA,CAAA,gCAIA,cACE,CAAA,0BAIJ,iBACE,CAAA,gCAEA,eACE",sourceRoot:""}]);const h=u},7914(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(1354),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([t.id,".jGVVU3C3meY4dMYkROsg {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.d7ggs0DwliQBHIN1PjfZ {\n --bs-spinner-width: 3rem;\n --bs-spinner-height: 3rem;\n}\n.dwTBrrO_HMmdlDsRbf6s {\n position: fixed;\n}\n.czP6ZfAx39oLeeXrRdKC {\n position: absolute;\n z-index: 10000;\n}\n","",{version:3,sources:["webpack://./src/components/Loader.module.css"],names:[],mappings:"AAAA;EACE,QAAQ;EACR,SAAS;EACT,gCAAgC;AAClC;;AAEA;EACE,wBAAwB;EACxB,yBAAyB;AAC3B;AACA;EACE,eAAe;AACjB;AACA;EACE,kBAAkB;EAClB,cAAc;AAChB",sourcesContent:[".loader {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.spinnerM {\n --bs-spinner-width: 3rem;\n --bs-spinner-height: 3rem;\n}\n.loaderFullScreen {\n position: fixed;\n}\n.loaderInMap {\n position: absolute;\n z-index: 10000;\n}\n"],sourceRoot:""}]),a.locals={loader:"jGVVU3C3meY4dMYkROsg",spinnerM:"d7ggs0DwliQBHIN1PjfZ",loaderFullScreen:"dwTBrrO_HMmdlDsRbf6s",loaderInMap:"czP6ZfAx39oLeeXrRdKC"};const s=a},9164(t,e,n){"use strict";n.d(e,{A:()=>s});var i=n(1354),r=n.n(i),o=n(6314),a=n.n(o)()(r());a.push([t.id,".linebreak {\n height: 10px;\n}\n\n.customEntityPreview {\n white-space: normal;\n overflow-wrap: anywhere;\n}\n","",{version:3,sources:["webpack://./src/Map.helpers.css"],names:[],mappings:"AAAA;EACE,YAAY;AACd;;AAEA;EACE,mBAAmB;EACnB,uBAAuB;AACzB",sourcesContent:[".linebreak {\n height: 10px;\n}\n\n.customEntityPreview {\n white-space: normal;\n overflow-wrap: anywhere;\n}\n"],sourceRoot:""}]);const s=a},6314(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<t.length;u++){var h=[].concat(t[u]);i&&a[h[0]]||(void 0!==o&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=o),n&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=n):h[2]=n),r&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=r):h[4]="".concat(r)),e.push(h))}},e}},4417(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},1354(t){"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},8103(){L.Control.Coordinates=L.Control.extend({options:{position:"bottomright",decimals:4,decimalSeperator:".",labelTemplateLat:"Lat: {y}",labelTemplateLng:"Lng: {x}",labelFormatterLat:void 0,labelFormatterLng:void 0,enableUserInput:!0,useDMS:!1,useLatLngOrder:!1,centerUserCoordinates:!1,markerType:L.marker,markerProps:{}},onAdd:function(t){this._map=t;var e,n,i=this._container=L.DomUtil.create("div","leaflet-control-coordinates"),r=this.options;return this._labelcontainer=L.DomUtil.create("div","uiElement label",i),this._label=L.DomUtil.create("span","labelFirst",this._labelcontainer),this._inputcontainer=L.DomUtil.create("div","uiElement input uiHidden",i),r.useLatLngOrder?(n=L.DomUtil.create("span","",this._inputcontainer),this._inputY=this._createInput("inputY",this._inputcontainer),e=L.DomUtil.create("span","",this._inputcontainer),this._inputX=this._createInput("inputX",this._inputcontainer)):(e=L.DomUtil.create("span","",this._inputcontainer),this._inputX=this._createInput("inputX",this._inputcontainer),n=L.DomUtil.create("span","",this._inputcontainer),this._inputY=this._createInput("inputY",this._inputcontainer)),e.innerHTML=r.labelTemplateLng.replace("{x}",""),n.innerHTML=r.labelTemplateLat.replace("{y}",""),L.DomEvent.on(this._inputX,"keyup",this._handleKeypress,this),L.DomEvent.on(this._inputY,"keyup",this._handleKeypress,this),t.on("mousemove",this._update,this),t.on("dragstart",this.collapse,this),t.whenReady(this._update,this),this._showsCoordinates=!0,r.enableUserInput&&L.DomEvent.addListener(this._container,"click",this._switchUI,this),i},_createInput:function(t,e){var n=L.DomUtil.create("input",t,e);return n.type="text",L.DomEvent.disableClickPropagation(n),n},_clearMarker:function(){this._map.removeLayer(this._marker)},_handleKeypress:function(t){switch(t.keyCode){case 27:this.collapse();break;case 13:this._handleSubmit(),this.collapse();break;default:this._handleSubmit()}},_handleSubmit:function(){var t=L.NumberFormatter.createValidNumber(this._inputX.value,this.options.decimalSeperator),e=L.NumberFormatter.createValidNumber(this._inputY.value,this.options.decimalSeperator);if(void 0!==t&&void 0!==e){var n=this._marker;n||(n=this._marker=this._createNewMarker()).on("click",this._clearMarker,this);var i=new L.LatLng(e,t);n.setLatLng(i),n.addTo(this._map),this.options.centerUserCoordinates&&this._map.setView(i,this._map.getZoom())}},expand:function(){this._showsCoordinates=!1,this._map.off("mousemove",this._update,this),L.DomEvent.addListener(this._container,"mousemove",L.DomEvent.stop),L.DomEvent.removeListener(this._container,"click",this._switchUI,this),L.DomUtil.addClass(this._labelcontainer,"uiHidden"),L.DomUtil.removeClass(this._inputcontainer,"uiHidden")},_createCoordinateLabel:function(t){var e,n,i=this.options;return i.customLabelFcn?i.customLabelFcn(t,i):(e=i.labelLng?i.labelFormatterLng(t.lng):L.Util.template(i.labelTemplateLng,{x:this._getNumber(t.lng,i)}),n=i.labelFormatterLat?i.labelFormatterLat(t.lat):L.Util.template(i.labelTemplateLat,{y:this._getNumber(t.lat,i)}),i.useLatLngOrder?n+" "+e:e+" "+n)},_getNumber:function(t,e){return e.useDMS?L.NumberFormatter.toDMS(t):L.NumberFormatter.round(t,e.decimals,e.decimalSeperator)},collapse:function(){if(!this._showsCoordinates&&(this._map.on("mousemove",this._update,this),this._showsCoordinates=!0,this.options,L.DomEvent.addListener(this._container,"click",this._switchUI,this),L.DomEvent.removeListener(this._container,"mousemove",L.DomEvent.stop),L.DomUtil.addClass(this._inputcontainer,"uiHidden"),L.DomUtil.removeClass(this._labelcontainer,"uiHidden"),this._marker)){var t=this._createNewMarker(),e=this._marker.getLatLng();t.setLatLng(e);var n=L.DomUtil.create("div","");L.DomUtil.create("div","",n).innerHTML=this._ordinateLabel(e);var i=L.DomUtil.create("a","",n);i.innerHTML="Remove",i.href="#";var r=L.DomEvent.stopPropagation;L.DomEvent.on(i,"click",r).on(i,"mousedown",r).on(i,"dblclick",r).on(i,"click",L.DomEvent.preventDefault).on(i,"click",function(){this._map.removeLayer(t)},this),t.bindPopup(n),t.addTo(this._map),this._map.removeLayer(this._marker),this._marker=null}},_switchUI:function(t){L.DomEvent.stop(t),L.DomEvent.stopPropagation(t),L.DomEvent.preventDefault(t),this._showsCoordinates?this.expand():this.collapse()},onRemove:function(t){t.off("mousemove",this._update,this)},_update:function(t){var e=t.latlng,n=this.options;e&&(e=e.wrap(),this._currentPos=e,this._inputY.value=L.NumberFormatter.round(e.lat,n.decimals,n.decimalSeperator),this._inputX.value=L.NumberFormatter.round(e.lng,n.decimals,n.decimalSeperator),this._label.innerHTML=this._createCoordinateLabel(e))},_createNewMarker:function(){return this.options.markerType(null,this.options.markerProps)}}),L.control.coordinates=function(t){return new L.Control.Coordinates(t)},L.Map.mergeOptions({coordinateControl:!1}),L.Map.addInitHook(function(){this.options.coordinateControl&&(this.coordinateControl=new L.Control.Coordinates,this.addControl(this.coordinateControl))}),L.NumberFormatter={round:function(t,e,n){var i=L.Util.formatNum(t,e)+"",r=i.split(".");if(r[1]){for(var o=e-r[1].length;o>0;o--)r[1]+="0";i=r.join(n||".")}return i},toDMS:function(t){var e=Math.floor(Math.abs(t)),n=60*(Math.abs(t)-e),i=Math.floor(n),r=60*(n-i),o=Math.round(r);60==o&&(i++,o="00"),60==i&&(e++,i="00"),10>o&&(o="0"+o),10>i&&(i="0"+i);var a="";return 0>t&&(a="-"),""+a+e+"° "+i+"' "+o+"''"},createValidNumber:function(t,e){if(t&&t.length>0){var n=t.split(e||".");try{var i=Number(n.join("."));return isNaN(i)?void 0:i}catch(t){return}}}}},3481(t,e){!function(t){"use strict";function e(t){var e,n,i,r;for(n=1,i=arguments.length;n<i;n++)for(e in r=arguments[n])t[e]=r[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var r=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++r),t._leaflet_id}function a(t,e,n){var i,r,o,a;return a=function(){i=!1,r&&(o.apply(n,r),r=!1)},o=function(){i?r=arguments:(t.apply(n,arguments),setTimeout(a,e),i=!0)},o}function s(t,e,n){var i=e[1],r=e[0],o=i-r;return t===i&&n?t:((t-r)%o+o)%o+r}function l(){return!1}function u(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function c(t){return h(t).split(/\s+/)}function p(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function d(t,e,n){var i=[];for(var r in t)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function y(t,e){return t.replace(f,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var m="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-b));return b=e+n,window.setTimeout(t,n)}var E=window.requestAnimationFrame||_("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function A(t,e,n){if(!n||E!==w)return E.call(window,i(t,e));t.call(e)}function M(t){t&&k.call(window,t)}var C={__proto__:null,extend:e,create:n,bind:i,get lastId(){return r},stamp:o,throttle:a,wrapNum:s,falseFn:l,formatNum:u,trim:h,splitWords:c,setOptions:p,getParamString:d,template:y,isArray:g,indexOf:v,emptyImageUrl:m,requestFn:E,cancelFn:k,requestAnimFrame:A,cancelAnimFrame:M};function S(){}S.extend=function(t){var i=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=i.__super__=this.prototype,o=n(r);for(var a in o.constructor=i,i.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(i[a]=this[a]);return t.statics&&e(i,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes))),e(o,t),delete o.statics,delete o.includes,o.options&&(o.options=r.options?n(r.options):{},e(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},i},S.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},S.mergeOptions=function(t){return e(this.prototype.options,t),this},S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var R={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var r=0,o=(t=c(t)).length;r<o;r++)this._on(t[r],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=c(t);for(var r=1===arguments.length,o=0,a=t.length;o<a;o++)r?this._off(t[o]):this._off(t[o],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var r={fn:e,ctx:n};i&&(r.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(r)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,r,o;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,n);if(!1!==a){var s=i[a];this._firingCount&&(s.fn=l,this._events[t]=i=i.slice()),i.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(r=0,o=i.length;r<o;r++)i[r].fn=l;delete this._events[t]}},fire:function(t,n,i){if(!this.listens(t,i))return this;var r=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a],u=l.fn;l.once&&this.off(t,u,l.ctx),u.call(l.ctx||this,r)}this._firingCount--}}return i&&this._propagateEvent(r),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var r=e;"function"!=typeof e&&(i=!!e,r=void 0,n=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,r,n))return!0;if(i)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var r=0,o=i.length;r<o;r++)if(i[r].fn===e&&i[r].ctx===n)return r;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var r=0,o=(t=c(t)).length;r<o;r++)this._on(t[r],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};R.addEventListener=R.on,R.removeEventListener=R.clearAllEventListeners=R.off,R.addOneTimeEventListener=R.once,R.fireEvent=R.fire,R.hasEventListeners=R.listens;var x=S.extend(R);function T(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var P=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function B(t,e,n){return t instanceof T?t:g(t)?new T(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new T(t.x,t.y):new T(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function F(t,e){return!t||t instanceof I?t:new I(t,e)}function O(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function D(t,e){return t instanceof O?t:new O(t,e)}function z(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function N(t,e,n){return t instanceof z?t:g(t)&&"object"!=typeof t[0]?3===t.length?new z(t[0],t[1],t[2]):2===t.length?new z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new z(t,e,n)}T.prototype={clone:function(){return new T(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new T(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new T(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=P(this.x),this.y=P(this.y),this},distanceTo:function(t){var e=(t=B(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=B(t)).x===this.x&&t.y===this.y},contains:function(t){return t=B(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof T||"number"==typeof t[0]||"x"in t)e=n=B(t);else if(e=(t=F(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof T?B(t):F(t))instanceof I?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=F(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,a=r.y>=e.y&&i.y<=n.y;return o&&a},overlaps:function(t){t=F(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.x<n.x,a=r.y>e.y&&i.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,r=Math.abs(e.y-n.y)*t;return F(B(e.x-i,e.y-r),B(n.x+i,n.y+r))},equals:function(t){return!!t&&(t=F(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},O.prototype={extend:function(t){var e,n,i=this._southWest,r=this._northEast;if(t instanceof z)e=t,n=t;else{if(!(t instanceof O))return t?this.extend(N(t)||D(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||r?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new z(e.lat,e.lng),this._northEast=new z(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new O(new z(e.lat-i,e.lng-r),new z(n.lat+i,n.lng+r))},getCenter:function(){return new z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof z||"lat"in t?N(t):D(t);var e,n,i=this._southWest,r=this._northEast;return t instanceof O?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=D(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,a=r.lng>=e.lng&&i.lng<=n.lng;return o&&a},overlaps:function(t){t=D(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.lat<n.lat,a=r.lng>e.lng&&i.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},z.prototype={equals:function(t,e){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return U.distance(this,N(t))},wrap:function(){return U.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return D([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new z(this.lat,this.lng,this.alt)}};var j,G={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new I(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new z(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,r=e.lng-n.lng;if(0===i&&0===r)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new O(new z(o.lat-i,o.lng-r),new z(a.lat-i,a.lng-r))}},U=e({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,r=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=o*o+Math.cos(i)*Math.cos(r)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),W=6378137,q={R:W,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),r=Math.sin(i*e);return new T(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(j=W*Math.PI,new I([-j,-j],[j,j]))};function V(t,e,n,i){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function H(t,e,n,i){return new V(t,e,n,i)}V.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new T((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Z=e({},U,{code:"EPSG:3857",projection:q,transformation:function(){var t=.5/(Math.PI*q.R);return H(t,.5,-t,.5)}()}),Y=e({},Z,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $(t,e){var n,i,r,o,a,s,l="";for(n=0,r=t.length;n<r;n++){for(i=0,o=(a=t[n]).length;i<o;i++)l+=(i?"L":"M")+(s=a[i]).x+" "+s.y;l+=e?It.svg?"z":"x":""}return l||"M0 0"}var X,J=document.documentElement.style,K="ActiveXObject"in window,tt=K&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),nt=Bt("webkit"),it=Bt("android"),rt=Bt("android 2")||Bt("android 3"),ot=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=it&&Bt("Google")&&ot<537&&!("AudioNode"in window),st=!!window.opera,lt=!et&&Bt("chrome"),ut=Bt("gecko")&&!nt&&!st&&!K,ht=!lt&&Bt("safari"),ct=Bt("phantom"),pt="OTransition"in J,dt=0===navigator.platform.indexOf("Win"),ft=K&&"transition"in J,yt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!rt,gt="MozPerspective"in J,vt=!window.L_DISABLE_3D&&(ft||yt||gt)&&!pt&&!ct,mt="undefined"!=typeof orientation||Bt("mobile"),_t=mt&&nt,bt=mt&&yt,wt=!window.PointerEvent&&window.MSPointerEvent,Et=!(!window.PointerEvent&&!wt),kt="ontouchstart"in window||!!window.TouchEvent,At=!window.L_NO_TOUCH&&(kt||Et),Mt=mt&&st,Ct=mt&&ut,St=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Rt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),xt=!!document.createElement("canvas").getContext,Tt=!(!document.createElementNS||!Q("svg").createSVGRect),Pt=!!Tt&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),Lt=!Tt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Bt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:K,ielt9:tt,edge:et,webkit:nt,android:it,android23:rt,androidStock:at,opera:st,chrome:lt,gecko:ut,safari:ht,phantom:ct,opera12:pt,win:dt,ie3d:ft,webkit3d:yt,gecko3d:gt,any3d:vt,mobile:mt,mobileWebkit:_t,mobileWebkit3d:bt,msPointer:wt,pointer:Et,touch:At,touchNative:kt,mobileOpera:Mt,mobileGecko:Ct,retina:St,passiveEvents:Rt,canvas:xt,svg:Tt,vml:Lt,inlineSvg:Pt,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Ft=It.msPointer?"MSPointerDown":"pointerdown",Ot=It.msPointer?"MSPointerMove":"pointermove",Dt=It.msPointer?"MSPointerUp":"pointerup",zt=It.msPointer?"MSPointerCancel":"pointercancel",Nt={touchstart:Ft,touchmove:Ot,touchend:Dt,touchcancel:zt},jt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&De(e),Zt(t,e)},touchmove:Zt,touchend:Zt,touchcancel:Zt},Gt={},Ut=!1;function Wt(t,e,n){return"touchstart"===e&&(Ut||(document.addEventListener(Ft,qt,!0),document.addEventListener(Ot,Vt,!0),document.addEventListener(Dt,Ht,!0),document.addEventListener(zt,Ht,!0),Ut=!0)),jt[e]?(n=jt[e].bind(this,n),t.addEventListener(Nt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function qt(t){Gt[t.pointerId]=t}function Vt(t){Gt[t.pointerId]&&(Gt[t.pointerId]=t)}function Ht(t){delete Gt[t.pointerId]}function Zt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Gt)e.touches.push(Gt[n]);e.changedTouches=[e],t(e)}}var Yt,Qt,$t,Xt,Jt,Kt=ye(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),te=ye(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ee="webkitTransition"===te||"OTransition"===te?te+"End":"transitionend";function ne(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function re(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function oe(t){var e=t.parentNode;e&&e.removeChild(t)}function ae(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function se(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function le(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ue(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=de(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function he(t,e){if(void 0!==t.classList)for(var n=c(e),i=0,r=n.length;i<r;i++)t.classList.add(n[i]);else if(!ue(t,e)){var o=de(t);pe(t,(o?o+" ":"")+e)}}function ce(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,h((" "+de(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function de(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function fe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}(t,e)}function ye(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ge(t,e,n){var i=e||new T(0,0);t.style[Kt]=(It.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function ve(t,e){t._leaflet_pos=e,It.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function me(t){return t._leaflet_pos||new T(0,0)}if("onselectstart"in document)Yt=function(){Se(window,"selectstart",De)},Qt=function(){xe(window,"selectstart",De)};else{var _e=ye(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Yt=function(){if(_e){var t=document.documentElement.style;$t=t[_e],t[_e]="none"}},Qt=function(){_e&&(document.documentElement.style[_e]=$t,$t=void 0)}}function be(){Se(window,"dragstart",De)}function we(){xe(window,"dragstart",De)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ke(),Xt=t,Jt=t.style.outlineStyle,t.style.outlineStyle="none",Se(window,"keydown",ke))}function ke(){Xt&&(Xt.style.outlineStyle=Jt,Xt=void 0,Jt=void 0,xe(window,"keydown",ke))}function Ae(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Me(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ce={__proto__:null,TRANSFORM:Kt,TRANSITION:te,TRANSITION_END:ee,get:ne,getStyle:ie,create:re,remove:oe,empty:ae,toFront:se,toBack:le,hasClass:ue,addClass:he,removeClass:ce,setClass:pe,getClass:de,setOpacity:fe,testProp:ye,setTransform:ge,setPosition:ve,getPosition:me,get disableTextSelection(){return Yt},get enableTextSelection(){return Qt},disableImageDrag:be,enableImageDrag:we,preventOutline:Ee,restoreOutline:ke,getSizedParentNode:Ae,getScale:Me};function Se(t,e,n,i){if(e&&"object"==typeof e)for(var r in e)Le(t,r,e[r],n);else for(var o=0,a=(e=c(e)).length;o<a;o++)Le(t,e[o],n,i);return this}var Re="_leaflet_events";function xe(t,e,n,i){if(1===arguments.length)Te(t),delete t[Re];else if(e&&"object"==typeof e)for(var r in e)Be(t,r,e[r],n);else if(e=c(e),2===arguments.length)Te(t,function(t){return-1!==v(e,t)});else for(var o=0,a=e.length;o<a;o++)Be(t,e[o],n,i);return this}function Te(t,e){for(var n in t[Re]){var i=n.split(/\d/)[0];e&&!e(i)||Be(t,i,null,null,n)}}var Pe={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Le(t,e,n,i){var r=e+o(n)+(i?"_"+o(i):"");if(t[Re]&&t[Re][r])return this;var a=function(e){return n.call(i||t,e||window.event)},s=a;!It.touchNative&&It.pointer&&0===e.indexOf("touch")?a=Wt(t,e,a):It.touch&&"dblclick"===e?a=function(t,e){t.addEventListener("dblclick",e);var n,i=0;function r(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var r=Ne(t);if(!r.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||r.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var o=Date.now();o-i<=200?2===++n&&e(function(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}(t)):n=1,i=o}}}else n=t.detail}return t.addEventListener("click",r),{dblclick:e,simDblclick:r}}(t,a):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Pe[e]||e,a,!!It.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,We(t,e)&&s(e)},t.addEventListener(Pe[e],a,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,a),t[Re]=t[Re]||{},t[Re][r]=a}function Be(t,e,n,i,r){r=r||e+o(n)+(i?"_"+o(i):"");var a=t[Re]&&t[Re][r];if(!a)return this;!It.touchNative&&It.pointer&&0===e.indexOf("touch")?function(t,e,n){Nt[e]?t.removeEventListener(Nt[e],n,!1):console.warn("wrong event specified:",e)}(t,e,a):It.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,a):"removeEventListener"in t?t.removeEventListener(Pe[e]||e,a,!1):t.detachEvent("on"+e,a),t[Re][r]=null}function Ie(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Fe(t){return Le(t,"wheel",Ie),this}function Oe(t){return Se(t,"mousedown touchstart dblclick contextmenu",Ie),t._leaflet_disable_click=!0,this}function De(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function ze(t){return De(t),Ie(t),this}function Ne(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function je(t,e){if(!e)return new T(t.clientX,t.clientY);var n=Me(e),i=n.boundingClientRect;return new T((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Ge=It.linux&&It.chrome?window.devicePixelRatio:It.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ue(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ge:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function We(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var qe={__proto__:null,on:Se,off:xe,stopPropagation:Ie,disableScrollPropagation:Fe,disableClickPropagation:Oe,preventDefault:De,stop:ze,getPropagationPath:Ne,getMousePosition:je,getWheelDelta:Ue,isExternalTarget:We,addListener:Se,removeListener:xe},Ve=x.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=me(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=A(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),ve(this._el,n),this.fire("step")},_complete:function(){M(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),He=x.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(N(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=te&&It.any3d&&!It.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Se(this._proxy,ee,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,i){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(N(t),n,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=e({animate:i.animate},i.zoom),i.pan=e({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(It.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(It.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),r=this.getSize().divideBy(2),o=(t instanceof T?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/i),a=this.containerPointToLatLng(r.add(o));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():D(t);var n=B(e.paddingTopLeft||e.padding||[0,0]),i=B(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(i));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var o=i.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),r),s=this.project(t.getNorthEast(),r);return{center:this.unproject(a.add(s).divideBy(2).add(o),r),zoom:r}},fitBounds:function(t,e){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=B(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ve,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){he(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!It.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),a=this._zoom;t=N(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),u=r.distanceTo(i)||1,h=1.42,c=2.0164;function p(t){var e=(l*l-s*s+(t?-1:1)*c*c*u*u)/(2*(t?l:s)*c*u),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var y=p(0);function g(t){return s*(f(y)*(d(e=y+h*t)/f(e))-d(y))/c;var e}var v=Date.now(),m=(p(1)-y)/h,_=n.duration?1e3*n.duration:1e3*m*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o=(Date.now()-v)/_,l=function(t){return 1-Math.pow(1-t,1.5)}(o)*m;o<=1?(this._flyToFrame=A(n,this),this._move(this.unproject(i.add(r.subtract(i).multiplyBy(g(l)/u)),a),this.getScaleZoom(s/function(t){return s*(f(y)/f(y+h*t))}(l),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,D(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=B((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=B(e.paddingBottomRight||e.padding||[0,0]),r=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),s=F([a.min.add(n),a.max.subtract(i)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var u=o.subtract(s.getCenter()),h=s.extend(o).getSize().subtract(l);r.x+=u.x<0?-h.x:h.x,r.y+=u.y<0?-h.y:h.y,this.panTo(this.unproject(r),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=n.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,t):navigator.geolocation.getCurrentPosition(n,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new z(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var r=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(r,i.maxZoom):r)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),oe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(M(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)oe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=re("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new O(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=D(t),n=B(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),u=F(this.project(s,i),this.project(a,i)).getSize(),h=It.any3d?this.options.zoomSnap:1,c=l.x/u.x,p=l.y/u.y,d=e?Math.max(c,p):Math.min(c,p);return i=this.getScaleZoom(d,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(N(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(N(t),N(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return je(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ne(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Se(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,he(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ie(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ve(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(he(t.markerPane,"leaflet-zoom-hide"),he(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){ve(this._mapPane,new T(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,n)._move(t,e)._moveEnd(r),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return M(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ve(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?xe:Se;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){M(this._resizeRequest),this._resizeRequest=A(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],r="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(r&&!We(a,t))break;if(i.push(n),r)break}if(a===this._container)break;a=a.parentNode}return i.length||s||r||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Ee(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var r=e({},t);r.type="preclick",this._fireDOMEvent(r,r.type,i)}var o=this._findEventTargets(t,n);if(i){for(var a=[],s=0;s<i.length;s++)i[s].listens(n,!0)&&a.push(i[s]);o=a.concat(o)}if(o.length){"contextmenu"===n&&De(t);var l=o[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var h=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=h?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(n,u,!0),u.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return me(this._mapPane)||new T(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return F([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),r=this.getSize().divideBy(2),o=new I(i.subtract(r),i.add(r)),a=this._getBoundsOffset(o,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(i.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new I(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=F(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=i.min.subtract(t.min),o=i.max.subtract(t.max);return new T(this._rebound(r.x,-o.x),this._rebound(r.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=It.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ce(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=re("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=Kt,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){oe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r)||(A(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,he(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ce(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var Ze=S.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return he(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(oe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ye=function(t){return new Ze(t)};He.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=re("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=re("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)oe(this._controlCorners[t]);oe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qe=Ze.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ze.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){he(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(he(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ce(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ce(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=re("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Oe(e),Fe(e);var i=this._section=re("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Se(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var r=this._layersLink=re("a",t+"-toggle",e);r.href="#",r.title="Layers",r.setAttribute("role","button"),Se(r,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){De(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=re("div",t+"-base",i),this._separator=re("div",t+"-separator",i),this._overlaysList=re("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ae(this._baseLayersList),ae(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,r=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,r+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&r>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(e),e.layerId=o(t.layer),Se(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var a=document.createElement("span");return n.appendChild(a),a.appendChild(e),a.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Se(t,"click",De),this.expand();var e=this;setTimeout(function(){xe(t,"click",De),e._preventClick=!1})}}),$e=Ze.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=re("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=re("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Oe(o),Se(o,"click",ze),Se(o,"click",r,this),Se(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ce(this._zoomInButton,e),ce(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(he(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(he(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});He.mergeOptions({zoomControl:!0}),He.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $e,this.addControl(this.zoomControl))});var Xe=Ze.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=re("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=re("div",e,n)),t.imperial&&(this._iScale=re("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Je=Ze.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(It.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=re("div","leaflet-control-attribution"),Oe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});He.mergeOptions({attributionControl:!0}),He.addInitHook(function(){this.options.attributionControl&&(new Je).addTo(this)});Ze.Layers=Qe,Ze.Zoom=$e,Ze.Scale=Xe,Ze.Attribution=Je,Ye.layers=function(t,e,n){return new Qe(t,e,n)},Ye.zoom=function(t){return new $e(t)},Ye.scale=function(t){return new Xe(t)},Ye.attribution=function(t){return new Je(t)};var Ke=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ke.addTo=function(t,e){return t.addHandler(e,this),this};var tn={Events:R},en=It.touch?"touchstart mousedown":"mousedown",nn=x.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){p(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Se(this._dragStartTarget,en,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(nn._dragging===this&&this.finishDrag(!0),xe(this._dragStartTarget,en,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ue(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)nn._dragging===this&&this.finishDrag();else if(!(nn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(nn._dragging=this,this._preventOutline&&Ee(this._element),be(),Yt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ae(this._element);this._startPoint=new T(e.clientX,e.clientY),this._startPos=me(this._element),this._parentScale=Me(n);var i="mousedown"===t.type;Se(document,i?"mousemove":"touchmove",this._onMove,this),Se(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new T(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,De(t),this._moved||(this.fire("dragstart"),this._moved=!0,he(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),he(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ve(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ce(document.body,"leaflet-dragging"),this._lastTarget&&(ce(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),xe(document,"mousemove touchmove",this._onMove,this),xe(document,"mouseup touchend touchcancel",this._onUp,this),we(),Qt();var e=this._moved&&this._moving;this._moving=!1,nn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function rn(t,e,n){var i,r,o,a,s,l,u,h,c,p=[1,4,2,8];for(r=0,u=t.length;r<u;r++)t[r]._code=fn(t[r],e);for(a=0;a<4;a++){for(h=p[a],i=[],r=0,o=(u=t.length)-1;r<u;o=r++)s=t[r],l=t[o],s._code&h?l._code&h||((c=dn(l,s,h,e,n))._code=fn(c,e),i.push(c)):(l._code&h&&((c=dn(l,s,h,e,n))._code=fn(c,e),i.push(c)),i.push(s));t=i}return t}function on(t,e){var n,i,r,o,a,s,l,u,h;if(!t||0===t.length)throw new Error("latlngs not passed");vn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),p=D(t);p.getNorthWest().distanceTo(p.getSouthWest())*p.getNorthEast().distanceTo(p.getNorthWest())<1700&&(c=an(t));var d=t.length,f=[];for(n=0;n<d;n++){var y=N(t[n]);f.push(e.project(N([y.lat-c.lat,y.lng-c.lng])))}for(s=l=u=0,n=0,i=d-1;n<d;i=n++)r=f[n],o=f[i],a=r.y*o.x-o.y*r.x,l+=(r.x+o.x)*a,u+=(r.y+o.y)*a,s+=3*a;h=0===s?f[0]:[l/s,u/s];var g=e.unproject(B(h));return N([g.lat+c.lat,g.lng+c.lng])}function an(t){for(var e=0,n=0,i=0,r=0;r<t.length;r++){var o=N(t[r]);e+=o.lat,n+=o.lng,i++}return N([e/i,n/i])}var sn,ln={__proto__:null,clipPolygon:rn,polygonCenter:on,centroid:an};function un(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,cn(t,i,e,0,n-1);var r,o=[];for(r=0;r<n;r++)i[r]&&o.push(t[r]);return o}(t=function(t,e){for(var n=[t[0]],i=1,r=0,o=t.length;i<o;i++)yn(t[i],t[r])>e&&(n.push(t[i]),r=i);return r<o-1&&n.push(t[o-1]),n}(t,n),n)}function hn(t,e,n){return Math.sqrt(gn(t,e,n,!0))}function cn(t,e,n,i,r){var o,a,s,l=0;for(a=i+1;a<=r-1;a++)(s=gn(t[a],t[i],t[r],!0))>l&&(o=a,l=s);l>n&&(e[o]=1,cn(t,e,n,i,o),cn(t,e,n,o,r))}function pn(t,e,n,i,r){var o,a,s,l=i?sn:fn(t,n),u=fn(e,n);for(sn=u;;){if(!(l|u))return[t,e];if(l&u)return!1;s=fn(a=dn(t,e,o=l||u,n,r),n),o===l?(t=a,l=s):(e=a,u=s)}}function dn(t,e,n,i,r){var o,a,s=e.x-t.x,l=e.y-t.y,u=i.min,h=i.max;return 8&n?(o=t.x+s*(h.y-t.y)/l,a=h.y):4&n?(o=t.x+s*(u.y-t.y)/l,a=u.y):2&n?(o=h.x,a=t.y+l*(h.x-t.x)/s):1&n&&(o=u.x,a=t.y+l*(u.x-t.x)/s),new T(o,a,r)}function fn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function yn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function gn(t,e,n,i){var r,o=e.x,a=e.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((r=((t.x-o)*s+(t.y-a)*l)/u)>1?(o=n.x,a=n.y):r>0&&(o+=s*r,a+=l*r)),s=t.x-o,l=t.y-a,i?s*s+l*l:new T(o,a)}function vn(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function mn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),vn(t)}function _n(t,e){var n,i,r,o,a,s,l,u;if(!t||0===t.length)throw new Error("latlngs not passed");vn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=N([0,0]),c=D(t);c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(h=an(t));var p=t.length,d=[];for(n=0;n<p;n++){var f=N(t[n]);d.push(e.project(N([f.lat-h.lat,f.lng-h.lng])))}for(n=0,i=0;n<p-1;n++)i+=d[n].distanceTo(d[n+1])/2;if(0===i)u=d[0];else for(n=0,o=0;n<p-1;n++)if(a=d[n],s=d[n+1],(o+=r=a.distanceTo(s))>i){l=(o-i)/r,u=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var y=e.unproject(B(u));return N([y.lat+h.lat,y.lng+h.lng])}var bn={__proto__:null,simplify:un,pointToSegmentDistance:hn,closestPointOnSegment:function(t,e,n){return gn(t,e,n)},clipSegment:pn,_getEdgeIntersection:dn,_getBitCode:fn,_sqClosestPointOnSegment:gn,isFlat:vn,_flat:mn,polylineCenter:_n},wn={project:function(t){return new T(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new I([-180,-90],[180,90])},En={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),a=o*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-a)/(1+a),o/2);return i=-n*Math.log(Math.max(s,1e-10)),new T(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=u=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*n,t.x*n/i)}},kn={__proto__:null,LonLat:wn,Mercator:En,SphericalMercator:q},An=e({},U,{code:"EPSG:3395",projection:En,transformation:function(){var t=.5/(Math.PI*En.R);return H(t,.5,-t,.5)}()}),Mn=e({},U,{code:"EPSG:4326",projection:wn,transformation:H(1/180,1,-1/180,.5)}),Cn=e({},G,{projection:wn,transformation:H(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});G.Earth=U,G.EPSG3395=An,G.EPSG3857=Z,G.EPSG900913=Y,G.EPSG4326=Mn,G.Simple=Cn;var Sn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});He.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?g(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Rn=Sn.extend({initialize:function(t,e){var n,i;if(p(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}}),xn=Rn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Rn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Rn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new O;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Tn=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var r=B(i),o=B("shadow"===e&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return It.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Pn=Tn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof Pn.imagePath&&(Pn.imagePath=this._detectIconPath()),(this.options.imagePath||Pn.imagePath)+Tn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=re("div","leaflet-default-icon-path",document.body),e=ie(t,"background-image")||ie(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),Ln=Ke.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new nn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),he(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ce(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=me(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=F(a.min._subtract(s).add(r),a.max._subtract(s).subtract(r));if(!l.contains(o)){var u=B((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),ve(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=A(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(M(this._panRequest),this._panRequest=A(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=me(e._icon),r=e._map.layerPointToLatLng(i);n&&ve(n,i),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){M(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Bn=Sn.extend({options:{icon:new Pn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),he(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Se(n,"focus",this._panOnFocus,this);var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(he(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xe(this._icon,"focus",this._panOnFocus,this),oe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&oe(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ve(this._icon,t),this._shadow&&ve(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(he(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ln)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ln(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?B(e.iconSize):B(0,0),i=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var In=Sn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Fn=In.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return In.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new I(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var On=Fn.extend({initialize:function(t,n,i){if("number"==typeof n&&(n=e({},i,{radius:n})),p(this,n),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new O(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===U.distance){var r=Math.PI/180,o=this._mRadius/U.R/r,a=n.project([e+o,t]),s=n.project([e-o,t]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,h=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(u*r))/(Math.cos(e*r)*Math.cos(u*r)))/r;(isNaN(h)||0===h)&&(h=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-n.project([u,t-h]).x,this._radiusY=l.y-a.y}else{var c=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(c).x}this._updateBounds()}});var Dn=In.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,r=null,o=gn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,h=l.length;u<h;u++){var c=o(t,e=l[u-1],n=l[u],!0);c<i&&(i=c,r=o(t,e,n))}return r&&(r.distance=Math.sqrt(i)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _n(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=N(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new O,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return vn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=vn(t),i=0,r=t.length;i<r;i++)n?(e[i]=N(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new T(t,t);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,r,o=t[0]instanceof z,a=t.length;if(o){for(r=[],i=0;i<a;i++)r[i]=this._map.latLngToLayerPoint(t[i]),n.extend(r[i]);e.push(r)}else for(i=0;i<a;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,r,o,a,s,l=this._parts;for(e=0,i=0,r=this._rings.length;e<r;e++)for(n=0,o=(s=this._rings[e]).length;n<o-1;n++)(a=pn(s[n],s[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[i].push(a[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=un(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,r,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(i=0,r=(a=(s=this._parts[n]).length)-1;i<a;r=i++)if((e||0!==i)&&hn(t,s[r],s[i])<=l)return!0;return!1}});Dn._flat=mn;var zn=Dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return on(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Dn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),vn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return vn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new T(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;r<o;r++)(i=rn(this._rings[r],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,r,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,s=this._parts.length;r<s;r++)for(o=0,a=(l=(e=this._parts[r]).length)-1;o<l;a=o++)n=e[o],i=e[a],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||Dn.prototype._containsPoint.call(this,t,!0)}});var Nn=xn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=g(t)?t:t.features;if(r){for(e=0,n=r.length;e<n;e++)((i=r[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=jn(t,o);return a?(a.feature=Zn(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function jn(t,e){var n,i,r,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],u=e&&e.pointToLayer,h=e&&e.coordsToLatLng||Un;if(!s&&!a)return null;switch(a.type){case"Point":return Gn(u,t,n=h(s),e);case"MultiPoint":for(r=0,o=s.length;r<o;r++)n=h(s[r]),l.push(Gn(u,t,n,e));return new xn(l);case"LineString":case"MultiLineString":return i=Wn(s,"LineString"===a.type?0:1,h),new Dn(i,e);case"Polygon":case"MultiPolygon":return i=Wn(s,"Polygon"===a.type?1:2,h),new zn(i,e);case"GeometryCollection":for(r=0,o=a.geometries.length;r<o;r++){var c=jn({geometry:a.geometries[r],type:"Feature",properties:t.properties},e);c&&l.push(c)}return new xn(l);case"FeatureCollection":for(r=0,o=a.features.length;r<o;r++){var p=jn(a.features[r],e);p&&l.push(p)}return new xn(l);default:throw new Error("Invalid GeoJSON object.")}}function Gn(t,e,n,i){return t?t(e,n):new Bn(n,i&&i.markersInheritOptions&&i)}function Un(t){return new z(t[1],t[0],t[2])}function Wn(t,e,n){for(var i,r=[],o=0,a=t.length;o<a;o++)i=e?Wn(t[o],e-1,n):(n||Un)(t[o]),r.push(i);return r}function qn(t,e){return void 0!==(t=N(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function Vn(t,e,n,i){for(var r=[],o=0,a=t.length;o<a;o++)r.push(e?Vn(t[o],vn(t[o])?0:e-1,n,i):qn(t[o],i));return!e&&n&&r.length>0&&r.push(r[0].slice()),r}function Hn(t,n){return t.feature?e({},t.feature,{geometry:n}):Zn(n)}function Zn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Yn={toGeoJSON:function(t){return Hn(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};function Qn(t,e){return new Nn(t,e)}Bn.include(Yn),On.include(Yn),Fn.include(Yn),Dn.include({toGeoJSON:function(t){var e=!vn(this._latlngs);return Hn(this,{type:(e?"Multi":"")+"LineString",coordinates:Vn(this._latlngs,e?1:0,!1,t)})}}),zn.include({toGeoJSON:function(t){var e=!vn(this._latlngs),n=e&&!vn(this._latlngs[0]),i=Vn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Hn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Rn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Hn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)i.push(r.geometry);else{var o=Zn(r);"FeatureCollection"===o.type?i.push.apply(i,o.features):i.push(o)}}}),n?Hn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var $n=Qn,Xn=Sn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=D(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(he(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){oe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&se(this._image),this},bringToBack:function(){return this._map&&le(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:re("img");he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ve(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){fe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Jn=Xn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:re("video");if(he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=re("source");s.src=this._url[a],e.appendChild(s)}}}});var Kn=Xn.extend({_initImage:function(){var t=this._image=this._url;he(t,"leaflet-image-layer"),this._zoomAnimated&&he(t,"leaflet-zoom-animated"),this.options.className&&he(t,this.options.className),t.onselectstart=l,t.onmousemove=l}});var ti=Sn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof z||g(t))?(this._latlng=N(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&fe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&fe(this._container,1),this.bringToFront(),this.options.interactive&&(he(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(fe(this._container,0),this._removeTimeout=setTimeout(i(oe,void 0,this._container),200)):oe(this._container),this.options.interactive&&(ce(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&se(this._container),this},bringToBack:function(){return this._map&&le(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof xn){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),n=this._getAnchor();this._zoomAnimated?ve(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});He.include({_initOverlay:function(t,e,n,i){var r=e;return r instanceof t||(r=new t(i).setContent(e)),n&&r.setLatLng(n),r}}),Sn.include({_initOverlay:function(t,e,n,i){var r=n;return r instanceof t?(p(r,i),r._source=this):(r=e&&!i?e:new t(i,this)).setContent(n),r}});var ei=ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ti.prototype.openOn.call(this,t)},onAdd:function(t){ti.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ie))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ie))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=re("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=re("div",t+"-content-wrapper",e);if(this._contentNode=re("div",t+"-content",n),Oe(e),Fe(this._contentNode),Se(e,"contextmenu",Ie),this._tipContainer=re("div",t+"-tip-container",e),this._tip=re("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=re("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',Se(i,"click",function(t){De(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&i>r?(e.height=r+"px",he(t,o)):ce(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ve(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(ie(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new T(this._containerLeft,-n-this._containerBottom);r._add(me(this._container));var o=t.layerPointToContainerPoint(r),a=B(this.options.autoPanPadding),s=B(this.options.autoPanPaddingTopLeft||a),l=B(this.options.autoPanPaddingBottomRight||a),u=t.getSize(),h=0,c=0;o.x+i+l.x>u.x&&(h=o.x+i-u.x+l.x),o.x-h-s.x<0&&(h=o.x-s.x),o.y+n+l.y>u.y&&(c=o.y+n-u.y+l.y),o.y-c-s.y<0&&(c=o.y-s.y),(h||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,c]))}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});He.mergeOptions({closePopupOnClick:!0}),He.include({openPopup:function(t,e,n){return this._initOverlay(ei,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Sn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ei,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof xn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){ze(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof In?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ni=ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ti.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ti.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ti.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=re("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(t),s=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,h=B(this.options.offset),c=this._getAnchor();"top"===s?(e=l/2,n=u):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=u/2):"right"===s?(e=0,n=u/2):"left"===s?(e=l,n=u/2):a.x<o.x?(s="right",e=0,n=u/2):(s="left",e=l+2*(h.x+c.x),n=u/2),t=t.subtract(B(e,n,!0)).add(h).add(c),ce(r,"leaflet-tooltip-right"),ce(r,"leaflet-tooltip-left"),ce(r,"leaflet-tooltip-top"),ce(r,"leaflet-tooltip-bottom"),he(r,"leaflet-tooltip-"+s),ve(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&fe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});He.include({openTooltip:function(t,e,n){return this._initOverlay(ni,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Sn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ni,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof xn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Se(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),Se(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var ii=Tn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ae(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=B(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Tn.Default=Pn;var ri=Sn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:It.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),oe(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(se(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof T?t:new T(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),r=0,o=n.length;r<o;r++)e=n[r].style.zIndex,n[r]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!It.ielt9){fe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var r=this._tiles[i];if(r.current&&r.loaded){var o=Math.min(1,(t-r.loaded)/200);fe(r.el,o),o<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(M(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=re("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(oe(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],r=this._map;return i||((i=this._levels[t]={}).el=re("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,r.getCenter(),r.getZoom()),i.el.offsetWidth,this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)oe(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var r=Math.floor(t/2),o=Math.floor(e/2),a=n-1,s=new T(+r,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>i&&this._retainParent(r,o,a,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var a=new T(r,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(r,o,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var r=Math.round(e);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var o=this.options.updateWhenZooming&&r!==this._tileZoom;i&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();It.any3d?ge(t.el,r,i):ve(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*i);return new I(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(i),o=r.getCenter(),a=[],s=this.options.keepBuffer,l=new I(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var h=this._tiles[u].coords;h.z===this._tileZoom&&l.contains(new T(h.x,h.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var c=r.min.y;c<=r.max.y;c++)for(var p=r.min.x;p<=r.max.x;p++){var d=new T(p,c);if(d.z=this._tileZoom,this._isValidTile(d)){var f=this._tiles[this._tileCoordsToKey(d)];f?f.current=!0:a.push(d)}}if(a.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var y=document.createDocumentFragment();for(p=0;p<a.length;p++)this._addTile(a[p],y);this._level.el.appendChild(y)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n);return[e.unproject(i,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new O(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new T(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(oe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){he(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,It.ielt9&&this.options.opacity<1&&fe(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&A(i(this._tileReady,this,t,null,o)),ve(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(fe(n.el,0),M(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(he(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?A(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new T(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var oi=ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&It.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Se(n,"load",i(this._tileOnLoad,this,e,n)),Se(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return y(this._url,e(n,this.options))},_tileOnLoad:function(t,e){It.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=m;var n=this._tiles[t].coords;oe(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",m),ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==m))return ri.prototype._tileReady.call(this,t,e,n)}});function ai(t,e){return new oi(t,e)}var si=oi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var r in n)r in this.options||(i[r]=n[r]);var o=(n=p(this,n)).detectRetina&&It.retina?2:1,a=this.getTileSize();i.width=a.x*o,i.height=a.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oi.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=F(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,a=(this._wmsVersion>=1.3&&this._crs===Mn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=oi.prototype.getTileUrl.call(this,t);return s+d(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});oi.WMS=si,ai.wms=function(t,e){return new si(t,e)};var li=Sn.extend({options:{padding:.1},initialize:function(t){p(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),he(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),o=i.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(t,e));It.any3d?ge(this._container,o,n):ve(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ui=li.extend({options:{tolerance:0},getEvents:function(){var t=li.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){li.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Se(t,"mousemove",this._onMouseMove,this),Se(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){M(this._redrawRequest),delete this._ctx,oe(this._container),xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=It.retina?2:1;ve(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){li.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||A(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,r,o,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,r=a[n].length;i<r;i++)o=a[n][i],l[i?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(e.x,e.y/r,i,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ce(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(he(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function hi(t){return It.canvas?new ui(t):null}var ci=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),pi={_initContainer:function(){this._container=re("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(li.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ci("shape");he(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ci("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;oe(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=ci("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=ci("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){se(t._container)},_bringToBack:function(t){le(t._container)}},di=It.vml?ci:Q,fi=li.extend({_initContainer:function(){this._container=di("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=di("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){oe(this._container),xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){li.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ve(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=di("path");t.options.className&&he(e,t.options.className),t.options.interactive&&he(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){oe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,$(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){se(t._path)},_bringToBack:function(t){le(t._path)}});function yi(t){return It.svg||It.vml?new fi(t):null}It.vml&&fi.include(pi),He.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&hi(t)||yi(t)}});var gi=zn.extend({initialize:function(t,e){zn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fi.create=di,fi.pointsToPath=$,Nn.geometryToLayer=jn,Nn.coordsToLatLng=Un,Nn.coordsToLatLngs=Wn,Nn.latLngToCoords=qn,Nn.latLngsToCoords=Vn,Nn.getFeature=Hn,Nn.asFeature=Zn,He.mergeOptions({boxZoom:!0});var vi=Ke.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){oe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),Se(document,{contextmenu:ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=re("div","leaflet-zoom-box",this._container),he(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();ve(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(oe(this._box),ce(this._container,"leaflet-crosshair")),Qt(),we(),xe(document,{contextmenu:ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new O(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});He.addInitHook("addHandler","boxZoom",vi),He.mergeOptions({doubleClickZoom:!0});var mi=Ke.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});He.addInitHook("addHandler","doubleClickZoom",mi),He.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _i=Ke.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new nn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}he(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ce(this._map._container,"leaflet-grab"),ce(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,a=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=r.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),h=s.multiplyBy(u/l),c=u/(n.inertiaDeceleration*a),p=h.multiplyBy(-c/2).round();p.x||p.y?(p=e._limitOffset(p,e.options.maxBounds),A(function(){e.panBy(p,{duration:c,easeLinearity:a,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});He.addInitHook("addHandler","dragging",_i),He.mergeOptions({keyboard:!0,keyboardPanDelta:80});var bi=Ke.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Se(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},r=this.keyCodes;for(e=0,n=r.left.length;e<n;e++)i[r.left[e]]=[-1*t,0];for(e=0,n=r.right.length;e<n;e++)i[r.right[e]]=[t,0];for(e=0,n=r.down.length;e<n;e++)i[r.down[e]]=[0,t];for(e=0,n=r.up.length;e<n;e++)i[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},r=this.keyCodes;for(e=0,n=r.zoomIn.length;e<n;e++)i[r.zoomIn[e]]=t;for(e=0,n=r.zoomOut.length;e<n;e++)i[r.zoomOut[e]]=-t},_addHooks:function(){Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=B(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(B(e),i.options.maxBounds)),i.options.worldCopyJump){var r=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(r)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}ze(t)}}});He.addInitHook("addHandler","keyboard",bi),He.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wi=Ke.extend({addHooks:function(){Se(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ue(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),ze(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});He.addInitHook("addHandler","scrollWheelZoom",wi);He.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var Ei=Ke.extend({addHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new T(e.clientX,e.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&(Se(document,"touchend",De),Se(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Se(document,"touchend touchcancel contextmenu",this._cancel,this),Se(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){xe(document,"touchend",De),xe(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),xe(document,"touchend touchcancel contextmenu",this._cancel,this),xe(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new T(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});He.addInitHook("addHandler","tapHold",Ei),He.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var ki=Ke.extend({addHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ce(this._map._container,"leaflet-touch-zoom"),xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend touchcancel",this._onTouchEnd,this),De(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),M(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=A(s,this,!0),De(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,M(this._animRequest),xe(document,"touchmove",this._onTouchMove,this),xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});He.addInitHook("addHandler","touchZoom",ki),He.BoxZoom=vi,He.DoubleClickZoom=mi,He.Drag=_i,He.Keyboard=bi,He.ScrollWheelZoom=wi,He.TapHold=Ei,He.TouchZoom=ki,t.Bounds=I,t.Browser=It,t.CRS=G,t.Canvas=ui,t.Circle=On,t.CircleMarker=Fn,t.Class=S,t.Control=Ze,t.DivIcon=ii,t.DivOverlay=ti,t.DomEvent=qe,t.DomUtil=Ce,t.Draggable=nn,t.Evented=x,t.FeatureGroup=xn,t.GeoJSON=Nn,t.GridLayer=ri,t.Handler=Ke,t.Icon=Tn,t.ImageOverlay=Xn,t.LatLng=z,t.LatLngBounds=O,t.Layer=Sn,t.LayerGroup=Rn,t.LineUtil=bn,t.Map=He,t.Marker=Bn,t.Mixin=tn,t.Path=In,t.Point=T,t.PolyUtil=ln,t.Polygon=zn,t.Polyline=Dn,t.Popup=ei,t.PosAnimation=Ve,t.Projection=kn,t.Rectangle=gi,t.Renderer=li,t.SVG=fi,t.SVGOverlay=Kn,t.TileLayer=oi,t.Tooltip=ni,t.Transformation=V,t.Util=C,t.VideoOverlay=Jn,t.bind=i,t.bounds=F,t.canvas=hi,t.circle=function(t,e,n){return new On(t,e,n)},t.circleMarker=function(t,e){return new Fn(t,e)},t.control=Ye,t.divIcon=function(t){return new ii(t)},t.extend=e,t.featureGroup=function(t,e){return new xn(t,e)},t.geoJSON=Qn,t.geoJson=$n,t.gridLayer=function(t){return new ri(t)},t.icon=function(t){return new Tn(t)},t.imageOverlay=function(t,e,n){return new Xn(t,e,n)},t.latLng=N,t.latLngBounds=D,t.layerGroup=function(t,e){return new Rn(t,e)},t.map=function(t,e){return new He(t,e)},t.marker=function(t,e){return new Bn(t,e)},t.point=B,t.polygon=function(t,e){return new zn(t,e)},t.polyline=function(t,e){return new Dn(t,e)},t.popup=function(t,e){return new ei(t,e)},t.rectangle=function(t,e){return new gi(t,e)},t.setOptions=p,t.stamp=o,t.svg=yi,t.svgOverlay=function(t,e,n){return new Kn(t,e,n)},t.tileLayer=ai,t.tooltip=function(t,e){return new ni(t,e)},t.transformation=H,t.version="1.9.4",t.videoOverlay=function(t,e,n){return new Jn(t,e,n)};var Ai=window.L;t.noConflict=function(){return window.L=Ai,this},window.L=t}(e)},2543(t,e,n){var i;t=n.nmd(t),function(){var r,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,h=1/0,c=9007199254740991,p=NaN,d=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],y="[object Arguments]",g="[object Array]",v="[object Boolean]",m="[object Date]",_="[object Error]",b="[object Function]",w="[object GeneratorFunction]",E="[object Map]",k="[object Number]",A="[object Object]",M="[object Promise]",C="[object RegExp]",S="[object Set]",R="[object String]",x="[object Symbol]",T="[object WeakMap]",P="[object ArrayBuffer]",L="[object DataView]",B="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",z="[object Uint8Array]",N="[object Uint8ClampedArray]",j="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,Z=RegExp(V.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),it=/^\s+/,rt=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,mt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",At="a-z\\xdf-\\xf6\\xf8-\\xff",Mt="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rt="["+wt+"]",xt="["+St+"]",Tt="["+Et+"]",Pt="\\d+",Lt="["+kt+"]",Bt="["+At+"]",It="[^"+wt+St+Pt+kt+At+Mt+"]",Ft="\\ud83c[\\udffb-\\udfff]",Ot="[^"+wt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="["+Mt+"]",jt="\\u200d",Gt="(?:"+Bt+"|"+It+")",Ut="(?:"+Nt+"|"+It+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Tt+"|"+Ft+")?",Ht="["+Ct+"]?",Zt=Ht+Vt+"(?:"+jt+"(?:"+[Ot,Dt,zt].join("|")+")"+Ht+Vt+")*",Yt="(?:"+[Lt,Dt,zt].join("|")+")"+Zt,Qt="(?:"+[Ot+Tt+"?",Tt,Dt,zt,Rt].join("|")+")",$t=RegExp("['’]","g"),Xt=RegExp(Tt,"g"),Jt=RegExp(Ft+"(?="+Ft+")|"+Qt+Zt,"g"),Kt=RegExp([Nt+"?"+Bt+"+"+Wt+"(?="+[xt,Nt,"$"].join("|")+")",Ut+"+"+qt+"(?="+[xt,Nt+Gt,"$"].join("|")+")",Nt+"?"+Gt+"+"+Wt,Nt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Yt].join("|"),"g"),te=RegExp("["+jt+wt+Et+Ct+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,re={};re[B]=re[I]=re[F]=re[O]=re[D]=re[z]=re[N]=re[j]=re[G]=!0,re[y]=re[g]=re[P]=re[v]=re[L]=re[m]=re[_]=re[b]=re[E]=re[k]=re[A]=re[C]=re[S]=re[R]=re[T]=!1;var oe={};oe[y]=oe[g]=oe[P]=oe[L]=oe[v]=oe[m]=oe[B]=oe[I]=oe[F]=oe[O]=oe[D]=oe[E]=oe[k]=oe[A]=oe[C]=oe[S]=oe[R]=oe[x]=oe[z]=oe[N]=oe[j]=oe[G]=!0,oe[_]=oe[b]=oe[T]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,le=parseInt,ue="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,he="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||he||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,fe=de&&de.exports===pe,ye=fe&&ue.process,ge=function(){try{return de&&de.require&&de.require("util").types||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ve=ge&&ge.isArrayBuffer,me=ge&&ge.isDate,_e=ge&&ge.isMap,be=ge&&ge.isRegExp,we=ge&&ge.isSet,Ee=ge&&ge.isTypedArray;function ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];e(i,a,n(a),t)}return i}function Me(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Re(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function xe(t,e){return!(null==t||!t.length)&&Ne(t,e,0)>-1}function Te(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Pe(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Le(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Be(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Ie(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function Fe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Oe=We("length");function De(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function ze(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Ne(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):ze(t,Ge,n)}function je(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function Ge(t){return t!=t}function Ue(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:p}function We(t){return function(e){return null==e?r:e[t]}}function qe(t){return function(e){return null==t?r:t[e]}}function Ve(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function He(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function Ze(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Ye(t){return t?t.slice(0,pn(t)+1).replace(it,""):t}function Qe(t){return function(e){return t(e)}}function $e(t,e){return Pe(e,function(e){return t[e]})}function Xe(t,e){return t.has(e)}function Je(t,e){for(var n=-1,i=t.length;++n<i&&Ne(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Ne(e,t[n],0)>-1;);return n}var tn=qe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=qe({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+ae[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function an(t,e){return function(n){return t(e(n))}}function sn(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[r++]=n)}return o}function ln(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function hn(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Oe(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function pn(t){for(var e=t.length;e--&&rt.test(t.charAt(e)););return e}var dn=qe({"&":"&","<":"<",">":">",""":'"',"'":"'"}),fn=function t(e){var n,i=(e=null==e?ce:fn.defaults(ce.Object(),e,fn.pick(ce,ne))).Array,rt=e.Date,wt=e.Error,Et=e.Function,kt=e.Math,At=e.Object,Mt=e.RegExp,Ct=e.String,St=e.TypeError,Rt=i.prototype,xt=Et.prototype,Tt=At.prototype,Pt=e["__core-js_shared__"],Lt=xt.toString,Bt=Tt.hasOwnProperty,It=0,Ft=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ot=Tt.toString,Dt=Lt.call(At),zt=ce._,Nt=Mt("^"+Lt.call(Bt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=fe?e.Buffer:r,Gt=e.Symbol,Ut=e.Uint8Array,Wt=jt?jt.allocUnsafe:r,qt=an(At.getPrototypeOf,At),Vt=At.create,Ht=Tt.propertyIsEnumerable,Zt=Rt.splice,Yt=Gt?Gt.isConcatSpreadable:r,Qt=Gt?Gt.iterator:r,Jt=Gt?Gt.toStringTag:r,te=function(){try{var t=lo(At,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,ue=rt&&rt.now!==ce.Date.now&&rt.now,he=e.setTimeout!==ce.setTimeout&&e.setTimeout,pe=kt.ceil,de=kt.floor,ye=At.getOwnPropertySymbols,ge=jt?jt.isBuffer:r,Oe=e.isFinite,qe=Rt.join,yn=an(At.keys,At),gn=kt.max,vn=kt.min,mn=rt.now,_n=e.parseInt,bn=kt.random,wn=Rt.reverse,En=lo(e,"DataView"),kn=lo(e,"Map"),An=lo(e,"Promise"),Mn=lo(e,"Set"),Cn=lo(e,"WeakMap"),Sn=lo(At,"create"),Rn=Cn&&new Cn,xn={},Tn=Do(En),Pn=Do(kn),Ln=Do(An),Bn=Do(Mn),In=Do(Cn),Fn=Gt?Gt.prototype:r,On=Fn?Fn.valueOf:r,Dn=Fn?Fn.toString:r;function zn(t){if(ts(t)&&!Wa(t)&&!(t instanceof Un)){if(t instanceof Gn)return t;if(Bt.call(t,"__wrapped__"))return zo(t)}return new Gn(t)}var Nn=function(){function t(){}return function(e){if(!Ka(e))return{};if(Vt)return Vt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function jn(){}function Gn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Vn;++e<n;)this.add(t[e])}function Zn(t){var e=this.__data__=new qn(t);this.size=e.size}function Yn(t,e){var n=Wa(t),i=!n&&Ua(t),r=!n&&!i&&Za(t),o=!n&&!i&&!r&&ls(t),a=n||i||r||o,s=a?Ze(t.length,Ct):[],l=s.length;for(var u in t)!e&&!Bt.call(t,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||go(u,l))||s.push(u);return s}function Qn(t){var e=t.length;return e?t[Vi(0,e-1)]:r}function $n(t,e){return Lo(Cr(t),oi(e,0,t.length))}function Xn(t){return Lo(Cr(t))}function Jn(t,e,n){(n!==r&&!Na(t[e],n)||n===r&&!(e in t))&&ii(t,e,n)}function Kn(t,e,n){var i=t[e];Bt.call(t,e)&&Na(i,n)&&(n!==r||e in t)||ii(t,e,n)}function ti(t,e){for(var n=t.length;n--;)if(Na(t[n][0],e))return n;return-1}function ei(t,e,n,i){return hi(t,function(t,r,o){e(i,t,n(t),o)}),i}function ni(t,e){return t&&Sr(e,Ts(e),t)}function ii(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ri(t,e){for(var n=-1,o=e.length,a=i(o),s=null==t;++n<o;)a[n]=s?r:Ms(t,e[n]);return a}function oi(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function ai(t,e,n,i,o,a){var s,l=1&e,u=2&e,h=4&e;if(n&&(s=o?n(t,i,o,a):n(t)),s!==r)return s;if(!Ka(t))return t;var c=Wa(t);if(c){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Bt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return Cr(t,s)}else{var p=co(t),d=p==b||p==w;if(Za(t))return br(t,l);if(p==A||p==y||d&&!o){if(s=u||d?{}:fo(t),!l)return u?function(t,e){return Sr(t,ho(t),e)}(t,function(t,e){return t&&Sr(e,Ps(e),t)}(s,t)):function(t,e){return Sr(t,uo(t),e)}(t,ni(s,t))}else{if(!oe[p])return o?t:{};s=function(t,e,n){var i,r=t.constructor;switch(e){case P:return wr(t);case v:case m:return new r(+t);case L:return function(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case B:case I:case F:case O:case D:case z:case N:case j:case G:return Er(t,n);case E:return new r;case k:case R:return new r(t);case C:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new r;case x:return i=t,On?At(On.call(i)):{}}}(t,p,l)}}a||(a=new Zn);var f=a.get(t);if(f)return f;a.set(t,s),os(t)?t.forEach(function(i){s.add(ai(i,e,n,i,t,a))}):es(t)&&t.forEach(function(i,r){s.set(r,ai(i,e,n,r,t,a))});var g=c?r:(h?u?eo:to:u?Ps:Ts)(t);return Me(g||t,function(i,r){g&&(i=t[r=i]),Kn(s,r,ai(i,e,n,r,t,a))}),s}function si(t,e,n){var i=n.length;if(null==t)return!i;for(t=At(t);i--;){var o=n[i],a=e[o],s=t[o];if(s===r&&!(o in t)||!a(s))return!1}return!0}function li(t,e,n){if("function"!=typeof t)throw new St(o);return Ro(function(){t.apply(r,n)},e)}function ui(t,e,n,i){var r=-1,o=xe,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=Pe(e,Qe(n))),i?(o=Te,a=!1):e.length>=200&&(o=Xe,a=!1,e=new Hn(e));t:for(;++r<s;){var h=t[r],c=null==n?h:n(h);if(h=i||0!==h?h:0,a&&c==c){for(var p=u;p--;)if(e[p]===c)continue t;l.push(h)}else o(e,c,i)||l.push(h)}return l}zn.templateSettings={escape:Q,evaluate:$,interpolate:X,variable:"",imports:{_:zn}},zn.prototype=jn.prototype,zn.prototype.constructor=zn,Gn.prototype=Nn(jn.prototype),Gn.prototype.constructor=Gn,Un.prototype=Nn(jn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=Sn?Sn(null):{},this.size=0},Wn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Wn.prototype.get=function(t){var e=this.__data__;if(Sn){var n=e[t];return n===a?r:n}return Bt.call(e,t)?e[t]:r},Wn.prototype.has=function(t){var e=this.__data__;return Sn?e[t]!==r:Bt.call(e,t)},Wn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Sn&&e===r?a:e,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(t){var e=this.__data__,n=ti(e,t);return!(n<0||(n==e.length-1?e.pop():Zt.call(e,n,1),--this.size,0))},qn.prototype.get=function(t){var e=this.__data__,n=ti(e,t);return n<0?r:e[n][1]},qn.prototype.has=function(t){return ti(this.__data__,t)>-1},qn.prototype.set=function(t,e){var n=this.__data__,i=ti(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(kn||qn),string:new Wn}},Vn.prototype.delete=function(t){var e=ao(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return ao(this,t).get(t)},Vn.prototype.has=function(t){return ao(this,t).has(t)},Vn.prototype.set=function(t,e){var n=ao(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,a),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new qn,this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof qn){var i=n.__data__;if(!kn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(i)}return n.set(t,e),this.size=n.size,this};var hi=Tr(mi),ci=Tr(_i,!0);function pi(t,e){var n=!0;return hi(t,function(t,i,r){return n=!!e(t,i,r)}),n}function di(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(l===r?s==s&&!ss(s):n(s,l)))var l=s,u=a}return u}function fi(t,e){var n=[];return hi(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function yi(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=yo),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yi(s,e-1,n,i,r):Le(r,s):i||(r[r.length]=s)}return r}var gi=Pr(),vi=Pr(!0);function mi(t,e){return t&&gi(t,e,Ts)}function _i(t,e){return t&&vi(t,e,Ts)}function bi(t,e){return Re(e,function(e){return $a(t[e])})}function wi(t,e){for(var n=0,i=(e=gr(e,t)).length;null!=t&&n<i;)t=t[Oo(e[n++])];return n&&n==i?t:r}function Ei(t,e,n){var i=e(t);return Wa(t)?i:Le(i,n(t))}function ki(t){return null==t?t===r?"[object Undefined]":"[object Null]":Jt&&Jt in At(t)?function(t){var e=Bt.call(t,Jt),n=t[Jt];try{t[Jt]=r;var i=!0}catch(t){}var o=Ot.call(t);return i&&(e?t[Jt]=n:delete t[Jt]),o}(t):function(t){return Ot.call(t)}(t)}function Ai(t,e){return t>e}function Mi(t,e){return null!=t&&Bt.call(t,e)}function Ci(t,e){return null!=t&&e in At(t)}function Si(t,e,n){for(var o=n?Te:xe,a=t[0].length,s=t.length,l=s,u=i(s),h=1/0,c=[];l--;){var p=t[l];l&&e&&(p=Pe(p,Qe(e))),h=vn(p.length,h),u[l]=!n&&(e||a>=120&&p.length>=120)?new Hn(l&&p):r}p=t[0];var d=-1,f=u[0];t:for(;++d<a&&c.length<h;){var y=p[d],g=e?e(y):y;if(y=n||0!==y?y:0,!(f?Xe(f,g):o(c,g,n))){for(l=s;--l;){var v=u[l];if(!(v?Xe(v,g):o(t[l],g,n)))continue t}f&&f.push(g),c.push(y)}}return c}function Ri(t,e,n){var i=null==(t=Mo(t,e=gr(e,t)))?t:t[Oo(Qo(e))];return null==i?r:ke(i,t,n)}function xi(t){return ts(t)&&ki(t)==y}function Ti(t,e,n,i,o){return t===e||(null==t||null==e||!ts(t)&&!ts(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var s=Wa(t),l=Wa(e),u=s?g:co(t),h=l?g:co(e),c=(u=u==y?A:u)==A,p=(h=h==y?A:h)==A,d=u==h;if(d&&Za(t)){if(!Za(e))return!1;s=!0,c=!1}if(d&&!c)return a||(a=new Zn),s||ls(t)?Jr(t,e,n,i,o,a):function(t,e,n,i,r,o,a){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!o(new Ut(t),new Ut(e)));case v:case m:case k:return Na(+t,+e);case _:return t.name==e.name&&t.message==e.message;case C:case R:return t==e+"";case E:var s=on;case S:var l=1&i;if(s||(s=ln),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;i|=2,a.set(t,e);var h=Jr(s(t),s(e),i,r,o,a);return a.delete(t),h;case x:if(On)return On.call(t)==On.call(e)}return!1}(t,e,u,n,i,o,a);if(!(1&n)){var f=c&&Bt.call(t,"__wrapped__"),b=p&&Bt.call(e,"__wrapped__");if(f||b){var w=f?t.value():t,M=b?e.value():e;return a||(a=new Zn),o(w,M,n,i,a)}}return!!d&&(a||(a=new Zn),function(t,e,n,i,o,a){var s=1&n,l=to(t),u=l.length;if(u!=to(e).length&&!s)return!1;for(var h=u;h--;){var c=l[h];if(!(s?c in e:Bt.call(e,c)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var y=s;++h<u;){var g=t[c=l[h]],v=e[c];if(i)var m=s?i(v,g,c,e,t,a):i(g,v,c,t,e,a);if(!(m===r?g===v||o(g,v,n,i,a):m)){f=!1;break}y||(y="constructor"==c)}if(f&&!y){var _=t.constructor,b=e.constructor;_==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(t),a.delete(e),f}(t,e,n,i,o,a))}(t,e,n,i,Ti,o))}function Pi(t,e,n,i){var o=n.length,a=o,s=!i;if(null==t)return!a;for(t=At(t);o--;){var l=n[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=n[o])[0],h=t[u],c=l[1];if(s&&l[2]){if(h===r&&!(u in t))return!1}else{var p=new Zn;if(i)var d=i(h,c,u,t,e,p);if(!(d===r?Ti(c,h,3,i,p):d))return!1}}return!0}function Li(t){return!(!Ka(t)||(e=t,Ft&&Ft in e))&&($a(t)?Nt:yt).test(Do(t));var e}function Bi(t){return"function"==typeof t?t:null==t?nl:"object"==typeof t?Wa(t)?zi(t[0],t[1]):Di(t):cl(t)}function Ii(t){if(!wo(t))return yn(t);var e=[];for(var n in At(t))Bt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fi(t,e){return t<e}function Oi(t,e){var n=-1,r=Va(t)?i(t.length):[];return hi(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Di(t){var e=so(t);return 1==e.length&&e[0][2]?ko(e[0][0],e[0][1]):function(n){return n===t||Pi(n,t,e)}}function zi(t,e){return mo(t)&&Eo(e)?ko(Oo(t),e):function(n){var i=Ms(n,t);return i===r&&i===e?Cs(n,t):Ti(e,i,3)}}function Ni(t,e,n,i,o){t!==e&&gi(e,function(a,s){if(o||(o=new Zn),Ka(a))!function(t,e,n,i,o,a,s){var l=Co(t,n),u=Co(e,n),h=s.get(u);if(h)Jn(t,n,h);else{var c=a?a(l,u,n+"",t,e,s):r,p=c===r;if(p){var d=Wa(u),f=!d&&Za(u),y=!d&&!f&&ls(u);c=u,d||f||y?Wa(l)?c=l:Ha(l)?c=Cr(l):f?(p=!1,c=br(u,!0)):y?(p=!1,c=Er(u,!0)):c=[]:is(u)||Ua(u)?(c=l,Ua(l)?c=gs(l):Ka(l)&&!$a(l)||(c=fo(u))):p=!1}p&&(s.set(u,c),o(c,u,i,a,s),s.delete(u)),Jn(t,n,c)}}(t,e,s,n,Ni,i,o);else{var l=i?i(Co(t,s),a,s+"",t,e,o):r;l===r&&(l=a),Jn(t,s,l)}},Ps)}function ji(t,e){var n=t.length;if(n)return go(e+=e<0?n:0,n)?t[e]:r}function Gi(t,e,n){e=e.length?Pe(e,function(t){return Wa(t)?function(e){return wi(e,1===t.length?t[0]:t)}:t}):[nl];var i=-1;e=Pe(e,Qe(oo()));var r=Oi(t,function(t,n,r){var o=Pe(e,function(e){return e(t)});return{criteria:o,index:++i,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,a=r.length,s=n.length;++i<a;){var l=kr(r[i],o[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(r)}function Ui(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=wi(t,a);n(s,a)&&$i(o,gr(a,t),s)}return o}function Wi(t,e,n,i){var r=i?je:Ne,o=-1,a=e.length,s=t;for(t===e&&(e=Cr(e)),n&&(s=Pe(t,Qe(n)));++o<a;)for(var l=0,u=e[o],h=n?n(u):u;(l=r(s,h,l,i))>-1;)s!==t&&Zt.call(s,l,1),Zt.call(t,l,1);return t}function qi(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;go(r)?Zt.call(t,r,1):lr(t,r)}}return t}function Vi(t,e){return t+de(bn()*(e-t+1))}function Hi(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Zi(t,e){return xo(Ao(t,e,nl),t+"")}function Yi(t){return Qn(Ns(t))}function Qi(t,e){var n=Ns(t);return Lo(n,oi(e,0,n.length))}function $i(t,e,n,i){if(!Ka(t))return t;for(var o=-1,a=(e=gr(e,t)).length,s=a-1,l=t;null!=l&&++o<a;){var u=Oo(e[o]),h=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var c=l[u];(h=i?i(c,u,l):r)===r&&(h=Ka(c)?c:go(e[o+1])?[]:{})}Kn(l,u,h),l=l[u]}return t}var Xi=Rn?function(t,e){return Rn.set(t,e),t}:nl,Ji=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ks(e),writable:!0})}:nl;function Ki(t){return Lo(Ns(t))}function tr(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=i(o);++r<o;)a[r]=t[r+e];return a}function er(t,e){var n;return hi(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function nr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=t[o];null!==a&&!ss(a)&&(n?a<=e:a<e)?i=o+1:r=o}return r}return ir(t,e,nl,n)}function ir(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,l=null===e,u=ss(e),h=e===r;o<a;){var c=de((o+a)/2),p=n(t[c]),d=p!==r,f=null===p,y=p==p,g=ss(p);if(s)var v=i||y;else v=h?y&&(i||d):l?y&&d&&(i||!f):u?y&&d&&!f&&(i||!g):!f&&!g&&(i?p<=e:p<e);v?o=c+1:a=c}return vn(a,4294967294)}function rr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n],s=e?e(a):a;if(!n||!Na(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function or(t){return"number"==typeof t?t:ss(t)?p:+t}function ar(t){if("string"==typeof t)return t;if(Wa(t))return Pe(t,ar)+"";if(ss(t))return Dn?Dn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function sr(t,e,n){var i=-1,r=xe,o=t.length,a=!0,s=[],l=s;if(n)a=!1,r=Te;else if(o>=200){var u=e?null:Hr(t);if(u)return ln(u);a=!1,r=Xe,l=new Hn}else l=e?[]:s;t:for(;++i<o;){var h=t[i],c=e?e(h):h;if(h=n||0!==h?h:0,a&&c==c){for(var p=l.length;p--;)if(l[p]===c)continue t;e&&l.push(c),s.push(h)}else r(l,c,n)||(l!==s&&l.push(c),s.push(h))}return s}function lr(t,e){var n=-1,i=(e=gr(e,t)).length;if(!i)return!0;for(;++n<i;){var r=Oo(e[n]);if("__proto__"===r&&!Bt.call(t,"__proto__"))return!1;if(("constructor"===r||"prototype"===r)&&n<i-1)return!1}var o=Mo(t,e);return null==o||delete o[Oo(Qo(e))]}function ur(t,e,n,i){return $i(t,e,n(wi(t,e)),i)}function hr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?tr(t,i?0:o,i?o+1:r):tr(t,i?o+1:0,i?r:o)}function cr(t,e){var n=t;return n instanceof Un&&(n=n.value()),Be(e,function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))},n)}function pr(t,e,n){var r=t.length;if(r<2)return r?sr(t[0]):[];for(var o=-1,a=i(r);++o<r;)for(var s=t[o],l=-1;++l<r;)l!=o&&(a[o]=ui(a[o]||s,t[l],e,n));return sr(yi(a,1),e,n)}function dr(t,e,n){for(var i=-1,o=t.length,a=e.length,s={};++i<o;){var l=i<a?e[i]:r;n(s,t[i],l)}return s}function fr(t){return Ha(t)?t:[]}function yr(t){return"function"==typeof t?t:nl}function gr(t,e){return Wa(t)?t:mo(t,e)?[t]:Fo(vs(t))}var vr=Zi;function mr(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:tr(t,e,n)}var _r=ae||function(t){return ce.clearTimeout(t)};function br(t,e){if(e)return t.slice();var n=t.length,i=Wt?Wt(n):new t.constructor(n);return t.copy(i),i}function wr(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function Er(t,e){var n=e?wr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function kr(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=ss(t),s=e!==r,l=null===e,u=e==e,h=ss(e);if(!l&&!h&&!a&&t>e||a&&s&&u&&!l&&!h||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!h&&t<e||h&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ar(t,e,n,r){for(var o=-1,a=t.length,s=n.length,l=-1,u=e.length,h=gn(a-s,0),c=i(u+h),p=!r;++l<u;)c[l]=e[l];for(;++o<s;)(p||o<a)&&(c[n[o]]=t[o]);for(;h--;)c[l++]=t[o++];return c}function Mr(t,e,n,r){for(var o=-1,a=t.length,s=-1,l=n.length,u=-1,h=e.length,c=gn(a-l,0),p=i(c+h),d=!r;++o<c;)p[o]=t[o];for(var f=o;++u<h;)p[f+u]=e[u];for(;++s<l;)(d||o<a)&&(p[f+n[s]]=t[o++]);return p}function Cr(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function Sr(t,e,n,i){var o=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var l=e[a],u=i?i(n[l],t[l],l,n,t):r;u===r&&(u=t[l]),o?ii(n,l,u):Kn(n,l,u)}return n}function Rr(t,e){return function(n,i){var r=Wa(n)?Ae:ei,o=e?e():{};return r(n,t,oo(i,2),o)}}function xr(t){return Zi(function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,s&&vo(n[0],n[1],s)&&(a=o<3?r:a,o=1),e=At(e);++i<o;){var l=n[i];l&&t(e,l,i,a)}return e})}function Tr(t,e){return function(n,i){if(null==n)return n;if(!Va(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=At(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function Pr(t){return function(e,n,i){for(var r=-1,o=At(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}function Lr(t){return function(e){var n=rn(e=vs(e))?cn(e):r,i=n?n[0]:e.charAt(0),o=n?mr(n,1).join(""):e.slice(1);return i[t]()+o}}function Br(t){return function(e){return Be($s(Us(e).replace($t,"")),t,"")}}function Ir(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Nn(t.prototype),i=t.apply(n,e);return Ka(i)?i:n}}function Fr(t){return function(e,n,i){var o=At(e);if(!Va(e)){var a=oo(n,3);e=Ts(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,i);return s>-1?o[a?e[s]:s]:r}}function Or(t){return Kr(function(e){var n=e.length,i=n,a=Gn.prototype.thru;for(t&&e.reverse();i--;){var s=e[i];if("function"!=typeof s)throw new St(o);if(a&&!l&&"wrapper"==io(s))var l=new Gn([],!0)}for(i=l?i:n;++i<n;){var u=io(s=e[i]),h="wrapper"==u?no(s):r;l=h&&_o(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?l[io(h[0])].apply(l,h[3]):1==s.length&&_o(s)?l[u]():l.thru(s)}return function(){var t=arguments,i=t[0];if(l&&1==t.length&&Wa(i))return l.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}})}function Dr(t,e,n,o,a,s,l,h,c,p){var d=e&u,f=1&e,y=2&e,g=24&e,v=512&e,m=y?r:Ir(t);return function u(){for(var _=arguments.length,b=i(_),w=_;w--;)b[w]=arguments[w];if(g)var E=ro(u),k=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(b,E);if(o&&(b=Ar(b,o,a,g)),s&&(b=Mr(b,s,l,g)),_-=k,g&&_<p){var A=sn(b,E);return qr(t,e,Dr,u.placeholder,n,b,A,h,c,p-_)}var M=f?n:this,C=y?M[t]:t;return _=b.length,h?b=function(t,e){for(var n=t.length,i=vn(e.length,n),o=Cr(t);i--;){var a=e[i];t[i]=go(a,n)?o[a]:r}return t}(b,h):v&&_>1&&b.reverse(),d&&c<_&&(b.length=c),this&&this!==ce&&this instanceof u&&(C=m||Ir(C)),C.apply(M,b)}}function zr(t,e){return function(n,i){return function(t,e,n,i){return mi(t,function(t,r,o){e(i,n(t),r,o)}),i}(n,t,e(i),{})}}function Nr(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=ar(n),i=ar(i)):(n=or(n),i=or(i)),o=t(n,i)}return o}}function jr(t){return Kr(function(e){return e=Pe(e,Qe(oo())),Zi(function(n){var i=this;return t(e,function(t){return ke(t,i,n)})})})}function Gr(t,e){var n=(e=e===r?" ":ar(e)).length;if(n<2)return n?Hi(e,t):e;var i=Hi(e,pe(t/hn(e)));return rn(e)?mr(cn(i),0,t).join(""):i.slice(0,t)}function Ur(t){return function(e,n,o){return o&&"number"!=typeof o&&vo(e,n,o)&&(n=o=r),e=ps(e),n===r?(n=e,e=0):n=ps(n),function(t,e,n,r){for(var o=-1,a=gn(pe((e-t)/(n||1)),0),s=i(a);a--;)s[r?a:++o]=t,t+=n;return s}(e,n,o=o===r?e<n?1:-1:ps(o),t)}}function Wr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ys(e),n=ys(n)),t(e,n)}}function qr(t,e,n,i,o,a,s,u,h,c){var p=8&e;e|=p?l:64,4&(e&=~(p?64:l))||(e&=-4);var d=[t,e,o,p?a:r,p?s:r,p?r:a,p?r:s,u,h,c],f=n.apply(r,d);return _o(t)&&So(f,d),f.placeholder=i,To(f,t,e)}function Vr(t){var e=kt[t];return function(t,n){if(t=ys(t),(n=null==n?0:vn(ds(n),292))&&Oe(t)){var i=(vs(t)+"e").split("e");return+((i=(vs(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Hr=Mn&&1/ln(new Mn([,-0]))[1]==h?function(t){return new Mn(t)}:sl;function Zr(t){return function(e){var n=co(e);return n==E?on(e):n==S?un(e):function(t,e){return Pe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yr(t,e,n,a,h,c,p,d){var f=2&e;if(!f&&"function"!=typeof t)throw new St(o);var y=a?a.length:0;if(y||(e&=-97,a=h=r),p=p===r?p:gn(ds(p),0),d=d===r?d:ds(d),y-=h?h.length:0,64&e){var g=a,v=h;a=h=r}var m=f?r:no(t),_=[t,e,n,a,h,g,v,c,p,d];if(m&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,a=i==u&&8==n||i==u&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var l=e[3];if(l){var h=t[3];t[3]=h?Ar(h,l,e[4]):l,t[4]=h?sn(t[3],s):e[4]}(l=e[5])&&(h=t[5],t[5]=h?Mr(h,l,e[6]):l,t[6]=h?sn(t[5],s):e[6]),(l=e[7])&&(t[7]=l),i&u&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(_,m),t=_[0],e=_[1],n=_[2],a=_[3],h=_[4],!(d=_[9]=_[9]===r?f?0:t.length:gn(_[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var o=Ir(t);return function a(){for(var s=arguments.length,l=i(s),u=s,h=ro(a);u--;)l[u]=arguments[u];var c=s<3&&l[0]!==h&&l[s-1]!==h?[]:sn(l,h);return(s-=c.length)<n?qr(t,e,Dr,a.placeholder,r,l,c,r,r,n-s):ke(this&&this!==ce&&this instanceof a?o:t,this,l)}}(t,e,d):e!=l&&33!=e||h.length?Dr.apply(r,_):function(t,e,n,r){var o=1&e,a=Ir(t);return function e(){for(var s=-1,l=arguments.length,u=-1,h=r.length,c=i(h+l),p=this&&this!==ce&&this instanceof e?a:t;++u<h;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return ke(p,o?n:this,c)}}(t,e,n,a);else var b=function(t,e,n){var i=1&e,r=Ir(t);return function e(){return(this&&this!==ce&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return To((m?Xi:So)(b,_),t,e)}function Qr(t,e,n,i){return t===r||Na(t,Tt[n])&&!Bt.call(i,n)?e:t}function $r(t,e,n,i,o,a){return Ka(t)&&Ka(e)&&(a.set(e,t),Ni(t,e,r,$r,a),a.delete(e)),t}function Xr(t){return is(t)?r:t}function Jr(t,e,n,i,o,a){var s=1&n,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var h=a.get(t),c=a.get(e);if(h&&c)return h==e&&c==t;var p=-1,d=!0,f=2&n?new Hn:r;for(a.set(t,e),a.set(e,t);++p<l;){var y=t[p],g=e[p];if(i)var v=s?i(g,y,p,e,t,a):i(y,g,p,t,e,a);if(v!==r){if(v)continue;d=!1;break}if(f){if(!Fe(e,function(t,e){if(!Xe(f,e)&&(y===t||o(y,t,n,i,a)))return f.push(e)})){d=!1;break}}else if(y!==g&&!o(y,g,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function Kr(t){return xo(Ao(t,r,qo),t+"")}function to(t){return Ei(t,Ts,uo)}function eo(t){return Ei(t,Ps,ho)}var no=Rn?function(t){return Rn.get(t)}:sl;function io(t){for(var e=t.name+"",n=xn[e],i=Bt.call(xn,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function ro(t){return(Bt.call(zn,"placeholder")?zn:t).placeholder}function oo(){var t=zn.iteratee||il;return t=t===il?Bi:t,arguments.length?t(arguments[0],arguments[1]):t}function ao(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function so(t){for(var e=Ts(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Eo(r)]}return e}function lo(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Li(n)?n:r}var uo=ye?function(t){return null==t?[]:(t=At(t),Re(ye(t),function(e){return Ht.call(t,e)}))}:fl,ho=ye?function(t){for(var e=[];t;)Le(e,uo(t)),t=qt(t);return e}:fl,co=ki;function po(t,e,n){for(var i=-1,r=(e=gr(e,t)).length,o=!1;++i<r;){var a=Oo(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Ja(r)&&go(a,r)&&(Wa(t)||Ua(t))}function fo(t){return"function"!=typeof t.constructor||wo(t)?{}:Nn(qt(t))}function yo(t){return Wa(t)||Ua(t)||!!(Yt&&t&&t[Yt])}function go(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function vo(t,e,n){if(!Ka(n))return!1;var i=typeof e;return!!("number"==i?Va(n)&&go(e,n.length):"string"==i&&e in n)&&Na(n[e],t)}function mo(t,e){if(Wa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ss(t))||K.test(t)||!J.test(t)||null!=e&&t in At(e)}function _o(t){var e=io(t),n=zn[e];if("function"!=typeof n||!(e in Un.prototype))return!1;if(t===n)return!0;var i=no(n);return!!i&&t===i[0]}(En&&co(new En(new ArrayBuffer(1)))!=L||kn&&co(new kn)!=E||An&&co(An.resolve())!=M||Mn&&co(new Mn)!=S||Cn&&co(new Cn)!=T)&&(co=function(t){var e=ki(t),n=e==A?t.constructor:r,i=n?Do(n):"";if(i)switch(i){case Tn:return L;case Pn:return E;case Ln:return M;case Bn:return S;case In:return T}return e});var bo=Pt?$a:yl;function wo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function Eo(t){return t==t&&!Ka(t)}function ko(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in At(n))}}function Ao(t,e,n){return e=gn(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,a=gn(r.length-e,0),s=i(a);++o<a;)s[o]=r[e+o];o=-1;for(var l=i(e+1);++o<e;)l[o]=r[o];return l[e]=n(s),ke(t,this,l)}}function Mo(t,e){return e.length<2?t:wi(t,tr(e,0,-1))}function Co(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var So=Po(Xi),Ro=he||function(t,e){return ce.setTimeout(t,e)},xo=Po(Ji);function To(t,e,n){var i=e+"";return xo(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Me(f,function(n){var i="_."+n[0];e&n[1]&&!xe(t,i)&&t.push(i)}),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(st):[]}(i),n)))}function Po(t){var e=0,n=0;return function(){var i=mn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Lo(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=Vi(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Bo,Io,Fo=(Bo=Ba(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,n,i,r){e.push(i?r.replace(ht,"$1"):n||t)}),e},function(t){return 500===Io.size&&Io.clear(),t}),Io=Bo.cache,Bo);function Oo(t){if("string"==typeof t||ss(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Do(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zo(t){if(t instanceof Un)return t.clone();var e=new Gn(t.__wrapped__,t.__chain__);return e.__actions__=Cr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var No=Zi(function(t,e){return Ha(t)?ui(t,yi(e,1,Ha,!0)):[]}),jo=Zi(function(t,e){var n=Qo(e);return Ha(n)&&(n=r),Ha(t)?ui(t,yi(e,1,Ha,!0),oo(n,2)):[]}),Go=Zi(function(t,e){var n=Qo(e);return Ha(n)&&(n=r),Ha(t)?ui(t,yi(e,1,Ha,!0),r,n):[]});function Uo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ds(n);return r<0&&(r=gn(i+r,0)),ze(t,oo(e,3),r)}function Wo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ds(n),o=n<0?gn(i+o,0):vn(o,i-1)),ze(t,oo(e,3),o,!0)}function qo(t){return null!=t&&t.length?yi(t,1):[]}function Vo(t){return t&&t.length?t[0]:r}var Ho=Zi(function(t){var e=Pe(t,fr);return e.length&&e[0]===t[0]?Si(e):[]}),Zo=Zi(function(t){var e=Qo(t),n=Pe(t,fr);return e===Qo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Si(n,oo(e,2)):[]}),Yo=Zi(function(t){var e=Qo(t),n=Pe(t,fr);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Si(n,r,e):[]});function Qo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var $o=Zi(Xo);function Xo(t,e){return t&&t.length&&e&&e.length?Wi(t,e):t}var Jo=Kr(function(t,e){var n=null==t?0:t.length,i=ri(t,e);return qi(t,Pe(e,function(t){return go(t,n)?+t:t}).sort(kr)),i});function Ko(t){return null==t?t:wn.call(t)}var ta=Zi(function(t){return sr(yi(t,1,Ha,!0))}),ea=Zi(function(t){var e=Qo(t);return Ha(e)&&(e=r),sr(yi(t,1,Ha,!0),oo(e,2))}),na=Zi(function(t){var e=Qo(t);return e="function"==typeof e?e:r,sr(yi(t,1,Ha,!0),r,e)});function ia(t){if(!t||!t.length)return[];var e=0;return t=Re(t,function(t){if(Ha(t))return e=gn(t.length,e),!0}),Ze(e,function(e){return Pe(t,We(e))})}function ra(t,e){if(!t||!t.length)return[];var n=ia(t);return null==e?n:Pe(n,function(t){return ke(e,r,t)})}var oa=Zi(function(t,e){return Ha(t)?ui(t,e):[]}),aa=Zi(function(t){return pr(Re(t,Ha))}),sa=Zi(function(t){var e=Qo(t);return Ha(e)&&(e=r),pr(Re(t,Ha),oo(e,2))}),la=Zi(function(t){var e=Qo(t);return e="function"==typeof e?e:r,pr(Re(t,Ha),r,e)}),ua=Zi(ia),ha=Zi(function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ra(t,n)});function ca(t){var e=zn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=Kr(function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ri(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Un&&go(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[o],thisArg:r}),new Gn(i,this.__chain__).thru(function(t){return e&&!t.length&&t.push(r),t})):this.thru(o)}),fa=Rr(function(t,e,n){Bt.call(t,n)?++t[n]:ii(t,n,1)}),ya=Fr(Uo),ga=Fr(Wo);function va(t,e){return(Wa(t)?Me:hi)(t,oo(e,3))}function ma(t,e){return(Wa(t)?Ce:ci)(t,oo(e,3))}var _a=Rr(function(t,e,n){Bt.call(t,n)?t[n].push(e):ii(t,n,[e])}),ba=Zi(function(t,e,n){var r=-1,o="function"==typeof e,a=Va(t)?i(t.length):[];return hi(t,function(t){a[++r]=o?ke(e,t,n):Ri(t,e,n)}),a}),wa=Rr(function(t,e,n){ii(t,n,e)});function Ea(t,e){return(Wa(t)?Pe:Oi)(t,oo(e,3))}var ka=Rr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Aa=Zi(function(t,e){if(null==t)return[];var n=e.length;return n>1&&vo(t,e[0],e[1])?e=[]:n>2&&vo(e[0],e[1],e[2])&&(e=[e[0]]),Gi(t,yi(e,1),[])}),Ma=ue||function(){return ce.Date.now()};function Ca(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Yr(t,u,r,r,r,r,e)}function Sa(t,e){var n;if("function"!=typeof e)throw new St(o);return t=ds(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Ra=Zi(function(t,e,n){var i=1;if(n.length){var r=sn(n,ro(Ra));i|=l}return Yr(t,i,e,n,r)}),xa=Zi(function(t,e,n){var i=3;if(n.length){var r=sn(n,ro(xa));i|=l}return Yr(e,i,t,n,r)});function Ta(t,e,n){var i,a,s,l,u,h,c=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new St(o);function y(e){var n=i,o=a;return i=a=r,c=e,l=t.apply(o,n)}function g(t){var n=t-h;return h===r||n>=e||n<0||d&&t-c>=s}function v(){var t=Ma();if(g(t))return m(t);u=Ro(v,function(t){var n=e-(t-h);return d?vn(n,s-(t-c)):n}(t))}function m(t){return u=r,f&&i?y(t):(i=a=r,l)}function _(){var t=Ma(),n=g(t);if(i=arguments,a=this,h=t,n){if(u===r)return function(t){return c=t,u=Ro(v,e),p?y(t):l}(h);if(d)return _r(u),u=Ro(v,e),y(h)}return u===r&&(u=Ro(v,e)),l}return e=ys(e)||0,Ka(n)&&(p=!!n.leading,s=(d="maxWait"in n)?gn(ys(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f),_.cancel=function(){u!==r&&_r(u),c=0,i=h=a=u=r},_.flush=function(){return u===r?l:m(Ma())},_}var Pa=Zi(function(t,e){return li(t,1,e)}),La=Zi(function(t,e,n){return li(t,ys(e)||0,n)});function Ba(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Ba.Cache||Vn),n}function Ia(t){if("function"!=typeof t)throw new St(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ba.Cache=Vn;var Fa=vr(function(t,e){var n=(e=1==e.length&&Wa(e[0])?Pe(e[0],Qe(oo())):Pe(yi(e,1),Qe(oo()))).length;return Zi(function(i){for(var r=-1,o=vn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return ke(t,this,i)})}),Oa=Zi(function(t,e){var n=sn(e,ro(Oa));return Yr(t,l,r,e,n)}),Da=Zi(function(t,e){var n=sn(e,ro(Da));return Yr(t,64,r,e,n)}),za=Kr(function(t,e){return Yr(t,256,r,r,r,e)});function Na(t,e){return t===e||t!=t&&e!=e}var ja=Wr(Ai),Ga=Wr(function(t,e){return t>=e}),Ua=xi(function(){return arguments}())?xi:function(t){return ts(t)&&Bt.call(t,"callee")&&!Ht.call(t,"callee")},Wa=i.isArray,qa=ve?Qe(ve):function(t){return ts(t)&&ki(t)==P};function Va(t){return null!=t&&Ja(t.length)&&!$a(t)}function Ha(t){return ts(t)&&Va(t)}var Za=ge||yl,Ya=me?Qe(me):function(t){return ts(t)&&ki(t)==m};function Qa(t){if(!ts(t))return!1;var e=ki(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!is(t)}function $a(t){if(!Ka(t))return!1;var e=ki(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Xa(t){return"number"==typeof t&&t==ds(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ka(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ts(t){return null!=t&&"object"==typeof t}var es=_e?Qe(_e):function(t){return ts(t)&&co(t)==E};function ns(t){return"number"==typeof t||ts(t)&&ki(t)==k}function is(t){if(!ts(t)||ki(t)!=A)return!1;var e=qt(t);if(null===e)return!0;var n=Bt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==Dt}var rs=be?Qe(be):function(t){return ts(t)&&ki(t)==C},os=we?Qe(we):function(t){return ts(t)&&co(t)==S};function as(t){return"string"==typeof t||!Wa(t)&&ts(t)&&ki(t)==R}function ss(t){return"symbol"==typeof t||ts(t)&&ki(t)==x}var ls=Ee?Qe(Ee):function(t){return ts(t)&&Ja(t.length)&&!!re[ki(t)]},us=Wr(Fi),hs=Wr(function(t,e){return t<=e});function cs(t){if(!t)return[];if(Va(t))return as(t)?cn(t):Cr(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=co(t);return(e==E?on:e==S?ln:Ns)(t)}function ps(t){return t?(t=ys(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ds(t){var e=ps(t),n=e%1;return e==e?n?e-n:e:0}function fs(t){return t?oi(ds(t),0,d):0}function ys(t){if("number"==typeof t)return t;if(ss(t))return p;if(Ka(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ka(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=ft.test(t);return n||gt.test(t)?le(t.slice(2),n?2:8):dt.test(t)?p:+t}function gs(t){return Sr(t,Ps(t))}function vs(t){return null==t?"":ar(t)}var ms=xr(function(t,e){if(wo(e)||Va(e))Sr(e,Ts(e),t);else for(var n in e)Bt.call(e,n)&&Kn(t,n,e[n])}),_s=xr(function(t,e){Sr(e,Ps(e),t)}),bs=xr(function(t,e,n,i){Sr(e,Ps(e),t,i)}),ws=xr(function(t,e,n,i){Sr(e,Ts(e),t,i)}),Es=Kr(ri),ks=Zi(function(t,e){t=At(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&vo(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],s=Ps(a),l=-1,u=s.length;++l<u;){var h=s[l],c=t[h];(c===r||Na(c,Tt[h])&&!Bt.call(t,h))&&(t[h]=a[h])}return t}),As=Zi(function(t){return t.push(r,$r),ke(Bs,r,t)});function Ms(t,e,n){var i=null==t?r:wi(t,e);return i===r?n:i}function Cs(t,e){return null!=t&&po(t,e,Ci)}var Ss=zr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),t[e]=n},Ks(nl)),Rs=zr(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),Bt.call(t,e)?t[e].push(n):t[e]=[n]},oo),xs=Zi(Ri);function Ts(t){return Va(t)?Yn(t):Ii(t)}function Ps(t){return Va(t)?Yn(t,!0):function(t){if(!Ka(t))return function(t){var e=[];if(null!=t)for(var n in At(t))e.push(n);return e}(t);var e=wo(t),n=[];for(var i in t)("constructor"!=i||!e&&Bt.call(t,i))&&n.push(i);return n}(t)}var Ls=xr(function(t,e,n){Ni(t,e,n)}),Bs=xr(function(t,e,n,i){Ni(t,e,n,i)}),Is=Kr(function(t,e){var n={};if(null==t)return n;var i=!1;e=Pe(e,function(e){return e=gr(e,t),i||(i=e.length>1),e}),Sr(t,eo(t),n),i&&(n=ai(n,7,Xr));for(var r=e.length;r--;)lr(n,e[r]);return n}),Fs=Kr(function(t,e){return null==t?{}:function(t,e){return Ui(t,e,function(e,n){return Cs(t,n)})}(t,e)});function Os(t,e){if(null==t)return{};var n=Pe(eo(t),function(t){return[t]});return e=oo(e),Ui(t,n,function(t,n){return e(t,n[0])})}var Ds=Zr(Ts),zs=Zr(Ps);function Ns(t){return null==t?[]:$e(t,Ts(t))}var js=Br(function(t,e,n){return e=e.toLowerCase(),t+(n?Gs(e):e)});function Gs(t){return Qs(vs(t).toLowerCase())}function Us(t){return(t=vs(t))&&t.replace(mt,tn).replace(Xt,"")}var Ws=Br(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),qs=Br(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Vs=Lr("toLowerCase"),Hs=Br(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Zs=Br(function(t,e,n){return t+(n?" ":"")+Qs(e)}),Ys=Br(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Qs=Lr("toUpperCase");function $s(t,e,n){return t=vs(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Xs=Zi(function(t,e){try{return ke(t,r,e)}catch(t){return Qa(t)?t:new wt(t)}}),Js=Kr(function(t,e){return Me(e,function(e){e=Oo(e),ii(t,e,Ra(t[e],t))}),t});function Ks(t){return function(){return t}}var tl=Or(),el=Or(!0);function nl(t){return t}function il(t){return Bi("function"==typeof t?t:ai(t,1))}var rl=Zi(function(t,e){return function(n){return Ri(n,t,e)}}),ol=Zi(function(t,e){return function(n){return Ri(t,n,e)}});function al(t,e,n){var i=Ts(e),r=bi(e,i);null!=n||Ka(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=bi(e,Ts(e)));var o=!(Ka(n)&&"chain"in n&&!n.chain),a=$a(t);return Me(r,function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Cr(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Le([this.value()],arguments))})}),t}function sl(){}var ll=jr(Pe),ul=jr(Se),hl=jr(Fe);function cl(t){return mo(t)?We(Oo(t)):function(t){return function(e){return wi(e,t)}}(t)}var pl=Ur(),dl=Ur(!0);function fl(){return[]}function yl(){return!1}var gl,vl=Nr(function(t,e){return t+e},0),ml=Vr("ceil"),_l=Nr(function(t,e){return t/e},1),bl=Vr("floor"),wl=Nr(function(t,e){return t*e},1),El=Vr("round"),kl=Nr(function(t,e){return t-e},0);return zn.after=function(t,e){if("function"!=typeof e)throw new St(o);return t=ds(t),function(){if(--t<1)return e.apply(this,arguments)}},zn.ary=Ca,zn.assign=ms,zn.assignIn=_s,zn.assignInWith=bs,zn.assignWith=ws,zn.at=Es,zn.before=Sa,zn.bind=Ra,zn.bindAll=Js,zn.bindKey=xa,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]},zn.chain=ca,zn.chunk=function(t,e,n){e=(n?vo(t,e,n):e===r)?1:gn(ds(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,s=0,l=i(pe(o/e));a<o;)l[s++]=tr(t,a,a+=e);return l},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Le(Wa(n)?Cr(n):[n],yi(e,1))},zn.cond=function(t){var e=null==t?0:t.length,n=oo();return t=e?Pe(t,function(t){if("function"!=typeof t[1])throw new St(o);return[n(t[0]),t[1]]}):[],Zi(function(n){for(var i=-1;++i<e;){var r=t[i];if(ke(r[0],this,n))return ke(r[1],this,n)}})},zn.conforms=function(t){return function(t){var e=Ts(t);return function(n){return si(n,t,e)}}(ai(t,1))},zn.constant=Ks,zn.countBy=fa,zn.create=function(t,e){var n=Nn(t);return null==e?n:ni(n,e)},zn.curry=function t(e,n,i){var o=Yr(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},zn.curryRight=function t(e,n,i){var o=Yr(e,16,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},zn.debounce=Ta,zn.defaults=ks,zn.defaultsDeep=As,zn.defer=Pa,zn.delay=La,zn.difference=No,zn.differenceBy=jo,zn.differenceWith=Go,zn.drop=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,(e=n||e===r?1:ds(e))<0?0:e,i):[]},zn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,0,(e=i-(e=n||e===r?1:ds(e)))<0?0:e):[]},zn.dropRightWhile=function(t,e){return t&&t.length?hr(t,oo(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?hr(t,oo(e,3),!0):[]},zn.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&vo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=ds(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ds(i))<0&&(i+=o),i=n>i?0:fs(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},zn.filter=function(t,e){return(Wa(t)?Re:fi)(t,oo(e,3))},zn.flatMap=function(t,e){return yi(Ea(t,e),1)},zn.flatMapDeep=function(t,e){return yi(Ea(t,e),h)},zn.flatMapDepth=function(t,e,n){return n=n===r?1:ds(n),yi(Ea(t,e),n)},zn.flatten=qo,zn.flattenDeep=function(t){return null!=t&&t.length?yi(t,h):[]},zn.flattenDepth=function(t,e){return null!=t&&t.length?yi(t,e=e===r?1:ds(e)):[]},zn.flip=function(t){return Yr(t,512)},zn.flow=tl,zn.flowRight=el,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];ii(i,r[0],r[1])}return i},zn.functions=function(t){return null==t?[]:bi(t,Ts(t))},zn.functionsIn=function(t){return null==t?[]:bi(t,Ps(t))},zn.groupBy=_a,zn.initial=function(t){return null!=t&&t.length?tr(t,0,-1):[]},zn.intersection=Ho,zn.intersectionBy=Zo,zn.intersectionWith=Yo,zn.invert=Ss,zn.invertBy=Rs,zn.invokeMap=ba,zn.iteratee=il,zn.keyBy=wa,zn.keys=Ts,zn.keysIn=Ps,zn.map=Ea,zn.mapKeys=function(t,e){var n={};return e=oo(e,3),mi(t,function(t,i,r){ii(n,e(t,i,r),t)}),n},zn.mapValues=function(t,e){var n={};return e=oo(e,3),mi(t,function(t,i,r){ii(n,i,e(t,i,r))}),n},zn.matches=function(t){return Di(ai(t,1))},zn.matchesProperty=function(t,e){return zi(t,ai(e,1))},zn.memoize=Ba,zn.merge=Ls,zn.mergeWith=Bs,zn.method=rl,zn.methodOf=ol,zn.mixin=al,zn.negate=Ia,zn.nthArg=function(t){return t=ds(t),Zi(function(e){return ji(e,t)})},zn.omit=Is,zn.omitBy=function(t,e){return Os(t,Ia(oo(e)))},zn.once=function(t){return Sa(2,t)},zn.orderBy=function(t,e,n,i){return null==t?[]:(Wa(e)||(e=null==e?[]:[e]),Wa(n=i?r:n)||(n=null==n?[]:[n]),Gi(t,e,n))},zn.over=ll,zn.overArgs=Fa,zn.overEvery=ul,zn.overSome=hl,zn.partial=Oa,zn.partialRight=Da,zn.partition=ka,zn.pick=Fs,zn.pickBy=Os,zn.property=cl,zn.propertyOf=function(t){return function(e){return null==t?r:wi(t,e)}},zn.pull=$o,zn.pullAll=Xo,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,oo(n,2)):t},zn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wi(t,e,r,n):t},zn.pullAt=Jo,zn.range=pl,zn.rangeRight=dl,zn.rearg=za,zn.reject=function(t,e){return(Wa(t)?Re:fi)(t,Ia(oo(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=oo(e,3);++i<o;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return qi(t,r),n},zn.rest=function(t,e){if("function"!=typeof t)throw new St(o);return Zi(t,e=e===r?e:ds(e))},zn.reverse=Ko,zn.sampleSize=function(t,e,n){return e=(n?vo(t,e,n):e===r)?1:ds(e),(Wa(t)?$n:Qi)(t,e)},zn.set=function(t,e,n){return null==t?t:$i(t,e,n)},zn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:$i(t,e,n,i)},zn.shuffle=function(t){return(Wa(t)?Xn:Ki)(t)},zn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&vo(t,e,n)?(e=0,n=i):(e=null==e?0:ds(e),n=n===r?i:ds(n)),tr(t,e,n)):[]},zn.sortBy=Aa,zn.sortedUniq=function(t){return t&&t.length?rr(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?rr(t,oo(e,2)):[]},zn.split=function(t,e,n){return n&&"number"!=typeof n&&vo(t,e,n)&&(e=n=r),(n=n===r?d:n>>>0)?(t=vs(t))&&("string"==typeof e||null!=e&&!rs(e))&&!(e=ar(e))&&rn(t)?mr(cn(t),0,n):t.split(e,n):[]},zn.spread=function(t,e){if("function"!=typeof t)throw new St(o);return e=null==e?0:gn(ds(e),0),Zi(function(n){var i=n[e],r=mr(n,0,e);return i&&Le(r,i),ke(t,this,r)})},zn.tail=function(t){var e=null==t?0:t.length;return e?tr(t,1,e):[]},zn.take=function(t,e,n){return t&&t.length?tr(t,0,(e=n||e===r?1:ds(e))<0?0:e):[]},zn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,(e=i-(e=n||e===r?1:ds(e)))<0?0:e,i):[]},zn.takeRightWhile=function(t,e){return t&&t.length?hr(t,oo(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?hr(t,oo(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new St(o);return Ka(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ta(t,e,{leading:i,maxWait:e,trailing:r})},zn.thru=pa,zn.toArray=cs,zn.toPairs=Ds,zn.toPairsIn=zs,zn.toPath=function(t){return Wa(t)?Pe(t,Oo):ss(t)?[t]:Cr(Fo(vs(t)))},zn.toPlainObject=gs,zn.transform=function(t,e,n){var i=Wa(t),r=i||Za(t)||ls(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Ka(t)&&$a(o)?Nn(qt(t)):{}}return(r?Me:mi)(t,function(t,i,r){return e(n,t,i,r)}),n},zn.unary=function(t){return Ca(t,1)},zn.union=ta,zn.unionBy=ea,zn.unionWith=na,zn.uniq=function(t){return t&&t.length?sr(t):[]},zn.uniqBy=function(t,e){return t&&t.length?sr(t,oo(e,2)):[]},zn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?sr(t,r,e):[]},zn.unset=function(t,e){return null==t||lr(t,e)},zn.unzip=ia,zn.unzipWith=ra,zn.update=function(t,e,n){return null==t?t:ur(t,e,yr(n))},zn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ur(t,e,yr(n),i)},zn.values=Ns,zn.valuesIn=function(t){return null==t?[]:$e(t,Ps(t))},zn.without=oa,zn.words=$s,zn.wrap=function(t,e){return Oa(yr(e),t)},zn.xor=aa,zn.xorBy=sa,zn.xorWith=la,zn.zip=ua,zn.zipObject=function(t,e){return dr(t||[],e||[],Kn)},zn.zipObjectDeep=function(t,e){return dr(t||[],e||[],$i)},zn.zipWith=ha,zn.entries=Ds,zn.entriesIn=zs,zn.extend=_s,zn.extendWith=bs,al(zn,zn),zn.add=vl,zn.attempt=Xs,zn.camelCase=js,zn.capitalize=Gs,zn.ceil=ml,zn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ys(n))==n?n:0),e!==r&&(e=(e=ys(e))==e?e:0),oi(ys(t),e,n)},zn.clone=function(t){return ai(t,4)},zn.cloneDeep=function(t){return ai(t,5)},zn.cloneDeepWith=function(t,e){return ai(t,5,e="function"==typeof e?e:r)},zn.cloneWith=function(t,e){return ai(t,4,e="function"==typeof e?e:r)},zn.conformsTo=function(t,e){return null==e||si(t,e,Ts(e))},zn.deburr=Us,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=_l,zn.endsWith=function(t,e,n){t=vs(t),e=ar(e);var i=t.length,o=n=n===r?i:oi(ds(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},zn.eq=Na,zn.escape=function(t){return(t=vs(t))&&Y.test(t)?t.replace(H,en):t},zn.escapeRegExp=function(t){return(t=vs(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(t,e,n){var i=Wa(t)?Se:pi;return n&&vo(t,e,n)&&(e=r),i(t,oo(e,3))},zn.find=ya,zn.findIndex=Uo,zn.findKey=function(t,e){return De(t,oo(e,3),mi)},zn.findLast=ga,zn.findLastIndex=Wo,zn.findLastKey=function(t,e){return De(t,oo(e,3),_i)},zn.floor=bl,zn.forEach=va,zn.forEachRight=ma,zn.forIn=function(t,e){return null==t?t:gi(t,oo(e,3),Ps)},zn.forInRight=function(t,e){return null==t?t:vi(t,oo(e,3),Ps)},zn.forOwn=function(t,e){return t&&mi(t,oo(e,3))},zn.forOwnRight=function(t,e){return t&&_i(t,oo(e,3))},zn.get=Ms,zn.gt=ja,zn.gte=Ga,zn.has=function(t,e){return null!=t&&po(t,e,Mi)},zn.hasIn=Cs,zn.head=Vo,zn.identity=nl,zn.includes=function(t,e,n,i){t=Va(t)?t:Ns(t),n=n&&!i?ds(n):0;var r=t.length;return n<0&&(n=gn(r+n,0)),as(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Ne(t,e,n)>-1},zn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:ds(n);return r<0&&(r=gn(i+r,0)),Ne(t,e,r)},zn.inRange=function(t,e,n){return e=ps(e),n===r?(n=e,e=0):n=ps(n),function(t,e,n){return t>=vn(e,n)&&t<gn(e,n)}(t=ys(t),e,n)},zn.invoke=xs,zn.isArguments=Ua,zn.isArray=Wa,zn.isArrayBuffer=qa,zn.isArrayLike=Va,zn.isArrayLikeObject=Ha,zn.isBoolean=function(t){return!0===t||!1===t||ts(t)&&ki(t)==v},zn.isBuffer=Za,zn.isDate=Ya,zn.isElement=function(t){return ts(t)&&1===t.nodeType&&!is(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Va(t)&&(Wa(t)||"string"==typeof t||"function"==typeof t.splice||Za(t)||ls(t)||Ua(t)))return!t.length;var e=co(t);if(e==E||e==S)return!t.size;if(wo(t))return!Ii(t).length;for(var n in t)if(Bt.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Ti(t,e)},zn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Ti(t,e,r,n):!!i},zn.isError=Qa,zn.isFinite=function(t){return"number"==typeof t&&Oe(t)},zn.isFunction=$a,zn.isInteger=Xa,zn.isLength=Ja,zn.isMap=es,zn.isMatch=function(t,e){return t===e||Pi(t,e,so(e))},zn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Pi(t,e,so(e),n)},zn.isNaN=function(t){return ns(t)&&t!=+t},zn.isNative=function(t){if(bo(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Li(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ns,zn.isObject=Ka,zn.isObjectLike=ts,zn.isPlainObject=is,zn.isRegExp=rs,zn.isSafeInteger=function(t){return Xa(t)&&t>=-9007199254740991&&t<=c},zn.isSet=os,zn.isString=as,zn.isSymbol=ss,zn.isTypedArray=ls,zn.isUndefined=function(t){return t===r},zn.isWeakMap=function(t){return ts(t)&&co(t)==T},zn.isWeakSet=function(t){return ts(t)&&"[object WeakSet]"==ki(t)},zn.join=function(t,e){return null==t?"":qe.call(t,e)},zn.kebabCase=Ws,zn.last=Qo,zn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ds(n))<0?gn(i+o,0):vn(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):ze(t,Ge,o,!0)},zn.lowerCase=qs,zn.lowerFirst=Vs,zn.lt=us,zn.lte=hs,zn.max=function(t){return t&&t.length?di(t,nl,Ai):r},zn.maxBy=function(t,e){return t&&t.length?di(t,oo(e,2),Ai):r},zn.mean=function(t){return Ue(t,nl)},zn.meanBy=function(t,e){return Ue(t,oo(e,2))},zn.min=function(t){return t&&t.length?di(t,nl,Fi):r},zn.minBy=function(t,e){return t&&t.length?di(t,oo(e,2),Fi):r},zn.stubArray=fl,zn.stubFalse=yl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=wl,zn.nth=function(t,e){return t&&t.length?ji(t,ds(e)):r},zn.noConflict=function(){return ce._===this&&(ce._=zt),this},zn.noop=sl,zn.now=Ma,zn.pad=function(t,e,n){t=vs(t);var i=(e=ds(e))?hn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Gr(de(r),n)+t+Gr(pe(r),n)},zn.padEnd=function(t,e,n){t=vs(t);var i=(e=ds(e))?hn(t):0;return e&&i<e?t+Gr(e-i,n):t},zn.padStart=function(t,e,n){t=vs(t);var i=(e=ds(e))?hn(t):0;return e&&i<e?Gr(e-i,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),_n(vs(t).replace(it,""),e||0)},zn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&vo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=ps(t),e===r?(e=t,t=0):e=ps(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=bn();return vn(t+o*(e-t+se("1e-"+((o+"").length-1))),e)}return Vi(t,e)},zn.reduce=function(t,e,n){var i=Wa(t)?Be:Ve,r=arguments.length<3;return i(t,oo(e,4),n,r,hi)},zn.reduceRight=function(t,e,n){var i=Wa(t)?Ie:Ve,r=arguments.length<3;return i(t,oo(e,4),n,r,ci)},zn.repeat=function(t,e,n){return e=(n?vo(t,e,n):e===r)?1:ds(e),Hi(vs(t),e)},zn.replace=function(){var t=arguments,e=vs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(t,e,n){var i=-1,o=(e=gr(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Oo(e[i])];a===r&&(i=o,a=n),t=$a(a)?a.call(t):a}return t},zn.round=El,zn.runInContext=t,zn.sample=function(t){return(Wa(t)?Qn:Yi)(t)},zn.size=function(t){if(null==t)return 0;if(Va(t))return as(t)?hn(t):t.length;var e=co(t);return e==E||e==S?t.size:Ii(t).length},zn.snakeCase=Hs,zn.some=function(t,e,n){var i=Wa(t)?Fe:er;return n&&vo(t,e,n)&&(e=r),i(t,oo(e,3))},zn.sortedIndex=function(t,e){return nr(t,e)},zn.sortedIndexBy=function(t,e,n){return ir(t,e,oo(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=nr(t,e);if(i<n&&Na(t[i],e))return i}return-1},zn.sortedLastIndex=function(t,e){return nr(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return ir(t,e,oo(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=nr(t,e,!0)-1;if(Na(t[n],e))return n}return-1},zn.startCase=Zs,zn.startsWith=function(t,e,n){return t=vs(t),n=null==n?0:oi(ds(n),0,t.length),e=ar(e),t.slice(n,n+e.length)==e},zn.subtract=kl,zn.sum=function(t){return t&&t.length?He(t,nl):0},zn.sumBy=function(t,e){return t&&t.length?He(t,oo(e,2)):0},zn.template=function(t,e,n){var i=zn.templateSettings;n&&vo(t,e,n)&&(e=r),t=vs(t),e=ws({},e,i,Qr);var o=ws({},e.imports,i.imports,Qr),a=Ts(o),s=$e(o,a);Me(a,function(t){if(ut.test(t))throw new wt("Invalid `imports` option passed into `_.template`")});var l,u,h=0,c=e.interpolate||_t,p="__p += '",d=Mt((e.escape||_t).source+"|"+c.source+"|"+(c===X?ct:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),f="//# sourceURL="+(Bt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(d,function(e,n,i,r,o,a){return i||(i=r),p+=t.slice(h,a).replace(bt,nn),n&&(l=!0,p+="' +\n__e("+n+") +\n'"),o&&(u=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),h=a+e.length,e}),p+="';\n";var y=Bt.call(e,"variable")&&e.variable;if(y){if(ut.test(y))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(U,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xs(function(){return Et(a,f+"return "+p).apply(r,s)});if(g.source=p,Qa(g))throw g;return g},zn.times=function(t,e){if((t=ds(t))<1||t>c)return[];var n=d,i=vn(t,d);e=oo(e),t-=d;for(var r=Ze(i,e);++n<t;)e(n);return r},zn.toFinite=ps,zn.toInteger=ds,zn.toLength=fs,zn.toLower=function(t){return vs(t).toLowerCase()},zn.toNumber=ys,zn.toSafeInteger=function(t){return t?oi(ds(t),-9007199254740991,c):0===t?t:0},zn.toString=vs,zn.toUpper=function(t){return vs(t).toUpperCase()},zn.trim=function(t,e,n){if((t=vs(t))&&(n||e===r))return Ye(t);if(!t||!(e=ar(e)))return t;var i=cn(t),o=cn(e);return mr(i,Je(i,o),Ke(i,o)+1).join("")},zn.trimEnd=function(t,e,n){if((t=vs(t))&&(n||e===r))return t.slice(0,pn(t)+1);if(!t||!(e=ar(e)))return t;var i=cn(t);return mr(i,0,Ke(i,cn(e))+1).join("")},zn.trimStart=function(t,e,n){if((t=vs(t))&&(n||e===r))return t.replace(it,"");if(!t||!(e=ar(e)))return t;var i=cn(t);return mr(i,Je(i,cn(e))).join("")},zn.truncate=function(t,e){var n=30,i="...";if(Ka(e)){var o="separator"in e?e.separator:o;n="length"in e?ds(e.length):n,i="omission"in e?ar(e.omission):i}var a=(t=vs(t)).length;if(rn(t)){var s=cn(t);a=s.length}if(n>=a)return t;var l=n-hn(i);if(l<1)return i;var u=s?mr(s,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(s&&(l+=u.length-l),rs(o)){if(t.slice(l).search(o)){var h,c=u;for(o.global||(o=Mt(o.source,vs(pt.exec(o))+"g")),o.lastIndex=0;h=o.exec(c);)var p=h.index;u=u.slice(0,p===r?l:p)}}else if(t.indexOf(ar(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+i},zn.unescape=function(t){return(t=vs(t))&&Z.test(t)?t.replace(V,dn):t},zn.uniqueId=function(t){var e=++It;return vs(t)+e},zn.upperCase=Ys,zn.upperFirst=Qs,zn.each=va,zn.eachRight=ma,zn.first=Vo,al(zn,(gl={},mi(zn,function(t,e){Bt.call(zn.prototype,e)||(gl[e]=t)}),gl),{chain:!1}),zn.VERSION="4.18.1",Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){zn[t].placeholder=zn}),Me(["drop","take"],function(t,e){Un.prototype[t]=function(n){n=n===r?1:gn(ds(n),0);var i=this.__filtered__&&!e?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=vn(n,i.__takeCount__):i.__views__.push({size:vn(n,d),type:t+(i.__dir__<0?"Right":"")}),i},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Me(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),Me(["head","last"],function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(nl)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Zi(function(t,e){return"function"==typeof t?new Un(this):this.map(function(n){return Ri(n,t,e)})}),Un.prototype.reject=function(t){return this.filter(Ia(oo(t)))},Un.prototype.slice=function(t,e){t=ds(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Un(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ds(e))<0?n.dropRight(-e):n.take(e-t)),n)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},mi(Un.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=zn[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(zn.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,l=e instanceof Un,u=s[0],h=l||Wa(e),c=function(t){var e=o.apply(zn,Le([t],s));return i&&p?e[0]:e};h&&n&&"function"==typeof u&&1!=u.length&&(l=h=!1);var p=this.__chain__,d=!!this.__actions__.length,f=a&&!p,y=l&&!d;if(!a&&h){e=y?e:new Un(this);var g=t.apply(e,s);return g.__actions__.push({func:pa,args:[c],thisArg:r}),new Gn(g,p)}return f&&y?t.apply(this,s):(g=this.thru(c),f?i?g.value()[0]:g.value():g)})}),Me(["pop","push","shift","sort","splice","unshift"],function(t){var e=Rt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Wa(r)?r:[],t)}return this[n](function(n){return e.apply(Wa(n)?n:[],t)})}}),mi(Un.prototype,function(t,e){var n=zn[e];if(n){var i=n.name+"";Bt.call(xn,i)||(xn[i]=[]),xn[i].push({name:e,func:n})}}),xn[Dr(r,2).name]=[{name:"wrapper",func:r}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=Cr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Cr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Cr(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Wa(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=vn(e,t+a);break;case"takeRight":t=gn(t,e-a)}}return{start:t,end:e}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,u=i?s:a-1,h=this.__iteratees__,c=h.length,p=0,d=vn(l,this.__takeCount__);if(!n||!i&&r==l&&d==l)return cr(t,this.__actions__);var f=[];t:for(;l--&&p<d;){for(var y=-1,g=t[u+=e];++y<c;){var v=h[y],m=v.iteratee,_=v.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue t;break t}}f[p++]=g}return f},zn.prototype.at=da,zn.prototype.chain=function(){return ca(this)},zn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=cs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(t){for(var e,n=this;n instanceof jn;){var i=zo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Un){var e=t;return this.__actions__.length&&(e=new Un(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Ko],thisArg:r}),new Gn(e,this.__chain__)}return this.thru(Ko)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return cr(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Qt&&(zn.prototype[Qt]=function(){return this}),zn}();ce._=fn,(i=function(){return fn}.call(e,n,e,t))===r||(t.exports=i)}.call(this)},3065(t,e,n){var i,r;!function(){"use strict";i=function(){var t=function(){},e="undefined",n=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],r={},o=null;function a(t,e){var n=t[e];if("function"==typeof n.bind)return n.bind(t);try{return Function.prototype.bind.call(n,t)}catch(e){return function(){return Function.prototype.apply.apply(n,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var n=this.getLevel(),r=0;r<i.length;r++){var o=i[r];this[o]=r<n?t:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===e&&n<this.levels.SILENT)return"No console available for logging"}function u(t){return function(){typeof console!==e&&(l.call(this),this[t].apply(this,arguments))}}function h(i,r,o){return function(i){return"debug"===i&&(i="log"),typeof console!==e&&("trace"===i&&n?s:void 0!==console[i]?a(console,i):void 0!==console.log?a(console,"log"):t)}(i)||u.apply(this,arguments)}function c(t,n){var a,s,u,c=this,p="loglevel";function d(){var t;if(typeof window!==e&&p){try{t=window.localStorage[p]}catch(t){}if(typeof t===e)try{var n=window.document.cookie,i=encodeURIComponent(p),r=n.indexOf(i+"=");-1!==r&&(t=/^([^;]+)/.exec(n.slice(r+i.length+1))[1])}catch(t){}return void 0===c.levels[t]&&(t=void 0),t}}function f(t){var e=t;if("string"==typeof e&&void 0!==c.levels[e.toUpperCase()]&&(e=c.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=c.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?p+=":"+t:"symbol"==typeof t&&(p=void 0),c.name=t,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||h,c.getLevel=function(){return null!=u?u:null!=s?s:a},c.setLevel=function(t,n){return u=f(t),!1!==n&&function(t){var n=(i[t]||"silent").toUpperCase();if(typeof window!==e&&p){try{return void(window.localStorage[p]=n)}catch(t){}try{window.document.cookie=encodeURIComponent(p)+"="+n+";"}catch(t){}}}(u),l.call(c)},c.setDefaultLevel=function(t){s=f(t),d()||c.setLevel(t,!1)},c.resetLevel=function(){u=null,function(){if(typeof window!==e&&p){try{window.localStorage.removeItem(p)}catch(t){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),l.call(c)},c.enableAll=function(t){c.setLevel(c.levels.TRACE,t)},c.disableAll=function(t){c.setLevel(c.levels.SILENT,t)},c.rebuild=function(){if(o!==c&&(a=f(o.getLevel())),l.call(c),o===c)for(var t in r)r[t].rebuild()},a=f(o?o.getLevel():"WARN");var y=d();null!=y&&(u=f(y)),l.call(c)}(o=new c).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=r[t];return e||(e=r[t]=new c(t,o.methodFactory)),e};var p=typeof window!==e?window.log:void 0;return o.noConflict=function(){return typeof window!==e&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return r},o.default=o,o},void 0===(r=i.call(e,n,e,t))||(t.exports=r)}()},9005(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>Cn});var i=6378137,r=.0066943799901413165,o=484813681109536e-20,a=Math.PI/2,s=1e-10,l=.017453292519943295,u=57.29577951308232,h=Math.PI/4,c=2*Math.PI,p=3.14159265359;const d={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},f={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var y=/[\s_\-\/\(\)]/g;function g(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(y,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(y,"")===r)return t[n]}function v(t){var e,n,i,r={},o=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),a={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*l},lat_1:function(t){r.lat1=t*l},lat_2:function(t){r.lat2=t*l},lat_ts:function(t){r.lat_ts=t*l},lon_0:function(t){r.long0=t*l},lon_1:function(t){r.long1=t*l},lon_2:function(t){r.long2=t*l},alpha:function(t){r.alpha=parseFloat(t)*l},gamma:function(t){r.rectified_grid_angle=parseFloat(t)*l},lonc:function(t){r.longc=t*l},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r:function(t){r.a=r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var e=g(f,t);e&&(r.to_meter=e.to_meter)},from_greenwich:function(t){r.from_greenwich=t*l},pm:function(t){var e=g(d,t);r.from_greenwich=(e||parseFloat(t))*l},nadgrids:function(t){"@null"===t?r.datumCode="none":r.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(r.axis=t)},approx:function(){r.approx=!0},over:function(){r.over=!0}};for(e in o)n=o[e],e in a?"function"==typeof(i=a[e])?i(n):r[i]=n:r[e]=n;return"string"==typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r.projStr=t,r}const m=class{static getId(t){const e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(t,e="unit"){if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};const n=t[1],i=parseFloat(t[2])||null,r=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:e,name:n,conversion_factor:i,id:r?{authority:r[1],code:parseInt(r[2],10)}:null}}static convertAxis(t){const e=t[1]||"Unknown";let n;const i=e.match(/^\((.)\)$/);if(i){const e=i[1].toUpperCase();if("E"===e)n="east";else if("N"===e)n="north";else if("U"===e)n="up";else{if(!t[2])throw new Error(`Unknown axis abbreviation: ${e}`);n=t[2]}}else n=t[2]||"unknown";const r=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),o=r?parseInt(r[1],10):null,a=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:e,direction:n,unit:this.convertUnit(a),order:o}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,e)=>(t.order||0)-(e.order||0))}static convert(t,e={}){switch(t[0]){case"PROJCRS":e.type="ProjectedCRS",e.name=t[1],e.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,e.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;const n=t.find(t=>Array.isArray(t)&&"CS"===t[0]);n&&(e.coordinate_system={type:n[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(i){const t=this.convertUnit(i);e.coordinate_system.unit=t}e.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":e.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",e.name=t[1];const r=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(r){const n=this.convert(r);"ENSEMBLE"===r[0]?e.datum_ensemble=n:e.datum=n;const i=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);i&&"Greenwich"!==i[1]&&(n.prime_meridian={name:i[1],longitude:parseFloat(i[2])})}e.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},e.id=this.getId(t);break;case"DATUM":e.type="GeodeticReferenceFrame",e.name=t[1],e.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":e.type="DatumEnsemble",e.name=t[1],e.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));const o=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);o&&(e.accuracy=parseFloat(o[1]));const a=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);a&&(e.ellipsoid=this.convert(a)),e.id=this.getId(t);break;case"ELLIPSOID":e.type="Ellipsoid",e.name=t[1],e.semi_major_axis=parseFloat(t[2]),e.inverse_flattening=parseFloat(t[3]),t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),e);break;case"CONVERSION":e.type="Conversion",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":e.type="Method",e.name=t[1],e.id=this.getId(t);break;case"PARAMETER":e.type="Parameter",e.name=t[1],e.value=parseFloat(t[2]),e.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),e.id=this.getId(t);break;case"BOUNDCRS":e.type="BoundCRS";const s=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(s){const t=s.find(t=>Array.isArray(t));e.source_crs=t?this.convert(t):null}const l=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(l){const t=l.find(t=>Array.isArray(t));e.target_crs=t?this.convert(t):null}const u=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);e.transformation=u?this.convert(u):null;break;case"ABRIDGEDTRANSFORMATION":if(e.type="Transformation",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===e.parameters.length){const t=e.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}e.id=this.getId(t);break;case"AXIS":e.coordinate_system||(e.coordinate_system={type:"unspecified",axis:[]}),e.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const h=this.convertUnit(t,"LinearUnit");e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=h)}),h.conversion_factor&&1!==h.conversion_factor&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:h});break;default:e.keyword=t[0]}return e}},_=class extends m{static convert(t,e={}){return super.convert(t,e),e.coordinate_system&&"Cartesian"===e.coordinate_system.subtype&&delete e.coordinate_system,e.usage&&delete e.usage,e}},b=class extends m{static convert(t,e={}){super.convert(t,e);const n=t.find(t=>Array.isArray(t)&&"CS"===t[0]);n&&(e.coordinate_system={subtype:n[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(i){const t=i.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),n=i.find(t=>Array.isArray(t)&&"AREA"===t[0]),r=i.find(t=>Array.isArray(t)&&"BBOX"===t[0]);e.usage={},t&&(e.usage.scope=t[1]),n&&(e.usage.area=n[1]),r&&(e.usage.bbox=r.slice(1))}return e}};var w=/\s/,E=/[A-Za-z]/,k=/[A-Za-z84_]/,A=/[,\]]/,M=/[\d\.E\-\+]/;function C(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function S(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce(function(t,e){return R(e,t),t},i);e&&(t[e]=r)}function R(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void R(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&R(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&R(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void S(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],S(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return R(t,e[n]);return S(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}function x(t){return.017453292519943295*t}function T(t){const e=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=x(t.lat0>0?90:-90),delete t.lat1):(t.lat0=x(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function P(t){let e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function L(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function B(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=L(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-L(t.ellipsoid.semi_minor_axis))))}function I(t,e={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(I(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(t=>t.value)),e):(Object.keys(t).forEach(n=>{const i=t[n];if(null!==i)switch(n){case"name":if(e.srsCode)break;e.name=i,e.srsCode=i;break;case"type":"GeographicCRS"===i?e.projName="longlat":"GeodeticCRS"===i?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?e.projName="geocent":e.projName="longlat":"ProjectedCRS"===i&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":i.ellipsoid&&(e.ellps=i.ellipsoid.name,B(i,e)),i.prime_meridian&&(e.from_greenwich=i.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=i.name,B(i,e);break;case"prime_meridian":e.long0=(i.longitude||0)*Math.PI/180;break;case"coordinate_system":if(i.axis){const t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},n=i.axis.map(e=>t[e.direction.toLowerCase()]);if(n.every(Boolean)&&(e.axis=n.join(""),2===e.axis.length&&(e.axis+="u")),i.unit){const{units:t,to_meter:n}=P(i.unit);e.units=t,e.to_meter=n}else if(i.axis[0]&&i.axis[0].unit){const{units:t,to_meter:n}=P(i.axis[0].unit);e.units=t,e.to_meter=n}}break;case"id":i.authority&&i.code&&(e.title=i.authority+":"+i.code);break;case"conversion":i.method&&i.method.name&&(e.projName=i.method.name),i.parameters&&i.parameters.forEach(t=>{const n=t.name.toLowerCase().replace(/\s+/g,"_"),i=t.value;t.unit&&t.unit.conversion_factor?e[n]=i*t.unit.conversion_factor:"degree"===t.unit?e[n]=i*Math.PI/180:e[n]=i});break;case"unit":i.name&&(e.units=i.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),i.conversion_factor&&(e.to_meter=i.conversion_factor);break;case"base_crs":I(i,e),e.datumCode=i.id?i.id.authority+"_"+i.id.code:i.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),T(e),e):t}C.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;w.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},C.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(A.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},C.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},C.prototype.number=function(t){if(!M.test(t)){if(A.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},C.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},C.prototype.keyword=function(t){if(k.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=1)}if(!A.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},C.prototype.neutral=function(t){if(E.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(M.test(t))return this.word=t,void(this.state=3);if(!A.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},C.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var F=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function O(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==F.indexOf(r)&&D(t[r]),"object"==typeof t[r]&&O(t[r])}}function D(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function s(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.PRIMEM&&a.PRIMEM.convert&&(t.from_greenwich=x(a.PRIMEM.convert)),a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=x(t.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",x],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",x],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",x],["lat0","latitude_of_origin",x],["lat0","standard_parallel_1",x],["lat1","standard_parallel_1",x],["lat2","standard_parallel_2",x],["azimuth","Azimuth"],["alpha","azimuth",x],["srsCode","name"]].forEach(function(e){return function(t,e){var n=e[0],i=e[1];!(n in t)&&i in t&&(t[n]=t[i],3===e.length&&(t[n]=e[2](t[n])))}(t,e)}),T(t)}function z(t){if("object"==typeof t)return I(t);const e=function(t){const e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t);var n=new C(t).output();if("WKT2"===e)return I(function(t){const e=function(t){return t.find(t=>Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===e?b:_).convert(t)}(n));var i=n[0],r={};return R(n,r),O(r),r[i]}function N(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?N[t]=v(arguments[1]):N[t]=z(arguments[1]):n&&"object"==typeof n&&!("projName"in n)?N[t]=z(arguments[1]):(N[t]=n,n||delete N[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?N.apply(e,t):N(t)});if("string"==typeof t){if(t in N)return N[t]}else"EPSG"in t?N["EPSG:"+t.EPSG]=t:"ESRI"in t?N["ESRI:"+t.ESRI]=t:"IAU2000"in t?N["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(N);const j=N;var G=["3857","900913","3785","102113"];function U(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}function W(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}function q(t){return t<0?-1:1}function V(t,e){return e||Math.abs(t)<=p?t:t-q(t)*c}function H(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(a-e))/i}function Z(t,e){for(var n,i,r=.5*t,o=a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),o+=i=a-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,Math.abs(i)<=1e-10)return o;return-9999}function Y(t){return t}var Q=["longlat","identity"],$=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=W(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,n,i=t.x,r=t.y;if(r*u>90&&r*u<-90&&i*u>180&&i*u<-180)return null;if(Math.abs(Math.abs(r)-a)<=s)return null;if(this.sphere)e=this.x0+this.a*this.k0*V(i-this.long0,this.over),n=this.y0+this.a*this.k0*Math.log(Math.tan(h+.5*r));else{var o=Math.sin(r),l=H(this.e,r,o);e=this.x0+this.a*this.k0*V(i-this.long0,this.over),n=this.y0-this.a*this.k0*Math.log(l)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=a-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(-9999===(n=Z(this.e,o)))return null}return e=V(this.long0+i/(this.a*this.k0),this.over),t.x=e,t.y=n,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:Y,inverse:Y,names:Q}],X={},J=[];function K(t,e){var n=J.length;return t.names?(J[n]=t,t.names.forEach(function(t){X[t.toLowerCase()]=n}),this):(console.log(e),!0)}function tt(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}const et={start:function(){$.forEach(K)},add:K,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==X[e]&&J[X[e]]||(e=tt(e))in X&&J[X[e]]?J[X[e]]:void 0}},nt={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},it=nt.WGS84;var rt={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var ot in rt){var at=rt[ot];at.datumName&&(rt[at.datumName]=at)}const st=rt;var lt={};async function ut(t,e){for(var n=[],i=await e.getImageCount(),r=i-1;r>=0;r--){var o=await e.getImage(r),a=await o.readRasters(),s=[o.getWidth(),o.getHeight()],l=o.getBoundingBox().map(ct),u="function"==typeof o.fileDirectory.getValue?o.fileDirectory.getValue("ModelPixelScale"):o.fileDirectory.ModelPixelScale,h=[u[0],u[1]].map(ct),c=l[0]+(s[0]-1)*h[0],p=l[3]-(s[1]-1)*h[1],d=a[0],f=a[1],y=[];for(let t=s[1]-1;t>=0;t--)for(let e=s[0]-1;e>=0;e--){var g=t*s[0]+e;y.push([-pt(f[g]),pt(d[g])])}n.push({del:h,lim:s,ll:[-c,p],cvs:y})}var v={header:{nSubgrids:i},subgrids:n};return lt[t]=v,v}function ht(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:lt[t]||null,isNull:!1}}function ct(t){return t*Math.PI/180}function pt(t){return t/3600*Math.PI/180}function dt(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function ft(t){return t.map(function(t){return[pt(t.longitudeShift),pt(t.latitudeShift)]})}function yt(t,e,n){return{name:dt(t,e+8,e+16).trim(),parent:dt(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function gt(t,e,n,i,r){var o=e+176,a=16;!1===r&&(a=8);for(var s=[],l=0;l<n.gridNodeCount;l++){var u={latitudeShift:t.getFloat32(o+l*a,i),longitudeShift:t.getFloat32(o+l*a+4,i)};!1!==r&&(u.latitudeAccuracy=t.getFloat32(o+l*a+8,i),u.longitudeAccuracy=t.getFloat32(o+l*a+12,i)),s.push(u)}return s}function vt(t,e){if(!(this instanceof vt))return new vt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.axis,this.names=null,this.title,e=e||function(t){if(t)throw t};var n=function(t){let e;if(function(t){return"string"==typeof t}(t))if(function(t){return t in j}(t))e=j[t];else if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){e=z(t);var n=function(t){var e=g(t,"extension");if(e)return g(e,"proj4")}(e);n&&(e=v(n))}else(function(t){return"+"===t[0]})(t)&&(e=v(t));else e="projName"in t?t:z(t);return e&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&G.indexOf(t.title.substr(5))>-1;var e=g(t,"authority");if(e){var n=g(e,"epsg");return n&&G.indexOf(n)>-1}}(e)?j["EPSG:3857"]:e}(t);if("object"==typeof n){var i=vt.projections.get(n.projName);if(i){if(n.datumCode&&"none"!==n.datumCode){var r=g(st,n.datumCode);r&&(n.datum_params=n.datum_params||(r.towgs84?r.towgs84.split(","):null),n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var a,l,u,h,c,p,d=function(t,e,n,i,r){if(!t){var o=g(nt,i);o||(o=it),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<s)&&(r=!0,e=t),{a:t,b:e,rf:n,sphere:r}}(n.a,n.b,n.rf,n.ellps,n.sphere),f=(a=d.a,l=d.b,d.rf,c=((u=a*a)-(h=l*l))/u,p=0,n.R_A?(u=(a*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*a,c=0):p=Math.sqrt(c),{es:c,e:p,ep2:(u-h)/h}),y=function(t){return void 0===t?null:t.split(",").map(ht)}(n.nadgrids),m=n.datum||function(t,e,n,i,r,a,s){var l={datum_type:5};return e&&(l.datum_type=4,l.datum_params=e.map(parseFloat),0===l.datum_params[0]&&0===l.datum_params[1]&&0===l.datum_params[2]||(l.datum_type=1),l.datum_params.length>3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=2,l.datum_params[3]*=o,l.datum_params[4]*=o,l.datum_params[5]*=o,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=3,l.grids=s),l.a=n,l.b=i,l.es=r,l.ep2=a,l}(n.datumCode,n.datum_params,d.a,d.b,f.es,f.ep2,y);U(this,n),U(this,i),this.a=d.a,this.b=d.b,this.rf=d.rf,this.sphere=d.sphere,this.es=f.es,this.e=f.e,this.ep2=f.ep2,this.datum=m,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}vt.projections=et,vt.projections.start();const mt=vt;function _t(t,e,n){var i,r,o,s,l=t.x,u=t.y,h=t.z?t.z:0;if(u<-a&&u>-1.001*a)u=-a;else if(u>a&&u<1.001*a)u=a;else{if(u<-a)return{x:-1/0,y:-1/0,z:t.z};if(u>a)return{x:1/0,y:1/0,z:t.z}}return l>Math.PI&&(l-=2*Math.PI),r=Math.sin(u),s=Math.cos(u),o=r*r,{x:((i=n/Math.sqrt(1-e*o))+h)*s*Math.cos(l),y:(i+h)*s*Math.sin(l),z:(i*(1-e)+h)*r}}function bt(t,e,n,i){var r,o,a,s,l,u,h,c,p,d,f,y,g,v,m,_=t.x,b=t.y,w=t.z?t.z:0;if(r=Math.sqrt(_*_+b*b),o=Math.sqrt(_*_+b*b+w*w),r/n<1e-12){if(v=0,o/n<1e-12)return m=-i,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(b,_);a=w/o,c=(s=r/o)*(1-e)*(l=1/Math.sqrt(1-e*(2-e)*s*s)),p=a*l,g=0;do{g++,u=e*(h=n/Math.sqrt(1-e*p*p))/(h+(m=r*c+w*p-h*(1-e*p*p))),y=(f=a*(l=1/Math.sqrt(1-u*(2-u)*s*s)))*c-(d=s*(1-u)*l)*p,c=d,p=f}while(y*y>1e-24&&g<30);return{x:v,y:Math.atan(f/Math.abs(d)),z:m}}function wt(t){return 1===t||2===t}function Et(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var i={x:-n.x,y:n.y},r={x:Number.NaN,y:Number.NaN},o=[];t:for(var a=0;a<t.grids.length;a++){var s=t.grids[a];if(o.push(s.name),s.isNull){r=i;break}if(null!==s.grid)for(var l=s.grid.subgrids,h=0,c=l.length;h<c;h++){var p=l[h],d=(Math.abs(p.del[1])+Math.abs(p.del[0]))/1e4,f=p.ll[0]-d,y=p.ll[1]-d,g=p.ll[0]+(p.lim[0]-1)*p.del[0]+d,v=p.ll[1]+(p.lim[1]-1)*p.del[1]+d;if(!(y>i.y||f>i.x||v<i.y||g<i.x||(r=kt(i,e,p),isNaN(r.x))))break t}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*u+" "+i.y*u+" tried: '"+o+"'"),-1):(n.x=-r.x,n.y=r.y,0)}function kt(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=V(r.x-Math.PI)+Math.PI;var o=At(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var a,s,l=9;do{if(s=At(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(s.x+o.x),y:r.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=V(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function At(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),a=i.x-1*r,s=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var u=e.cvs[n][0],h=e.cvs[n][1];n++;var c=e.cvs[n][0],p=e.cvs[n][1];n+=e.lim[0];var d=e.cvs[n][0],f=e.cvs[n][1];n--;var y=e.cvs[n][0],g=e.cvs[n][1],v=a*s,m=a*(1-s),_=(1-a)*(1-s),b=(1-a)*s;return l.x=_*u+m*c+b*y+v*d,l.y=_*h+m*p+b*g+v*f,l}var Mt=["x","y","z"];function Ct(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function St(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Rt(t,e,n,o){var a,s=void 0!==n.z;if(function(t){St(t.x),St(t.y)}(n),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(n=Rt(t,a=new mt("WGS84"),n,o),t=a),o&&"enu"!==t.axis&&(n=function(t,e){const n={};for(let i=0,r=t.axis.length;i<r;i++){if(2===i&&void 0===e.z)continue;let r=e[Mt[i]];switch(t.axis[i]){case"e":n.x=r;break;case"w":n.x=-r;break;case"n":n.y=r;break;case"s":n.y=-r;break;case"u":n.z=r;break;case"d":n.z=-r;break;default:return null}}return n}(t,n)),"longlat"===t.projName)n={x:n.x*l,y:n.y*l,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=function(t,e,n){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return n;if(5===t.datum_type||5===e.datum_type)return n;var o=t.a,a=t.es;if(3===t.datum_type){if(0!==Et(t,!1,n))return;o=i,a=r}var s=e.a,l=e.b,u=e.es;return 3===e.datum_type&&(s=i,l=6356752.314,u=r),a!==u||o!==s||wt(t.datum_type)||wt(e.datum_type)?(n=_t(n,a,o),wt(t.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6];return{x:u*(t.x-l*t.y+s*t.z)+i,y:u*(l*t.x+t.y-a*t.z)+r,z:u*(-s*t.x+a*t.y+t.z)+o}}}(n,t.datum_type,t.datum_params)),wt(e.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6],h=(t.x-i)/u,c=(t.y-r)/u,p=(t.z-o)/u;return{x:h+l*c-s*p,y:-l*h+c+a*p,z:s*h-a*c+p}}}(n,e.datum_type,e.datum_params)),n=bt(n,u,s,l),3!==e.datum_type||0===Et(e,!0,n)?n:void 0):n}(t.datum,e.datum,n))return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*u,y:n.y*u,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),o&&"enu"!==e.axis?function(t,e){const n={};for(let i=0,r=t.axis.length;i<r;i++)if(2!==i||void 0!==e.z)switch(t.axis[i]){case"e":n[Mt[i]]=e.x;break;case"w":n[Mt[i]]=-e.x;break;case"n":n[Mt[i]]=e.y;break;case"s":n[Mt[i]]=-e.y;break;case"u":n[Mt[i]]=e.z;break;case"d":n[Mt[i]]=-e.z;break;default:return null}return n}(e,n):(n&&!s&&"geocent"!==e.projName&&delete n.z,n)}var xt=mt("WGS84");function Tt(t,e,n,i){var r,o,a;return Array.isArray(n)?(r=Rt(t,e,Ct(n),i)||{x:NaN,y:NaN},n.length>2?(o=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name)?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):i&&"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(r=Rt(t,e,{x:n.x,y:n.y,z:n.z,m:n.m},i)||{x:NaN,y:NaN},2===(a=Object.keys(n)).length||(o=void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name,a.forEach(function(t){"x"!==t&&"y"!==t&&("z"===t&&(o||i)||(r[t]=n[t]))})),r)}function Pt(t){return t instanceof mt?t:"object"==typeof t&&"oProj"in t?t.oProj:mt(t)}var Lt="AJSAJS",Bt="AFAFAF",It=65,Ft=73,Ot=79;const Dt={forward:zt,inverse:function(t){var e=Ut(qt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},toPoint:Nt};function zt(t,e){return e=e||5,function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d="00000"+t.easting,f="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(h=t.easting,c=t.northing,p=Wt(t.zoneNumber),n=Math.floor(h/1e5),i=Math.floor(c/1e5)%20,o=Lt.charCodeAt(r=p-1),a=Bt.charCodeAt(r),u=!1,(s=o+n-1)>90&&(s=s-90+It-1,u=!0),(s===Ft||o<Ft&&s>Ft||(s>Ft||o<Ft)&&u)&&s++,(s===Ot||o<Ot&&s>Ot||(s>Ot||o<Ot)&&u)&&++s===Ft&&s++,s>90&&(s=s-90+It-1),(l=a+i)>86?(l=l-86+It-1,u=!0):u=!1,(l===Ft||a<Ft&&l>Ft||(l>Ft||a<Ft)&&u)&&l++,(l===Ot||a<Ot&&l>Ot||(l>Ot||a<Ot)&&u)&&++l===Ft&&l++,l>86&&(l=l-86+It-1),String.fromCharCode(s)+String.fromCharCode(l))+d.substr(d.length-5,e)+f.substr(f.length-5,e)}(function(t){var e,n,i,r,o,a,s,l=t.lat,u=t.lon,h=6378137,c=.00669438,p=.9996,d=jt(l),f=jt(u);s=Math.floor((u+180)/6)+1,180===u&&(s=60),l>=56&&l<64&&u>=3&&u<12&&(s=32),l>=72&&l<84&&(u>=0&&u<9?s=31:u>=9&&u<21?s=33:u>=21&&u<33?s=35:u>=33&&u<42&&(s=37)),a=jt(6*(s-1)-180+3),e=.006739496752268451,n=h/Math.sqrt(1-c*Math.sin(d)*Math.sin(d)),i=Math.tan(d)*Math.tan(d),r=e*Math.cos(d)*Math.cos(d);var y,g,v=p*n*((o=Math.cos(d)*(f-a))+(1-i+r)*o*o*o/6+(5-18*i+i*i+72*r-58*e)*o*o*o*o*o/120)+5e5,m=p*(h*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d))+n*Math.tan(d)*(o*o/2+(5-i+9*r+4*r*r)*o*o*o*o/24+(61-58*i+i*i+600*r-2.2240339282485886)*o*o*o*o*o*o/720));return l<0&&(m+=1e7),{northing:Math.round(m),easting:Math.round(v),zoneNumber:s,zoneLetter:(y=l,g="Z",84>=y&&y>=72?g="X":72>y&&y>=64?g="W":64>y&&y>=56?g="V":56>y&&y>=48?g="U":48>y&&y>=40?g="T":40>y&&y>=32?g="S":32>y&&y>=24?g="R":24>y&&y>=16?g="Q":16>y&&y>=8?g="P":8>y&&y>=0?g="N":0>y&&y>=-8?g="M":-8>y&&y>=-16?g="L":-16>y&&y>=-24?g="K":-24>y&&y>=-32?g="J":-32>y&&y>=-40?g="H":-40>y&&y>=-48?g="G":-48>y&&y>=-56?g="F":-56>y&&y>=-64?g="E":-64>y&&y>=-72?g="D":-72>y&&y>=-80&&(g="C"),g)}}({lat:t[1],lon:t[0]}),e)}function Nt(t){var e=Ut(qt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function jt(t){return t*(Math.PI/180)}function Gt(t){return t/Math.PI*180}function Ut(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,a,s,l,u,h,c,p,d,f=.9996,y=6378137,g=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=n-5e5,_=e;i<"N"&&(_-=1e7),c=6*(r-1)-180+3,o=.006739496752268451,d=(p=_/f/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*p)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*p)+151*v*v*v/96*Math.sin(6*p),a=y/Math.sqrt(1-g*Math.sin(d)*Math.sin(d)),s=Math.tan(d)*Math.tan(d),l=o*Math.cos(d)*Math.cos(d),u=.99330562*y/Math.pow(1-g*Math.sin(d)*Math.sin(d),1.5),h=m/(a*f);var b=d-a*Math.tan(d)/u*(h*h/2-(5+3*s+10*l-4*l*l-9*o)*h*h*h*h/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*h*h*h*h*h*h/720);b=Gt(b);var w,E=(h-(1+2*s+l)*h*h*h/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*h*h*h*h*h/120)/Math.cos(d);if(E=c+Gt(E),t.accuracy){var k=Ut({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:k.lat,right:k.lon,bottom:b,left:E}}else w={lat:b,lon:E};return w}function Wt(t){var e=t%6;return 0===e&&(e=6),e}function qt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=Wt(a),u=function(t,e){for(var n=Lt.charCodeAt(e-1),i=1e5,r=!1;n!==t.charCodeAt(0);){if(++n===Ft&&n++,n===Ot&&n++,n>90){if(r)throw"Bad character: "+t;n=It,r=!0}i+=1e5}return i}(i.charAt(0),l),h=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=Bt.charCodeAt(e-1),i=0,r=!1;n!==t.charCodeAt(0);){if(++n===Ft&&n++,n===Ot&&n++,n>86){if(r)throw"Bad character: "+t;n=It,r=!0}i+=1e5}return i}(i.charAt(1),l);h<Vt(s);)h+=2e6;var c=n-o;if(c%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var p,d,f,y=c/2,g=0,v=0;return y>0&&(p=1e5/Math.pow(10,y),d=t.substring(o,o+y),g=parseFloat(d)*p,f=t.substring(o+y),v=parseFloat(f)*p),{easting:g+u,northing:v+h,zoneLetter:s,zoneNumber:a,accuracy:p}}function Vt(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Ht(t,e,n){if(!(this instanceof Ht))return new Ht(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var i=t.split(",");this.x=parseFloat(i[0]),this.y=parseFloat(i[1]),this.z=parseFloat(i[2])||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ht.fromMGRS=function(t){return new Ht(Nt(t))},Ht.prototype.toMGRS=function(t){return zt([this.x,this.y],t)};const Zt=Ht;var Yt=.046875,Qt=.01953125,$t=.01068115234375;function Xt(t){var e=[];e[0]=1-t*(.25+t*(Yt+t*(Qt+t*$t))),e[1]=t*(.75-t*(Yt+t*(Qt+t*$t)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}function Jt(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}function Kt(t,e,n){for(var i=1/(1-e),r=t,o=20;o;--o){var a=Math.sin(r),l=1-e*a*a;if(r-=l=(Jt(r,a,Math.cos(r),n)-t)*(l*Math.sqrt(l))*i,Math.abs(l)<s)return r}return r}const te={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Xt(this.es),this.ml0=Jt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0,this.over),l=Math.sin(o),u=Math.cos(o);if(this.es){var h=u*a,c=Math.pow(h,2),p=this.ep2*Math.pow(u,2),d=Math.pow(p,2),f=Math.abs(u)>s?Math.tan(o):0,y=Math.pow(f,2),g=Math.pow(y,2);e=1-this.es*Math.pow(l,2),h/=Math.sqrt(e);var v=Jt(o,l,u,this.en);n=this.a*(this.k0*h*(1+c/6*(1-y+p+c/20*(5-18*y+g+14*p-58*y*p+c/42*(61+179*g-g*y-479*y)))))+this.x0,i=this.a*(this.k0*(v-this.ml0+l*a*h/2*(1+c/12*(5-y+9*p+4*d+c/30*(61+g-58*y+270*p-330*y*p+c/56*(1385+543*g-g*y-3111*y))))))+this.y0}else{var m=u*Math.sin(a);if(Math.abs(Math.abs(m)-1)<s)return 93;if(n=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,i=u*Math.cos(a)/Math.sqrt(1-Math.pow(m,2)),(m=Math.abs(i))>=1){if(m-1>s)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t},inverse:function(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),l=(t.y-this.y0)*(1/this.a);if(this.es)if(n=Kt(e=this.ml0+l/this.k0,this.es,this.en),Math.abs(n)<a){var u=Math.sin(n),h=Math.cos(n),c=Math.abs(h)>s?Math.tan(n):0,p=this.ep2*Math.pow(h,2),d=Math.pow(p,2),f=Math.pow(c,2),y=Math.pow(f,2);e=1-this.es*Math.pow(u,2);var g=o*Math.sqrt(e)/this.k0,v=Math.pow(g,2);i=n-(e*=c)*v/(1-this.es)*.5*(1-v/12*(5+3*f-9*p*f+p-4*d-v/30*(61+90*f-252*p*f+45*y+46*p-v/56*(1385+3633*f+4095*y+1574*y*f)))),r=V(this.long0+g*(1-v/6*(1+2*f+p-v/20*(5+28*f+24*y+8*p*f+6*p-v/42*(61+662*f+1320*y+720*y*f))))/h,this.over)}else i=a*q(l),r=0;else{var m=Math.exp(o/this.k0),_=.5*(m-1/m),b=this.lat0+l/this.k0,w=Math.cos(b);e=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(_,2))),i=Math.asin(e),l<0&&(i=-i),r=0===_&&0===w?0:V(Math.atan2(_,w)+this.long0,this.over)}return t.x=r,t.y=i,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function ee(t){var e=Math.exp(t);return(e-1/e)/2}function ne(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}function ie(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return e+n*Math.sin(2*e)}function re(t,e,n){for(var i,r,o=Math.sin(e),a=Math.cos(e),s=ee(n),l=function(t){var e=Math.exp(t);return(e+1/e)/2}(n),u=2*a*l,h=-2*o*s,c=t.length-1,p=t[c],d=0,f=0,y=0;--c>=0;)i=f,r=d,p=u*(f=p)-i-h*(d=y)+t[c],y=h*f-r+u*d;return[(u=o*l)*p-(h=a*s)*y,u*y+h*p]}const oe={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(te.init.apply(this),this.forward=te.forward,this.inverse=te.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var i=ie(this.cbg,this.lat0);this.Zb=-this.Qn*(i+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return Math.sin(e)*n}(this.gtu,2*i))},forward:function(t){var e=V(t.x-this.long0,this.over),n=t.y;n=ie(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),a=Math.cos(e);n=Math.atan2(i,a*r),e=Math.atan2(o*r,ne(i,r*a)),e=function(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/(ne(1,e)+1))),t<0?-e:e}(Math.tan(e));var s,l,u=re(this.gtu,2*n,2*e);return n+=u[0],e+=u[1],Math.abs(e)<=2.623395162778?(s=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),t.x=s,t.y=l,t},inverse:function(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=re(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan(ee(i));var a=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i);r=Math.atan2(a*u,ne(l,u*s)),e=V((i=Math.atan2(l,u*s))+this.long0,this.over),n=ie(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]},ae={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(V(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*l,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,oe.init.apply(this),this.forward=oe.forward,this.inverse=oe.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function se(t,e){return Math.pow((1-t)/(1+t),e)}const le={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+h)/(Math.pow(Math.tan(.5*this.lat0+h),this.C)*se(this.e*t,this.ratexp))},forward:function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+h),this.C)*se(this.e*Math.sin(n),this.ratexp))-a,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,n=t.y,i=Math.pow(Math.tan(.5*n+h)/this.K,1/this.C),r=20;r>0&&(n=2*Math.atan(i*se(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(n-t.y)<1e-14));--r)t.y=n;return r?(t.x=e,t.y=n,t):null},names:["gauss"]},ue={init:function(){le.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,n,i,r;return t.x=V(t.x-this.long0,this.over),le.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=ne(t.x,t.y)){var a=2*Math.atan2(o,this.R2);e=Math.sin(a),n=Math.cos(a),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,le.inverse.apply(this,[t]),t.x=V(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function he(t,e,n){return e*=n,Math.tan(.5*(a+t))*Math.pow((1-e)/(1+e),.5*n)}const ce={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&(this.k0=.5*(1+q(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&Math.abs(Math.cos(this.lat_ts))>s&&(this.k0=.5*this.cons*W(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/H(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=W(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(he(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,n,i,r,o,l,u=t.x,h=t.y,c=Math.sin(h),p=Math.cos(h),d=V(u-this.long0,this.over);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=s&&Math.abs(h+this.lat0)<=s?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*c+this.coslat0*p*Math.cos(d)),t.x=this.a*e*p*Math.sin(d)+this.x0,t.y=this.a*e*(this.coslat0*c-this.sinlat0*p*Math.cos(d))+this.y0,t):(n=2*Math.atan(he(h,c,this.e))-a,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=s?(o=H(this.e,h*this.con,this.con*c),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(u-this.long0),t.y=this.y0-this.con*l*Math.cos(u-this.long0),t):(Math.abs(this.sinlat0)<s?(e=2*this.a*this.k0/(1+r*Math.cos(d)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(d))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(d))+this.y0),t.x=e*r*Math.sin(d)+this.x0,t))},inverse:function(t){var e,n,i,r,o;t.x-=this.x0,t.y-=this.y0;var l=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var u=2*Math.atan(l/(2*this.a*this.k0));return e=this.long0,n=this.lat0,l<=s?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(u)*this.sinlat0+t.y*Math.sin(u)*this.coslat0/l),e=Math.abs(this.coslat0)<s?this.lat0>0?V(this.long0+Math.atan2(t.x,-1*t.y),this.over):V(this.long0+Math.atan2(t.x,t.y),this.over):V(this.long0+Math.atan2(t.x*Math.sin(u),l*this.coslat0*Math.cos(u)-t.y*this.sinlat0*Math.sin(u)),this.over),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=s){if(l<=s)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=l*this.cons/(2*this.a*this.k0),n=this.con*Z(this.e,i),e=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/l),e=V(this.long0+Math.atan2(t.x*Math.sin(r),l*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),n=-1*Z(this.e,Math.tan(.5*(a+o)));return t.x=e,t.y=n,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:he},pe={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,t.x=this.R*a+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),s=this.lambda0+a/this.alpha,l=0,u=o,h=-1e3,c=0;Math.abs(u-h)>1e-7;){if(++c>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),h=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=u,t},names:["somerc"]};var de=1e-7;const fe={init:function(){var t,e,n,i,r,o,l,u,p,d,f,y,g,v,m=0,_=0,b=0,w=0,E=0,k=0,A=0;this.no_off=(g=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],v="object"==typeof(y=this).projName?Object.keys(y.projName)[0]:y.projName,"no_uoff"in y||"no_off"in y||-1!==g.indexOf(v)||-1!==g.indexOf(tt(v))),this.no_rot="no_rot"in this;var M=!1;"alpha"in this&&(M=!0);var C=!1;if("rectified_grid_angle"in this&&(C=!0),M&&(A=this.alpha),C&&(m=this.rectified_grid_angle,M||(A=0,M=!0)),M||C)_=this.longc;else if(b=this.long1,E=this.lat1,w=this.long2,k=this.lat2,Math.abs(E-k)<=de||(t=Math.abs(E))<=de||Math.abs(t-a)<=de||Math.abs(Math.abs(this.lat0)-a)<=de||Math.abs(Math.abs(k)-a)<=de)throw new Error;var S=1-this.es;e=Math.sqrt(S),Math.abs(this.lat0)>s?(u=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*u*u,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*e/t,(r=(i=this.B*e/(n*Math.sqrt(t)))*i-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(H(this.e,this.lat0,u),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),M||C?(M?(f=Math.asin(Math.sin(A)/i),C||(m=A)):(f=m,A=Math.asin(i*Math.sin(f))),this.lam0=_-Math.asin(.5*(r-1/r)*Math.tan(f))/this.B):(o=Math.pow(H(this.e,E,Math.sin(E)),this.B),l=Math.pow(H(this.e,k,Math.sin(k)),this.B),r=this.E/o,p=(l-o)/(l+o),d=((d=this.E*this.E)-l*o)/(d+l*o),(t=b-w)<-Math.PI?w-=c:t>Math.PI&&(w+=c),this.lam0=V(.5*(b+w)-Math.atan(d*Math.tan(.5*this.B*(b-w))/p)/this.B,this.over),f=Math.atan(2*Math.sin(this.B*V(b-this.lam0,this.over))/(r-1/r)),m=A=Math.asin(i*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(m),this.cosrot=Math.cos(m),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(A))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(h-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(h+r))},forward:function(t){var e,n,i,r,o,l,u,h,c={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>s){if(e=.5*((o=this.E/Math.pow(H(this.e,t.y,Math.sin(t.y)),this.B))-(l=1/o)),n=.5*(o+l),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<s)throw new Error;h=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*t.x),u=Math.abs(l)<de?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+r*this.singam,l)}else h=t.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*t.y;return this.no_rot?(c.x=u,c.y=h):(u-=this.u_0,c.x=h*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-h*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(t){var e,n,i,r,o,l,u,h={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),o=.5*(i+1/i),u=((l=Math.sin(this.BrA*e))*this.cosgam+r*this.singam)/o,Math.abs(Math.abs(u)-1)<s)h.x=0,h.y=u<0?-a:a;else{if(h.y=this.E/Math.sqrt((1+u)/(1-u)),h.y=Z(this.e,Math.pow(h.y,1/this.B)),h.y===1/0)throw new Error;h.x=-this.rB*Math.atan2(r*this.cosgam-l*this.singam,Math.cos(this.BrA*e))}return h.x+=this.lam0,h},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},ye={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<s)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=W(this.e,e,n),r=H(this.e,this.lat1,e),o=Math.sin(this.lat2),l=Math.cos(this.lat2),u=W(this.e,o,l),h=H(this.e,this.lat2,o),c=Math.abs(Math.abs(this.lat0)-a)<s?0:H(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>s?this.ns=Math.log(i/u)/Math.log(r/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=s&&(n=q(n)*(a-2e-10));var i,r,o=Math.abs(Math.abs(n)-a);if(o>s)i=H(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((o=n*this.ns)<=0)return null;r=0}var l=this.ns*V(e-this.long0,this.over);return t.x=this.k0*(r*Math.sin(l))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(l))+this.y0,t},inverse:function(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),n=1):(e=-Math.sqrt(s*s+l*l),n=-1);var u=0;if(0!==e&&(u=Math.atan2(n*s,n*l)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),-9999===(r=Z(this.e,i)))return null}else r=-a;return o=V(u/this.ns+this.long0,this.over),t.x=o,t.y=r,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},ge={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,n,i,r,o,a,s,l=t.x,u=t.y,h=V(l-this.long0,this.over);return e=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/e)-this.s45),i=-h*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=s*Math.cos(a)/1,t.x=s*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,n,i,r,o,a,s,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,s=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(s=1),a=t.y,u+=1}while(0===s&&u<15);return u>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]};function ve(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}function me(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function _e(t){return.375*t*(1+.25*t*(1+.46875*t))}function be(t){return.05859375*t*t*(1+.75*t)}function we(t){return t*t*t*(35/3072)}function Ee(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}function ke(t){return Math.abs(t)<a?t:t-q(t)*Math.PI}function Ae(t,e,n,i,r){var o,a;o=t/e;for(var s=0;s<15;s++)if(o+=a=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN}const Me={init:function(){this.sphere||(this.e0=me(this.es),this.e1=_e(this.es),this.e2=be(this.es),this.e3=we(this.es),this.ml0=this.a*ve(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),a=Math.cos(r),s=Ee(this.a,this.e,o),l=Math.tan(r)*Math.tan(r),u=i*Math.cos(r),h=u*u,c=this.es*a*a/(1-this.es);e=s*u*(1-h*l*(1/6-(8-l+8*c)*h/120)),n=this.a*ve(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*o/a*h*(.5+(5-l+6*c)*h/24)}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var o=r+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(i)),n=Math.atan2(Math.tan(i),Math.cos(o))}else{var l=Ae(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-a)<=s)return t.x=this.long0,t.y=a,r<0&&(t.y*=-1),t;var u=Ee(this.a,this.e,Math.sin(l)),h=u*u*u/this.a/this.a*(1-this.es),c=Math.pow(Math.tan(l),2),p=i*this.a/u,d=p*p;e=l-u*Math.tan(l)/h*p*p*(.5-(1+3*c)*p*p/24),n=p*(1-d*(c/3+(1+3*c)*c*d/15))/Math.cos(l)}return t.x=V(n+this.long0,this.over),t.y=ke(e),t},names:["Cassini","Cassini_Soldner","cass"]};function Ce(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}function Se(t){var e,n=[];return n[0]=.3333333333333333*t,e=t*t,n[0]+=.17222222222222222*e,n[1]=.06388888888888888*e,e*=t,n[0]+=.10257936507936508*e,n[1]+=.0664021164021164*e,n[2]=.016415012942191543*e,n}function Re(t,e){var n=t+t;return t+e[0]*Math.sin(n)+e[1]*Math.sin(n+n)+e[2]*Math.sin(n+n+n)}const xe={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-a)<s?this.mode=this.lat0<0?1:2:Math.abs(e)<s?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Ce(this.e,1),this.mmf=.5/(1-this.es),this.apa=Se(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Ce(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,n,i,r,o,l,u,c,p,d,f=t.x,y=t.y;if(f=V(f-this.long0,this.over),this.sphere){if(o=Math.sin(y),d=Math.cos(y),i=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+d*i:1+this.sinph0*o+this.cosph0*d*i)<=s)return null;e=(n=Math.sqrt(2/n))*d*Math.sin(f),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*d*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(y+this.lat0)<s)return null;n=h-.5*y,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(f),n*=i}}else{switch(u=0,c=0,p=0,i=Math.cos(f),r=Math.sin(f),o=Math.sin(y),l=Ce(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=l/this.qp,c=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:p=1+this.sinb1*u+this.cosb1*c*i;break;case this.EQUIT:p=1+c*i;break;case this.N_POLE:p=a+y,l=this.qp-l;break;case this.S_POLE:p=y-a,l=this.qp+l}if(Math.abs(p)<s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:p=Math.sqrt(2/p),n=this.mode===this.OBLIQ?this.ymf*p*(this.cosb1*u-this.sinb1*c*i):(p=Math.sqrt(2/(1+c*i)))*u*this.ymf,e=this.xmf*p*c*r;break;case this.N_POLE:case this.S_POLE:l>=0?(e=(p=Math.sqrt(l))*r,n=i*(this.mode===this.S_POLE?p:-p)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,l,u,h=t.x/this.a,c=t.y/this.a;if(this.sphere){var p,d=0,f=0;if((n=.5*(p=Math.sqrt(h*h+c*c)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(f=Math.sin(n),d=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(p)<=s?0:Math.asin(c*f/p),h*=f,c=d*p;break;case this.OBLIQ:n=Math.abs(p)<=s?this.lat0:Math.asin(d*this.sinph0+c*f*this.cosph0/p),h*=f*this.cosph0,c=(d-Math.sin(n)*this.sinph0)*p;break;case this.N_POLE:c=-c,n=a-n;break;case this.S_POLE:n-=a}e=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,c):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,c*=this.dd,(l=Math.sqrt(h*h+c*c))<s)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*l/this.rq),i=Math.cos(r),h*=r=Math.sin(r),this.mode===this.OBLIQ?(u=i*this.sinb1+c*r*this.cosb1/l,o=this.qp*u,c=l*this.cosb1*i-c*this.sinb1*r):(u=c*r/l,o=this.qp*u,c=l*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=h*h+c*c))return t.x=this.long0,t.y=this.lat0,t;u=1-o/this.qp,this.mode===this.S_POLE&&(u=-u)}e=Math.atan2(h,c),n=Re(Math.asin(u),this.apa)}return t.x=V(this.long0+e,this.over),t.y=n,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Te(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Pe={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=W(this.e3,this.sin_po,this.cos_po),this.qs1=Ce(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=W(this.e3,this.sin_po,this.cos_po),this.qs2=Ce(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ce(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=Ce(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*V(e-this.long0,this.over),a=r*Math.sin(o)+this.x0,s=this.rh-r*Math.cos(o)+this.y0;return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r,o,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,a=this.phi1z(this.e3,n)),o=V(r/this.ns0+this.long0,this.over),t.x=o,t.y=a,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,e){var n,i,r,o,a=Te(.5*e);if(t<s)return a;for(var l=t*t,u=1;u<=25;u++)if(a+=o=.5*(r=1-(i=t*(n=Math.sin(a)))*i)*r/Math.cos(a)*(e/(1-l)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return a;return null}},Le={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,n,i,r,o,a,l,u=t.x,h=t.y;return i=V(u-this.long0,this.over),e=Math.sin(h),n=Math.cos(h),r=Math.cos(i),(o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s?(a=this.x0+1*this.a*n*Math.sin(i)/o,l=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),a=Te((i=Math.cos(r))*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=V(this.long0+o,this.over)):(a=this.phic0,o=0),t.x=o,t.y=a,t},names:["gnom"]},Be={init:function(){this.sphere||(this.k0=W(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0,this.over);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var a=Ce(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=n,t},inverse:function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=V(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*a:a;for(var i,r,o,s,l=Math.asin(.5*e),u=0;u<30;u++)if(r=Math.sin(l),o=Math.cos(l),s=t*r,l+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*t.y*this.k0/this.a),e=V(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=n,t},names:["cea"]},Ie={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0,this.over),r=ke(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},inverse:function(t){var e=t.x,n=t.y;return t.x=V(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=ke(this.lat0+(n-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},Fe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=_e(this.es),this.e2=be(this.es),this.e3=we(this.es),this.ml0=this.a*ve(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0,this.over);if(i=a*Math.sin(o),this.sphere)Math.abs(o)<=s?(e=this.a*a,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(ke(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=s)e=this.a*a,n=-1*this.ml0;else{var l=Ee(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(i),n=this.a*ve(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){var e,n,i,r,o,a,l,u,h;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=s)e=V(i/this.a+this.long0,this.over),n=0;else{var c;for(a=this.lat0+r/this.a,l=i*i/this.a/this.a+a*a,u=a,o=20;o;--o)if(u+=h=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+l)*c)/((u-a)/c-1),Math.abs(h)<=s){n=u;break}e=V(this.long0+Math.asin(i*Math.tan(u)/this.a)/Math.sin(n),this.over)}else if(Math.abs(r+this.ml0)<=s)n=0,e=V(this.long0+i/this.a,this.over);else{var p,d,f,y,g;for(a=(this.ml0+r)/this.a,l=i*i/this.a/this.a+a*a,u=a,o=20;o;--o)if(g=this.e*Math.sin(u),p=Math.sqrt(1-g*g)*Math.tan(u),d=this.a*ve(this.e0,this.e1,this.e2,this.e3,u),f=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=h=(a*(p*(y=d/this.a)+1)-y-.5*p*(y*y+l))/(this.es*Math.sin(2*u)*(y*y+l-2*a*y)/(4*p)+(a-y)*(p*f-2/Math.sin(2*u))-f),Math.abs(h)<=s){n=u;break}p=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=V(this.long0+Math.asin(i*p/this.a)/Math.sin(n),this.over)}return t.x=e,t.y=n,t},names:["Polyconic","American_Polyconic","poly"]},Oe={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,n=t.x,i=t.y-this.lat0,r=n-this.long0,a=i/o*1e-5,s=r,l=1,u=0;for(e=1;e<=10;e++)l*=a,u+=this.A[e]*l;var h,c=u,p=s,d=1,f=0,y=0,g=0;for(e=1;e<=6;e++)h=f*c+d*p,d=d*c-f*p,f=h,y=y+this.B_re[e]*d-this.B_im[e]*f,g=g+this.B_im[e]*d+this.B_re[e]*f;return t.x=g*this.a+this.x0,t.y=y*this.a+this.y0,t},inverse:function(t){var e,n,i=t.x,r=t.y,a=i-this.x0,s=(r-this.y0)/this.a,l=a/this.a,u=1,h=0,c=0,p=0;for(e=1;e<=6;e++)n=h*s+u*l,u=u*s-h*l,h=n,c=c+this.C_re[e]*u-this.C_im[e]*h,p=p+this.C_im[e]*u+this.C_re[e]*h;for(var d=0;d<this.iterations;d++){var f,y=c,g=p,v=s,m=l;for(e=2;e<=6;e++)f=g*c+y*p,y=y*c-g*p,g=f,v+=(e-1)*(this.B_re[e]*y-this.B_im[e]*g),m+=(e-1)*(this.B_im[e]*y+this.B_re[e]*g);y=1,g=0;var _=this.B_re[1],b=this.B_im[1];for(e=2;e<=6;e++)f=g*c+y*p,y=y*c-g*p,g=f,_+=e*(this.B_re[e]*y-this.B_im[e]*g),b+=e*(this.B_im[e]*y+this.B_re[e]*g);var w=_*_+b*b;c=(v*_+m*b)/w,p=(m*_-v*b)/w}var E=c,k=p,A=1,M=0;for(e=1;e<=9;e++)A*=E,M+=this.D[e]*A;var C=this.lat0+M*o*1e5,S=this.long0+k;return t.x=S,t.y=C,t},names:["New_Zealand_Map_Grid","nzmg"]},De={init:function(){},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0,this.over),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=V(this.long0+t.x/this.a,this.over),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},names:["Miller_Cylindrical","mill"]};function ze(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0,this.over),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),a=20;a;--a){var l=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=l,Math.abs(l)<s)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var u=Math.sin(r),h=Math.cos(r);n=this.a*Jt(r,u,h,this.en),e=this.a*i*h/Math.sqrt(1-this.es*u*u)}return t.x=e,t.y=n,t}function Ne(t){var e,n,i;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=Te((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=Te(Math.sin(e)/this.n)),n=V(n+this.long0,this.over),e=ke(e)):(e=Kt(t.y/this.a,this.es,this.en),(i=Math.abs(e))<a?(i=Math.sin(e),n=V(this.long0+t.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(e)),this.over)):i-s<a&&(n=this.long0)),t.x=n,t.y=e,t}const je={init:function(){this.long0=this.long0||0,this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Xt(this.es)},forward:ze,inverse:Ne,names:["Sinusoidal","sinu"]},Ge={init:function(){this.sphere=!0,this.b=this.a,this.m=1,this.n=2.5707963267948966,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)},forward:ze,inverse:Ne,names:["Eckert_VI","eck6"]},Ue={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var e=t.x,n=t.y,i=V(e-this.long0,this.over),r=n,o=Math.PI*Math.sin(n);;){var a=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=a,Math.abs(a)<s)break}r/=2,Math.PI/2-Math.abs(n)<s&&(i=0);var l=.900316316158*this.a*i*Math.cos(r)+this.x0,u=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=l,t.y=u,t},inverse:function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var i=V(this.long0+t.x/(.900316316158*this.a*Math.cos(e)),this.over);i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t},names:["Mollweide","moll"]},We={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=_e(this.es),this.e2=be(this.es),this.e3=we(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=W(this.e,this.sin_phi,this.cos_phi),this.ml1=ve(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<s?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=W(this.e,this.sin_phi,this.cos_phi),this.ml2=ve(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ve(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=ve(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*V(n-this.long0,this.over),a=this.x0+e*Math.sin(o),s=this.y0+this.rh-e*Math.cos(o);return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(r=V(this.long0+o/this.ns,this.over),i=ke(this.g-n/this.a),t.x=r,t.y=i,t):(i=Ae(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),r=V(this.long0+o/this.ns,this.over),t.x=r,t.y=i,t)},names:["Equidistant_Conic","eqdc"]},qe={init:function(){this.R=this.a},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0,this.over);Math.abs(r)<=s&&(e=this.x0+this.R*o,n=this.y0);var l=Te(2*Math.abs(r/Math.PI));(Math.abs(o)<=s||Math.abs(Math.abs(r)-a)<=s)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*l):this.y0+Math.PI*this.R*-Math.tan(.5*l));var u=.5*Math.abs(Math.PI/o-o/Math.PI),h=u*u,c=Math.sin(l),p=Math.cos(l),d=p/(c+p-1),f=d*d,y=d*(2/c-1),g=y*y,v=Math.PI*this.R*(u*(d-g)+Math.sqrt(h*(d-g)*(d-g)-(g+h)*(f-g)))/(g+h);o<0&&(v=-v),e=this.x0+v;var m=h+d;return v=Math.PI*this.R*(y*m-u*Math.sqrt((g+h)*(h+1)-m*m))/(g+h),n=r>=0?this.y0+v:this.y0-v,t.x=e,t.y=n,t},inverse:function(t){var e,n,i,r,o,a,l,u,h,c,p,d;return t.x-=this.x0,t.y-=this.y0,p=Math.PI*this.R,o=(i=t.x/p)*i+(r=t.y/p)*r,p=3*(r*r/(u=-2*(a=-Math.abs(r)*(1+o))+1+2*r*r+o*o)+(2*(l=a-2*r*r+i*i)*l*l/u/u/u-9*a*l/u/u)/27)/(h=(a-l*l/3/u)/u)/(c=2*Math.sqrt(-h/3)),Math.abs(p)>1&&(p=p>=0?1:-1),d=Math.acos(p)/3,n=t.y>=0?(-c*Math.cos(d+Math.PI/3)-l/3/u)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-l/3/u)*Math.PI,e=Math.abs(i)<s?this.long0:V(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i,this.over),t.x=e,t.y=n,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},Ve={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var e,n,i,r,o,l,u,h,c,p,d,f=t.x,y=t.y,g=Math.sin(t.y),v=Math.cos(t.y),m=V(f-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=s?(t.x=this.x0+this.a*(a-y)*Math.sin(m),t.y=this.y0-this.a*(a-y)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=s?(t.x=this.x0+this.a*(a+y)*Math.sin(m),t.y=this.y0+this.a*(a+y)*Math.cos(m),t):(c=this.sin_p12*g+this.cos_p12*v*Math.cos(m),h=(u=Math.acos(c))?u/Math.sin(u):1,t.x=this.x0+this.a*h*v*Math.sin(m),t.y=this.y0+this.a*h*(this.cos_p12*g-this.sin_p12*v*Math.cos(m)),t):(e=me(this.es),n=_e(this.es),i=be(this.es),r=we(this.es),Math.abs(this.sin_p12-1)<=s?(o=this.a*ve(e,n,i,r,a),l=this.a*ve(e,n,i,r,y),t.x=this.x0+(o-l)*Math.sin(m),t.y=this.y0-(o-l)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=s?(o=this.a*ve(e,n,i,r,a),l=this.a*ve(e,n,i,r,y),t.x=this.x0+(o+l)*Math.sin(m),t.y=this.y0+(o+l)*Math.cos(m),t):Math.abs(f)<s&&Math.abs(y-this.lat0)<s?(t.x=t.y=0,t):(p=function(t,e,n,i,r,o){const a=i-e,s=Math.atan((1-o)*Math.tan(t)),l=Math.atan((1-o)*Math.tan(n)),u=Math.sin(s),h=Math.cos(s),c=Math.sin(l),p=Math.cos(l);let d,f,y,g,v,m,_,b,w,E,k,A,M,C,S,R=a,x=100;do{if(f=Math.sin(R),y=Math.cos(R),g=Math.sqrt(p*f*(p*f)+(h*c-u*p*y)*(h*c-u*p*y)),0===g)return{azi1:0,s12:0};v=u*c+h*p*y,m=Math.atan2(g,v),_=h*p*f/g,b=1-_*_,w=0!==b?v-2*u*c/b:0,E=o/16*b*(4+o*(4-3*b)),d=R,R=a+(1-E)*o*_*(m+E*g*(w+E*v*(2*w*w-1)))}while(Math.abs(R-d)>1e-12&&--x>0);return 0===x?{azi1:NaN,s12:NaN}:(k=b*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),A=1+k/16384*(4096+k*(k*(320-175*k)-768)),M=k/1024*(256+k*(k*(74-47*k)-128)),C=M*g*(w+M/4*(v*(2*w*w-1)-M/6*w*(4*g*g-3)*(4*w*w-3))),S=r*(1-o)*A*(m-C),{azi1:Math.atan2(p*f,h*c-u*p*y),s12:S})}(this.lat0,this.long0,y,f,this.a,this.f),d=p.azi1,t.x=p.s12*Math.sin(d),t.y=p.s12*Math.cos(d),t))},inverse:function(t){var e,n,i,r,o,l,u,h,c,p,d,f,y,g,v;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=s?l=this.lat0:(l=Te(r*this.sin_p12+t.y*i*this.cos_p12/e),u=Math.abs(this.lat0)-a,o=Math.abs(u)<=s?this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y),this.over):V(this.long0-Math.atan2(-t.x,t.y),this.over):V(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i),this.over)),t.x=o,t.y=l,t}return h=me(this.es),c=_e(this.es),p=be(this.es),d=we(this.es),Math.abs(this.sin_p12-1)<=s?(l=Ae(((f=this.a*ve(h,c,p,d,a))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,h,c,p,d),o=V(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=o,t.y=l,t):Math.abs(this.sin_p12+1)<=s?(f=this.a*ve(h,c,p,d,a),l=Ae(((e=Math.sqrt(t.x*t.x+t.y*t.y))-f)/this.a,h,c,p,d),o=V(this.long0+Math.atan2(t.x,t.y),this.over),t.x=o,t.y=l,t):(y=Math.atan2(t.x,t.y),g=Math.sqrt(t.x*t.x+t.y*t.y),v=function(t,e,n,i,r,o){const a=Math.atan((1-o)*Math.tan(t)),s=Math.sin(a),l=Math.cos(a),u=Math.sin(n),h=Math.cos(n),c=Math.atan2(s,l*h),p=l*u,d=1-p*p,f=d*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),y=1+f/16384*(4096+f*(f*(320-175*f)-768)),g=f/1024*(256+f*(f*(74-47*f)-128));let v,m,_,b,w,E=i/(r*(1-o)*y),k=100;do{m=Math.cos(2*c+E),_=Math.sin(E),b=Math.cos(E),w=g*_*(m+g/4*(b*(2*m*m-1)-g/6*m*(4*_*_-3)*(4*m*m-3))),v=E,E=i/(r*(1-o)*y)+w}while(Math.abs(E-v)>1e-12&&--k>0);if(0===k)return{lat2:NaN,lon2:NaN};const A=s*_-l*b*h,M=o/16*d*(4+o*(4-3*d));return{lat2:Math.atan2(s*b+l*_*h,(1-o)*Math.sqrt(p*p+A*A)),lon2:e+(Math.atan2(_*u,l*b-s*_*h)-(1-M)*o*p*(E+M*_*(m+M*b*(2*m*m-1))))}}(this.lat0,this.long0,y,g,this.a,this.f),t.x=v.lon2,t.y=v.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]},He={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var e,n,i,r,o,a,l,u=t.x,h=t.y;return i=V(u-(this.long0||0),this.over),e=Math.sin(h),n=Math.cos(h),r=Math.cos(i),((o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s)&&(a=1*this.a*n*Math.sin(i),l=(this.y0||0)+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,l,u,h,c;return t.x-=this.x0||0,t.y-=this.y0||0,n=Te((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),i=Math.sin(n),r=Math.cos(n),h=this.long0||0,c=this.lat0||0,l=h,Math.abs(e)<=s?(u=c,t.x=l,t.y=u,t):(u=Te(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(c)-a,Math.abs(o)<=s?(l=V(c>=0?h+Math.atan2(t.x,-t.y):h-Math.atan2(-t.x,t.y),this.over),t.x=l,t.y=u,t):(l=V(h+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),this.over),t.x=l,t.y=u,t))},names:["ortho"]};function Ze(t,e,n,i){var r;return t<s?(i.value=1,r=0):(r=Math.atan2(e,n),Math.abs(r)<=h?i.value=1:r>h&&r<=a+h?(i.value=2,r-=a):r>a+h||r<=-(a+h)?(i.value=3,r=r>=0?r-p:r+p):(i.value=4,r+=a)),r}function Ye(t,e){var n=t+e;return n<-p?n+=c:n>+p&&(n-=c),n}const Qe={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-h/2?this.face=5:this.lat0<=-(a-h/2)?this.face=6:Math.abs(this.long0)<=h?this.face=1:Math.abs(this.long0)<=a+h?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,n,i,r,o,s,l={x:0,y:0},u={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,5===this.face)r=a-e,n>=h&&n<=a+h?(u.value=1,i=n-a):n>a+h||n<=-(a+h)?(u.value=2,i=n>0?n-p:n+p):n>-(a+h)&&n<=-h?(u.value=3,i=n+a):(u.value=4,i=n);else if(6===this.face)r=a+e,n>=h&&n<=a+h?(u.value=1,i=-n+a):n<h&&n>=-h?(u.value=2,i=-n):n<-h&&n>=-(a+h)?(u.value=3,i=-n-a):(u.value=4,i=n>0?-n+p:-n-p);else{var c,d,f,y,g,v;2===this.face?n=Ye(n,+a):3===this.face?n=Ye(n,+p):4===this.face&&(n=Ye(n,-a)),y=Math.sin(e),g=Math.cos(e),v=Math.sin(n),c=g*Math.cos(n),d=g*v,f=y,1===this.face?i=Ze(r=Math.acos(c),f,d,u):2===this.face?i=Ze(r=Math.acos(d),f,-c,u):3===this.face?i=Ze(r=Math.acos(-c),f,-d,u):4===this.face?i=Ze(r=Math.acos(-d),f,c,u):(r=i=0,u.value=1)}return s=Math.atan(12/p*(i+Math.acos(Math.sin(i)*Math.cos(h))-a)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),2===u.value?s+=a:3===u.value?s+=p:4===u.value&&(s+=1.5*p),l.x=o*Math.cos(s),l.y=o*Math.sin(s),l.x=l.x*this.a+this.x0,l.y=l.y*this.a+this.y0,t.x=l.x,t.y=l.y,t},inverse:function(t){var e,n,i,r,o,s,l,u,h,c,d,f,y={lam:0,phi:0},g={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?g.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=2,e-=a):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=3,e=e<0?e+p:e-p):(g.value=4,e+=a),h=p/12*Math.tan(e),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),s=Math.atan(o),(l=1-(i=Math.cos(e))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?l=-1:l>1&&(l=1),5===this.face)u=Math.acos(l),y.phi=a-u,1===g.value?y.lam=s+a:2===g.value?y.lam=s<0?s+p:s-p:3===g.value?y.lam=s-a:y.lam=s;else if(6===this.face)u=Math.acos(l),y.phi=u-a,1===g.value?y.lam=-s+a:2===g.value?y.lam=-s:3===g.value?y.lam=-s-a:y.lam=s<0?-s-p:-s+p;else{var v,m,_;h=(v=l)*v,m=(h+=(_=h>=1?0:Math.sqrt(1-h)*Math.sin(s))*_)>=1?0:Math.sqrt(1-h),2===g.value?(h=m,m=-_,_=h):3===g.value?(m=-m,_=-_):4===g.value&&(h=m,m=_,_=-h),2===this.face?(h=v,v=-m,m=h):3===this.face?(v=-v,m=-m):4===this.face&&(h=v,v=m,m=-h),y.phi=Math.acos(-_)-a,y.lam=Math.atan2(m,v),2===this.face?y.lam=Ye(y.lam,-a):3===this.face?y.lam=Ye(y.lam,-p):4===this.face&&(y.lam=Ye(y.lam,+a))}return 0!==this.es&&(c=y.phi<0?1:0,d=Math.tan(y.phi),f=this.b/Math.sqrt(d*d+this.one_minus_f_squared),y.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),c&&(y.phi=-y.phi)),y.lam+=this.long0,t.x=y.lam,t.y=y.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var $e=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Xe=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Je=.8487,Ke=1.3523,tn=u/5,en=1/tn,nn=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const rn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=V(t.x-this.long0,this.over),n=Math.abs(t.y),i=Math.floor(n*tn);i<0?i=0:i>=18&&(i=17);var r={x:nn($e[i],n=u*(n-en*i))*e,y:nn(Xe[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Je+this.x0,r.y=r.y*this.a*Ke+this.y0,r},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*Je),y:Math.abs(t.y-this.y0)/(this.a*Ke)};if(e.y>=1)e.x/=$e[18][0],e.y=t.y<0?-a:a;else{var n=Math.floor(18*e.y);for(n<0?n=0:n>=18&&(n=17);;)if(Xe[n][0]>e.y)--n;else{if(!(Xe[n+1][0]<=e.y))break;++n}var i=Xe[n],r=5*(e.y-i[0])/(Xe[n+1][0]-i[0]);r=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<1e-10)break}return r}(function(t){return(nn(i,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(i,t)},r,0,100),e.x/=nn($e[n],r),e.y=(5*n+r)*l,t.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0,this.over),e},names:["Robinson","robin"]},on={init:function(){this.name="geocent"},forward:function(t){return _t(t,this.es,this.a)},inverse:function(t){return bt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var an={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const sn={init:function(){if(Object.keys(an).forEach(function(t){if(void 0===this[t])this[t]=an[t].def;else{if(an[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);an[t].num&&(this[t]=parseFloat(this[t]))}an[t].degrees&&(this[t]=this[t]*l)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<s?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<s?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,n,i,r,o=Math.sin(t.y),a=Math.cos(t.y),s=Math.cos(t.x);switch(this.mode){case 3:n=this.sinph0*o+this.cosph0*a*s;break;case 2:n=a*s;break;case 1:n=-o;break;case 0:n=o}switch(e=(n=this.pn1/(this.p-n))*a*Math.sin(t.x),this.mode){case 3:n*=this.cosph0*o-this.sinph0*a*s;break;case 2:n*=o;break;case 0:n*=-a*s;break;case 1:n*=a*s}return r=1/((i=n*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=ne(t.x,t.y);if(Math.abs(o)<s)r.x=0,r.y=t.y;else{var a,l;switch(l=1-o*o*this.pfact,l=(this.p-Math.sqrt(l))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-l*l),this.mode){case 3:r.y=Math.asin(a*this.sinph0+t.y*l*this.cosph0/o),t.y=(a-this.sinph0*Math.sin(r.y))*o,t.x*=l*this.cosph0;break;case 2:r.y=Math.asin(t.y*l/o),t.y=a*o,t.x*=l;break;case 0:r.y=Math.asin(a),t.y=-t.y;break;case 1:r.y=-Math.asin(a)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]},ln={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,n,i,r,o=t.x,a=t.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/ne(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),i=s*Math.sin(o)*Math.cos(a),r=s*Math.sin(a),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/ne(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/ne(i,e)))}else"sphere"===this.shape&&(e=Math.cos(a),n=Math.cos(o)*e,i=Math.sin(o)*e,r=Math.sin(a),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/ne(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/ne(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,n,i,r,o=-1,a=0,s=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*ne(1,s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*ne(1,a));var l=s/this.radius_p;if(e=a*a+l*l+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),e=a*a+s*s+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var un=1.340264,hn=-.081106,cn=893e-6,pn=.003796,dn=Math.sqrt(3)/2;const fn={init:function(){this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,0!==this.es&&(this.apa=Se(this.es),this.qp=Ce(this.e,1),this.rqda=Math.sqrt(.5*this.qp))},forward:function(t){var e=V(t.x-this.long0,this.over),n=t.y,i=Math.sin(n);0!==this.es&&(i=Ce(this.e,i)/this.qp);var r=Math.asin(dn*i),o=r*r,a=o*o*o;return t.x=e*Math.cos(r)/(dn*(un+3*hn*o+a*(7*cn+9*pn*o))),t.y=r*(un+hn*o+a*(cn+pn*o)),0!==this.es&&(t.x*=this.rqda,t.y*=this.rqda),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,0!==this.es&&(t.x/=this.rqda,t.y/=this.rqda);var e,n,i,r,o=t.y;for(r=0;r<12&&(o-=i=(o*(un+hn*(e=o*o)+(n=e*e*e)*(cn+pn*e))-t.y)/(un+3*hn*e+n*(7*cn+9*pn*e)),!(Math.abs(i)<1e-9));++r);return n=(e=o*o)*e*e,t.x=dn*t.x*(un+3*hn*e+n*(7*cn+9*pn*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/dn),0!==this.es&&(t.y=Re(t.y,this.apa)),t.x=V(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};var yn=1e-10;function gn(t){var e,n,i,r=V(t.x-(this.long0||0),this.over),o=t.y;return e=this.am1+this.m1-Jt(o,n=Math.sin(o),i=Math.cos(o),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function vn(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=ne(t.x,t.y=this.am1-t.y),r=Kt(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))<a)e=Math.sin(r),i=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(r);else{if(!(Math.abs(e-a)<=yn))throw new Error;i=0}return t.x=V(i+(this.long0||0),this.over),t.y=ke(r),t}function mn(t){var e,n,i=V(t.x-(this.long0||0),this.over),r=t.y;return n=this.cphi1+this.phi1-r,Math.abs(n)>yn?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function _n(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=ne(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>a)throw new Error;return e=Math.abs(Math.abs(n)-a)<=yn?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=V(e+(this.long0||0),this.over),t.y=ke(n),t}const bn={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<yn)throw new Error;this.es?(this.en=Xt(this.es),this.m1=Jt(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=vn,this.forward=gn):(Math.abs(this.phi1)+yn>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=_n,this.forward=mn)},names:["bonne","Bonne (Werner lat_1=90)"]},wn={OBLIQUE:{forward:function(t,e){let{x:n,y:i}=e;n=V(n-t.long0,t.over);const r=Math.cos(n),o=Math.sin(i),a=Math.cos(i);e.x=V(Math.atan2(a*Math.sin(n),t.sphip*a*r+t.cphip*o)+t.lamp),e.y=Math.asin(t.sphip*o-t.cphip*a*r);const s=t.obliqueProjection.forward(e);return t.isIdentity&&(s.x*=u,s.y*=u),s},inverse:function(t,e){t.isIdentity&&(e.x*=l,e.y*=l);const n=t.obliqueProjection.inverse(e);let{x:i,y:r}=n;if(i<Number.MAX_VALUE){i-=t.lamp;const n=Math.cos(i),o=Math.sin(r),a=Math.cos(r);e.x=Math.atan2(a*Math.sin(i),t.sphip*a*n-t.cphip*o),e.y=Math.asin(t.sphip*o+t.cphip*a*n)}return e.x=V(e.x+t.long0),e}},TRANSVERSE:{forward:function(t,e){let{x:n,y:i}=e;n=V(n-t.long0,t.over);const r=Math.cos(i),o=Math.cos(n);e.x=V(Math.atan2(r*Math.sin(n),Math.sin(i))+t.lamp),e.y=Math.asin(-1*r*o);const a=t.obliqueProjection.forward(e);return t.isIdentity&&(a.x*=u,a.y*=u),a},inverse:function(t,e){t.isIdentity&&(e.x*=l,e.y*=l);const n=t.obliqueProjection.inverse(e);let{x:i,y:r}=n;if(i<Number.MAX_VALUE){const n=Math.cos(r);i-=t.lamp,e.x=Math.atan2(n*Math.sin(i),-1*Math.sin(r)),e.y=Math.asin(n*Math.cos(i))}return e.x=V(e.x+t.long0),e}}},En={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}},kn={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=Q.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),e=mt(t);if(!e)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let n;e.long0=0,this.obliqueProjection=e;const i=Object.keys(En),r=t=>{if(void 0===this[t])return;const e=parseFloat(this[t])*l;if(isNaN(e))throw new Error("Invalid value for "+t+": "+this[t]);return e};for(let t=0;t<i.length;t++){const e=i[t],o=En[e],a=Object.entries(o);if(a.some(([t])=>void 0!==this[t])){n=o;for(let t=0;t<a.length;t++){const[e,n]=a[t],i=r(e);if(void 0===i)throw new Error("Missing parameter: "+e+".");this[n]=i}break}}if(!n)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:o,phip:u}=function(t,e){let n,i;if(e===En.ROTATE){let e=t.oLongC,r=t.oLatC,o=t.oAlpha;if(Math.abs(Math.abs(r)-a)<=s)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");i=e+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(r)),n=Math.asin(Math.cos(r)*Math.sin(o))}else if(e===En.NEW_POLE)i=t.oLongP,n=t.oLatP;else{let e=t.oLong1,r=t.oLat1,o=t.oLong2,l=t.oLat2,u=Math.abs(r);if(Math.abs(r)>a-s)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(l)>a-s)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(r-l)<s)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(u<s)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan2(Math.cos(r)*Math.sin(l)*Math.cos(e)-Math.sin(r)*Math.cos(l)*Math.cos(o),Math.sin(r)*Math.cos(l)*Math.sin(o)-Math.cos(r)*Math.sin(l)*Math.sin(e)),n=Math.atan(-1*Math.cos(i-e)/Math.tan(r))}return{lamp:i,phip:n}}(this,n);this.lamp=o,Math.abs(u)>s?(this.cphip=Math.cos(u),this.sphip=Math.sin(u),this.projectionType=wn.OBLIQUE):this.projectionType=wn.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]},An=Object.assign(function(t,e,n){var i,r,o,a=!1;return void 0===e?(r=Pt(t),i=xt,a=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,r=Pt(t),i=xt,a=!0),i||(i=Pt(t)),r||(r=Pt(e)),n?Tt(i,r,n):(o={forward:function(t,e){return Tt(i,r,t,e)},inverse:function(t,e){return Tt(r,i,t,e)}},a&&(o.oProj=r),o)},{defaultDatum:"WGS84",Proj:mt,WGS84:new mt("WGS84"),Point:Zt,toPoint:Ct,defs:j,nadgrid:function(t,e,n){return e instanceof ArrayBuffer?function(t,e,n){var i=!0;void 0!==n&&!1===n.includeErrorFields&&(i=!1);var r=new DataView(e),o=function(t){var e=t.getInt32(8,!1);return 11!==e&&(11!==(e=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(r),a=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:dt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(r,o),s=function(t,e,n,i){for(var r=176,o=[],a=0;a<e.nSubgrids;a++){var s=yt(t,r,n),l=gt(t,r,s,n,i),u=Math.round(1+(s.upperLongitude-s.lowerLongitude)/s.longitudeInterval),h=Math.round(1+(s.upperLatitude-s.lowerLatitude)/s.latitudeInterval);o.push({ll:[pt(s.lowerLongitude),pt(s.lowerLatitude)],del:[pt(s.longitudeInterval),pt(s.latitudeInterval)],lim:[u,h],count:s.gridNodeCount,cvs:ft(l)});var c=16;!1===i&&(c=8),r+=176+s.gridNodeCount*c}return o}(r,a,o,i),l={header:a,subgrids:s};return lt[t]=l,l}(t,e,n):{ready:ut(t,e)}},transform:function(t,e,n,i){return Rt(t,e,Array.isArray(n)?Ct(n):{x:n.x,y:n.y,z:n.z,m:n.m},i)},mgrs:Dt,version:"__VERSION__"});var Mn;(Mn=An).Proj.projections.add(te),Mn.Proj.projections.add(oe),Mn.Proj.projections.add(ae),Mn.Proj.projections.add(ue),Mn.Proj.projections.add(ce),Mn.Proj.projections.add(pe),Mn.Proj.projections.add(fe),Mn.Proj.projections.add(ye),Mn.Proj.projections.add(ge),Mn.Proj.projections.add(Me),Mn.Proj.projections.add(xe),Mn.Proj.projections.add(Pe),Mn.Proj.projections.add(Le),Mn.Proj.projections.add(Be),Mn.Proj.projections.add(Ie),Mn.Proj.projections.add(Fe),Mn.Proj.projections.add(Oe),Mn.Proj.projections.add(De),Mn.Proj.projections.add(je),Mn.Proj.projections.add(Ge),Mn.Proj.projections.add(Ue),Mn.Proj.projections.add(We),Mn.Proj.projections.add(qe),Mn.Proj.projections.add(Ve),Mn.Proj.projections.add(He),Mn.Proj.projections.add(Qe),Mn.Proj.projections.add(rn),Mn.Proj.projections.add(on),Mn.Proj.projections.add(sn),Mn.Proj.projections.add(ln),Mn.Proj.projections.add(fn),Mn.Proj.projections.add(bn),Mn.Proj.projections.add(kn);const Cn=An},7142(t,e,n){var i,r,o;r=[n(3481),n(9005)],void 0===(o="function"==typeof(i=function(t,e){return e.__esModule&&e.default&&(e=e.default),t.Proj={},t.Proj._isProj4Obj=function(t){return void 0!==t.inverse&&void 0!==t.forward},t.Proj.Projection=t.Class.extend({initialize:function(e,n,i){var r=t.Proj._isProj4Obj(e);this._proj=r?e:this._projFromCodeDef(e,n),this.bounds=r?n:i},project:function(e){var n=this._proj.forward([e.lng,e.lat]);return new t.Point(n[0],n[1])},unproject:function(e,n){var i=this._proj.inverse([e.x,e.y]);return new t.LatLng(i[1],i[0],n)},_projFromCodeDef:function(t,n){if(n)e.defs(t,n);else if(void 0===e.defs[t]){var i=t.split(":");if(i.length>3&&(t=i[i.length-3]+":"+i[i.length-1]),void 0===e.defs[t])throw"No projection definition for code "+t}return e(t)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(e,n,i){var r,o,a,s;if(t.Proj._isProj4Obj(e)?(r=(o=e).srsCode,s=n||{},this.projection=new t.Proj.Projection(o,s.bounds)):(r=e,a=n,s=i||{},this.projection=new t.Proj.Projection(r,a,s.bounds)),t.Util.setOptions(this,s),this.code=r,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var l=this.options.resolutions.length-1;l>=0;l--)this.options.resolutions[l]&&(this._scales[l]=1/this.options.resolutions[l])}this.infinite=!this.options.bounds},scale:function(t){var e,n=Math.floor(t);return t===n?this._scales[t]:(e=this._scales[n])+(this._scales[n+1]-e)*(t-n)},zoom:function(t){var e,n,i=this._closestElement(this._scales,t),r=this._scales.indexOf(i);return t===i?r:void 0===i?-1/0:(n=r+1,void 0===(e=this._scales[n])?1/0:(t-i)/(e-i)+r)},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(t,e){for(var n,i=t.length;i--;)t[i]<=e&&(void 0===n||n<t[i])&&(n=t[i]);return n}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(e,n){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,e,n)},addData:function(e){var n;e&&(e.crs&&"name"===e.crs.type?n=new t.Proj.CRS(e.crs.properties.name):e.crs&&e.crs.type&&(n=new t.Proj.CRS(e.crs.type+":"+e.crs.properties.code)),void 0!==n&&(this.options.coordsToLatLng=function(e){var i=t.point(e[0],e[1]);return n.projection.unproject(i)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,e)}finally{this._callLevel--,0===this._callLevel&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(e,n){return new t.Proj.GeoJSON(e,n)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(e,n,i){t.ImageOverlay.prototype.initialize.call(this,e,null,i),this._projectedBounds=n},_animateZoom:function(e){var n=this._map.getZoomScale(e.zoom),i=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),r=this._projectedToNewLayerPoint(i,e.zoom,e.center);t.DomUtil.setTransform(this._image,r,n)},_reset:function(){var e=this._map.getZoom(),n=this._map.getPixelOrigin(),i=t.bounds(this._transform(this._projectedBounds.min,e)._subtract(n),this._transform(this._projectedBounds.max,e)._subtract(n)),r=i.getSize();t.DomUtil.setPosition(this._image,i.min),this._image.style.width=r.x+"px",this._image.style.height=r.y+"px"},_projectedToNewLayerPoint:function(t,e,n){var i=this._map.getSize()._divideBy(2),r=this._map.project(n,e)._subtract(i)._round().add(this._map._getMapPanePos());return this._transform(t,e)._subtract(r)},_transform:function(t,e){var n=this._map.options.crs,i=n.transformation,r=n.scale(e);return i.transform(t,r)}}),t.Proj.imageOverlay=function(e,n,i){return new t.Proj.ImageOverlay(e,n,i)},t.Proj})?i.apply(e,r):i)||(t.exports=o)},2694(t,e,n){"use strict";var i=n(6925);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551(t,e,n){"use strict";var i=n(156),r=n(9982);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(t,e){u(t,e),u(t+"Capture",e)}function u(t,e){for(s[t]=e,t=0;t<e.length;t++)a.add(e[t])}var h=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),c=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function y(t,e,n,i,r,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){g[t]=new y(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];g[e]=new y(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){g[t]=new y(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){g[t]=new y(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){g[t]=new y(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){g[t]=new y(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){g[t]=new y(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){g[t]=new y(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){g[t]=new y(t,5,!1,t.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function m(t){return t[1].toUpperCase()}function _(t,e,n,i){var r=g.hasOwnProperty(e)?g[e]:null;(null!==r?0!==r.type:i||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,n,i){if(null==e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,r,i)&&(n=null),i||null===r?function(t){return!!c.call(f,t)||!c.call(d,t)&&(p.test(t)?f[t]=!0:(d[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=null===n?3!==r.type&&"":n:(e=r.attributeName,i=r.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(v,m);g[e]=new y(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(v,m);g[e]=new y(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(v,m);g[e]=new y(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){g[t]=new y(t,1,!1,t.toLowerCase(),null,!1,!1)}),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){g[t]=new y(t,1,!1,t.toLowerCase(),null,!0,!0)});var b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),S=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var B=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function F(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=I&&t[I]||t["@@iterator"])?t:null}var O,D=Object.assign;function z(t){if(void 0===O)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);O=e&&e[1]||""}return"\n"+O+t}var N=!1;function j(t,e){if(!t||N)return"";N=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var i=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){i=t}t.call(e.prototype)}else{try{throw Error()}catch(t){i=t}t()}}catch(e){if(e&&i&&"string"==typeof e.stack){for(var r=e.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s]){var l="\n"+r[a].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{N=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function G(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return j(t.type,!1);case 11:return j(t.type.render,!1);case 1:return j(t.type,!0);default:return""}}function U(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case k:return"Fragment";case E:return"Portal";case M:return"Profiler";case A:return"StrictMode";case x:return"Suspense";case T:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case S:return(t.displayName||"Context")+".Consumer";case C:return(t._context.displayName||"Context")+".Provider";case R:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case P:return null!==(e=t.displayName||null)?e:U(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return U(t(e))}catch(t){}}return null}function W(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(e);case 8:return e===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function q(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function V(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function H(t){t._valueTracker||(t._valueTracker=function(t){var e=V(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(t){i=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(t){i=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Z(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=V(t)?t.checked?"true":"false":t.value),(t=i)!==n&&(e.setValue(t),!0)}function Y(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Q(t,e){var n=e.checked;return D({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function $(t,e){var n=null==e.defaultValue?"":e.defaultValue,i=null!=e.checked?e.checked:e.defaultChecked;n=q(null!=e.value?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function X(t,e){null!=(e=e.checked)&&_(t,"checked",e,!1)}function J(t,e){X(t,e);var n=q(e.value),i=e.type;if(null!=n)"number"===i?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===i||"reset"===i)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,q(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function K(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!("submit"!==i&&"reset"!==i||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&Y(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&i&&(t[n].defaultSelected=!0)}else{for(n=""+q(n),e=null,r=0;r<t.length;r++){if(t[r].value===n)return t[r].selected=!0,void(i&&(t[r].defaultSelected=!0));null!==e||t[r].disabled||(e=t[r])}null!==e&&(e.selected=!0)}}function it(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(o(91));return D({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function rt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(o(92));if(et(n)){if(1<n.length)throw Error(o(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:q(n)}}function ot(t,e){var n=q(e.value),i=q(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=i&&(t.defaultValue=""+i)}function at(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ut,ht,ct=(ht=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ut=ut||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,i){MSApp.execUnsafeLocalFunction(function(){return ht(t,e)})}:ht);function pt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ft=["Webkit","ms","Moz","O"];function yt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||dt.hasOwnProperty(t)&&dt[t]?(""+e).trim():e+"px"}function gt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=yt(n,e[n],i);"float"===n&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}Object.keys(dt).forEach(function(t){ft.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),dt[e]=dt[t]})});var vt=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mt(t,e){if(e){if(vt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(o(62))}}function _t(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Et=null,kt=null,At=null;function Mt(t){if(t=mr(t)){if("function"!=typeof Et)throw Error(o(280));var e=t.stateNode;e&&(e=br(e),Et(t.stateNode,t.type,e))}}function Ct(t){kt?At?At.push(t):At=[t]:kt=t}function St(){if(kt){var t=kt,e=At;if(At=kt=null,Mt(t),e)for(t=0;t<e.length;t++)Mt(e[t])}}function Rt(t,e){return t(e)}function xt(){}var Tt=!1;function Pt(t,e,n){if(Tt)return t(e,n);Tt=!0;try{return Rt(t,e,n)}finally{Tt=!1,(null!==kt||null!==At)&&(xt(),St())}}function Lt(t,e){var n=t.stateNode;if(null===n)return null;var i=br(n);if(null===i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(o(231,e,typeof n));return n}var Bt=!1;if(h)try{var It={};Object.defineProperty(It,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",It,It),window.removeEventListener("test",It,It)}catch(ht){Bt=!1}function Ft(t,e,n,i,r,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(t){this.onError(t)}}var Ot=!1,Dt=null,zt=!1,Nt=null,jt={onError:function(t){Ot=!0,Dt=t}};function Gt(t,e,n,i,r,o,a,s,l){Ot=!1,Dt=null,Ft.apply(jt,arguments)}function Ut(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Wt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&null!==(t=t.alternate)&&(e=t.memoizedState),null!==e)return e.dehydrated}return null}function qt(t){if(Ut(t)!==t)throw Error(o(188))}function Vt(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Ut(t)))throw Error(o(188));return e!==t?null:t}for(var n=t,i=e;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(i=r.return)){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return qt(r),t;if(a===i)return qt(r),e;a=a.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=a;break}if(l===i){s=!0,i=r,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,i=r;break}if(l===i){s=!0,i=a,n=r;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?t:e}(t))?Ht(t):null}function Ht(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=Ht(t);if(null!==e)return e;t=t.sibling}return null}var Zt=r.unstable_scheduleCallback,Yt=r.unstable_cancelCallback,Qt=r.unstable_shouldYield,$t=r.unstable_requestPaint,Xt=r.unstable_now,Jt=r.unstable_getCurrentPriorityLevel,Kt=r.unstable_ImmediatePriority,te=r.unstable_UserBlockingPriority,ee=r.unstable_NormalPriority,ne=r.unstable_LowPriority,ie=r.unstable_IdlePriority,re=null,oe=null,ae=Math.clz32?Math.clz32:function(t){return 0===(t>>>=0)?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2,ue=64,he=4194304;function ce(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pe(t,e){var n=t.pendingLanes;if(0===n)return 0;var i=0,r=t.suspendedLanes,o=t.pingedLanes,a=268435455&n;if(0!==a){var s=a&~r;0!==s?i=ce(s):0!==(o&=a)&&(i=ce(o))}else 0!==(a=n&~r)?i=ce(a):0!==o&&(i=ce(o));if(0===i)return 0;if(0!==e&&e!==i&&0===(e&r)&&((r=i&-i)>=(o=e&-e)||16===r&&4194240&o))return e;if(4&i&&(i|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=i;0<e;)r=1<<(n=31-ae(e)),i|=t[n],e&=~r;return i}function de(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function fe(t){return 0!=(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function ye(){var t=ue;return!(4194240&(ue<<=1))&&(ue=64),t}function ge(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ae(e)]=n}function ve(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ae(n),r=1<<i;r&e|t[i]&e&&(t[i]|=e),n&=~r}}var me=0;function _e(t){return 1<(t&=-t)?4<t?268435455&t?16:536870912:4:1}var be,we,Ee,ke,Ae,Me=!1,Ce=[],Se=null,Re=null,xe=null,Te=new Map,Pe=new Map,Le=[],Be="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ie(t,e){switch(t){case"focusin":case"focusout":Se=null;break;case"dragenter":case"dragleave":Re=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Te.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pe.delete(e.pointerId)}}function Fe(t,e,n,i,r,o){return null===t||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},null!==e&&null!==(e=mr(e))&&we(e),t):(t.eventSystemFlags|=i,e=t.targetContainers,null!==r&&-1===e.indexOf(r)&&e.push(r),t)}function Oe(t){var e=vr(t.target);if(null!==e){var n=Ut(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Wt(n)))return t.blockedOn=e,void Ae(t.priority,function(){Ee(n)})}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function De(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ye(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=mr(n))&&we(e),t.blockedOn=n,!1;var i=new(n=t.nativeEvent).constructor(n.type,n);bt=i,n.target.dispatchEvent(i),bt=null,e.shift()}return!0}function ze(t,e,n){De(t)&&n.delete(e)}function Ne(){Me=!1,null!==Se&&De(Se)&&(Se=null),null!==Re&&De(Re)&&(Re=null),null!==xe&&De(xe)&&(xe=null),Te.forEach(ze),Pe.forEach(ze)}function je(t,e){t.blockedOn===e&&(t.blockedOn=null,Me||(Me=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ne)))}function Ge(t){function e(e){return je(e,t)}if(0<Ce.length){je(Ce[0],t);for(var n=1;n<Ce.length;n++){var i=Ce[n];i.blockedOn===t&&(i.blockedOn=null)}}for(null!==Se&&je(Se,t),null!==Re&&je(Re,t),null!==xe&&je(xe,t),Te.forEach(e),Pe.forEach(e),n=0;n<Le.length;n++)(i=Le[n]).blockedOn===t&&(i.blockedOn=null);for(;0<Le.length&&null===(n=Le[0]).blockedOn;)Oe(n),null===n.blockedOn&&Le.shift()}var Ue=b.ReactCurrentBatchConfig,We=!0;function qe(t,e,n,i){var r=me,o=Ue.transition;Ue.transition=null;try{me=1,He(t,e,n,i)}finally{me=r,Ue.transition=o}}function Ve(t,e,n,i){var r=me,o=Ue.transition;Ue.transition=null;try{me=4,He(t,e,n,i)}finally{me=r,Ue.transition=o}}function He(t,e,n,i){if(We){var r=Ye(t,e,n,i);if(null===r)Wi(t,e,i,Ze,n),Ie(t,i);else if(function(t,e,n,i,r){switch(e){case"focusin":return Se=Fe(Se,t,e,n,i,r),!0;case"dragenter":return Re=Fe(Re,t,e,n,i,r),!0;case"mouseover":return xe=Fe(xe,t,e,n,i,r),!0;case"pointerover":var o=r.pointerId;return Te.set(o,Fe(Te.get(o)||null,t,e,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Pe.set(o,Fe(Pe.get(o)||null,t,e,n,i,r)),!0}return!1}(r,t,e,n,i))i.stopPropagation();else if(Ie(t,i),4&e&&-1<Be.indexOf(t)){for(;null!==r;){var o=mr(r);if(null!==o&&be(o),null===(o=Ye(t,e,n,i))&&Wi(t,e,i,Ze,n),o===r)break;r=o}null!==r&&i.stopPropagation()}else Wi(t,e,i,null,n)}}var Ze=null;function Ye(t,e,n,i){if(Ze=null,null!==(t=vr(t=wt(i))))if(null===(e=Ut(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=Wt(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Ze=t,null}function Qe(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jt()){case Kt:return 1;case te:return 4;case ee:case ne:return 16;case ie:return 536870912;default:return 16}default:return 16}}var $e=null,Xe=null,Je=null;function Ke(){if(Je)return Je;var t,e,n=Xe,i=n.length,r="value"in $e?$e.value:$e.textContent,o=r.length;for(t=0;t<i&&n[t]===r[t];t++);var a=i-t;for(e=1;e<=a&&n[i-e]===r[o-e];e++);return Je=r.slice(t,1<e?1-e:void 0)}function tn(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function en(){return!0}function nn(){return!1}function rn(t){function e(e,n,i,r,o){for(var a in this._reactName=e,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?en:nn,this.isPropagationStopped=nn,this}return D(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),e}var on,an,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(ln),hn=D({},ln,{view:0,detail:0}),cn=rn(hn),pn=D({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==sn&&(sn&&"mousemove"===t.type?(on=t.screenX-sn.screenX,an=t.screenY-sn.screenY):an=on=0,sn=t),on)},movementY:function(t){return"movementY"in t?t.movementY:an}}),dn=rn(pn),fn=rn(D({},pn,{dataTransfer:0})),yn=rn(D({},hn,{relatedTarget:0})),gn=rn(D({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=D({},ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),mn=rn(vn),_n=rn(D({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=En[t])&&!!e[t]}function An(){return kn}var Mn=D({},hn,{key:function(t){if(t.key){var e=bn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=tn(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?wn[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(t){return"keypress"===t.type?tn(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?tn(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Cn=rn(Mn),Sn=rn(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=rn(D({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),xn=rn(D({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},pn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=rn(Tn),Ln=[9,13,27,32],Bn=h&&"CompositionEvent"in window,In=null;h&&"documentMode"in document&&(In=document.documentMode);var Fn=h&&"TextEvent"in window&&!In,On=h&&(!Bn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),zn=!1;function Nn(t,e){switch(t){case"keyup":return-1!==Ln.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Gn=!1,Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Un[t.type]:"textarea"===e}function qn(t,e,n,i){Ct(i),0<(e=Vi(e,"onChange")).length&&(n=new un("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Vn=null,Hn=null;function Zn(t){Di(t,0)}function Yn(t){if(Z(_r(t)))return t}function Qn(t,e){if("change"===t)return e}var $n=!1;if(h){var Xn;if(h){var Jn="oninput"in document;if(!Jn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Jn="function"==typeof Kn.oninput}Xn=Jn}else Xn=!1;$n=Xn&&(!document.documentMode||9<document.documentMode)}function ti(){Vn&&(Vn.detachEvent("onpropertychange",ei),Hn=Vn=null)}function ei(t){if("value"===t.propertyName&&Yn(Hn)){var e=[];qn(e,Hn,t,wt(t)),Pt(Zn,e)}}function ni(t,e,n){"focusin"===t?(ti(),Hn=n,(Vn=e).attachEvent("onpropertychange",ei)):"focusout"===t&&ti()}function ii(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Yn(Hn)}function ri(t,e){if("click"===t)return Yn(e)}function oi(t,e){if("input"===t||"change"===t)return Yn(e)}var ai="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function si(t,e){if(ai(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!c.call(e,r)||!ai(t[r],e[r]))return!1}return!0}function li(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ui(t,e){var n,i=li(t);for(t=0;i;){if(3===i.nodeType){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=li(i)}}function hi(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hi(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function ci(){for(var t=window,e=Y();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=Y((t=e.contentWindow).document)}return e}function pi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function di(t){var e=ci(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hi(n.ownerDocument.documentElement,n)){if(null!==i&&pi(n))if(e=i.start,void 0===(t=i.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=void 0===i.end?o:Math.min(i.end,r),!t.extend&&o>i&&(r=i,i=o,o=r),r=ui(n,o);var a=ui(n,i);r&&a&&(1!==t.rangeCount||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(r.node,r.offset),t.removeAllRanges(),o>i?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var fi=h&&"documentMode"in document&&11>=document.documentMode,yi=null,gi=null,vi=null,mi=!1;function _i(t,e,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mi||null==yi||yi!==Y(i)||(i="selectionStart"in(i=yi)&&pi(i)?{start:i.selectionStart,end:i.selectionEnd}:{anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},vi&&si(vi,i)||(vi=i,0<(i=Vi(gi,"onSelect")).length&&(e=new un("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=yi)))}function bi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var wi={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Ei={},ki={};function Ai(t){if(Ei[t])return Ei[t];if(!wi[t])return t;var e,n=wi[t];for(e in n)if(n.hasOwnProperty(e)&&e in ki)return Ei[t]=n[e];return t}h&&(ki=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);var Mi=Ai("animationend"),Ci=Ai("animationiteration"),Si=Ai("animationstart"),Ri=Ai("transitionend"),xi=new Map,Ti="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pi(t,e){xi.set(t,e),l(e,[t])}for(var Li=0;Li<Ti.length;Li++){var Bi=Ti[Li];Pi(Bi.toLowerCase(),"on"+(Bi[0].toUpperCase()+Bi.slice(1)))}Pi(Mi,"onAnimationEnd"),Pi(Ci,"onAnimationIteration"),Pi(Si,"onAnimationStart"),Pi("dblclick","onDoubleClick"),Pi("focusin","onFocus"),Pi("focusout","onBlur"),Pi(Ri,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ii));function Oi(t,e,n){var i=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,i,r,a,s,l,u){if(Gt.apply(this,arguments),Ot){if(!Ot)throw Error(o(198));var h=Dt;Ot=!1,Dt=null,zt||(zt=!0,Nt=h)}}(i,e,void 0,t),t.currentTarget=null}function Di(t,e){e=!!(4&e);for(var n=0;n<t.length;n++){var i=t[n],r=i.event;i=i.listeners;t:{var o=void 0;if(e)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&r.isPropagationStopped())break t;Oi(r,s,u),o=l}else for(a=0;a<i.length;a++){if(l=(s=i[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&r.isPropagationStopped())break t;Oi(r,s,u),o=l}}}if(zt)throw t=Nt,zt=!1,Nt=null,t}function zi(t,e){var n=e[fr];void 0===n&&(n=e[fr]=new Set);var i=t+"__bubble";n.has(i)||(Ui(e,t,2,!1),n.add(i))}function Ni(t,e,n){var i=0;e&&(i|=4),Ui(n,t,i,e)}var ji="_reactListening"+Math.random().toString(36).slice(2);function Gi(t){if(!t[ji]){t[ji]=!0,a.forEach(function(e){"selectionchange"!==e&&(Fi.has(e)||Ni(e,!1,t),Ni(e,!0,t))});var e=9===t.nodeType?t:t.ownerDocument;null===e||e[ji]||(e[ji]=!0,Ni("selectionchange",!1,e))}}function Ui(t,e,n,i){switch(Qe(e)){case 1:var r=qe;break;case 4:r=Ve;break;default:r=He}n=r.bind(null,e,n,t),r=void 0,!Bt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(r=!0),i?void 0!==r?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):void 0!==r?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Wi(t,e,n,i,r){var o=i;if(!(1&e||2&e||null===i))t:for(;;){if(null===i)return;var a=i.tag;if(3===a||4===a){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===a)for(a=i.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;a=a.return}for(;null!==s;){if(null===(a=vr(s)))return;if(5===(l=a.tag)||6===l){i=o=a;continue t}s=s.parentNode}}i=i.return}Pt(function(){var i=o,r=wt(n),a=[];t:{var s=xi.get(t);if(void 0!==s){var l=un,u=t;switch(t){case"keypress":if(0===tn(n))break t;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Mi:case Ci:case Si:l=gn;break;case Ri:l=xn;break;case"scroll":l=cn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=mn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Sn}var h=!!(4&e),c=!h&&"scroll"===t,p=h?null!==s?s+"Capture":null:s;h=[];for(var d,f=i;null!==f;){var y=(d=f).stateNode;if(5===d.tag&&null!==y&&(d=y,null!==p&&null!=(y=Lt(f,p))&&h.push(qi(f,y,d))),c)break;f=f.return}0<h.length&&(s=new l(s,u,null,n,r),a.push({event:s,listeners:h}))}}if(!(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||n===bt||!(u=n.relatedTarget||n.fromElement)||!vr(u)&&!u[dr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(u=(u=n.relatedTarget||n.toElement)?vr(u):null)&&(u!==(c=Ut(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=i),l!==u)){if(h=dn,y="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==t&&"pointerover"!==t||(h=Sn,y="onPointerLeave",p="onPointerEnter",f="pointer"),c=null==l?s:_r(l),d=null==u?s:_r(u),(s=new h(y,f+"leave",l,n,r)).target=c,s.relatedTarget=d,y=null,vr(r)===i&&((h=new h(p,f+"enter",u,n,r)).target=d,h.relatedTarget=c,y=h),c=y,l&&u)t:{for(p=u,f=0,d=h=l;d;d=Hi(d))f++;for(d=0,y=p;y;y=Hi(y))d++;for(;0<f-d;)h=Hi(h),f--;for(;0<d-f;)p=Hi(p),d--;for(;f--;){if(h===p||null!==p&&h===p.alternate)break t;h=Hi(h),p=Hi(p)}h=null}else h=null;null!==l&&Zi(a,s,l,h,!1),null!==u&&null!==c&&Zi(a,c,u,h,!0)}if("select"===(l=(s=i?_r(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Wn(s))if($n)g=oi;else{g=ii;var v=ni}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ri);switch(g&&(g=g(t,i))?qn(a,g,n,r):(v&&v(t,s,i),"focusout"===t&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&tt(s,"number",s.value)),v=i?_r(i):window,t){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(yi=v,gi=i,vi=null);break;case"focusout":vi=gi=yi=null;break;case"mousedown":mi=!0;break;case"contextmenu":case"mouseup":case"dragend":mi=!1,_i(a,n,r);break;case"selectionchange":if(fi)break;case"keydown":case"keyup":_i(a,n,r)}var m;if(Bn)t:{switch(t){case"compositionstart":var _="onCompositionStart";break t;case"compositionend":_="onCompositionEnd";break t;case"compositionupdate":_="onCompositionUpdate";break t}_=void 0}else Gn?Nn(t,n)&&(_="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(_="onCompositionStart");_&&(On&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Gn&&(m=Ke()):(Xe="value"in($e=r)?$e.value:$e.textContent,Gn=!0)),0<(v=Vi(i,_)).length&&(_=new _n(_,t,null,n,r),a.push({event:_,listeners:v}),(m||null!==(m=jn(n)))&&(_.data=m))),(m=Fn?function(t,e){switch(t){case"compositionend":return jn(e);case"keypress":return 32!==e.which?null:(zn=!0,Dn);case"textInput":return(t=e.data)===Dn&&zn?null:t;default:return null}}(t,n):function(t,e){if(Gn)return"compositionend"===t||!Bn&&Nn(t,e)?(t=Ke(),Je=Xe=$e=null,Gn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return On&&"ko"!==e.locale?null:e.data}}(t,n))&&0<(i=Vi(i,"onBeforeInput")).length&&(r=new _n("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:i}),r.data=m)}Di(a,e)})}function qi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Vi(t,e){for(var n=e+"Capture",i=[];null!==t;){var r=t,o=r.stateNode;5===r.tag&&null!==o&&(r=o,null!=(o=Lt(t,n))&&i.unshift(qi(t,o,r)),null!=(o=Lt(t,e))&&i.push(qi(t,o,r))),t=t.return}return i}function Hi(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Zi(t,e,n,i,r){for(var o=e._reactName,a=[];null!==n&&n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==u&&(s=u,r?null!=(l=Lt(n,o))&&a.unshift(qi(n,l,s)):r||null!=(l=Lt(n,o))&&a.push(qi(n,l,s))),n=n.return}0!==a.length&&t.push({event:e,listeners:a})}var Yi=/\r\n?/g,Qi=/\u0000|\uFFFD/g;function $i(t){return("string"==typeof t?t:""+t).replace(Yi,"\n").replace(Qi,"")}function Xi(t,e,n){if(e=$i(e),$i(t)!==e&&n)throw Error(o(425))}function Ji(){}var Ki=null,tr=null;function er(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var nr="function"==typeof setTimeout?setTimeout:void 0,ir="function"==typeof clearTimeout?clearTimeout:void 0,rr="function"==typeof Promise?Promise:void 0,or="function"==typeof queueMicrotask?queueMicrotask:void 0!==rr?function(t){return rr.resolve(null).then(t).catch(ar)}:nr;function ar(t){setTimeout(function(){throw t})}function sr(t,e){var n=e,i=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return t.removeChild(r),void Ge(e);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Ge(e)}function lr(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function ur(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var hr=Math.random().toString(36).slice(2),cr="__reactFiber$"+hr,pr="__reactProps$"+hr,dr="__reactContainer$"+hr,fr="__reactEvents$"+hr,yr="__reactListeners$"+hr,gr="__reactHandles$"+hr;function vr(t){var e=t[cr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[dr]||n[cr]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=ur(t);null!==t;){if(n=t[cr])return n;t=ur(t)}return e}n=(t=n).parentNode}return null}function mr(t){return!(t=t[cr]||t[dr])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function _r(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(o(33))}function br(t){return t[pr]||null}var wr=[],Er=-1;function kr(t){return{current:t}}function Ar(t){0>Er||(t.current=wr[Er],wr[Er]=null,Er--)}function Mr(t,e){Er++,wr[Er]=t.current,t.current=e}var Cr={},Sr=kr(Cr),Rr=kr(!1),xr=Cr;function Tr(t,e){var n=t.type.contextTypes;if(!n)return Cr;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=e[r];return i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Pr(t){return null!=t.childContextTypes}function Lr(){Ar(Rr),Ar(Sr)}function Br(t,e,n){if(Sr.current!==Cr)throw Error(o(168));Mr(Sr,e),Mr(Rr,n)}function Ir(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in e))throw Error(o(108,W(t)||"Unknown",r));return D({},n,i)}function Fr(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Cr,xr=Sr.current,Mr(Sr,t),Mr(Rr,Rr.current),!0}function Or(t,e,n){var i=t.stateNode;if(!i)throw Error(o(169));n?(t=Ir(t,e,xr),i.__reactInternalMemoizedMergedChildContext=t,Ar(Rr),Ar(Sr),Mr(Sr,t)):Ar(Rr),Mr(Rr,n)}var Dr=null,zr=!1,Nr=!1;function jr(t){null===Dr?Dr=[t]:Dr.push(t)}function Gr(){if(!Nr&&null!==Dr){Nr=!0;var t=0,e=me;try{var n=Dr;for(me=1;t<n.length;t++){var i=n[t];do{i=i(!0)}while(null!==i)}Dr=null,zr=!1}catch(e){throw null!==Dr&&(Dr=Dr.slice(t+1)),Zt(Kt,Gr),e}finally{me=e,Nr=!1}}return null}var Ur=[],Wr=0,qr=null,Vr=0,Hr=[],Zr=0,Yr=null,Qr=1,$r="";function Xr(t,e){Ur[Wr++]=Vr,Ur[Wr++]=qr,qr=t,Vr=e}function Jr(t,e,n){Hr[Zr++]=Qr,Hr[Zr++]=$r,Hr[Zr++]=Yr,Yr=t;var i=Qr;t=$r;var r=32-ae(i)-1;i&=~(1<<r),n+=1;var o=32-ae(e)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Qr=1<<32-ae(e)+r|n<<r|i,$r=o+t}else Qr=1<<o|n<<r|i,$r=t}function Kr(t){null!==t.return&&(Xr(t,1),Jr(t,1,0))}function to(t){for(;t===qr;)qr=Ur[--Wr],Ur[Wr]=null,Vr=Ur[--Wr],Ur[Wr]=null;for(;t===Yr;)Yr=Hr[--Zr],Hr[Zr]=null,$r=Hr[--Zr],Hr[Zr]=null,Qr=Hr[--Zr],Hr[Zr]=null}var eo=null,no=null,io=!1,ro=null;function oo(t,e){var n=xu(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function ao(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,eo=t,no=lr(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,eo=t,no=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==Yr?{id:Qr,overflow:$r}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=xu(18,null,null,0)).stateNode=e,n.return=t,t.child=n,eo=t,no=null,!0);default:return!1}}function so(t){return!(!(1&t.mode)||128&t.flags)}function lo(t){if(io){var e=no;if(e){var n=e;if(!ao(t,e)){if(so(t))throw Error(o(418));e=lr(n.nextSibling);var i=eo;e&&ao(t,e)?oo(i,n):(t.flags=-4097&t.flags|2,io=!1,eo=t)}}else{if(so(t))throw Error(o(418));t.flags=-4097&t.flags|2,io=!1,eo=t}}}function uo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;eo=t}function ho(t){if(t!==eo)return!1;if(!io)return uo(t),io=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!er(t.type,t.memoizedProps)),e&&(e=no)){if(so(t))throw co(),Error(o(418));for(;e;)oo(t,e),e=lr(e.nextSibling)}if(uo(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){no=lr(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}no=null}}else no=eo?lr(t.stateNode.nextSibling):null;return!0}function co(){for(var t=no;t;)t=lr(t.nextSibling)}function po(){no=eo=null,io=!1}function fo(t){null===ro?ro=[t]:ro.push(t)}var yo=b.ReactCurrentBatchConfig;function go(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var i=n.stateNode}if(!i)throw Error(o(147,t));var r=i,a=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=r.refs;null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}if("string"!=typeof t)throw Error(o(284));if(!n._owner)throw Error(o(290,t))}return t}function vo(t,e){throw t=Object.prototype.toString.call(e),Error(o(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function mo(t){return(0,t._init)(t._payload)}function _o(t){function e(e,n){if(t){var i=e.deletions;null===i?(e.deletions=[n],e.flags|=16):i.push(n)}}function n(n,i){if(!t)return null;for(;null!==i;)e(n,i),i=i.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(t,e){return(t=Pu(t,e)).index=0,t.sibling=null,t}function a(e,n,i){return e.index=i,t?null!==(i=e.alternate)?(i=i.index)<n?(e.flags|=2,n):i:(e.flags|=2,n):(e.flags|=1048576,n)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,n,i){return null===e||6!==e.tag?((e=Fu(n,t.mode,i)).return=t,e):((e=r(e,n)).return=t,e)}function u(t,e,n,i){var o=n.type;return o===k?c(t,e,n.props.children,i,n.key):null!==e&&(e.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===L&&mo(o)===e.type)?((i=r(e,n.props)).ref=go(t,e,n),i.return=t,i):((i=Lu(n.type,n.key,n.props,null,t.mode,i)).ref=go(t,e,n),i.return=t,i)}function h(t,e,n,i){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ou(n,t.mode,i)).return=t,e):((e=r(e,n.children||[])).return=t,e)}function c(t,e,n,i,o){return null===e||7!==e.tag?((e=Bu(n,t.mode,i,o)).return=t,e):((e=r(e,n)).return=t,e)}function p(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=Fu(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case w:return(n=Lu(e.type,e.key,e.props,null,t.mode,n)).ref=go(t,null,e),n.return=t,n;case E:return(e=Ou(e,t.mode,n)).return=t,e;case L:return p(t,(0,e._init)(e._payload),n)}if(et(e)||F(e))return(e=Bu(e,t.mode,n,null)).return=t,e;vo(t,e)}return null}function d(t,e,n,i){var r=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:l(t,e,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===r?u(t,e,n,i):null;case E:return n.key===r?h(t,e,n,i):null;case L:return d(t,e,(r=n._init)(n._payload),i)}if(et(n)||F(n))return null!==r?null:c(t,e,n,i,null);vo(t,n)}return null}function f(t,e,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return l(e,t=t.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case w:return u(e,t=t.get(null===i.key?n:i.key)||null,i,r);case E:return h(e,t=t.get(null===i.key?n:i.key)||null,i,r);case L:return f(t,e,n,(0,i._init)(i._payload),r)}if(et(i)||F(i))return c(e,t=t.get(n)||null,i,r,null);vo(e,i)}return null}function y(r,o,s,l){for(var u=null,h=null,c=o,y=o=0,g=null;null!==c&&y<s.length;y++){c.index>y?(g=c,c=null):g=c.sibling;var v=d(r,c,s[y],l);if(null===v){null===c&&(c=g);break}t&&c&&null===v.alternate&&e(r,c),o=a(v,o,y),null===h?u=v:h.sibling=v,h=v,c=g}if(y===s.length)return n(r,c),io&&Xr(r,y),u;if(null===c){for(;y<s.length;y++)null!==(c=p(r,s[y],l))&&(o=a(c,o,y),null===h?u=c:h.sibling=c,h=c);return io&&Xr(r,y),u}for(c=i(r,c);y<s.length;y++)null!==(g=f(c,r,y,s[y],l))&&(t&&null!==g.alternate&&c.delete(null===g.key?y:g.key),o=a(g,o,y),null===h?u=g:h.sibling=g,h=g);return t&&c.forEach(function(t){return e(r,t)}),io&&Xr(r,y),u}function g(r,s,l,u){var h=F(l);if("function"!=typeof h)throw Error(o(150));if(null==(l=h.call(l)))throw Error(o(151));for(var c=h=null,y=s,g=s=0,v=null,m=l.next();null!==y&&!m.done;g++,m=l.next()){y.index>g?(v=y,y=null):v=y.sibling;var _=d(r,y,m.value,u);if(null===_){null===y&&(y=v);break}t&&y&&null===_.alternate&&e(r,y),s=a(_,s,g),null===c?h=_:c.sibling=_,c=_,y=v}if(m.done)return n(r,y),io&&Xr(r,g),h;if(null===y){for(;!m.done;g++,m=l.next())null!==(m=p(r,m.value,u))&&(s=a(m,s,g),null===c?h=m:c.sibling=m,c=m);return io&&Xr(r,g),h}for(y=i(r,y);!m.done;g++,m=l.next())null!==(m=f(y,r,g,m.value,u))&&(t&&null!==m.alternate&&y.delete(null===m.key?g:m.key),s=a(m,s,g),null===c?h=m:c.sibling=m,c=m);return t&&y.forEach(function(t){return e(r,t)}),io&&Xr(r,g),h}return function t(i,o,a,l){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:t:{for(var u=a.key,h=o;null!==h;){if(h.key===u){if((u=a.type)===k){if(7===h.tag){n(i,h.sibling),(o=r(h,a.props.children)).return=i,i=o;break t}}else if(h.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===L&&mo(u)===h.type){n(i,h.sibling),(o=r(h,a.props)).ref=go(i,h,a),o.return=i,i=o;break t}n(i,h);break}e(i,h),h=h.sibling}a.type===k?((o=Bu(a.props.children,i.mode,l,a.key)).return=i,i=o):((l=Lu(a.type,a.key,a.props,null,i.mode,l)).ref=go(i,o,a),l.return=i,i=l)}return s(i);case E:t:{for(h=a.key;null!==o;){if(o.key===h){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(i,o.sibling),(o=r(o,a.children||[])).return=i,i=o;break t}n(i,o);break}e(i,o),o=o.sibling}(o=Ou(a,i.mode,l)).return=i,i=o}return s(i);case L:return t(i,o,(h=a._init)(a._payload),l)}if(et(a))return y(i,o,a,l);if(F(a))return g(i,o,a,l);vo(i,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(i,o.sibling),(o=r(o,a)).return=i,i=o):(n(i,o),(o=Fu(a,i.mode,l)).return=i,i=o),s(i)):n(i,o)}}var bo=_o(!0),wo=_o(!1),Eo=kr(null),ko=null,Ao=null,Mo=null;function Co(){Mo=Ao=ko=null}function So(t){var e=Eo.current;Ar(Eo),t._currentValue=e}function Ro(t,e,n){for(;null!==t;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==i&&(i.childLanes|=e)):null!==i&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function xo(t,e){ko=t,Mo=Ao=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!==(t.lanes&e)&&(ms=!0),t.firstContext=null)}function To(t){var e=t._currentValue;if(Mo!==t)if(t={context:t,memoizedValue:e,next:null},null===Ao){if(null===ko)throw Error(o(308));Ao=t,ko.dependencies={lanes:0,firstContext:t}}else Ao=Ao.next=t;return e}var Po=null;function Lo(t){null===Po?Po=[t]:Po.push(t)}function Bo(t,e,n,i){var r=e.interleaved;return null===r?(n.next=n,Lo(e)):(n.next=r.next,r.next=n),e.interleaved=n,Io(t,i)}function Io(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Fo=!1;function Oo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Do(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function zo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function No(t,e,n){var i=t.updateQueue;if(null===i)return null;if(i=i.shared,2&Cl){var r=i.pending;return null===r?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Io(t,n)}return null===(r=i.interleaved)?(e.next=e,Lo(i)):(e.next=r.next,r.next=e),i.interleaved=e,Io(t,n)}function jo(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,4194240&n)){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,ve(t,n)}}function Go(t,e){var n=t.updateQueue,i=t.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=e:o=o.next=e}else r=o=e;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Uo(t,e,n,i){var r=t.updateQueue;Fo=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var h=t.alternate;null!==h&&(s=(h=h.updateQueue).lastBaseUpdate)!==a&&(null===s?h.firstBaseUpdate=u:s.next=u,h.lastBaseUpdate=l)}if(null!==o){var c=r.baseState;for(a=0,h=u=l=null,s=o;;){var p=s.lane,d=s.eventTime;if((i&p)===p){null!==h&&(h=h.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var f=t,y=s;switch(p=e,d=n,y.tag){case 1:if("function"==typeof(f=y.payload)){c=f.call(d,c,p);break t}c=f;break t;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(p="function"==typeof(f=y.payload)?f.call(d,c,p):f))break t;c=D({},c,p);break t;case 2:Fo=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(p=r.effects)?r.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===h?(u=h=d,l=c):h=h.next=d,a|=p;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(p=s).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}if(null===h&&(l=c),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=h,null!==(e=r.shared.interleaved)){r=e;do{a|=r.lane,r=r.next}while(r!==e)}else null===o&&(r.shared.lanes=0);Il|=a,t.lanes=a,t.memoizedState=c}}function Wo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var i=t[e],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(o(191,r));r.call(i)}}}var qo={},Vo=kr(qo),Ho=kr(qo),Zo=kr(qo);function Yo(t){if(t===qo)throw Error(o(174));return t}function Qo(t,e){switch(Mr(Zo,e),Mr(Ho,t),Mr(Vo,qo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Ar(Vo),Mr(Vo,e)}function $o(){Ar(Vo),Ar(Ho),Ar(Zo)}function Xo(t){Yo(Zo.current);var e=Yo(Vo.current),n=lt(e,t.type);e!==n&&(Mr(Ho,t),Mr(Vo,n))}function Jo(t){Ho.current===t&&(Ar(Vo),Ar(Ho))}var Ko=kr(0);function ta(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(128&e.flags)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ea=[];function na(){for(var t=0;t<ea.length;t++)ea[t]._workInProgressVersionPrimary=null;ea.length=0}var ia=b.ReactCurrentDispatcher,ra=b.ReactCurrentBatchConfig,oa=0,aa=null,sa=null,la=null,ua=!1,ha=!1,ca=0,pa=0;function da(){throw Error(o(321))}function fa(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ai(t[n],e[n]))return!1;return!0}function ya(t,e,n,i,r,a){if(oa=a,aa=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ia.current=null===t||null===t.memoizedState?Ja:Ka,t=n(i,r),ha){a=0;do{if(ha=!1,ca=0,25<=a)throw Error(o(301));a+=1,la=sa=null,e.updateQueue=null,ia.current=ts,t=n(i,r)}while(ha)}if(ia.current=Xa,e=null!==sa&&null!==sa.next,oa=0,la=sa=aa=null,ua=!1,e)throw Error(o(300));return t}function ga(){var t=0!==ca;return ca=0,t}function va(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?aa.memoizedState=la=t:la=la.next=t,la}function ma(){if(null===sa){var t=aa.alternate;t=null!==t?t.memoizedState:null}else t=sa.next;var e=null===la?aa.memoizedState:la.next;if(null!==e)la=e,sa=t;else{if(null===t)throw Error(o(310));t={memoizedState:(sa=t).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===la?aa.memoizedState=la=t:la=la.next=t}return la}function _a(t,e){return"function"==typeof e?e(t):e}function ba(t){var e=ma(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var i=sa,r=i.baseQueue,a=n.pending;if(null!==a){if(null!==r){var s=r.next;r.next=a.next,a.next=s}i.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,i=i.baseState;var l=s=null,u=null,h=a;do{var c=h.lane;if((oa&c)===c)null!==u&&(u=u.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),i=h.hasEagerState?h.eagerState:t(i,h.action);else{var p={lane:c,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};null===u?(l=u=p,s=i):u=u.next=p,aa.lanes|=c,Il|=c}h=h.next}while(null!==h&&h!==a);null===u?s=i:u.next=l,ai(i,e.memoizedState)||(ms=!0),e.memoizedState=i,e.baseState=s,e.baseQueue=u,n.lastRenderedState=i}if(null!==(t=n.interleaved)){r=t;do{a=r.lane,aa.lanes|=a,Il|=a,r=r.next}while(r!==t)}else null===r&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function wa(t){var e=ma(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var i=n.dispatch,r=n.pending,a=e.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{a=t(a,s.action),s=s.next}while(s!==r);ai(a,e.memoizedState)||(ms=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,i]}function Ea(){}function ka(t,e){var n=aa,i=ma(),r=e(),a=!ai(i.memoizedState,r);if(a&&(i.memoizedState=r,ms=!0),i=i.queue,Fa(Ca.bind(null,n,i,t),[t]),i.getSnapshot!==e||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Ta(9,Ma.bind(null,n,i,r,e),void 0,null),null===Sl)throw Error(o(349));30&oa||Aa(n,e,r)}return r}function Aa(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=aa.updateQueue)?(e={lastEffect:null,stores:null},aa.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function Ma(t,e,n,i){e.value=n,e.getSnapshot=i,Sa(e)&&Ra(t)}function Ca(t,e,n){return n(function(){Sa(e)&&Ra(t)})}function Sa(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ai(t,n)}catch(t){return!0}}function Ra(t){var e=Io(t,1);null!==e&&tu(e,t,1,-1)}function xa(t){var e=va();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:t},e.queue=t,t=t.dispatch=Za.bind(null,aa,t),[e.memoizedState,t]}function Ta(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},null===(e=aa.updateQueue)?(e={lastEffect:null,stores:null},aa.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Pa(){return ma().memoizedState}function La(t,e,n,i){var r=va();aa.flags|=t,r.memoizedState=Ta(1|e,n,void 0,void 0===i?null:i)}function Ba(t,e,n,i){var r=ma();i=void 0===i?null:i;var o=void 0;if(null!==sa){var a=sa.memoizedState;if(o=a.destroy,null!==i&&fa(i,a.deps))return void(r.memoizedState=Ta(e,n,o,i))}aa.flags|=t,r.memoizedState=Ta(1|e,n,o,i)}function Ia(t,e){return La(8390656,8,t,e)}function Fa(t,e){return Ba(2048,8,t,e)}function Oa(t,e){return Ba(4,2,t,e)}function Da(t,e){return Ba(4,4,t,e)}function za(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function Na(t,e,n){return n=null!=n?n.concat([t]):null,Ba(4,4,za.bind(null,e,t),n)}function ja(){}function Ga(t,e){var n=ma();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&fa(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Ua(t,e){var n=ma();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&fa(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function Wa(t,e,n){return 21&oa?(ai(n,e)||(n=ye(),aa.lanes|=n,Il|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ms=!0),t.memoizedState=n)}function qa(t,e){var n=me;me=0!==n&&4>n?n:4,t(!0);var i=ra.transition;ra.transition={};try{t(!1),e()}finally{me=n,ra.transition=i}}function Va(){return ma().memoizedState}function Ha(t,e,n){var i=Kl(t);n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(t)?Qa(e,n):null!==(n=Bo(t,e,n,i))&&(tu(n,t,i,Jl()),$a(n,e,i))}function Za(t,e,n){var i=Kl(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(t))Qa(e,r);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,ai(s,a)){var l=e.interleaved;return null===l?(r.next=r,Lo(e)):(r.next=l.next,l.next=r),void(e.interleaved=r)}}catch(t){}null!==(n=Bo(t,e,r,i))&&(tu(n,t,i,r=Jl()),$a(n,e,i))}}function Ya(t){var e=t.alternate;return t===aa||null!==e&&e===aa}function Qa(t,e){ha=ua=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function $a(t,e,n){if(4194240&n){var i=e.lanes;n|=i&=t.pendingLanes,e.lanes=n,ve(t,n)}}var Xa={readContext:To,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useInsertionEffect:da,useLayoutEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useMutableSource:da,useSyncExternalStore:da,useId:da,unstable_isNewReconciler:!1},Ja={readContext:To,useCallback:function(t,e){return va().memoizedState=[t,void 0===e?null:e],t},useContext:To,useEffect:Ia,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,La(4194308,4,za.bind(null,e,t),n)},useLayoutEffect:function(t,e){return La(4194308,4,t,e)},useInsertionEffect:function(t,e){return La(4,2,t,e)},useMemo:function(t,e){var n=va();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=va();return e=void 0!==n?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=Ha.bind(null,aa,t),[i.memoizedState,t]},useRef:function(t){return t={current:t},va().memoizedState=t},useState:xa,useDebugValue:ja,useDeferredValue:function(t){return va().memoizedState=t},useTransition:function(){var t=xa(!1),e=t[0];return t=qa.bind(null,t[1]),va().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=aa,r=va();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=e(),null===Sl)throw Error(o(349));30&oa||Aa(i,e,n)}r.memoizedState=n;var a={value:n,getSnapshot:e};return r.queue=a,Ia(Ca.bind(null,i,a,t),[t]),i.flags|=2048,Ta(9,Ma.bind(null,i,a,n,e),void 0,null),n},useId:function(){var t=va(),e=Sl.identifierPrefix;if(io){var n=$r;e=":"+e+"R"+(n=(Qr&~(1<<32-ae(Qr)-1)).toString(32)+n),0<(n=ca++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=pa++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Ka={readContext:To,useCallback:Ga,useContext:To,useEffect:Fa,useImperativeHandle:Na,useInsertionEffect:Oa,useLayoutEffect:Da,useMemo:Ua,useReducer:ba,useRef:Pa,useState:function(){return ba(_a)},useDebugValue:ja,useDeferredValue:function(t){return Wa(ma(),sa.memoizedState,t)},useTransition:function(){return[ba(_a)[0],ma().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},ts={readContext:To,useCallback:Ga,useContext:To,useEffect:Fa,useImperativeHandle:Na,useInsertionEffect:Oa,useLayoutEffect:Da,useMemo:Ua,useReducer:wa,useRef:Pa,useState:function(){return wa(_a)},useDebugValue:ja,useDeferredValue:function(t){var e=ma();return null===sa?e.memoizedState=t:Wa(e,sa.memoizedState,t)},useTransition:function(){return[wa(_a)[0],ma().memoizedState]},useMutableSource:Ea,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function es(t,e){if(t&&t.defaultProps){for(var n in e=D({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function ns(t,e,n,i){n=null==(n=n(i,e=t.memoizedState))?e:D({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var is={isMounted:function(t){return!!(t=t._reactInternals)&&Ut(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Jl(),r=Kl(t),o=zo(i,r);o.payload=e,null!=n&&(o.callback=n),null!==(e=No(t,o,r))&&(tu(e,t,r,i),jo(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Jl(),r=Kl(t),o=zo(i,r);o.tag=1,o.payload=e,null!=n&&(o.callback=n),null!==(e=No(t,o,r))&&(tu(e,t,r,i),jo(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Jl(),i=Kl(t),r=zo(n,i);r.tag=2,null!=e&&(r.callback=e),null!==(e=No(t,r,i))&&(tu(e,t,i,n),jo(e,t,i))}};function rs(t,e,n,i,r,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(i,o,a):!(e.prototype&&e.prototype.isPureReactComponent&&si(n,i)&&si(r,o))}function os(t,e,n){var i=!1,r=Cr,o=e.contextType;return"object"==typeof o&&null!==o?o=To(o):(r=Pr(e)?xr:Sr.current,o=(i=null!=(i=e.contextTypes))?Tr(t,r):Cr),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=is,t.stateNode=e,e._reactInternals=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=o),e}function as(t,e,n,i){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,i),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&is.enqueueReplaceState(e,e.state,null)}function ss(t,e,n,i){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs={},Oo(t);var o=e.contextType;"object"==typeof o&&null!==o?r.context=To(o):(o=Pr(e)?xr:Sr.current,r.context=Tr(t,o)),r.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(ns(t,e,o,n),r.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(e=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),e!==r.state&&is.enqueueReplaceState(r,r.state,null),Uo(t,n,r,i),r.state=t.memoizedState),"function"==typeof r.componentDidMount&&(t.flags|=4194308)}function ls(t,e){try{var n="",i=e;do{n+=G(i),i=i.return}while(i);var r=n}catch(t){r="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:r,digest:null}}function us(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function hs(t,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var cs="function"==typeof WeakMap?WeakMap:Map;function ps(t,e,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Ul||(Ul=!0,Wl=i),hs(0,e)},n}function ds(t,e,n){(n=zo(-1,n)).tag=3;var i=t.type.getDerivedStateFromError;if("function"==typeof i){var r=e.value;n.payload=function(){return i(r)},n.callback=function(){hs(0,e)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){hs(0,e),"function"!=typeof i&&(null===ql?ql=new Set([this]):ql.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function fs(t,e,n){var i=t.pingCache;if(null===i){i=t.pingCache=new cs;var r=new Set;i.set(e,r)}else void 0===(r=i.get(e))&&(r=new Set,i.set(e,r));r.has(n)||(r.add(n),t=ku.bind(null,t,e,n),e.then(t,t))}function ys(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function gs(t,e,n,i,r){return 1&t.mode?(t.flags|=65536,t.lanes=r,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=zo(-1,1)).tag=2,No(n,e,1))),n.lanes|=1),t)}var vs=b.ReactCurrentOwner,ms=!1;function _s(t,e,n,i){e.child=null===t?wo(e,null,n,i):bo(e,t.child,n,i)}function bs(t,e,n,i,r){n=n.render;var o=e.ref;return xo(e,r),i=ya(t,e,n,i,o,r),n=ga(),null===t||ms?(io&&n&&Kr(e),e.flags|=1,_s(t,e,i,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Us(t,e,r))}function ws(t,e,n,i,r){if(null===t){var o=n.type;return"function"!=typeof o||Tu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Lu(n.type,null,i,e,e.mode,r)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Es(t,e,o,i,r))}if(o=t.child,0===(t.lanes&r)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:si)(a,i)&&t.ref===e.ref)return Us(t,e,r)}return e.flags|=1,(t=Pu(o,i)).ref=e.ref,t.return=e,e.child=t}function Es(t,e,n,i,r){if(null!==t){var o=t.memoizedProps;if(si(o,i)&&t.ref===e.ref){if(ms=!1,e.pendingProps=i=o,0===(t.lanes&r))return e.lanes=t.lanes,Us(t,e,r);131072&t.flags&&(ms=!0)}}return Ms(t,e,n,i,r)}function ks(t,e,n){var i=e.pendingProps,r=i.children,o=null!==t?t.memoizedState:null;if("hidden"===i.mode)if(1&e.mode){if(!(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Mr(Pl,Tl),Tl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==o?o.baseLanes:n,Mr(Pl,Tl),Tl|=i}else e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mr(Pl,Tl),Tl|=n;else null!==o?(i=o.baseLanes|n,e.memoizedState=null):i=n,Mr(Pl,Tl),Tl|=i;return _s(t,e,r,n),e.child}function As(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Ms(t,e,n,i,r){var o=Pr(n)?xr:Sr.current;return o=Tr(e,o),xo(e,r),n=ya(t,e,n,i,o,r),i=ga(),null===t||ms?(io&&i&&Kr(e),e.flags|=1,_s(t,e,n,r),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~r,Us(t,e,r))}function Cs(t,e,n,i,r){if(Pr(n)){var o=!0;Fr(e)}else o=!1;if(xo(e,r),null===e.stateNode)Gs(t,e),os(e,n,i),ss(e,n,i,r),i=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?To(u):Tr(e,u=Pr(n)?xr:Sr.current);var h=n.getDerivedStateFromProps,c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate;c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||l!==u)&&as(e,a,i,u),Fo=!1;var p=e.memoizedState;a.state=p,Uo(e,i,a,r),l=e.memoizedState,s!==i||p!==l||Rr.current||Fo?("function"==typeof h&&(ns(e,n,h,i),l=e.memoizedState),(s=Fo||rs(e,n,s,i,p,l,u))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.flags|=4194308)):("function"==typeof a.componentDidMount&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=l),a.props=i,a.state=l,a.context=u,i=s):("function"==typeof a.componentDidMount&&(e.flags|=4194308),i=!1)}else{a=e.stateNode,Do(t,e),s=e.memoizedProps,u=e.type===e.elementType?s:es(e.type,s),a.props=u,c=e.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?To(l):Tr(e,l=Pr(n)?xr:Sr.current);var d=n.getDerivedStateFromProps;(h="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==c||p!==l)&&as(e,a,i,l),Fo=!1,p=e.memoizedState,a.state=p,Uo(e,i,a,r);var f=e.memoizedState;s!==c||p!==f||Rr.current||Fo?("function"==typeof d&&(ns(e,n,d,i),f=e.memoizedState),(u=Fo||rs(e,n,u,i,p,f,l)||!1)?(h||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,f,l)),"function"==typeof a.componentDidUpdate&&(e.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=f),a.props=i,a.state=f,a.context=l,i=u):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),i=!1)}return Ss(t,e,n,i,o,r)}function Ss(t,e,n,i,r,o){As(t,e);var a=!!(128&e.flags);if(!i&&!a)return r&&Or(e,n,!1),Us(t,e,o);i=e.stateNode,vs.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return e.flags|=1,null!==t&&a?(e.child=bo(e,t.child,null,o),e.child=bo(e,null,s,o)):_s(t,e,s,o),e.memoizedState=i.state,r&&Or(e,n,!0),e.child}function Rs(t){var e=t.stateNode;e.pendingContext?Br(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Br(0,e.context,!1),Qo(t,e.containerInfo)}function xs(t,e,n,i,r){return po(),fo(r),e.flags|=256,_s(t,e,n,i),e.child}var Ts,Ps,Ls,Bs={dehydrated:null,treeContext:null,retryLane:0};function Is(t){return{baseLanes:t,cachePool:null,transitions:null}}function Fs(t,e,n){var i,r=e.pendingProps,a=Ko.current,s=!1,l=!!(128&e.flags);if((i=l)||(i=(null===t||null!==t.memoizedState)&&!!(2&a)),i?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),Mr(Ko,1&a),null===t)return lo(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(1&e.mode?"$!"===t.data?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(l=r.children,t=r.fallback,s?(r=e.mode,s=e.child,l={mode:"hidden",children:l},1&r||null===s?s=Iu(l,r,0,null):(s.childLanes=0,s.pendingProps=l),t=Bu(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Is(n),e.memoizedState=Bs,t):Os(e,l));if(null!==(a=t.memoizedState)&&null!==(i=a.dehydrated))return function(t,e,n,i,r,a,s){if(n)return 256&e.flags?(e.flags&=-257,Ds(t,e,s,i=us(Error(o(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=i.fallback,r=e.mode,i=Iu({mode:"visible",children:i.children},r,0,null),(a=Bu(a,r,s,null)).flags|=2,i.return=e,a.return=e,i.sibling=a,e.child=i,1&e.mode&&bo(e,t.child,null,s),e.child.memoizedState=Is(s),e.memoizedState=Bs,a);if(!(1&e.mode))return Ds(t,e,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,Ds(t,e,s,i=us(a=Error(o(419)),i,void 0))}if(l=0!==(s&t.childLanes),ms||l){if(null!==(i=Sl)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|s))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Io(t,r),tu(i,t,r,-1))}return du(),Ds(t,e,s,i=us(Error(o(421))))}return"$?"===r.data?(e.flags|=128,e.child=t.child,e=Mu.bind(null,t),r._reactRetry=e,null):(t=a.treeContext,no=lr(r.nextSibling),eo=e,io=!0,ro=null,null!==t&&(Hr[Zr++]=Qr,Hr[Zr++]=$r,Hr[Zr++]=Yr,Qr=t.id,$r=t.overflow,Yr=e),(e=Os(e,i.children)).flags|=4096,e)}(t,e,l,r,i,a,n);if(s){s=r.fallback,l=e.mode,i=(a=t.child).sibling;var u={mode:"hidden",children:r.children};return 1&l||e.child===a?(r=Pu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((r=e.child).childLanes=0,r.pendingProps=u,e.deletions=null),null!==i?s=Pu(i,s):(s=Bu(s,l,n,null)).flags|=2,s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,l=null===(l=t.child.memoizedState)?Is(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=Bs,r}return t=(s=t.child).sibling,r=Pu(s,{mode:"visible",children:r.children}),!(1&e.mode)&&(r.lanes=n),r.return=e,r.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Os(t,e){return(e=Iu({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Ds(t,e,n,i){return null!==i&&fo(i),bo(e,t.child,null,n),(t=Os(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function zs(t,e,n){t.lanes|=e;var i=t.alternate;null!==i&&(i.lanes|=e),Ro(t.return,e,n)}function Ns(t,e,n,i,r){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function js(t,e,n){var i=e.pendingProps,r=i.revealOrder,o=i.tail;if(_s(t,e,i.children,n),2&(i=Ko.current))i=1&i|2,e.flags|=128;else{if(null!==t&&128&t.flags)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&zs(t,n,e);else if(19===t.tag)zs(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(Mr(Ko,i),1&e.mode)switch(r){case"forwards":for(n=e.child,r=null;null!==n;)null!==(t=n.alternate)&&null===ta(t)&&(r=n),n=n.sibling;null===(n=r)?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Ns(e,!1,r,n,o);break;case"backwards":for(n=null,r=e.child,e.child=null;null!==r;){if(null!==(t=r.alternate)&&null===ta(t)){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Ns(e,!0,n,null,o);break;case"together":Ns(e,!1,null,null,void 0);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function Gs(t,e){!(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Us(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Il|=e.lanes,0===(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Pu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Pu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Ws(t,e){if(!io)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?e||null===t.tail?t.tail=null:t.tail.sibling=null:i.sibling=null}}function qs(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,i=0;if(e)for(var r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=t,r=r.sibling;else for(r=t.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function Vs(t,e,n){var i=e.pendingProps;switch(to(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(e),null;case 1:case 17:return Pr(e.type)&&Lr(),qs(e),null;case 3:return i=e.stateNode,$o(),Ar(Rr),Ar(Sr),na(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==t&&null!==t.child||(ho(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&!(256&e.flags)||(e.flags|=1024,null!==ro&&(ru(ro),ro=null))),qs(e),null;case 5:Jo(e);var r=Yo(Zo.current);if(n=e.type,null!==t&&null!=e.stateNode)Ps(t,e,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(null===e.stateNode)throw Error(o(166));return qs(e),null}if(t=Yo(Vo.current),ho(e)){i=e.stateNode,n=e.type;var a=e.memoizedProps;switch(i[cr]=e,i[pr]=a,t=!!(1&e.mode),n){case"dialog":zi("cancel",i),zi("close",i);break;case"iframe":case"object":case"embed":zi("load",i);break;case"video":case"audio":for(r=0;r<Ii.length;r++)zi(Ii[r],i);break;case"source":zi("error",i);break;case"img":case"image":case"link":zi("error",i),zi("load",i);break;case"details":zi("toggle",i);break;case"input":$(i,a),zi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},zi("invalid",i);break;case"textarea":rt(i,a),zi("invalid",i)}for(var l in mt(n,a),r=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==a.suppressHydrationWarning&&Xi(i.textContent,u,t),r=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Xi(i.textContent,u,t),r=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zi("scroll",i)}switch(n){case"input":H(i),K(i,a,!0);break;case"textarea":H(i),at(i);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(i.onclick=Ji)}i=r,e.updateQueue=i,null!==i&&(e.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof i.is?t=l.createElement(n,{is:i.is}):(t=l.createElement(n),"select"===n&&(l=t,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):t=l.createElementNS(t,n),t[cr]=e,t[pr]=i,Ts(t,e),e.stateNode=t;t:{switch(l=_t(n,i),n){case"dialog":zi("cancel",t),zi("close",t),r=i;break;case"iframe":case"object":case"embed":zi("load",t),r=i;break;case"video":case"audio":for(r=0;r<Ii.length;r++)zi(Ii[r],t);r=i;break;case"source":zi("error",t),r=i;break;case"img":case"image":case"link":zi("error",t),zi("load",t),r=i;break;case"details":zi("toggle",t),r=i;break;case"input":$(t,i),r=Q(t,i),zi("invalid",t);break;case"option":default:r=i;break;case"select":t._wrapperState={wasMultiple:!!i.multiple},r=D({},i,{value:void 0}),zi("invalid",t);break;case"textarea":rt(t,i),r=it(t,i),zi("invalid",t)}for(a in mt(n,r),u=r)if(u.hasOwnProperty(a)){var h=u[a];"style"===a?gt(t,h):"dangerouslySetInnerHTML"===a?null!=(h=h?h.__html:void 0)&&ct(t,h):"children"===a?"string"==typeof h?("textarea"!==n||""!==h)&&pt(t,h):"number"==typeof h&&pt(t,""+h):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=h&&"onScroll"===a&&zi("scroll",t):null!=h&&_(t,a,h,l))}switch(n){case"input":H(t),K(t,i,!1);break;case"textarea":H(t),at(t);break;case"option":null!=i.value&&t.setAttribute("value",""+q(i.value));break;case"select":t.multiple=!!i.multiple,null!=(a=i.value)?nt(t,!!i.multiple,a,!1):null!=i.defaultValue&&nt(t,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(t.onclick=Ji)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return qs(e),null;case 6:if(t&&null!=e.stateNode)Ls(0,e,t.memoizedProps,i);else{if("string"!=typeof i&&null===e.stateNode)throw Error(o(166));if(n=Yo(Zo.current),Yo(Vo.current),ho(e)){if(i=e.stateNode,n=e.memoizedProps,i[cr]=e,(a=i.nodeValue!==n)&&null!==(t=eo))switch(t.tag){case 3:Xi(i.nodeValue,n,!!(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Xi(i.nodeValue,n,!!(1&t.mode))}a&&(e.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[cr]=e,e.stateNode=i}return qs(e),null;case 13:if(Ar(Ko),i=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(io&&null!==no&&1&e.mode&&!(128&e.flags))co(),po(),e.flags|=98560,a=!1;else if(a=ho(e),null!==i&&null!==i.dehydrated){if(null===t){if(!a)throw Error(o(318));if(!(a=null!==(a=e.memoizedState)?a.dehydrated:null))throw Error(o(317));a[cr]=e}else po(),!(128&e.flags)&&(e.memoizedState=null),e.flags|=4;qs(e),a=!1}else null!==ro&&(ru(ro),ro=null),a=!0;if(!a)return 65536&e.flags?e:null}return 128&e.flags?(e.lanes=n,e):((i=null!==i)!=(null!==t&&null!==t.memoizedState)&&i&&(e.child.flags|=8192,1&e.mode&&(null===t||1&Ko.current?0===Ll&&(Ll=3):du())),null!==e.updateQueue&&(e.flags|=4),qs(e),null);case 4:return $o(),null===t&&Gi(e.stateNode.containerInfo),qs(e),null;case 10:return So(e.type._context),qs(e),null;case 19:if(Ar(Ko),null===(a=e.memoizedState))return qs(e),null;if(i=!!(128&e.flags),null===(l=a.rendering))if(i)Ws(a,!1);else{if(0!==Ll||null!==t&&128&t.flags)for(t=e.child;null!==t;){if(null!==(l=ta(t))){for(e.flags|=128,Ws(a,!1),null!==(i=l.updateQueue)&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=n,n=e.child;null!==n;)t=i,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,t=l.dependencies,a.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Mr(Ko,1&Ko.current|2),e.child}t=t.sibling}null!==a.tail&&Xt()>jl&&(e.flags|=128,i=!0,Ws(a,!1),e.lanes=4194304)}else{if(!i)if(null!==(t=ta(l))){if(e.flags|=128,i=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),Ws(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(e),null}else 2*Xt()-a.renderingStartTime>jl&&1073741824!==n&&(e.flags|=128,i=!0,Ws(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=a.last)?n.sibling=l:e.child=l,a.last=l)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Xt(),e.sibling=null,n=Ko.current,Mr(Ko,i?1&n|2:1&n),e):(qs(e),null);case 22:case 23:return uu(),i=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==i&&(e.flags|=8192),i&&1&e.mode?!!(1073741824&Tl)&&(qs(e),6&e.subtreeFlags&&(e.flags|=8192)):qs(e),null;case 24:case 25:return null}throw Error(o(156,e.tag))}function Hs(t,e){switch(to(e),e.tag){case 1:return Pr(e.type)&&Lr(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return $o(),Ar(Rr),Ar(Sr),na(),65536&(t=e.flags)&&!(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Jo(e),null;case 13:if(Ar(Ko),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));po()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Ar(Ko),null;case 4:return $o(),null;case 10:return So(e.type._context),null;case 22:case 23:return uu(),null;default:return null}}Ts=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(t,e,n,i){var r=t.memoizedProps;if(r!==i){t=e.stateNode,Yo(Vo.current);var o,a=null;switch(n){case"input":r=Q(t,r),i=Q(t,i),a=[];break;case"select":r=D({},r,{value:void 0}),i=D({},i,{value:void 0}),a=[];break;case"textarea":r=it(t,r),i=it(t,i),a=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(t.onclick=Ji)}for(h in mt(n,i),n=null,r)if(!i.hasOwnProperty(h)&&r.hasOwnProperty(h)&&null!=r[h])if("style"===h){var l=r[h];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(s.hasOwnProperty(h)?a||(a=[]):(a=a||[]).push(h,null));for(h in i){var u=i[h];if(l=null!=r?r[h]:void 0,i.hasOwnProperty(h)&&u!==l&&(null!=u||null!=l))if("style"===h)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(h,n)),n=u;else"dangerouslySetInnerHTML"===h?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(h,u)):"children"===h?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(h,""+u):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(s.hasOwnProperty(h)?(null!=u&&"onScroll"===h&&zi("scroll",t),a||l===u||(a=[])):(a=a||[]).push(h,u))}n&&(a=a||[]).push("style",n);var h=a;(e.updateQueue=h)&&(e.flags|=4)}},Ls=function(t,e,n,i){n!==i&&(e.flags|=4)};var Zs=!1,Ys=!1,Qs="function"==typeof WeakSet?WeakSet:Set,$s=null;function Xs(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(t,e,n)}else n.current=null}function Js(t,e,n){try{n()}catch(n){Eu(t,e,n)}}var Ks=!1;function tl(t,e,n){var i=e.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&t)===t){var o=r.destroy;r.destroy=void 0,void 0!==o&&Js(e,n,o)}r=r.next}while(r!==i)}}function el(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function nl(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function il(t){var e=t.alternate;null!==e&&(t.alternate=null,il(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(e=t.stateNode)&&(delete e[cr],delete e[pr],delete e[fr],delete e[yr],delete e[gr]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function rl(t){return 5===t.tag||3===t.tag||4===t.tag}function ol(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||rl(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function al(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Ji));else if(4!==i&&null!==(t=t.child))for(al(t,e,n),t=t.sibling;null!==t;)al(t,e,n),t=t.sibling}function sl(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==i&&null!==(t=t.child))for(sl(t,e,n),t=t.sibling;null!==t;)sl(t,e,n),t=t.sibling}var ll=null,ul=!1;function hl(t,e,n){for(n=n.child;null!==n;)cl(t,e,n),n=n.sibling}function cl(t,e,n){if(oe&&"function"==typeof oe.onCommitFiberUnmount)try{oe.onCommitFiberUnmount(re,n)}catch(t){}switch(n.tag){case 5:Ys||Xs(n,e);case 6:var i=ll,r=ul;ll=null,hl(t,e,n),ul=r,null!==(ll=i)&&(ul?(t=ll,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):ll.removeChild(n.stateNode));break;case 18:null!==ll&&(ul?(t=ll,n=n.stateNode,8===t.nodeType?sr(t.parentNode,n):1===t.nodeType&&sr(t,n),Ge(t)):sr(ll,n.stateNode));break;case 4:i=ll,r=ul,ll=n.stateNode.containerInfo,ul=!0,hl(t,e,n),ll=i,ul=r;break;case 0:case 11:case 14:case 15:if(!Ys&&null!==(i=n.updateQueue)&&null!==(i=i.lastEffect)){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&Js(n,e,a),r=r.next}while(r!==i)}hl(t,e,n);break;case 1:if(!Ys&&(Xs(n,e),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(t){Eu(n,e,t)}hl(t,e,n);break;case 21:hl(t,e,n);break;case 22:1&n.mode?(Ys=(i=Ys)||null!==n.memoizedState,hl(t,e,n),Ys=i):hl(t,e,n);break;default:hl(t,e,n)}}function pl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qs),e.forEach(function(e){var i=Cu.bind(null,t,e);n.has(e)||(n.add(e),e.then(i,i))})}}function dl(t,e){var n=e.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var a=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:ll=l.stateNode,ul=!1;break t;case 3:case 4:ll=l.stateNode.containerInfo,ul=!0;break t}l=l.return}if(null===ll)throw Error(o(160));cl(a,s,r),ll=null,ul=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(t){Eu(r,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)fl(e,t),e=e.sibling}function fl(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(dl(e,t),yl(t),4&i){try{tl(3,t,t.return),el(3,t)}catch(e){Eu(t,t.return,e)}try{tl(5,t,t.return)}catch(e){Eu(t,t.return,e)}}break;case 1:dl(e,t),yl(t),512&i&&null!==n&&Xs(n,n.return);break;case 5:if(dl(e,t),yl(t),512&i&&null!==n&&Xs(n,n.return),32&t.flags){var r=t.stateNode;try{pt(r,"")}catch(e){Eu(t,t.return,e)}}if(4&i&&null!=(r=t.stateNode)){var a=t.memoizedProps,s=null!==n?n.memoizedProps:a,l=t.type,u=t.updateQueue;if(t.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(r,a),_t(l,s);var h=_t(l,a);for(s=0;s<u.length;s+=2){var c=u[s],p=u[s+1];"style"===c?gt(r,p):"dangerouslySetInnerHTML"===c?ct(r,p):"children"===c?pt(r,p):_(r,c,p,h)}switch(l){case"input":J(r,a);break;case"textarea":ot(r,a);break;case"select":var d=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?nt(r,!!a.multiple,f,!1):d!==!!a.multiple&&(null!=a.defaultValue?nt(r,!!a.multiple,a.defaultValue,!0):nt(r,!!a.multiple,a.multiple?[]:"",!1))}r[pr]=a}catch(e){Eu(t,t.return,e)}}break;case 6:if(dl(e,t),yl(t),4&i){if(null===t.stateNode)throw Error(o(162));r=t.stateNode,a=t.memoizedProps;try{r.nodeValue=a}catch(e){Eu(t,t.return,e)}}break;case 3:if(dl(e,t),yl(t),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Ge(e.containerInfo)}catch(e){Eu(t,t.return,e)}break;case 4:default:dl(e,t),yl(t);break;case 13:dl(e,t),yl(t),8192&(r=t.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(Nl=Xt())),4&i&&pl(t);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&t.mode?(Ys=(h=Ys)||c,dl(e,t),Ys=h):dl(e,t),yl(t),8192&i){if(h=null!==t.memoizedState,(t.stateNode.isHidden=h)&&!c&&1&t.mode)for($s=t,c=t.child;null!==c;){for(p=$s=c;null!==$s;){switch(f=(d=$s).child,d.tag){case 0:case 11:case 14:case 15:tl(4,d,d.return);break;case 1:Xs(d,d.return);var y=d.stateNode;if("function"==typeof y.componentWillUnmount){i=d,n=d.return;try{e=i,y.props=e.memoizedProps,y.state=e.memoizedState,y.componentWillUnmount()}catch(t){Eu(i,n,t)}}break;case 5:Xs(d,d.return);break;case 22:if(null!==d.memoizedState){_l(p);continue}}null!==f?(f.return=d,$s=f):_l(p)}c=c.sibling}t:for(c=null,p=t;;){if(5===p.tag){if(null===c){c=p;try{r=p.stateNode,h?"function"==typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=yt("display",s))}catch(e){Eu(t,t.return,e)}}}else if(6===p.tag){if(null===c)try{p.stateNode.nodeValue=h?"":p.memoizedProps}catch(e){Eu(t,t.return,e)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===t)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===t)break t;for(;null===p.sibling;){if(null===p.return||p.return===t)break t;c===p&&(c=null),p=p.return}c===p&&(c=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:dl(e,t),yl(t),4&i&&pl(t);case 21:}}function yl(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(rl(n)){var i=n;break t}n=n.return}throw Error(o(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(pt(r,""),i.flags&=-33),sl(t,ol(t),r);break;case 3:case 4:var a=i.stateNode.containerInfo;al(t,ol(t),a);break;default:throw Error(o(161))}}catch(e){Eu(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function gl(t,e,n){$s=t,vl(t,e,n)}function vl(t,e,n){for(var i=!!(1&t.mode);null!==$s;){var r=$s,o=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||Zs;if(!a){var s=r.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Zs;var u=Ys;if(Zs=a,(Ys=l)&&!u)for($s=r;null!==$s;)l=(a=$s).child,22===a.tag&&null!==a.memoizedState?bl(r):null!==l?(l.return=a,$s=l):bl(r);for(;null!==o;)$s=o,vl(o,e,n),o=o.sibling;$s=r,Zs=s,Ys=u}ml(t)}else 8772&r.subtreeFlags&&null!==o?(o.return=r,$s=o):ml(t)}}function ml(t){for(;null!==$s;){var e=$s;if(8772&e.flags){var n=e.alternate;try{if(8772&e.flags)switch(e.tag){case 0:case 11:case 15:Ys||el(5,e);break;case 1:var i=e.stateNode;if(4&e.flags&&!Ys)if(null===n)i.componentDidMount();else{var r=e.elementType===e.type?n.memoizedProps:es(e.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;null!==a&&Wo(e,a,i);break;case 3:var s=e.updateQueue;if(null!==s){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}Wo(e,s,n)}break;case 5:var l=e.stateNode;if(null===n&&4&e.flags){n=l;var u=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var h=e.alternate;if(null!==h){var c=h.memoizedState;if(null!==c){var p=c.dehydrated;null!==p&&Ge(p)}}}break;default:throw Error(o(163))}Ys||512&e.flags&&nl(e)}catch(t){Eu(e,e.return,t)}}if(e===t){$s=null;break}if(null!==(n=e.sibling)){n.return=e.return,$s=n;break}$s=e.return}}function _l(t){for(;null!==$s;){var e=$s;if(e===t){$s=null;break}var n=e.sibling;if(null!==n){n.return=e.return,$s=n;break}$s=e.return}}function bl(t){for(;null!==$s;){var e=$s;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{el(4,e)}catch(t){Eu(e,n,t)}break;case 1:var i=e.stateNode;if("function"==typeof i.componentDidMount){var r=e.return;try{i.componentDidMount()}catch(t){Eu(e,r,t)}}var o=e.return;try{nl(e)}catch(t){Eu(e,o,t)}break;case 5:var a=e.return;try{nl(e)}catch(t){Eu(e,a,t)}}}catch(t){Eu(e,e.return,t)}if(e===t){$s=null;break}var s=e.sibling;if(null!==s){s.return=e.return,$s=s;break}$s=e.return}}var wl,El=Math.ceil,kl=b.ReactCurrentDispatcher,Al=b.ReactCurrentOwner,Ml=b.ReactCurrentBatchConfig,Cl=0,Sl=null,Rl=null,xl=0,Tl=0,Pl=kr(0),Ll=0,Bl=null,Il=0,Fl=0,Ol=0,Dl=null,zl=null,Nl=0,jl=1/0,Gl=null,Ul=!1,Wl=null,ql=null,Vl=!1,Hl=null,Zl=0,Yl=0,Ql=null,$l=-1,Xl=0;function Jl(){return 6&Cl?Xt():-1!==$l?$l:$l=Xt()}function Kl(t){return 1&t.mode?2&Cl&&0!==xl?xl&-xl:null!==yo.transition?(0===Xl&&(Xl=ye()),Xl):0!==(t=me)?t:t=void 0===(t=window.event)?16:Qe(t.type):1}function tu(t,e,n,i){if(50<Yl)throw Yl=0,Ql=null,Error(o(185));ge(t,n,i),2&Cl&&t===Sl||(t===Sl&&(!(2&Cl)&&(Fl|=n),4===Ll&&ou(t,xl)),eu(t,i),1===n&&0===Cl&&!(1&e.mode)&&(jl=Xt()+500,zr&&Gr()))}function eu(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-ae(o),s=1<<a,l=r[a];-1===l?0!==(s&n)&&0===(s&i)||(r[a]=de(s,e)):l<=e&&(t.expiredLanes|=s),o&=~s}}(t,e);var i=pe(t,t===Sl?xl:0);if(0===i)null!==n&&Yt(n),t.callbackNode=null,t.callbackPriority=0;else if(e=i&-i,t.callbackPriority!==e){if(null!=n&&Yt(n),1===e)0===t.tag?function(t){zr=!0,jr(t)}(au.bind(null,t)):jr(au.bind(null,t)),or(function(){!(6&Cl)&&Gr()}),n=null;else{switch(_e(i)){case 1:n=Kt;break;case 4:n=te;break;case 16:default:n=ee;break;case 536870912:n=ie}n=Su(n,nu.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function nu(t,e){if($l=-1,Xl=0,6&Cl)throw Error(o(327));var n=t.callbackNode;if(bu()&&t.callbackNode!==n)return null;var i=pe(t,t===Sl?xl:0);if(0===i)return null;if(30&i||0!==(i&t.expiredLanes)||e)e=fu(t,i);else{e=i;var r=Cl;Cl|=2;var a=pu();for(Sl===t&&xl===e||(Gl=null,jl=Xt()+500,hu(t,e));;)try{gu();break}catch(e){cu(t,e)}Co(),kl.current=a,Cl=r,null!==Rl?e=0:(Sl=null,xl=0,e=Ll)}if(0!==e){if(2===e&&0!==(r=fe(t))&&(i=r,e=iu(t,r)),1===e)throw n=Bl,hu(t,0),ou(t,i),eu(t,Xt()),n;if(6===e)ou(t,i);else{if(r=t.current.alternate,!(30&i||function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!ai(o(),r))return!1}catch(t){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(r)||(e=fu(t,i),2===e&&(a=fe(t),0!==a&&(i=a,e=iu(t,a))),1!==e)))throw n=Bl,hu(t,0),ou(t,i),eu(t,Xt()),n;switch(t.finishedWork=r,t.finishedLanes=i,e){case 0:case 1:throw Error(o(345));case 2:case 5:_u(t,zl,Gl);break;case 3:if(ou(t,i),(130023424&i)===i&&10<(e=Nl+500-Xt())){if(0!==pe(t,0))break;if(((r=t.suspendedLanes)&i)!==i){Jl(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=nr(_u.bind(null,t,zl,Gl),e);break}_u(t,zl,Gl);break;case 4:if(ou(t,i),(4194240&i)===i)break;for(e=t.eventTimes,r=-1;0<i;){var s=31-ae(i);a=1<<s,(s=e[s])>r&&(r=s),i&=~a}if(i=r,10<(i=(120>(i=Xt()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*El(i/1960))-i)){t.timeoutHandle=nr(_u.bind(null,t,zl,Gl),i);break}_u(t,zl,Gl);break;default:throw Error(o(329))}}}return eu(t,Xt()),t.callbackNode===n?nu.bind(null,t):null}function iu(t,e){var n=Dl;return t.current.memoizedState.isDehydrated&&(hu(t,e).flags|=256),2!==(t=fu(t,e))&&(e=zl,zl=n,null!==e&&ru(e)),t}function ru(t){null===zl?zl=t:zl.push.apply(zl,t)}function ou(t,e){for(e&=~Ol,e&=~Fl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-ae(e),i=1<<n;t[n]=-1,e&=~i}}function au(t){if(6&Cl)throw Error(o(327));bu();var e=pe(t,0);if(!(1&e))return eu(t,Xt()),null;var n=fu(t,e);if(0!==t.tag&&2===n){var i=fe(t);0!==i&&(e=i,n=iu(t,i))}if(1===n)throw n=Bl,hu(t,0),ou(t,e),eu(t,Xt()),n;if(6===n)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,_u(t,zl,Gl),eu(t,Xt()),null}function su(t,e){var n=Cl;Cl|=1;try{return t(e)}finally{0===(Cl=n)&&(jl=Xt()+500,zr&&Gr())}}function lu(t){null!==Hl&&0===Hl.tag&&!(6&Cl)&&bu();var e=Cl;Cl|=1;var n=Ml.transition,i=me;try{if(Ml.transition=null,me=1,t)return t()}finally{me=i,Ml.transition=n,!(6&(Cl=e))&&Gr()}}function uu(){Tl=Pl.current,Ar(Pl)}function hu(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,ir(n)),null!==Rl)for(n=Rl.return;null!==n;){var i=n;switch(to(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&Lr();break;case 3:$o(),Ar(Rr),Ar(Sr),na();break;case 5:Jo(i);break;case 4:$o();break;case 13:case 19:Ar(Ko);break;case 10:So(i.type._context);break;case 22:case 23:uu()}n=n.return}if(Sl=t,Rl=t=Pu(t.current,null),xl=Tl=e,Ll=0,Bl=null,Ol=Fl=Il=0,zl=Dl=null,null!==Po){for(e=0;e<Po.length;e++)if(null!==(i=(n=Po[e]).interleaved)){n.interleaved=null;var r=i.next,o=n.pending;if(null!==o){var a=o.next;o.next=r,i.next=a}n.pending=i}Po=null}return t}function cu(t,e){for(;;){var n=Rl;try{if(Co(),ia.current=Xa,ua){for(var i=aa.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}ua=!1}if(oa=0,la=sa=aa=null,ha=!1,ca=0,Al.current=null,null===n||null===n.return){Ll=1,Bl=e,Rl=null;break}t:{var a=t,s=n.return,l=n,u=e;if(e=xl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var h=u,c=l,p=c.tag;if(!(1&c.mode||0!==p&&11!==p&&15!==p)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=ys(s);if(null!==f){f.flags&=-257,gs(f,s,l,0,e),1&f.mode&&fs(a,h,e),u=h;var y=(e=f).updateQueue;if(null===y){var g=new Set;g.add(u),e.updateQueue=g}else y.add(u);break t}if(!(1&e)){fs(a,h,e),du();break t}u=Error(o(426))}else if(io&&1&l.mode){var v=ys(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),gs(v,s,l,0,e),fo(ls(u,l));break t}}a=u=ls(u,l),4!==Ll&&(Ll=2),null===Dl?Dl=[a]:Dl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e,Go(a,ps(0,u,e));break t;case 1:l=u;var m=a.type,_=a.stateNode;if(!(128&a.flags||"function"!=typeof m.getDerivedStateFromError&&(null===_||"function"!=typeof _.componentDidCatch||null!==ql&&ql.has(_)))){a.flags|=65536,e&=-e,a.lanes|=e,Go(a,ds(a,l,e));break t}}a=a.return}while(null!==a)}mu(n)}catch(t){e=t,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function pu(){var t=kl.current;return kl.current=Xa,null===t?Xa:t}function du(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Sl||!(268435455&Il)&&!(268435455&Fl)||ou(Sl,xl)}function fu(t,e){var n=Cl;Cl|=2;var i=pu();for(Sl===t&&xl===e||(Gl=null,hu(t,e));;)try{yu();break}catch(e){cu(t,e)}if(Co(),Cl=n,kl.current=i,null!==Rl)throw Error(o(261));return Sl=null,xl=0,Ll}function yu(){for(;null!==Rl;)vu(Rl)}function gu(){for(;null!==Rl&&!Qt();)vu(Rl)}function vu(t){var e=wl(t.alternate,t,Tl);t.memoizedProps=t.pendingProps,null===e?mu(t):Rl=e,Al.current=null}function mu(t){var e=t;do{var n=e.alternate;if(t=e.return,32768&e.flags){if(null!==(n=Hs(n,e)))return n.flags&=32767,void(Rl=n);if(null===t)return Ll=6,void(Rl=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}else if(null!==(n=Vs(n,e,Tl)))return void(Rl=n);if(null!==(e=e.sibling))return void(Rl=e);Rl=e=t}while(null!==e);0===Ll&&(Ll=5)}function _u(t,e,n){var i=me,r=Ml.transition;try{Ml.transition=null,me=1,function(t,e,n,i){do{bu()}while(null!==Hl);if(6&Cl)throw Error(o(327));n=t.finishedWork;var r=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0<n;){var r=31-ae(n),o=1<<r;e[r]=0,i[r]=-1,t[r]=-1,n&=~o}}(t,a),t===Sl&&(Rl=Sl=null,xl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Vl||(Vl=!0,Su(ee,function(){return bu(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Ml.transition,Ml.transition=null;var s=me;me=1;var l=Cl;Cl|=4,Al.current=null,function(t,e){if(Ki=We,pi(t=ci())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var i=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch(t){n=null;break t}var s=0,l=-1,u=-1,h=0,c=0,p=t,d=null;e:for(;;){for(var f;p!==n||0!==r&&3!==p.nodeType||(l=s+r),p!==a||0!==i&&3!==p.nodeType||(u=s+i),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)d=p,p=f;for(;;){if(p===t)break e;if(d===n&&++h===r&&(l=s),d===a&&++c===i&&(u=s),null!==(f=p.nextSibling))break;d=(p=d).parentNode}p=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:t,selectionRange:n},We=!1,$s=e;null!==$s;)if(t=(e=$s).child,1028&e.subtreeFlags&&null!==t)t.return=e,$s=t;else for(;null!==$s;){e=$s;try{var y=e.alternate;if(1024&e.flags)switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==y){var g=y.memoizedProps,v=y.memoizedState,m=e.stateNode,_=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:es(e.type,g),v);m.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=e.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(t){Eu(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,$s=t;break}$s=e.return}y=Ks,Ks=!1}(t,n),fl(n,t),di(tr),We=!!Ki,tr=Ki=null,t.current=n,gl(n,t,r),$t(),Cl=l,me=s,Ml.transition=a}else t.current=n;if(Vl&&(Vl=!1,Hl=t,Zl=r),0===(a=t.pendingLanes)&&(ql=null),function(t){if(oe&&"function"==typeof oe.onCommitFiberRoot)try{oe.onCommitFiberRoot(re,t,void 0,!(128&~t.current.flags))}catch(t){}}(n.stateNode),eu(t,Xt()),null!==e)for(i=t.onRecoverableError,n=0;n<e.length;n++)i((r=e[n]).value,{componentStack:r.stack,digest:r.digest});if(Ul)throw Ul=!1,t=Wl,Wl=null,t;!!(1&Zl)&&0!==t.tag&&bu(),1&(a=t.pendingLanes)?t===Ql?Yl++:(Yl=0,Ql=t):Yl=0,Gr()}(t,e,n,i)}finally{Ml.transition=r,me=i}return null}function bu(){if(null!==Hl){var t=_e(Zl),e=Ml.transition,n=me;try{if(Ml.transition=null,me=16>t?16:t,null===Hl)var i=!1;else{if(t=Hl,Hl=null,Zl=0,6&Cl)throw Error(o(331));var r=Cl;for(Cl|=4,$s=t.current;null!==$s;){var a=$s,s=a.child;if(16&$s.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var h=l[u];for($s=h;null!==$s;){var c=$s;switch(c.tag){case 0:case 11:case 15:tl(8,c,a)}var p=c.child;if(null!==p)p.return=c,$s=p;else for(;null!==$s;){var d=(c=$s).sibling,f=c.return;if(il(c),c===h){$s=null;break}if(null!==d){d.return=f,$s=d;break}$s=f}}}var y=a.alternate;if(null!==y){var g=y.child;if(null!==g){y.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}$s=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,$s=s;else t:for(;null!==$s;){if(2048&(a=$s).flags)switch(a.tag){case 0:case 11:case 15:tl(9,a,a.return)}var m=a.sibling;if(null!==m){m.return=a.return,$s=m;break t}$s=a.return}}var _=t.current;for($s=_;null!==$s;){var b=(s=$s).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,$s=b;else t:for(s=_;null!==$s;){if(2048&(l=$s).flags)try{switch(l.tag){case 0:case 11:case 15:el(9,l)}}catch(t){Eu(l,l.return,t)}if(l===s){$s=null;break t}var w=l.sibling;if(null!==w){w.return=l.return,$s=w;break t}$s=l.return}}if(Cl=r,Gr(),oe&&"function"==typeof oe.onPostCommitFiberRoot)try{oe.onPostCommitFiberRoot(re,t)}catch(t){}i=!0}return i}finally{me=n,Ml.transition=e}}return!1}function wu(t,e,n){t=No(t,e=ps(0,e=ls(n,e),1),1),e=Jl(),null!==t&&(ge(t,1,e),eu(t,e))}function Eu(t,e,n){if(3===t.tag)wu(t,t,n);else for(;null!==e;){if(3===e.tag){wu(e,t,n);break}if(1===e.tag){var i=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===ql||!ql.has(i))){e=No(e,t=ds(e,t=ls(n,t),1),1),t=Jl(),null!==e&&(ge(e,1,t),eu(e,t));break}}e=e.return}}function ku(t,e,n){var i=t.pingCache;null!==i&&i.delete(e),e=Jl(),t.pingedLanes|=t.suspendedLanes&n,Sl===t&&(xl&n)===n&&(4===Ll||3===Ll&&(130023424&xl)===xl&&500>Xt()-Nl?hu(t,0):Ol|=n),eu(t,e)}function Au(t,e){0===e&&(1&t.mode?(e=he,!(130023424&(he<<=1))&&(he=4194304)):e=1);var n=Jl();null!==(t=Io(t,e))&&(ge(t,e,n),eu(t,n))}function Mu(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),Au(t,n)}function Cu(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(o(314))}null!==i&&i.delete(e),Au(t,n)}function Su(t,e){return Zt(t,e)}function Ru(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(t,e,n,i){return new Ru(t,e,n,i)}function Tu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Pu(t,e){var n=t.alternate;return null===n?((n=xu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Lu(t,e,n,i,r,a){var s=2;if(i=t,"function"==typeof t)Tu(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case k:return Bu(n.children,r,a,e);case A:s=8,r|=8;break;case M:return(t=xu(12,n,e,2|r)).elementType=M,t.lanes=a,t;case x:return(t=xu(13,n,e,r)).elementType=x,t.lanes=a,t;case T:return(t=xu(19,n,e,r)).elementType=T,t.lanes=a,t;case B:return Iu(n,r,a,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case C:s=10;break t;case S:s=9;break t;case R:s=11;break t;case P:s=14;break t;case L:s=16,i=null;break t}throw Error(o(130,null==t?t:typeof t,""))}return(e=xu(s,n,e,r)).elementType=t,e.type=i,e.lanes=a,e}function Bu(t,e,n,i){return(t=xu(7,t,i,e)).lanes=n,t}function Iu(t,e,n,i){return(t=xu(22,t,i,e)).elementType=B,t.lanes=n,t.stateNode={isHidden:!1},t}function Fu(t,e,n){return(t=xu(6,t,null,e)).lanes=n,t}function Ou(t,e,n){return(e=xu(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Du(t){if(!t)return Cr;t:{if(Ut(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(Pr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(o(171))}if(1===t.tag){var n=t.type;if(Pr(n))return Ir(t,n,e)}return e}function zu(t,e,n,i){var r=e.current,o=Jl(),a=Kl(r);return n=Du(n),null===e.context?e.context=n:e.pendingContext=n,(e=zo(o,a)).payload={element:t},null!==(i=void 0===i?null:i)&&(e.callback=i),null!==(t=No(r,e,a))&&(tu(t,r,a,o),jo(t,r,a)),a}function Nu(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function ju(t,e){Nu(t,e),(t=t.alternate)&&Nu(t,e)}wl=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||Rr.current)ms=!0;else{if(0===(t.lanes&n)&&!(128&e.flags))return ms=!1,function(t,e,n){switch(e.tag){case 3:Rs(e),po();break;case 5:Xo(e);break;case 1:Pr(e.type)&&Fr(e);break;case 4:Qo(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,r=e.memoizedProps.value;Mr(Eo,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=e.memoizedState))return null!==i.dehydrated?(Mr(Ko,1&Ko.current),e.flags|=128,null):0!==(n&e.child.childLanes)?Fs(t,e,n):(Mr(Ko,1&Ko.current),null!==(t=Us(t,e,n))?t.sibling:null);Mr(Ko,1&Ko.current);break;case 19:if(i=0!==(n&e.childLanes),128&t.flags){if(i)return js(t,e,n);e.flags|=128}if(null!==(r=e.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Mr(Ko,Ko.current),i)break;return null;case 22:case 23:return e.lanes=0,ks(t,e,n)}return Us(t,e,n)}(t,e,n);ms=!!(131072&t.flags)}else ms=!1,io&&1048576&e.flags&&Jr(e,Vr,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Gs(t,e),t=e.pendingProps;var r=Tr(e,Sr.current);xo(e,n),r=ya(null,e,i,t,r,n);var a=ga();return e.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Pr(i)?(a=!0,Fr(e)):a=!1,e.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Oo(e),r.updater=is,e.stateNode=r,r._reactInternals=e,ss(e,i,t,n),e=Ss(null,e,i,!0,a,n)):(e.tag=0,io&&a&&Kr(e),_s(null,e,r,n),e=e.child),e;case 16:i=e.elementType;t:{switch(Gs(t,e),t=e.pendingProps,i=(r=i._init)(i._payload),e.type=i,r=e.tag=function(t){if("function"==typeof t)return Tu(t)?1:0;if(null!=t){if((t=t.$$typeof)===R)return 11;if(t===P)return 14}return 2}(i),t=es(i,t),r){case 0:e=Ms(null,e,i,t,n);break t;case 1:e=Cs(null,e,i,t,n);break t;case 11:e=bs(null,e,i,t,n);break t;case 14:e=ws(null,e,i,es(i.type,t),n);break t}throw Error(o(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,Ms(t,e,i,r=e.elementType===i?r:es(i,r),n);case 1:return i=e.type,r=e.pendingProps,Cs(t,e,i,r=e.elementType===i?r:es(i,r),n);case 3:t:{if(Rs(e),null===t)throw Error(o(387));i=e.pendingProps,r=(a=e.memoizedState).element,Do(t,e),Uo(e,i,null,n);var s=e.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=a,e.memoizedState=a,256&e.flags){e=xs(t,e,i,n,r=ls(Error(o(423)),e));break t}if(i!==r){e=xs(t,e,i,n,r=ls(Error(o(424)),e));break t}for(no=lr(e.stateNode.containerInfo.firstChild),eo=e,io=!0,ro=null,n=wo(e,null,i,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),i===r){e=Us(t,e,n);break t}_s(t,e,i,n)}e=e.child}return e;case 5:return Xo(e),null===t&&lo(e),i=e.type,r=e.pendingProps,a=null!==t?t.memoizedProps:null,s=r.children,er(i,r)?s=null:null!==a&&er(i,a)&&(e.flags|=32),As(t,e),_s(t,e,s,n),e.child;case 6:return null===t&&lo(e),null;case 13:return Fs(t,e,n);case 4:return Qo(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=bo(e,null,i,n):_s(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,bs(t,e,i,r=e.elementType===i?r:es(i,r),n);case 7:return _s(t,e,e.pendingProps,n),e.child;case 8:case 12:return _s(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(i=e.type._context,r=e.pendingProps,a=e.memoizedProps,s=r.value,Mr(Eo,i._currentValue),i._currentValue=s,null!==a)if(ai(a.value,s)){if(a.children===r.children&&!Rr.current){e=Us(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=zo(-1,n&-n)).tag=2;var h=a.updateQueue;if(null!==h){var c=(h=h.shared).pending;null===c?u.next=u:(u.next=c.next,c.next=u),h.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ro(a.return,n,e),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===e.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ro(s,n,e),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,xo(e,n),i=i(r=To(r)),e.flags|=1,_s(t,e,i,n),e.child;case 14:return r=es(i=e.type,e.pendingProps),ws(t,e,i,r=es(i.type,r),n);case 15:return Es(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:es(i,r),Gs(t,e),e.tag=1,Pr(i)?(t=!0,Fr(e)):t=!1,xo(e,n),os(e,i,r),ss(e,i,r,n),Ss(null,e,i,!0,t,n);case 19:return js(t,e,n);case 22:return ks(t,e,n)}throw Error(o(156,e.tag))};"function"==typeof reportError&&reportError;function Gu(t){this._internalRoot=t}function Uu(t){this._internalRoot=t}Uu.prototype.render=Gu.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(o(409));zu(t,e,null,null)},Uu.prototype.unmount=Gu.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;lu(function(){zu(null,t,null,null)}),e[dr]=null}},Uu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ke();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Le.length&&0!==e&&e<Le[n].priority;n++);Le.splice(n,0,t),0===n&&Oe(t)}},be=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=ce(e.pendingLanes);0!==n&&(ve(e,1|n),eu(e,Xt()),!(6&Cl)&&(jl=Xt()+500,Gr()))}break;case 13:lu(function(){var e=Io(t,1);if(null!==e){var n=Jl();tu(e,t,1,n)}}),ju(t,1)}},we=function(t){if(13===t.tag){var e=Io(t,134217728);null!==e&&tu(e,t,134217728,Jl()),ju(t,134217728)}},Ee=function(t){if(13===t.tag){var e=Kl(t),n=Io(t,e);null!==n&&tu(n,t,e,Jl()),ju(t,e)}},ke=function(){return me},Ae=function(t,e){var n=me;try{return me=t,e()}finally{me=n}},Et=function(t,e,n){switch(e){case"input":if(J(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var r=br(i);if(!r)throw Error(o(90));Z(i),J(i,r)}}}break;case"textarea":ot(t,n);break;case"select":null!=(e=n.value)&&nt(t,!!n.multiple,e,!1)}},Rt=su,xt=lu;var Wu={findFiberByHostInstance:vr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qu={bundleType:Wu.bundleType,version:Wu.version,rendererPackageName:Wu.rendererPackageName,rendererConfig:Wu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Vt(t))?null:t.stateNode},findFiberByHostInstance:Wu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{re=Vu.inject(qu),oe=Vu}catch(ht){}}e.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!function(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}(e))throw Error(o(200));return function(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==i?null:""+i,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}},961(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(2551)},1020(t,e,n){"use strict";var i=n(156),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var i,o={},u=null,h=null;for(i in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)a.call(e,i)&&!l.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:r,type:t,key:u,ref:h,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},4848(t,e,n){"use strict";t.exports=n(1020)},7452(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new T(i||[]);return r(a,"_invoke",{value:C(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var p="suspendedStart",d="suspendedYield",f="executing",y="completed",g={};function v(){}function m(){}function _(){}var b={};u(b,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(P([])));E&&E!==n&&i.call(E,a)&&(b=E);var k=_.prototype=v.prototype=Object.create(b);function A(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function M(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e(function(e,r){n(t,i,e,r)})}return o=o?o.then(r,r):r()}})}function C(t,e,n){var i=p;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===y){if("throw"===r)throw o;return L()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?y:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=y,n.method="throw",n.arg=l.arg)}}}function S(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=c(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function P(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:L}}function L(){return{value:e,done:!0}}return m.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:m,configurable:!0}),m.displayName=u(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},A(M.prototype),u(M.prototype,s,function(){return this}),t.AsyncIterator=M,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new M(h(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},A(k),u(k,l,"Generator"),u(k,a,function(){return this}),u(k,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=P,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:P(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},7463(t,e){"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var i=n-1>>>1,r=t[i];if(!(0<o(r,e)))break t;t[i]=e,t[n]=r,n=i}}function i(t){return 0===t.length?null:t[0]}function r(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,r=t.length,a=r>>>1;i<a;){var s=2*(i+1)-1,l=t[s],u=s+1,h=t[u];if(0>o(l,n))u<r&&0>o(h,l)?(t[i]=h,t[u]=n,i=u):(t[i]=l,t[s]=n,i=s);else{if(!(u<r&&0>o(h,n)))break t;t[i]=h,t[u]=n,i=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],h=[],c=1,p=null,d=3,f=!1,y=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,_="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var e=i(h);null!==e;){if(null===e.callback)r(h);else{if(!(e.startTime<=t))break;r(h),e.sortIndex=e.expirationTime,n(u,e)}e=i(h)}}function w(t){if(g=!1,b(t),!y)if(null!==i(u))y=!0,B(E);else{var e=i(h);null!==e&&I(w,e.startTime-t)}}function E(t,n){y=!1,g&&(g=!1,m(C),C=-1),f=!0;var o=d;try{for(b(n),p=i(u);null!==p&&(!(p.expirationTime>n)||t&&!x());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var s=a(p.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?p.callback=s:p===i(u)&&r(u),b(n)}else r(u);p=i(u)}if(null!==p)var l=!0;else{var c=i(h);null!==c&&I(w,c.startTime-n),l=!1}return l}finally{p=null,d=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,A=!1,M=null,C=-1,S=5,R=-1;function x(){return!(e.unstable_now()-R<S)}function T(){if(null!==M){var t=e.unstable_now();R=t;var n=!0;try{n=M(!0,t)}finally{n?k():(A=!1,M=null)}}else A=!1}if("function"==typeof _)k=function(){_(T)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,L=P.port2;P.port1.onmessage=T,k=function(){L.postMessage(null)}}else k=function(){v(T,0)};function B(t){M=t,A||(A=!0,k())}function I(t,n){C=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){y||f||(y=!0,B(E))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return i(u)},e.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_scheduleCallback=function(t,r,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:c++,callback:r,priorityLevel:t,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(t.sortIndex=o,n(h,t),null===i(u)&&t===i(h)&&(g?(m(C),C=-1):g=!0,I(w,o-a))):(t.sortIndex=s,n(u,t),y||f||(y=!0,B(E))),t},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(t){var e=d;return function(){var n=d;d=e;try{return t.apply(this,arguments)}finally{d=n}}}},9982(t,e,n){"use strict";t.exports=n(7463)},2962(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>v});var i=n(5072),r=n.n(i),o=n(7825),a=n.n(o),s=n(7659),l=n.n(s),u=n(5056),h=n.n(u),c=n(540),p=n.n(c),d=n(1113),f=n.n(d),y=n(9689),g={};g.styleTagTransform=f(),g.setAttributes=h(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},1079(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>v});var i=n(5072),r=n.n(i),o=n(7825),a=n.n(o),s=n(7659),l=n.n(s),u=n(5056),h=n.n(u),c=n(540),p=n.n(c),d=n(1113),f=n.n(d),y=n(7914),g={};g.styleTagTransform=f(),g.setAttributes=h(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},9463(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>v});var i=n(5072),r=n.n(i),o=n(7825),a=n.n(o),s=n(7659),l=n.n(s),u=n(5056),h=n.n(u),c=n(540),p=n.n(c),d=n(1113),f=n.n(d),y=n(9164),g={};g.styleTagTransform=f(),g.setAttributes=h(),g.insert=l().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},5072(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],u=i.base?l[0]+i.base:l[0],h=o[u]||0,c="".concat(u," ").concat(h);o[u]=h+1;var p=n(c),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var f=r(d,i);i.byIndex=s,e.splice(s,0,{identifier:c,updater:f,references:1})}a.push(c)}return a}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=i(t,r),u=0;u<o.length;u++){var h=n(o[u]);0===e[h].references&&(e[h].updater(),e.splice(h,1))}o=l}}},7659(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7825(t){"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},572(t){t.exports="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3c!-- License: CC-BY 4.0, IndiScale GmbH and zwicon https://www.zwicon.com/ --%3e%3cpath d='M5.5 3a.5.5 0 0 1 0 1A1.5 1.5 0 0 0 4 5.5a.5.5 0 0 1-1 0A2.5 2.5 0 0 1 5.5 3zm3 1a.5.5 0 0 1 0-1h2a.5.5 0 0 1 0 1zm5 0a.5.5 0 0 1 0-1h2a.5.5 0 0 1 0 1zm-5 17a.5.5 0 0 1 0-1h2a.5.5 0 0 1 0 1zM3 8.5a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0zm0 5a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0zm0 5a.5.5 0 0 1 1 0A1.5 1.5 0 0 0 5.5 20a.5.5 0 0 1 0 1A2.5 2.5 0 0 1 3 18.5zm18-8a.5.5 0 0 1-1 0v-2a.5.5 0 0 1 1 0zm0-5a.5.5 0 0 1-1 0A1.5 1.5 0 0 0 18.5 4a.5.5 0 0 1 0-1A2.5 2.5 0 0 1 21 5.5z'/%3e%3cpath d='M19.362 17.904a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zm.258-3.844a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e"},6426(t,e,n){"use strict";t.exports=n.p+"8f2c4d11474275fbc161.png"},1601(t,e,n){"use strict";t.exports=n.p+"416d91365b44e4b4f477.png"},9927(t,e,n){"use strict";t.exports=n.p+"2b3e1faf89f94a483539.png"},5586(t){"use strict";t.exports=e},156(e){"use strict";e.exports=t},8567(t,e,n){"use strict";n.r(e),n.d(e,{AttributionControl:()=>R,Circle:()=>T,CircleMarker:()=>P,FeatureGroup:()=>L,GeoJSON:()=>B,ImageOverlay:()=>F,LayerGroup:()=>O,LayersControl:()=>D,MapContainer:()=>G,Marker:()=>U,Pane:()=>Z,Polygon:()=>Y,Polyline:()=>Q,Popup:()=>$,Rectangle:()=>X,SVGOverlay:()=>et,ScaleControl:()=>J,TileLayer:()=>it,Tooltip:()=>rt,VideoOverlay:()=>ot,WMSTileLayer:()=>at,ZoomControl:()=>st,useMap:()=>l,useMapEvent:()=>u,useMapEvents:()=>h});var i=n(156);function r(t,e){return Object.freeze({...t,...e})}const o=(0,i.createContext)(null),a=o.Provider;function s(){const t=(0,i.useContext)(o);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}function l(){return s().map}function u(t,e){const n=l();return(0,i.useEffect)(function(){return n.on(t,e),function(){n.off(t,e)}},[n,t,e]),n}function h(t){const e=l();return(0,i.useEffect)(function(){return e.on(t),function(){e.off(t)}},[e,t]),e}var c=n(961);function p(t){function e(e,n){const{instance:r,context:o}=t(e).current;return(0,i.useImperativeHandle)(n,()=>r),null==e.children?null:i.createElement(a,{value:o},e.children)}return(0,i.forwardRef)(e)}function d(t){function e(e,n){const{instance:r}=t(e).current;return(0,i.useImperativeHandle)(n,()=>r),null}return(0,i.forwardRef)(e)}function f(t){return function(e){const n=s(),r=t(e,n),{instance:o}=r.current,a=(0,i.useRef)(e.position),{position:l}=e;return(0,i.useEffect)(function(){return o.addTo(n.map),function(){o.remove()}},[n.map,o]),(0,i.useEffect)(function(){null!=l&&l!==a.current&&(o.setPosition(l),a.current=l)},[o,l]),r}}function y(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function g(t,e){return null==e?function(e,n){const r=(0,i.useRef)();return r.current||(r.current=t(e,n)),r}:function(n,r){const o=(0,i.useRef)();o.current||(o.current=t(n,r));const a=(0,i.useRef)(n),{instance:s}=o.current;return(0,i.useEffect)(function(){a.current!==n&&(e(s,n,a.current),a.current=n)},[s,n,r]),o}}function v(t,e){const n=(0,i.useRef)(e);(0,i.useEffect)(function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e},[t,e])}function m(t,e){const n=(0,i.useRef)();(0,i.useEffect)(function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}},[t,e])}function _(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function b(t,e){(0,i.useEffect)(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function w(t){return function(e){const n=s(),i=t(_(e,n),n);return v(n.map,e.attribution),m(i.current,e.eventHandlers),b(i.current,n),i}}function E(t){return d(f(g(function(e,n){return y(t(e),n)})))}function k(t,e){return p(w(g(t,e)))}function A(t,e){const n=function(t,e){return function(n,i){const r=s(),o=t(_(n,r),r);return v(r.map,n.attribution),m(o.current,n.eventHandlers),e(o.current,r,n,i),o}}(g(t),e);return function(t){function e(e,n){const[r,o]=(0,i.useState)(!1),{instance:a}=t(e,o).current;(0,i.useImperativeHandle)(n,()=>a),(0,i.useEffect)(function(){r&&a.update()},[a,r,e.children]);const s=a._contentNode;return s?(0,c.createPortal)(e.children,s):null}return(0,i.forwardRef)(e)}(n)}function M(t,e){return p((n=g(t,e),function(t){const e=s(),r=n(_(t,e),e);return m(r.current,t.eventHandlers),b(r.current,e),function(t,e){const n=(0,i.useRef)();(0,i.useEffect)(function(){if(e.pathOptions!==n.current){const i=e.pathOptions??{};t.instance.setStyle(i),n.current=i}},[t,e])}(r.current,t),r}));var n}function C(t,e){return d(w(g(t,e)))}var S=n(3481);const R=E(function(t){return new S.Control.Attribution(t)});function x(t,e,n){e.center!==n.center&&t.setLatLng(e.center),null!=e.radius&&e.radius!==n.radius&&t.setRadius(e.radius)}const T=M(function({center:t,children:e,...n},i){const o=new S.Circle(t,n);return y(o,r(i,{overlayContainer:o}))},x),P=M(function({center:t,children:e,...n},i){const o=new S.CircleMarker(t,n);return y(o,r(i,{overlayContainer:o}))},x),L=M(function({children:t,...e},n){const i=new S.FeatureGroup([],e);return y(i,r(n,{layerContainer:i,overlayContainer:i}))}),B=M(function({data:t,...e},n){const i=new S.GeoJSON(t,e);return y(i,r(n,{overlayContainer:i}))},function(t,e,n){e.style!==n.style&&(null==e.style?t.resetStyle():t.setStyle(e.style))});function I(t,e,n){e.bounds instanceof S.LatLngBounds&&e.bounds!==n.bounds&&t.setBounds(e.bounds),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=e.zIndex&&e.zIndex!==n.zIndex&&t.setZIndex(e.zIndex)}const F=k(function({bounds:t,url:e,...n},i){const o=new S.ImageOverlay(e,t,n);return y(o,r(i,{overlayContainer:o}))},function(t,e,n){if(I(t,e,n),e.bounds!==n.bounds){const n=e.bounds instanceof S.LatLngBounds?e.bounds:new S.LatLngBounds(e.bounds);t.setBounds(n)}e.url!==n.url&&t.setUrl(e.url)}),O=k(function({children:t,...e},n){const i=new S.LayerGroup([],e);return y(i,r(n,{layerContainer:i}))}),D=p(f(g(function({children:t,...e},n){const i=new S.Control.Layers(void 0,void 0,e);return y(i,r(n,{layersControl:i}))},function(t,e,n){e.collapsed!==n.collapsed&&(!0===e.collapsed?t.collapse():t.expand())})));function z(t){return function(e){const n=s(),o=(0,i.useRef)(e),[l,u]=(0,i.useState)(null),{layersControl:h,map:c}=n,p=(0,i.useCallback)(e=>{null!=h&&(o.current.checked&&c.addLayer(e),t(h,e,o.current.name),u(e))},[h,c]),d=(0,i.useCallback)(t=>{h?.removeLayer(t),u(null)},[h]),f=(0,i.useMemo)(()=>r(n,{layerContainer:{addLayer:p,removeLayer:d}}),[n,p,d]);return(0,i.useEffect)(()=>{null!==l&&o.current!==e&&(!0!==e.checked||null!=o.current.checked&&!1!==o.current.checked?!0!==o.current.checked||null!=e.checked&&!1!==e.checked||c.removeLayer(l):c.addLayer(l),o.current=e)}),e.children?i.createElement(a,{value:f},e.children):null}}function N(){return N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},N.apply(this,arguments)}function j({bounds:t,boundsOptions:e,center:n,children:r,className:o,id:s,placeholder:l,style:u,whenReady:h,zoom:c,...p},d){const[f]=(0,i.useState)({className:o,id:s,style:u}),[y,g]=(0,i.useState)(null);(0,i.useImperativeHandle)(d,()=>y?.map??null,[y]);const v=(0,i.useCallback)(i=>{if(null!==i&&null===y){const r=new S.Map(i,p);null!=n&&null!=c?r.setView(n,c):null!=t&&r.fitBounds(t,e),null!=h&&r.whenReady(h),g(function(t){return Object.freeze({__version:1,map:t})}(r))}},[]);(0,i.useEffect)(()=>()=>{y?.map.remove()},[y]);const m=y?i.createElement(a,{value:y},r):l??null;return i.createElement("div",N({},f,{ref:v}),m)}D.BaseLayer=z(function(t,e,n){t.addBaseLayer(e,n)}),D.Overlay=z(function(t,e,n){t.addOverlay(e,n)});const G=(0,i.forwardRef)(j),U=k(function({position:t,...e},n){const i=new S.Marker(t,e);return y(i,r(n,{overlayContainer:i}))},function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())});function W(t,e){(function(t){return t.split(" ").filter(Boolean)})(e).forEach(e=>{S.DomUtil.addClass(t,e)})}const q=["mapPane","markerPane","overlayPane","popupPane","shadowPane","tilePane","tooltipPane"];function V(t,e){const{[e]:n,...i}=t;return i}function H(t,e){const[n]=(0,i.useState)(t.name),[r,o]=(0,i.useState)(null);(0,i.useImperativeHandle)(e,()=>r,[r]);const l=s(),u=(0,i.useMemo)(()=>({...l,pane:n}),[l]);return(0,i.useEffect)(()=>(o(function(t,e,n){if(-1!==q.indexOf(t))throw new Error(`You must use a unique name for a pane that is not a default Leaflet pane: ${t}`);if(null!=n.map.getPane(t))throw new Error(`A pane with this name already exists: ${t}`);const i=e.pane??n.pane,r=i?n.map.getPane(i):void 0,o=n.map.createPane(t,r);return null!=e.className&&W(o,e.className),null!=e.style&&Object.keys(e.style).forEach(t=>{o.style[t]=e.style[t]}),o}(n,t,l)),function(){const t=l.map.getPane(n);t?.remove?.(),null!=l.map._panes&&(l.map._panes=V(l.map._panes,n),l.map._paneRenderers=V(l.map._paneRenderers,n))}),[]),null!=t.children&&null!=r?(0,c.createPortal)(i.createElement(a,{value:u},t.children),r):null}const Z=(0,i.forwardRef)(H),Y=M(function({positions:t,...e},n){const i=new S.Polygon(t,e);return y(i,r(n,{overlayContainer:i}))},function(t,e,n){e.positions!==n.positions&&t.setLatLngs(e.positions)}),Q=M(function({positions:t,...e},n){const i=new S.Polyline(t,e);return y(i,r(n,{overlayContainer:i}))},function(t,e,n){e.positions!==n.positions&&t.setLatLngs(e.positions)}),$=A(function(t,e){return y(new S.Popup(t,e.overlayContainer),e)},function(t,e,{position:n},r){(0,i.useEffect)(function(){const{instance:i}=t;function o(t){t.popup===i&&(i.update(),r(!0))}function a(t){t.popup===i&&r(!1)}return e.map.on({popupopen:o,popupclose:a}),null==e.overlayContainer?(null!=n&&i.setLatLng(n),i.openOn(e.map)):e.overlayContainer.bindPopup(i),function(){e.map.off({popupopen:o,popupclose:a}),e.overlayContainer?.unbindPopup(),e.map.removeLayer(i)}},[t,e,r,n])}),X=M(function({bounds:t,...e},n){const i=new S.Rectangle(t,e);return y(i,r(n,{overlayContainer:i}))},function(t,e,n){e.bounds!==n.bounds&&t.setBounds(e.bounds)}),J=E(function(t){return new S.Control.Scale(t)}),K=w(g(function(t,e){const{attributes:n,bounds:i,...r}=t,o=document.createElementNS("http://www.w3.org/2000/svg","svg");return o.setAttribute("xmlns","http://www.w3.org/2000/svg"),null!=n&&Object.keys(n).forEach(t=>{o.setAttribute(t,n[t])}),y(new S.SVGOverlay(o,i,r),e,o)},I));function tt({children:t,...e},n){const{instance:r,container:o}=K(e).current;return(0,i.useImperativeHandle)(n,()=>r),null==o||null==t?null:(0,c.createPortal)(t,o)}const et=(0,i.forwardRef)(tt);function nt(t,e,n){const{opacity:i,zIndex:r}=e;null!=i&&i!==n.opacity&&t.setOpacity(i),null!=r&&r!==n.zIndex&&t.setZIndex(r)}const it=C(function({url:t,...e},n){return y(new S.TileLayer(t,_(e,n)),n)},function(t,e,n){nt(t,e,n);const{url:i}=e;null!=i&&i!==n.url&&t.setUrl(i)}),rt=A(function(t,e){return y(new S.Tooltip(t,e.overlayContainer),e)},function(t,e,{position:n},r){(0,i.useEffect)(function(){const i=e.overlayContainer;if(null==i)return;const{instance:o}=t,a=t=>{t.tooltip===o&&(null!=n&&o.setLatLng(n),o.update(),r(!0))},s=t=>{t.tooltip===o&&r(!1)};return i.on({tooltipopen:a,tooltipclose:s}),i.bindTooltip(o),function(){i.off({tooltipopen:a,tooltipclose:s}),null!=i._map&&i.unbindTooltip()}},[t,e,r,n])}),ot=k(function({bounds:t,url:e,...n},i){const o=new S.VideoOverlay(e,t,n);return!0===n.play&&o.getElement()?.play(),y(o,r(i,{overlayContainer:o}))},function(t,e,n){I(t,e,n),"string"==typeof e.url&&e.url!==n.url&&t.setUrl(e.url);const i=t.getElement();null!=i&&(!0!==e.play||n.play?e.play||!0!==n.play||i.pause():i.play())}),at=C(function({eventHandlers:t,params:e={},url:n,...i},r){return y(new S.TileLayer.WMS(n,{...e,..._(i,r)}),r)},function(t,e,n){nt(t,e,n),null!=e.params&&e.params!==n.params&&t.setParams(e.params)}),st=E(function(t){return new S.Control.Zoom(t)})},7241(t){"use strict";t.exports=JSON.parse('{"version":"0.5.0","default_view":"UNCONFIGURED","datamodel":{"lat":"latitude","lng":"longitude"},"select":{"query":{"role":"RECORD","entity":""},"paths":{"PathObject":["PathObject","MapObject"]}},"entityLayers":{"current_page_entities":{"active":true,"name":"Entities on the current page.","description":"Show all entities on the current page.","icon_options":{"html":"<i class=\\"bi-geo-alt-fill\\" style=\\"font-size: 20px; color: #00F;\\"></i>","iconAnchor":[10,19],"className":""},"zIndexOffset":1000},"all_map_entities":{"active":true,"name":"All entities","description":"Show all entities with coordinates.","icon_options":{"html":"<i class=\\"bi-geo-alt-fill\\" style=\\"font-size: 20px; color: #F00;\\"></i>","iconAnchor":[10,19],"className":""},"zIndexOffset":0}},"views":[{"id":"UNCONFIGURED","zoom":10,"center":{"lat":0,"lng":0},"select":false,"view_change":false,"tileLayer":{"type":"wms","url":"/map_tile_caosdb_logo.png"}}]}')}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=n,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})(),r.b="undefined"!=typeof document&&document.baseURI||self.location.href,r.nc=void 0;var o={};return(()=>{"use strict";var t=o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return e.Map}}),Object.defineProperty(t,"ToggleMapButton",{enumerable:!0,get:function(){return n.ToggleMapButton}}),r(2962),r(7452);var e=r(8445),n=r(7582)})(),o})());
|
|
3
|
+
//# sourceMappingURL=linkahead-webui-ext-map.js.map
|