ol-wfst 3.0.5 → 4.0.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/LICENSE.md +21 -0
  3. package/README.md +532 -182
  4. package/dist/@enums.d.ts +5 -0
  5. package/dist/@enums.d.ts.map +1 -1
  6. package/dist/@types.d.ts +163 -0
  7. package/dist/@types.d.ts.map +1 -0
  8. package/dist/Geoserver.d.ts +260 -0
  9. package/dist/Geoserver.d.ts.map +1 -0
  10. package/dist/WfsLayer.d.ts +40 -0
  11. package/dist/WfsLayer.d.ts.map +1 -0
  12. package/dist/WmsLayer.d.ts +48 -0
  13. package/dist/WmsLayer.d.ts.map +1 -0
  14. package/dist/css/ol-wfst.css +19 -18
  15. package/dist/css/ol-wfst.min.css +1 -1
  16. package/dist/defaults.d.ts +4 -0
  17. package/dist/defaults.d.ts.map +1 -0
  18. package/dist/modules/EditControlChanges.d.ts +18 -0
  19. package/dist/modules/EditControlChanges.d.ts.map +1 -0
  20. package/dist/modules/EditFieldsModal.d.ts +18 -0
  21. package/dist/modules/EditFieldsModal.d.ts.map +1 -0
  22. package/dist/modules/EditOverlay.d.ts +7 -0
  23. package/dist/modules/EditOverlay.d.ts.map +1 -0
  24. package/dist/modules/LayersControl.d.ts +35 -0
  25. package/dist/modules/LayersControl.d.ts.map +1 -0
  26. package/dist/modules/Modes/WfsSource.d.ts +60 -0
  27. package/dist/modules/Modes/WfsSource.d.ts.map +1 -0
  28. package/dist/modules/Modes/WmsSource.d.ts +82 -0
  29. package/dist/modules/Modes/WmsSource.d.ts.map +1 -0
  30. package/dist/modules/Modes/baseLayer.d.ts +62 -0
  31. package/dist/modules/Modes/baseLayer.d.ts.map +1 -0
  32. package/dist/modules/Modes/baseSource.d.ts +103 -0
  33. package/dist/modules/Modes/baseSource.d.ts.map +1 -0
  34. package/dist/modules/Uploads.d.ts +47 -0
  35. package/dist/modules/Uploads.d.ts.map +1 -0
  36. package/dist/modules/editLayer.d.ts +4 -0
  37. package/dist/modules/editLayer.d.ts.map +1 -0
  38. package/dist/modules/errors.d.ts +11 -0
  39. package/dist/modules/errors.d.ts.map +1 -0
  40. package/dist/modules/helpers.d.ts +7 -0
  41. package/dist/modules/helpers.d.ts.map +1 -0
  42. package/dist/{assets → modules}/i18n/en.d.ts +0 -0
  43. package/dist/modules/i18n/en.d.ts.map +1 -0
  44. package/dist/{assets → modules}/i18n/es.d.ts +0 -0
  45. package/dist/modules/i18n/es.d.ts.map +1 -0
  46. package/dist/modules/i18n/index.d.ts +15 -0
  47. package/dist/modules/i18n/index.d.ts.map +1 -0
  48. package/dist/{assets → modules}/i18n/zh.d.ts +0 -0
  49. package/dist/modules/i18n/zh.d.ts.map +1 -0
  50. package/dist/modules/loading.d.ts +3 -0
  51. package/dist/modules/loading.d.ts.map +1 -0
  52. package/dist/modules/state.d.ts +22 -0
  53. package/dist/modules/state.d.ts.map +1 -0
  54. package/dist/modules/styleFunction.d.ts +13 -0
  55. package/dist/modules/styleFunction.d.ts.map +1 -0
  56. package/dist/myPragma.d.ts +2 -0
  57. package/dist/myPragma.d.ts.map +1 -0
  58. package/dist/ol-wfst.d.ts +83 -326
  59. package/dist/ol-wfst.d.ts.map +1 -1
  60. package/dist/ol-wfst.js +6369 -5139
  61. package/dist/ol-wfst.js.map +1 -1
  62. package/dist/ol-wfst.min.js +1 -15
  63. package/dist/ol-wfst.min.js.map +1 -1
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/lib/@enums.d.ts +5 -0
  66. package/lib/@enums.d.ts.map +1 -1
  67. package/lib/@types.d.ts +163 -0
  68. package/lib/@types.d.ts.map +1 -0
  69. package/lib/Geoserver.d.ts +260 -0
  70. package/lib/Geoserver.d.ts.map +1 -0
  71. package/lib/WfsLayer.d.ts +40 -0
  72. package/lib/WfsLayer.d.ts.map +1 -0
  73. package/lib/WmsLayer.d.ts +48 -0
  74. package/lib/WmsLayer.d.ts.map +1 -0
  75. package/lib/defaults.d.ts +4 -0
  76. package/lib/defaults.d.ts.map +1 -0
  77. package/lib/index-es.js +3008 -0
  78. package/lib/index-es.js.map +1 -0
  79. package/lib/modules/EditControlChanges.d.ts +18 -0
  80. package/lib/modules/EditControlChanges.d.ts.map +1 -0
  81. package/lib/modules/EditFieldsModal.d.ts +18 -0
  82. package/lib/modules/EditFieldsModal.d.ts.map +1 -0
  83. package/lib/modules/EditOverlay.d.ts +7 -0
  84. package/lib/modules/EditOverlay.d.ts.map +1 -0
  85. package/lib/modules/LayersControl.d.ts +35 -0
  86. package/lib/modules/LayersControl.d.ts.map +1 -0
  87. package/lib/modules/Modes/WfsSource.d.ts +60 -0
  88. package/lib/modules/Modes/WfsSource.d.ts.map +1 -0
  89. package/lib/modules/Modes/WmsSource.d.ts +82 -0
  90. package/lib/modules/Modes/WmsSource.d.ts.map +1 -0
  91. package/lib/modules/Modes/baseLayer.d.ts +62 -0
  92. package/lib/modules/Modes/baseLayer.d.ts.map +1 -0
  93. package/lib/modules/Modes/baseSource.d.ts +103 -0
  94. package/lib/modules/Modes/baseSource.d.ts.map +1 -0
  95. package/lib/modules/Uploads.d.ts +47 -0
  96. package/lib/modules/Uploads.d.ts.map +1 -0
  97. package/lib/modules/editLayer.d.ts +4 -0
  98. package/lib/modules/editLayer.d.ts.map +1 -0
  99. package/lib/modules/errors.d.ts +11 -0
  100. package/lib/modules/errors.d.ts.map +1 -0
  101. package/lib/modules/helpers.d.ts +7 -0
  102. package/lib/modules/helpers.d.ts.map +1 -0
  103. package/lib/{assets → modules}/i18n/en.d.ts +0 -0
  104. package/lib/modules/i18n/en.d.ts.map +1 -0
  105. package/lib/{assets → modules}/i18n/es.d.ts +0 -0
  106. package/lib/modules/i18n/es.d.ts.map +1 -0
  107. package/lib/modules/i18n/index.d.ts +15 -0
  108. package/lib/modules/i18n/index.d.ts.map +1 -0
  109. package/lib/{assets → modules}/i18n/zh.d.ts +0 -0
  110. package/lib/modules/i18n/zh.d.ts.map +1 -0
  111. package/lib/modules/loading.d.ts +3 -0
  112. package/lib/modules/loading.d.ts.map +1 -0
  113. package/lib/modules/state.d.ts +22 -0
  114. package/lib/modules/state.d.ts.map +1 -0
  115. package/lib/modules/styleFunction.d.ts +13 -0
  116. package/lib/modules/styleFunction.d.ts.map +1 -0
  117. package/lib/myPragma.d.ts +2 -0
  118. package/lib/myPragma.d.ts.map +1 -0
  119. package/lib/ol-wfst.d.ts +83 -326
  120. package/lib/ol-wfst.d.ts.map +1 -1
  121. package/lib/style/css/ol-gisify.css +19 -18
  122. package/lib/style/scss/_variables.scss +17 -0
  123. package/lib/style/scss/ol-wfst.scss +31 -28
  124. package/lib/tsconfig.tsbuildinfo +1 -1
  125. package/package.json +6 -5
  126. package/dist/assets/i18n/en.d.ts.map +0 -1
  127. package/dist/assets/i18n/es.d.ts.map +0 -1
  128. package/dist/assets/i18n/index.d.ts +0 -4
  129. package/dist/assets/i18n/index.d.ts.map +0 -1
  130. package/dist/assets/i18n/zh.d.ts.map +0 -1
  131. package/lib/assets/i18n/en.d.ts.map +0 -1
  132. package/lib/assets/i18n/es.d.ts.map +0 -1
  133. package/lib/assets/i18n/index.d.ts +0 -4
  134. package/lib/assets/i18n/index.d.ts.map +0 -1
  135. package/lib/assets/i18n/zh.d.ts.map +0 -1
  136. package/lib/ol-wfst.js +0 -2276
  137. package/lib/ol-wfst.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditControlChanges.d.ts","sourceRoot":"","sources":["../../src/modules/EditControlChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MA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from 'ol/geom';
3
+ import Modal from 'modal-vanilla';
4
+ import { Options } from '../ol-wfst';
5
+ /**
6
+ * Shows a fields form in a modal window to allow changes in the properties of the feature.
7
+ *
8
+ * @param feature
9
+ * @private
10
+ */
11
+ export declare class EditFieldsModal extends Observable {
12
+ protected _options: Options['modal'];
13
+ protected _modal: Modal;
14
+ protected _feature: Feature;
15
+ constructor(options: Options['modal']);
16
+ show(feature: Feature<Geometry>): void;
17
+ }
18
+ //# sourceMappingURL=EditFieldsModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditFieldsModal.d.ts","sourceRoot":"","sources":["../../src/modules/EditFieldsModal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,MAAM,eAAe,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IACxB,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;gBAEhB,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IAoDrC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CAsDlC"}
@@ -0,0 +1,7 @@
1
+ import { Geometry } from 'ol/geom';
2
+ import { Feature, Overlay } from 'ol';
3
+ import { Coordinate } from 'ol/coordinate';
4
+ export default class EditOverlay extends Overlay {
5
+ constructor(feature: Feature<Geometry>, coordinate?: Coordinate);
6
+ }
7
+ //# sourceMappingURL=EditOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditOverlay.d.ts","sourceRoot":"","sources":["../../src/modules/EditOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;gBAChC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAE,UAAiB;CA6CxE"}
@@ -0,0 +1,35 @@
1
+ import { Observable } from 'ol';
2
+ import { Options, WfsLayer, WmsLayer } from '../ol-wfst';
3
+ import { GeometryType } from '../@enums';
4
+ import Uploads from './Uploads';
5
+ /**
6
+ * Removes in the DOM the class of the tools
7
+ * @private
8
+ */
9
+ export declare const resetStateButtons: () => void;
10
+ export declare const activateModeButtons: () => void;
11
+ export declare const activateDrawButton: () => void;
12
+ export declare const visibleLayer: (bool?: boolean) => void;
13
+ export default class LayersControl extends Observable {
14
+ protected _uploads: Uploads;
15
+ protected _uploadFormats: Options['uploadFormats'];
16
+ constructor(uploads: Uploads, uploadFormats: Options['uploadFormats']);
17
+ /**
18
+ *
19
+ * @param layer
20
+ * @public
21
+ */
22
+ addLayerEl(layer: WfsLayer | WmsLayer): any;
23
+ /**
24
+ * Update geom Types availibles to select for this layer
25
+ *
26
+ * @param layerName
27
+ * @param geomDrawTypeSelected
28
+ * @private
29
+ */
30
+ _changeStateSelect(layer: WmsLayer | WfsLayer, geomDrawTypeSelected?: GeometryType): GeometryType;
31
+ _visibilityClickHandler(evt: any): void;
32
+ _layerChangeHandler(evt: any, layer: any): void;
33
+ render(): HTMLElement;
34
+ }
35
+ //# sourceMappingURL=LayersControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayersControl.d.ts","sourceRoot":"","sources":["../../src/modules/LayersControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQzD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAK/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAK9B,CAAC;AAEF,eAAO,MAAM,YAAY,0BAKxB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACjD,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;IAOrE;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ;IAoErC;;;;;;OAMG;IACH,kBAAkB,CACd,KAAK,EAAE,QAAQ,GAAG,QAAQ,EAC1B,oBAAoB,GAAE,YAAmB,GAC1C,YAAY;IA8Df,uBAAuB,CAAC,GAAG,KAAA;IAa3B,mBAAmB,CAAC,GAAG,KAAA,EAAE,KAAK,KAAA;IAiB9B,MAAM,IAAI,WAAW;CAkExB"}
@@ -0,0 +1,60 @@
1
+ import Geometry from 'ol/geom/Geometry';
2
+ import VectorSource, { Options as VSOptions } from 'ol/source/Vector';
3
+ import { WfsGeoserverVendor } from '../../@types';
4
+ import { GeoServerAdvanced } from '../../Geoserver';
5
+ import BaseSource from './BaseSource';
6
+ declare const WfsSource_base: import("ts-mixer/dist/types/types").Class<any[], VectorSource<Geometry> & BaseSource, (new (options?: VSOptions<Geometry>) => VectorSource<Geometry>) & typeof BaseSource, false>;
7
+ export default class WfsSource extends WfsSource_base {
8
+ private geoserverProps_;
9
+ private urlParams_;
10
+ constructor(options: Options);
11
+ /**
12
+ * @public
13
+ * @param value
14
+ * @param opt_silent
15
+ */
16
+ setStrict(value: boolean, opt_silent: boolean): void;
17
+ /**
18
+ * @public
19
+ * @returns
20
+ */
21
+ getStrict(): boolean;
22
+ /**
23
+ * @private
24
+ */
25
+ addEvents_(): void;
26
+ }
27
+ export interface Options extends VSOptions {
28
+ /**
29
+ * Layer name in the GeoServer
30
+ */
31
+ name: string;
32
+ /**
33
+ * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
34
+ */
35
+ geoserverUrl: string;
36
+ /**
37
+ * Advanced options for geoserver requests
38
+ */
39
+ geoServerAdvanced?: GeoServerAdvanced;
40
+ /**
41
+ *
42
+ */
43
+ geoserverVendor?: WfsGeoserverVendor;
44
+ /**
45
+ * Url headers for GeoServer requests. You can use it to add Authorization credentials
46
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
47
+ */
48
+ headers?: HeadersInit;
49
+ /**
50
+ * Credentials for fetch requests
51
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
52
+ */
53
+ credentials?: RequestCredentials;
54
+ }
55
+ export declare enum WfsSourceProperty {
56
+ STRICT = "strict"
57
+ }
58
+ export declare type WfsSourceEventTypes = `change:${WfsSourceProperty.STRICT}`;
59
+ export {};
60
+ //# sourceMappingURL=WfsSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WfsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/Modes/WfsSource.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,YAAY,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAOtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,UAAU,MAAM,cAAc,CAAC;;AAEtC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,cAA+B;IAClE,OAAO,CAAC,eAAe,CAUrB;IAEF,OAAO,CAAC,UAAU,CAKf;gBAES,OAAO,EAAE,OAAO;IAwJ5B;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAIpD;;;OAGG;IACH,SAAS,IAAI,OAAO;IAIpB;;OAEG;IACH,UAAU,IAAI,IAAI;CAQrB;AAED,MAAM,WAAW,OAAQ,SAAQ,SAAS;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IAErC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAED,oBAAY,iBAAiB;IACzB,MAAM,WAAW;CACpB;AAED,oBAAY,mBAAmB,GAAG,UAAU,iBAAiB,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,82 @@
1
+ import TileWMS, { Options as TSOptions } from 'ol/source/TileWMS';
2
+ import { WmsGeoserverVendor } from '../../@types';
3
+ import BaseSource from './BaseSource';
4
+ import { GeoServerAdvanced } from '../../Geoserver';
5
+ declare const WmsSource_base: import("ts-mixer/dist/types/types").Class<any[], TileWMS & BaseSource, typeof TileWMS & typeof BaseSource, false>;
6
+ export default class WmsSource extends WmsSource_base {
7
+ private geoserverProps_;
8
+ constructor(options: Options);
9
+ /**
10
+ * @public
11
+ * @param value
12
+ * @param opt_silent
13
+ */
14
+ setBuffer(value: string | number, opt_silent: boolean): void;
15
+ /**
16
+ * @public
17
+ * @returns
18
+ */
19
+ getBuffer(): string | number;
20
+ /**
21
+ * @public
22
+ * @param value
23
+ * @param opt_silent
24
+ */
25
+ setEnv(value: string, opt_silent: boolean): void;
26
+ /**
27
+ * @public
28
+ * @returns
29
+ */
30
+ getEnv(): string;
31
+ /**
32
+ * @public
33
+ * @param value
34
+ * @param opt_silent
35
+ */
36
+ setClip(value: string, opt_silent: boolean): void;
37
+ /**
38
+ * @public
39
+ * @returns
40
+ */
41
+ getClip(): string;
42
+ /**
43
+ * @private
44
+ */
45
+ addEvents_(): void;
46
+ }
47
+ export interface Options extends Omit<TSOptions, 'params'> {
48
+ /**
49
+ * Layer name in the GeoServer
50
+ */
51
+ name: string;
52
+ /**
53
+ * Url for OWS services. This endpoint will recive the WFS, WFST and WMS requests
54
+ */
55
+ geoserverUrl: string;
56
+ /**
57
+ * Advanced options for geoserver requests
58
+ */
59
+ geoServerAdvanced?: GeoServerAdvanced;
60
+ /**
61
+ *
62
+ */
63
+ geoserverVendor?: WmsGeoserverVendor;
64
+ /**
65
+ * Url headers for GeoServer requests. You can use it to add Authorization credentials
66
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/headers
67
+ */
68
+ headers?: HeadersInit;
69
+ /**
70
+ * Credentials for fetch requests
71
+ * https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
72
+ */
73
+ credentials?: RequestCredentials;
74
+ }
75
+ export declare enum WmsSourceProperty {
76
+ BUFFER = "buffer",
77
+ ENV = "env",
78
+ CLIP = "clip"
79
+ }
80
+ export declare type WmsSourceEventTypes = `change:${WmsSourceProperty.BUFFER}` | `change:${WmsSourceProperty.ENV}` | `change:${WmsSourceProperty.CLIP}`;
81
+ export {};
82
+ //# sourceMappingURL=WmsSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WmsSource.d.ts","sourceRoot":"","sources":["../../../src/modules/Modes/WmsSource.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAA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/geom';
3
+ import { TransactionResponse } from 'ol/format/WFS';
4
+ import Geoserver from '../../Geoserver';
5
+ import { IGeoserverDescribeFeatureType } from '../../@types';
6
+ import { TransactionType } from '../../@enums';
7
+ import Layer from 'ol/layer/Base';
8
+ /**
9
+ * Base class from which all layer types are derived.
10
+ */
11
+ export default class BaseLayer extends Layer {
12
+ /**
13
+ * @private
14
+ */
15
+ _init(): void;
16
+ /**
17
+ * Request and store data layers obtained by DescribeFeatureType
18
+ *
19
+ * @public
20
+ */
21
+ getAndUpdateDescribeFeatureType(): Promise<void>;
22
+ /**
23
+ * @public
24
+ * @returns
25
+ */
26
+ isVisibleByZoom(): boolean;
27
+ /**
28
+ *
29
+ * @param mode
30
+ * @param features
31
+ * @public
32
+ */
33
+ transactFeatures(mode: TransactionType, features: Array<Feature<Geometry>> | Feature<Geometry>): Promise<TransactionResponse | false>;
34
+ insertFeatures(features: Array<Feature<Geometry>> | Feature<Geometry>): Promise<TransactionResponse | false>;
35
+ /**
36
+ * @public
37
+ * @param featureId
38
+ * @returns
39
+ */
40
+ maybeLockFeature(featureId: string | number): Promise<string>;
41
+ /**
42
+ *
43
+ * @returns
44
+ * @public
45
+ */
46
+ getGeoserver(): Geoserver;
47
+ /**
48
+ *
49
+ * @returns
50
+ * @public
51
+ */
52
+ getDescribeFeatureType(): IGeoserverDescribeFeatureType;
53
+ }
54
+ export declare enum BaseLayerProperty {
55
+ NAME = "name",
56
+ LABEL = "label",
57
+ DESCRIBEFEATURETYPE = "describeFeatureType",
58
+ ISVISIBLE = "isVisible",
59
+ GEOSERVER = "geoserver"
60
+ }
61
+ export declare type BaseLayerEventTypes = 'layerRendered' | `change:${BaseLayerProperty.DESCRIBEFEATURETYPE}` | `change:${BaseLayerProperty.ISVISIBLE}`;
62
+ //# sourceMappingURL=BaseLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseLayer.d.ts","sourceRoot":"","sources":["../../../src/modules/Modes/BaseLayer.ts"],"names":[],"mappings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AAC,mBAAmB,EAAE,GACjD,UAAU,iBAAiB,CAAC,SAAS,EAAE,CAAC"}
@@ -0,0 +1,103 @@
1
+ import BaseObject from 'ol/Object';
2
+ export default class BaseSource extends BaseObject {
3
+ /**
4
+ * @public
5
+ * @param value
6
+ * @param opt_silent
7
+ */
8
+ setCqlFilter(value: string, opt_silent: boolean): void;
9
+ /**
10
+ * @public
11
+ * @returns
12
+ */
13
+ getCqlFilter(): string;
14
+ /**
15
+ * @public
16
+ * @param value
17
+ * @param opt_silent
18
+ */
19
+ setSortBy(value: string, opt_silent: boolean): void;
20
+ /**
21
+ * @public
22
+ * @returns
23
+ */
24
+ getSortBy(): string;
25
+ /**
26
+ * @public
27
+ * @param value
28
+ * @param opt_silent
29
+ */
30
+ setFeatureId(value: string, opt_silent: boolean): void;
31
+ /**
32
+ * @public
33
+ * @returns
34
+ */
35
+ getFeatureId(): string;
36
+ /**
37
+ * @public
38
+ * @param value
39
+ * @param opt_silent
40
+ */
41
+ setFilter(value: string, opt_silent: boolean): void;
42
+ /**
43
+ * @public
44
+ * @returns
45
+ */
46
+ getFilter(): string;
47
+ /**
48
+ * @public
49
+ * @param value
50
+ * @param opt_silent
51
+ */
52
+ setFormatOptions(value: string, opt_silent: boolean): void;
53
+ /**
54
+ * @public
55
+ * @returns
56
+ */
57
+ getFormatOptions(): string;
58
+ /**
59
+ * @public
60
+ * @param value
61
+ * @param opt_silent
62
+ */
63
+ setMaxFeatures(value: number | string, opt_silent: boolean): void;
64
+ /**
65
+ * @public
66
+ * @returns
67
+ */
68
+ getMaxFeatures(): number | string;
69
+ /**
70
+ * @public
71
+ * @param value
72
+ * @param opt_silent
73
+ */
74
+ setStartIndex(value: number | string, opt_silent: boolean): void;
75
+ /**
76
+ * @public
77
+ * @returns
78
+ */
79
+ getStartIndex(): number | string;
80
+ /**
81
+ * @public
82
+ * @param value
83
+ * @param opt_silent
84
+ */
85
+ setPropertyName(value: string, opt_silent: boolean): void;
86
+ /**
87
+ * @public
88
+ * @returns
89
+ */
90
+ getPropertyName(): string;
91
+ }
92
+ export declare enum BaseSourceProperty {
93
+ CQLFILTER = "cql_filter",
94
+ SORTBY = "sortBy",
95
+ FEATUREID = "featureid",
96
+ FILTER = "filter",
97
+ FORMATOPTIONS = "format_options",
98
+ MAXFEATURES = "maxFeatures",
99
+ STARTINDEX = "startIndex",
100
+ PROPERTYNAME = "propertyname"
101
+ }
102
+ export declare type BaseSourceEventTypes = `change:${BaseSourceProperty.CQLFILTER}` | `change:${BaseSourceProperty.SORTBY}` | `change:${BaseSourceProperty.FEATUREID}` | `change:${BaseSourceProperty.FILTER}` | `change:${BaseSourceProperty.FORMATOPTIONS}` | `change:${BaseSourceProperty.MAXFEATURES}` | `change:${BaseSourceProperty.STARTINDEX}` | `change:${BaseSourceProperty.PROPERTYNAME}`;
103
+ //# sourceMappingURL=BaseSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseSource.d.ts","sourceRoot":"","sources":["../../../src/modules/Modes/BaseSource.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,WAAW,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,UAAU;IAC9C;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAItD;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAInD;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO;IAI/C;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAInD;;;OAGG;IACH,SAAS,IAAI,MAAM;IAInB;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO;IAInD;;;OAGG;IACH,gBAAgB,IAAI,MAAM;IAI1B;;;;OAIG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAIjE;;;OAGG;IACH,cAAc,IAAI,MAAM,GAAG,MAAM;IAIjC;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAIhE;;;OAGG;IACH,aAAa,IAAI,MAAM,GAAG,MAAM;IAIhC;;;;OAIG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,IAAI;IAIzD;;;OAGG;IACH,eAAe,IAAI,MAAM;CAG5B;AAED,oBAAY,kBAAkB;IAC1B,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAChC;AAED,oBAAY,oBAAoB,GAC1B,UAAU,kBAAkB,CAAC,SAAS,EAAE,GACxC,UAAU,kBAAkB,CAAC,MAAM,EAAE,GACrC,UAAU,kBAAkB,CAAC,SAAS,EAAE,GACxC,UAAU,kBAAkB,CAAC,MAAM,EAAE,GACrC,UAAU,kBAAkB,CAAC,aAAa,EAAE,GAC5C,UAAU,kBAAkB,CAAC,WAAW,EAAE,GAC1C,UAAU,kBAAkB,CAAC,UAAU,EAAE,GACzC,UAAU,kBAAkB,CAAC,YAAY,EAAE,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { Geometry } from 'ol/geom';
2
+ import { Feature, Observable } from 'ol';
3
+ import { GeoJSON, KML, WFS } from 'ol/format';
4
+ import { Options } from '../ol-wfst';
5
+ export default class Uploads extends Observable {
6
+ protected _options: Options;
7
+ protected _formatWFS: WFS;
8
+ protected _formatGeoJSON: GeoJSON;
9
+ protected _formatKml: KML;
10
+ protected _xs: XMLSerializer;
11
+ protected _processUpload: Options['processUpload'];
12
+ constructor(options: Options);
13
+ /**
14
+ * Parse and check geometry of uploaded files
15
+ *
16
+ * @param evt
17
+ * @public
18
+ */
19
+ process(evt: Event): Promise<void>;
20
+ /**
21
+ * Read data file
22
+ * @param file
23
+ * @public
24
+ */
25
+ _fileReader(file: File): Promise<string>;
26
+ /**
27
+ * Attemp to change the geometry feature to the layer
28
+ * @param feature
29
+ * @private
30
+ */
31
+ _fixGeometry(feature: Feature<Geometry>): Feature<Geometry>;
32
+ /**
33
+ * Check if the feature has the same geometry as the target layer
34
+ * @param feature
35
+ * @private
36
+ */
37
+ _checkGeometry(feature: Feature<Geometry>): boolean;
38
+ /**
39
+ * Confirm modal before transact to the GeoServer the features in the file
40
+ *
41
+ * @param content
42
+ * @param featuresToInsert
43
+ * @private
44
+ */
45
+ _initModal(content: string, featuresToInsert: Array<Feature<Geometry>>): void;
46
+ }
47
+ //# sourceMappingURL=Uploads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uploads.d.ts","sourceRoot":"","sources":["../../src/modules/Uploads.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAK9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAUrC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC3C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;IAG5B,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAC1B,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC;IAE7B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;gBAEvC,OAAO,EAAE,OAAO;IAkB5B;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAyFxC;;;;OAIG;IACG,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB9C;;;;OAIG;IACH,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgD3D;;;;OAIG;IACH,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO;IAenD;;;;;;OAMG;IACH,UAAU,CACN,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAC3C,IAAI;CAuCV"}
@@ -0,0 +1,4 @@
1
+ import VectorLayer from 'ol/layer/Vector';
2
+ import VectorSource from 'ol/source/Vector';
3
+ export declare const getEditLayer: () => VectorLayer<VectorSource>;
4
+ //# sourceMappingURL=editLayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editLayer.d.ts","sourceRoot":"","sources":["../../src/modules/editLayer.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAO5C,eAAO,MAAM,YAAY,QAAO,YAAY,YAAY,CAEvD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Options } from '../ol-wfst';
2
+ export declare const initModal: (opts: Options['modal']) => void;
3
+ export declare const parseError: (geoserverError: any) => any;
4
+ /**
5
+ * Show modal with errors
6
+ *
7
+ * @param msg
8
+ * @private
9
+ */
10
+ export declare const showError: (msg: string, originalError?: Error, layerName?: string) => void;
11
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,eAAO,MAAM,SAAS,SAAU,OAAO,CAAC,OAAO,CAAC,SAE/C,CAAC;AAEF,eAAO,MAAM,UAAU,8BAMtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QACb,MAAM,kBACI,KAAK,yBAErB,IAqBF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param target
3
+ * @param sources
4
+ * @returns
5
+ */
6
+ export declare const deepObjectAssign: (target: any, ...sources: any[]) => any;
7
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/modules/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,yCAgB5B,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/en.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsChB,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/es.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAuChB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { I18n } from '../../@types';
2
+ export * from './es';
3
+ export * from './en';
4
+ export * from './zh';
5
+ export declare let I18N: I18n;
6
+ export declare const setLang: (lang?: string, customI18n?: I18n) => void;
7
+ /**
8
+ * /**
9
+ * For translations thas has a variable "{}"" to be replaced inside
10
+ * @param string
11
+ * @param args
12
+ * @returns
13
+ */
14
+ export declare const I18N_: (string: string, ...args: any) => string;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AAarB,eAAO,IAAI,IAAI,EAAE,IAAS,CAAC;AAE3B,eAAO,MAAM,OAAO,+BAA6B,IAAI,KAAU,IAU9D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,WAAY,MAAM,WAAW,GAAG,KAAG,MAepD,CAAC"}
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/modules/i18n/zh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,EAAE,EAAE,IAsChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const initLoading: () => HTMLDivElement;
2
+ export declare const showLoading: (bool?: boolean) => void;
3
+ //# sourceMappingURL=loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/modules/loading.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,cAK9B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAU,OAAO,SAMxC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import Map from 'ol/Map';
2
+ import { FeatureLike } from 'ol/Feature';
3
+ import WfsLayer from '../WfsLayer';
4
+ import WmsLayer from '../WmsLayer';
5
+ import { IWfstLayersList } from '../@types';
6
+ export declare enum Modes {
7
+ Edit = "EDIT",
8
+ Draw = "DRAW"
9
+ }
10
+ export declare function activateMode(m?: Modes): void;
11
+ export declare function getMode(): any;
12
+ export declare function setMap(m: Map): void;
13
+ export declare function getMap(): Map;
14
+ export declare function setActiveLayerToInsertEls(layer: WmsLayer | WfsLayer): void;
15
+ export declare function getActiveLayerToInsertEls(): WmsLayer | WfsLayer;
16
+ export declare function setMapLayers(data: any): void;
17
+ export declare function getStoredMapLayers(): IWfstLayersList;
18
+ export declare function getStoredLayer(layerName: string): WfsLayer | WmsLayer;
19
+ export declare function addFeatureToEditedList(feature: FeatureLike): void;
20
+ export declare function removeFeatureFromEditList(feature: FeatureLike): void;
21
+ export declare function isFeatureEdited(feature: FeatureLike): boolean;
22
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/modules/state.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,oBAAY,KAAK;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED,wBAAgB,YAAY,CAAC,CAAC,GAAE,KAAY,QAE3C;AAED,wBAAgB,OAAO,QAEtB;AAKD,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,QAE5B;AAED,wBAAgB,MAAM,IAAI,GAAG,CAE5B;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,QAEnE;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,GAAG,QAAQ,CAE/D;AAED,wBAAgB,YAAY,CAAC,IAAI,KAAA,QAEhC;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAErE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAEpE;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAE7D"}
@@ -0,0 +1,13 @@
1
+ import { Geometry } from 'ol/geom';
2
+ import { Style } from 'ol/style';
3
+ import { Feature } from 'ol';
4
+ /**
5
+ * Master style that handles two modes on the Edit Layer:
6
+ * - one is the basic, showing only the vertices
7
+ * - and the other when modify is active, showing bigger vertices
8
+ *
9
+ * @param feature
10
+ * @private
11
+ */
12
+ export default function styleFunction(feature: Feature<Geometry>): Array<Style>;
13
+ //# sourceMappingURL=styleFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleFunction.d.ts","sourceRoot":"","sources":["../../src/modules/styleFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACH,QAAQ,EAOX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAuC,KAAK,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAO7B;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACjC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GAC3B,KAAK,CAAC,KAAK,CAAC,CAuId"}
@@ -0,0 +1,2 @@
1
+ export default function createElement(tagName: any, attrs?: {}, ...children: any[]): any;
2
+ //# sourceMappingURL=myPragma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"myPragma.d.ts","sourceRoot":"","sources":["../src/myPragma.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,KAAA,EAAE,KAAK,KAAK,EAAE,GAAG,QAAQ,OAAA,OAmCrE"}