@digitransit-component/digitransit-component-favourite-editing-modal 5.1.3 → 6.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.
@@ -0,0 +1,291 @@
1
+
2
+ European Union Public Licence
3
+ V. 1.2
4
+
5
+
6
+ EUPL © the European Union 2007, 2013
7
+
8
+
9
+ This European Union Public Licence (the “EUPL”) applies to the Work (as defined
10
+ below) which is provided under the terms of this Licence. Any use of the Work, other
11
+ than as authorised under this Licence is prohibited (to the extent such use is covered by
12
+ a right of the copyright holder of the Work).
13
+
14
+ The Original Work is provided under the terms of this Licence when the Licensor (as
15
+ defined below) has placed the following notice immediately following the copyright
16
+ notice for the Original Work:
17
+
18
+ Licensed under the EUPL
19
+
20
+ or has expressed by any other means his willingness to license under the EUPL.
21
+
22
+ 1. Definitions
23
+
24
+ In this Licence, the following terms have the following meaning:
25
+
26
+ - The Licence: this Licence.
27
+
28
+ - The Original Work: the work or software distributed and/or communicated by the
29
+ Licensor under this Licence, available as Source Code and also as Executable Code as
30
+ the case may be.
31
+
32
+ - Derivative Works: the works or software that could be created by the Licensee, based
33
+ upon the Original Work or modifications thereof. This Licence does not define the
34
+ extent of modification or dependence on the Original Work required in order to classify
35
+ a work as a Derivative Work; this extent is determined by copyright law applicable in
36
+ the country mentioned in Article 15.
37
+
38
+ - The Work: the Original Work and/or its Derivative Works.
39
+
40
+ - The Source Code: the human-readable form of the Work which is the most convenient
41
+ for people to study and modify.
42
+
43
+ - The Executable Code: any code which has generally been compiled and which is
44
+ meant to be interpreted by a computer as a program.
45
+
46
+ - The Licensor: the natural or legal person that distributes and/or communicates the
47
+ Work under the Licence.
48
+
49
+ - Contributor(s): any natural or legal person who modifies the Work under the Licence,
50
+ or otherwise contributes to the creation of a Derivative Work.
51
+
52
+ - The Licensee or “You”: any natural or legal person who makes any usage of the Work
53
+ under the terms of the Licence.
54
+
55
+ - Distribution and/or Communication: any act of selling, giving, lending, renting,
56
+ distributing, communicating, transmitting, or otherwise making available, on-line or
57
+ off-line, copies of the Work or providing access to its essential functionalities at the
58
+ disposal of any other natural or legal person.
59
+
60
+ 2. Scope of the rights granted by the Licence
61
+
62
+ The Licensor hereby grants You a world-wide, royalty-free, non-exclusive, sub-
63
+ licensable licence to do the following, for the duration of copyright vested in the
64
+ Original Work:
65
+
66
+ - use the Work in any circumstance and for all usage,
67
+ - reproduce the Work,
68
+ - modify the Original Work, and make Derivative Works based upon the Work,
69
+ - communicate to the public, including the right to make available or display the
70
+ Work or copies thereof to the public and perform publicly, as the case may be,
71
+ the Work,
72
+ - distribute the Work or copies thereof,
73
+ - lend and rent the Work or copies thereof,
74
+ - sub-license rights in the Work or copies thereof.
75
+
76
+ Those rights can be exercised on any media, supports and formats, whether now known
77
+ or later invented, as far as the applicable law permits so.
78
+
79
+ In the countries where moral rights apply, the Licensor waives his right to exercise his
80
+ moral right to the extent allowed by law in order to make effective the licence of the
81
+ economic rights here above listed.
82
+
83
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to any
84
+ patents held by the Licensor, to the extent necessary to make use of the rights granted
85
+ on the Work under this Licence.
86
+
87
+ 3. Communication of the Source Code
88
+
89
+ The Licensor may provide the Work either in its Source Code form, or as Executable
90
+ Code. If the Work is provided as Executable Code, the Licensor provides in addition a
91
+ machine-readable copy of the Source Code of the Work along with each copy of the
92
+ Work that the Licensor distributes or indicates, in a notice following the copyright
93
+ notice attached to the Work, a repository where the Source Code is easily and freely
94
+ accessible for as long as the Licensor continues to distribute and/or communicate the
95
+ Work.
96
+
97
+ 4. Limitations on copyright
98
+
99
+ Nothing in this Licence is intended to deprive the Licensee of the benefits from any
100
+ exception or limitation to the exclusive rights of the rights owners in the Original Work,
101
+ of the exhaustion of those rights or of other applicable limitations thereto.
102
+
103
+ 5. Obligations of the Licensee
104
+
105
+ The grant of the rights mentioned above is subject to some restrictions and obligations
106
+ imposed on the Licensee. Those obligations are the following:
107
+
108
+ Attribution right: the Licensee shall keep intact all copyright, patent or trademarks
109
+ notices and all notices that refer to the Licence and to the disclaimer of warranties. The
110
+ Licensee must include a copy of such notices and a copy of the Licence with every copy
111
+ of the Work he/she distributes and/or communicates. The Licensee must cause any
112
+ Derivative Work to carry prominent notices stating that the Work has been modified
113
+ and the date of modification.
114
+
115
+ Copyleft clause: If the Licensee distributes or communicates copies of the Original
116
+ Works or Derivative Works, this Distribution or Communication will be done under the
117
+ terms of this Licence or of a later version of this Licence unless the Original Work is
118
+ expressly distributed only under this version of the Licence – for example by stating
119
+ “EUPL v. 1.2 only”. The Licensee (becoming Licensor) cannot offer or impose any
120
+ additional terms or conditions on the Work or Derivative Work that alter or restrict the
121
+ terms of the Licence.
122
+
123
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative Works
124
+ or copies thereof based upon both the Original Work and another work licensed under
125
+ a Compatible Licence, this Distribution or Communication can be done under the terms
126
+ of this Compatible Licence. For the sake of this clause, “Compatible Licence” refers to
127
+ the licences listed in the appendix attached to this Licence. Should the Licensee’s
128
+ obligations under the Compatible Licence conflict with his/her obligations under this
129
+ Licence, the obligations of the Compatible Licence shall prevail.
130
+
131
+ Provision of Source Code: When distributing and/or communicating copies of the
132
+ Work, the Licensee will provide a machine-readable copy of the Source Code or
133
+ indicate a repository where this Source will be easily and freely available for as long as
134
+ the Licensee continues to distribute and/or communicate the Work.
135
+
136
+ Legal Protection: This Licence does not grant permission to use the trade names,
137
+ trademarks, service marks, or names of the Licensor, except as required for reasonable
138
+ and customary use in describing the origin of the Work and reproducing the content of
139
+ the copyright notice.
140
+
141
+ 6. Chain of Authorship
142
+
143
+ The original Licensor warrants that the copyright in the Original Work granted
144
+ hereunder is owned by him/her or licensed to him/her and that he/she has the power and
145
+ authority to grant the Licence.
146
+
147
+ Each Contributor warrants that the copyright in the modifications he/she brings to the
148
+ Work are owned by him/her or licensed to him/her and that he/she has the power and
149
+ authority to grant the Licence.
150
+
151
+ Each time You accept the Licence, the original Licensor and subsequent Contributors
152
+ grant You a licence to their contributions to the Work, under the terms of this Licence.
153
+
154
+ 7. Disclaimer of Warranty
155
+
156
+ The Work is a work in progress, which is continuously improved by numerous
157
+ Contributors. It is not a finished work and may therefore contain defects or “bugs”
158
+ inherent to this type of development.
159
+
160
+ For the above reason, the Work is provided under the Licence on an “as is” basis and
161
+ without warranties of any kind concerning the Work, including without limitation
162
+ merchantability, fitness for a particular purpose, absence of defects or errors, accuracy,
163
+ non-infringement of intellectual property rights other than copyright as stated in Article
164
+ 6 of this Licence.
165
+
166
+ This disclaimer of warranty is an essential part of the Licence and a condition for the
167
+ grant of any rights to the Work.
168
+
169
+ 8. Disclaimer of Liability
170
+
171
+ Except in the cases of wilful misconduct or damages directly caused to natural persons,
172
+ the Licensor will in no event be liable for any direct or indirect, material or moral,
173
+ damages of any kind, arising out of the Licence or of the use of the Work, including
174
+ without limitation, damages for loss of goodwill, work stoppage, computer failure or
175
+ malfunction, loss of data or any commercial damage, even if the Licensor has been
176
+ advised of the possibility of such damage. However, the Licensor will be liable under
177
+ statutory product liability laws as far such laws apply to the Work.
178
+
179
+ 9. Additional agreements
180
+
181
+ While distributing the Original Work or Derivative Works, You may choose to
182
+ conclude an additional agreement, defining obligations and/or services consistent with
183
+ this Licence. However, if accepting obligations, You may act only on your own behalf
184
+ and on your sole responsibility, not on behalf of the original Licensor or any other
185
+ Contributor, and only if You agree to indemnify, defend, and hold each Contributor
186
+ harmless for any liability incurred by, or claims asserted against such Contributor by
187
+ the fact You have accepted any warranty or additional liability.
188
+
189
+ 10. Acceptance of the Licence
190
+
191
+ The provisions of this Licence can be accepted by clicking on an icon “I agree” placed
192
+ under the bottom of a window displaying the text of this Licence or by affirming
193
+ consent in any other similar way, in accordance with the rules of applicable law.
194
+ Clicking on that icon indicates your clear and irrevocable acceptance of this Licence
195
+ and all of its terms and conditions.
196
+
197
+ Similarly, you irrevocably accept this Licence and all of its terms and conditions by
198
+ exercising any rights granted to You by Article 2 of this Licence, such as the use of the
199
+ Work, the creation by You of a Derivative Work or the Distribution or Communication
200
+ by You of the Work or copies thereof.
201
+
202
+ 11. Information to the public
203
+
204
+ In case of any Distribution and/or Communication of the Work by means of electronic
205
+ communication by You (for example, by offering to download the Work from a remote
206
+ location) the distribution channel or media (for example, a website) must at least
207
+ provide to the public the information requested by the applicable law regarding the
208
+ Licensor, the Licence and the way it may be accessible, concluded, stored and
209
+ reproduced by the Licensee.
210
+
211
+ 12. Termination of the Licence
212
+
213
+ The Licence and the rights granted hereunder will terminate automatically upon any
214
+ breach by the Licensee of the terms of the Licence.
215
+
216
+ Such a termination will not terminate the licences of any person who has received the
217
+ Work from the Licensee under the Licence, provided such persons remain in full
218
+ compliance with the Licence.
219
+
220
+ 13. Miscellaneous
221
+
222
+ Without prejudice of Article 9 above, the Licence represents the complete agreement
223
+ between the Parties as to the Work.
224
+
225
+ If any provision of the Licence is invalid or unenforceable under applicable law, this
226
+ will not affect the validity or enforceability of the Licence as a whole. Such provision
227
+ will be construed and/or reformed so as necessary to make it valid and enforceable.
228
+
229
+ The European Commission may publish other linguistic versions and/or new versions
230
+ of this Licence and/or updated versions of the Appendix, so far this is required and
231
+ reasonable, without reducing the scope of the rights granted by the Licence. New
232
+ versions of the Licence will be published with a unique version number.
233
+
234
+ All linguistic versions of this Licence, approved by the European Commission, have
235
+ identical value. Parties can take advantage of the linguistic version of their choice.
236
+
237
+ 14. Jurisdiction
238
+
239
+ Without prejudice to specific agreement between parties,
240
+ - any litigation resulting from the interpretation of this License, arising between the
241
+ European Union institutions, bodies, offices or agencies, as a Licensor, and any
242
+ Licensee, will be subject to the jurisdiction of the Court of Justice of the European
243
+ Union, as laid down in article 272 of the Treaty on the Functioning of the European
244
+ Union,
245
+ - any litigation arising between other parties and resulting from the interpretation of
246
+ this License, will be subject to the exclusive jurisdiction of the competent court
247
+ where the Licensor resides or conducts its primary business.
248
+
249
+ 15. Applicable Law
250
+
251
+ Without prejudice to specific agreement between parties,
252
+ - this Licence shall be governed by the law of the European Union Member State
253
+ where the Licensor has his seat, resides or has his registered office,
254
+ - this licence shall be governed by Belgian law if the Licensor has no seat, residence
255
+ or registered office inside a European Union Member State.
256
+
257
+ ===
258
+
259
+
260
+ Appendix
261
+
262
+
263
+
264
+ “Compatible Licences” according to Article 5 EUPL are:
265
+
266
+
267
+ - GNU General Public License (GPL) v. 2, v. 3
268
+
269
+ - GNU Affero General Public License (AGPL) v. 3
270
+
271
+ - Open Software License (OSL) v. 2.1, v. 3.0
272
+
273
+ - Eclipse Public License (EPL) v. 1.0
274
+
275
+ - Cecill v. 2.0, v. 2.1
276
+
277
+ - Mozilla Public Licence (MPL) v. 2
278
+
279
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
280
+
281
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported
282
+ (CC BY-SA 3.0) for works other than software
283
+
284
+ - European Union Public Licence (EUPL)v. 1.1, v. 1.2
285
+
286
+ - The European Commission may update this Appendix to later versions of
287
+ the above licences without producing a new version of the EUPL, as long
288
+ as they provide the rights granted in Article 2 of this Licence and protect
289
+ the covered Source Code from exclusive appropriation.
290
+ - All other changes or additions to this Appendix require the production of a
291
+ new EUPL version.
package/README.md CHANGED
@@ -30,20 +30,28 @@ Type: [function][1]
30
30
 
31
31
  Required.
32
32
 
33
- Type: [array][2]<[object][3]>
33
+ Type: [array][2]<[object][3]>
34
34
 
35
35
  ### Properties
36
36
 
37
- - `type` **[string][4]**
38
- - `address` **[string][4]**
39
- - `gtfsId` **[string][4]**
40
- - `gid` **[string][4]**
41
- - `lat` **[number][5]**
42
- - `lon` **[number][5]**
43
- - `name` **[string][4]**
44
- - `selectedIconId` **[string][4]**
45
- - `favouriteId` **[string][4]**
46
- - `layer` **[string][4]**
37
+ * `type` **[string][4]**
38
+ * `address` **[string][4]**
39
+ * `gtfsId` **[string][4]**
40
+ * `gid` **[string][4]**
41
+ * `lat` **[number][5]**
42
+ * `lon` **[number][5]**
43
+ * `name` **[string][4]**
44
+ * `selectedIconId` **[string][4]**
45
+ * `favouriteId` **[string][4]**
46
+ * `layer` **[string][4]**
47
+
48
+ ## fontWeights
49
+
50
+ Optional.
51
+
52
+ ## medium
53
+
54
+ Default value is 500.
47
55
 
48
56
  [1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function
49
57
 
@@ -54,11 +62,6 @@ Type: [array][2]&lt;[object][3]>
54
62
  [4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
55
63
 
56
64
  [5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
57
-
58
- <!-- This file is automatically generated. Please don't edit it directly:
59
- if you find an error, edit the source file (likely index.js), and re-run
60
- ./scripts/generate-readmes in the digitransit-component project. -->
61
-
62
65
  ---
63
66
 
64
67
  This module is part of the Digitransit-ui project. It is maintained in the
@@ -73,7 +76,7 @@ Install this module individually:
73
76
  $ npm install @digitransit-component/digitransit-component-favourite-editing-modal
74
77
  ```
75
78
 
76
- Or install the digitransit-component module that includes it as a class:
79
+ Or install `@digitransit-component/digitransit-component`, which bundles every digitransit-component module:
77
80
 
78
81
  ```sh
79
82
  $ npm install @digitransit-component/digitransit-component
package/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ /* eslint-disable global-require */
2
+
3
+ if (process.env.NODE_ENV === 'development') {
4
+ module.exports = require('./lib/index.development.cjs');
5
+ } else {
6
+ module.exports = require('./lib/index.cjs');
7
+ }
package/lib/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("prop-types"),require("react"),require("react-i18next"),require("react-sortablejs"),require("@hsl-fi/loading-indicators"),require("@hsl-fi/modal"),require("@digitransit-component/digitransit-component-icon"),require("@digitransit-component/digitransit-component-dialog-modal"),require("i18next")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","react-i18next","react-sortablejs","@hsl-fi/loading-indicators","@hsl-fi/modal","@digitransit-component/digitransit-component-icon","@digitransit-component/digitransit-component-dialog-modal","i18next"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@digitransit-component/digitransit-component-favourite-editing-modal"]={},t.PropTypes,t.React,t.reactI18next,t.reactSortablejs,t.LoadingIndicators,t.Modal,t.Icon,t.DialogModal,t.i18next)}(this,function(t,e,r,n,i,o,a,u,s,l){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}var f=c(e),d=c(r),v=c(a),_=c(u),p=c(s);function y(t){return y="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},y(t)}function h(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}function m(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var g,j={exports:{}};
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */var w,x,O,P,S,E,F,k,z,A,C,L,M,q,N,I,R,Q,D,T,J,B,U,$,X,V,W,Y,H,Z,K,G,tt,et,rt,nt,it,ot,at,ut,st,lt,ct,ft,dt,vt,_t,pt,yt,ht,mt,bt,gt,jt,wt,xt,Ot,Pt,St,Et,Ft,kt,zt,At,Ct,Lt,Mt,qt,Nt,It,Rt,Qt,Dt,Tt,Jt,Bt,Ut,$t,Xt,Vt,Wt,Yt,Ht,Zt,Kt,Gt,te,ee,re,ne,ie,oe,ae,ue,se,le,ce,fe,de,ve,_e,pe,ye,he,me,be,ge,je,we,xe,Oe,Pe,Se,Ee,Fe,ke,ze,Ae,Ce,Le,Me,qe,Ne,Ie,Re,Qe,De,Te,Je,Be,Ue,$e,Xe,Ve,We,Ye,He,Ze,Ke,Ge,tr,er,rr,nr,ir=(g||(g=1,function(t){!function(){var e={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=i(t,n(r)))}return t}function n(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var n="";for(var o in t)e.call(t,o)&&t[o]&&(n=i(n,o));return n}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):window.classNames=r}()}(j)),j.exports),or=b(ir);function ar(){if(x)return w;x=1;var t="object"==typeof global&&global&&global.Object===Object&&global;return w=t}function ur(){if(P)return O;P=1;var t=ar(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return O=r}function sr(){if(E)return S;E=1;var t=ur().Symbol;return S=t}function lr(){if(L)return C;L=1;var t=sr(),e=function(){if(k)return F;k=1;var t=sr(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;return F=function(t){var e=r.call(t,i),o=t[i];try{t[i]=void 0;var a=!0}catch(t){}var u=n.call(t);return a&&(e?t[i]=o:delete t[i]),u}}(),r=function(){if(A)return z;A=1;var t=Object.prototype.toString;return z=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function cr(){if(q)return M;return q=1,M=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function fr(){if(I)return N;I=1;var t=lr(),e=cr();return N=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function dr(){if(T)return D;T=1;var t,e=function(){if(Q)return R;Q=1;var t=ur()["__core-js_shared__"];return R=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return D=function(t){return!!r&&r in t}}function vr(){if(B)return J;B=1;var t=Function.prototype.toString;return J=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function _r(){if(Y)return W;Y=1;var t=function(){if($)return U;$=1;var t=fr(),e=dr(),r=cr(),n=vr(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,u=o.toString,s=a.hasOwnProperty,l=RegExp("^"+u.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return U=function(o){return!(!r(o)||e(o))&&(t(o)?l:i).test(n(o))}}(),e=V?X:(V=1,X=function(t,e){return null==t?void 0:t[e]});return W=function(r,n){var i=e(r,n);return t(i)?i:void 0}}function pr(){if(Z)return H;Z=1;var t=_r()(Object,"create");return H=t}function yr(){if(lt)return st;lt=1;var t=function(){if(G)return K;G=1;var t=pr();return K=function(){this.__data__=t?t(null):{},this.size=0}}(),e=et?tt:(et=1,tt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(nt)return rt;nt=1;var t=pr(),e=Object.prototype.hasOwnProperty;return rt=function(r){var n=this.__data__;if(t){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(ot)return it;ot=1;var t=pr(),e=Object.prototype.hasOwnProperty;return it=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),i=function(){if(ut)return at;ut=1;var t=pr();return at=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,st=o}function hr(){if(vt)return dt;return vt=1,dt=function(t,e){return t===e||t!=t&&e!=e}}function mr(){if(pt)return _t;pt=1;var t=hr();return _t=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1}}function br(){if(Pt)return Ot;Pt=1;var t=ft?ct:(ft=1,ct=function(){this.__data__=[],this.size=0}),e=function(){if(ht)return yt;ht=1;var t=mr(),e=Array.prototype.splice;return yt=function(r){var n=this.__data__,i=t(n,r);return!(i<0||(i==n.length-1?n.pop():e.call(n,i,1),--this.size,0))},yt}(),r=function(){if(bt)return mt;bt=1;var t=mr();return mt=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]},mt}(),n=function(){if(jt)return gt;jt=1;var t=mr();return gt=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(xt)return wt;xt=1;var t=mr();return wt=function(e,r){var n=this.__data__,i=t(n,e);return i<0?(++this.size,n.push([e,r])):n[i][1]=r,this},wt}();function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Ot=o}function gr(){if(Et)return St;Et=1;var t=_r()(ur(),"Map");return St=t}function jr(){if(Lt)return Ct;Lt=1;var t=At?zt:(At=1,zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Ct=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map}}function wr(){if(Bt)return Jt;Bt=1;var t=function(){if(kt)return Ft;kt=1;var t=yr(),e=br(),r=gr();return Ft=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(qt)return Mt;qt=1;var t=jr();return Mt=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(It)return Nt;It=1;var t=jr();return Nt=function(e){return t(this,e).get(e)}}(),n=function(){if(Qt)return Rt;Qt=1;var t=jr();return Rt=function(e){return t(this,e).has(e)}}(),i=function(){if(Tt)return Dt;Tt=1;var t=jr();return Dt=function(e,r){var n=t(this,e),i=n.size;return n.set(e,r),this.size+=n.size==i?0:1,this}}();function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Jt=o}function xr(){if(Yt)return Wt;Yt=1;var t=wr(),e=$t?Ut:($t=1,Ut=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Vt?Xt:(Vt=1,Xt=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Wt=n}function Or(){if(ne)return re;ne=1;var t=(Zt||(Zt=1,Ht=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}),Ht),e=Gt?Kt:(Gt=1,Kt=function(t){return t!=t}),r=(ee||(ee=1,te=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}),te);return re=function(n,i,o){return i==i?r(n,i,o):t(n,e,o)}}function Pr(){if(oe)return ie;oe=1;var t=Or();return ie=function(e,r){return!!(null==e?0:e.length)&&t(e,r,0)>-1}}function Sr(){if(ue)return ae;return ue=1,ae=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1},ae}function Er(){if(le)return se;return le=1,se=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},se}function Fr(){if(fe)return ce;return fe=1,ce=function(t){return function(e){return t(e)}}}function kr(){if(ve)return de;return ve=1,de=function(t,e){return t.has(e)}}function zr(){if(he)return ye;return he=1,ye=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},ye}function Ar(){if(be)return me;return be=1,me=function(t){return null!=t&&"object"==typeof t}}function Cr(){if(xe)return we;xe=1;var t=function(){if(je)return ge;je=1;var t=lr(),e=Ar();return ge=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=Ar(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!i.call(t,"callee")};return we=o}function Lr(){if(Pe)return Oe;Pe=1;var t=Array.isArray;return Oe=t}function Mr(){if(ke)return Fe;ke=1;var t=zr(),e=function(){if(Ee)return Se;Ee=1;var t=sr(),e=Cr(),r=Lr(),n=t?t.isConcatSpreadable:void 0;return Se=function(t){return r(t)||e(t)||!!(n&&t&&t[n])}}();return Fe=function r(n,i,o,a,u){var s=-1,l=n.length;for(o||(o=e),u||(u=[]);++s<l;){var c=n[s];i>0&&o(c)?i>1?r(c,i-1,o,a,u):t(u,c):a||(u[u.length]=c)}return u},Fe}function qr(){if(Ae)return ze;return Ae=1,ze=function(t){return t}}function Nr(){if(qe)return Me;qe=1;var t=Le?Ce:(Le=1,Ce=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}),e=Math.max;return Me=function(r,n,i){return n=e(void 0===n?r.length-1:n,0),function(){for(var o=arguments,a=-1,u=e(o.length-n,0),s=Array(u);++a<u;)s[a]=o[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=o[a];return l[n]=i(s),t(r,this,l)}},Me}function Ir(){if(Qe)return Re;Qe=1;var t=_r(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Re=e}function Rr(){if(Te)return De;Te=1;var t=Ie?Ne:(Ie=1,Ne=function(t){return function(){return t}}),e=Ir(),r=qr();return De=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:t(n),writable:!0})}:r}function Qr(){if($e)return Ue;$e=1;var t=Rr(),e=function(){if(Be)return Je;Be=1;var t=Date.now;return Je=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}},Je}(),r=e(t);return Ue=r}function Dr(){if(Ye)return We;Ye=1;return We=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Tr(){if(Ze)return He;Ze=1;var t=fr(),e=Dr();return He=function(r){return null!=r&&e(r.length)&&!t(r)}}function Jr(){if(er)return tr;return er=1,tr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}}var Br,Ur,$r,Xr,Vr,Wr,Yr,Hr,Zr,Kr,Gr,tn,en,rn,nn,on,an,un,sn,ln,cn,fn,dn,vn,_n,pn,yn,hn,mn,bn,gn,jn,wn,xn,On=function(){if(nr)return rr;nr=1;var t=function(){if(pe)return _e;pe=1;var t=xr(),e=Pr(),r=Sr(),n=Er(),i=Fr(),o=kr();return _e=function(a,u,s,l){var c=-1,f=e,d=!0,v=a.length,_=[],p=u.length;if(!v)return _;s&&(u=n(u,i(s))),l?(f=r,d=!1):u.length>=200&&(f=o,d=!1,u=new t(u));t:for(;++c<v;){var y=a[c],h=null==s?y:s(y);if(y=l||0!==y?y:0,d&&h==h){for(var m=p;m--;)if(u[m]===h)continue t;_.push(y)}else f(u,h,l)||_.push(y)}return _},_e}(),e=Mr(),r=function(){if(Ve)return Xe;Ve=1;var t=qr(),e=Nr(),r=Qr();return Xe=function(n,i){return r(e(n,i,t),n+"")}}(),n=function(){if(Ge)return Ke;Ge=1;var t=Tr(),e=Ar();return Ke=function(r){return e(r)&&t(r)}}(),i=Jr(),o=r(function(r,o){var a=i(o);return n(a)&&(a=void 0),n(r)?t(r,e(o,1,n,!0),void 0,a):[]});return rr=o}(),Pn=b(On);function Sn(){if(tn)return Gr;tn=1;var t=br(),e=function(){if(Ur)return Br;Ur=1;var t=br();return Br=function(){this.__data__=new t,this.size=0}}(),r=Xr?$r:(Xr=1,$r=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=Wr?Vr:(Wr=1,Vr=function(t){return this.__data__.get(t)}),i=Hr?Yr:(Hr=1,Yr=function(t){return this.__data__.has(t)}),o=function(){if(Kr)return Zr;Kr=1;var t=br(),e=gr(),r=wr();return Zr=function(n,i){var o=this.__data__;if(o instanceof t){var a=o.__data__;if(!e||a.length<199)return a.push([n,i]),this.size=++o.size,this;o=this.__data__=new r(a)}return o.set(n,i),this.size=o.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,Gr=a}function En(){if(on)return nn;on=1;var t=xr(),e=(rn||(rn=1,en=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}),en),r=kr();return nn=function(n,i,o,a,u,s){var l=1&o,c=n.length,f=i.length;if(c!=f&&!(l&&f>c))return!1;var d=s.get(n),v=s.get(i);if(d&&v)return d==i&&v==n;var _=-1,p=!0,y=2&o?new t:void 0;for(s.set(n,i),s.set(i,n);++_<c;){var h=n[_],m=i[_];if(a)var b=l?a(m,h,_,i,n,s):a(h,m,_,n,i,s);if(void 0!==b){if(b)continue;p=!1;break}if(y){if(!e(i,function(t,e){if(!r(y,e)&&(h===t||u(h,t,o,a,s)))return y.push(e)})){p=!1;break}}else if(h!==m&&!u(h,m,o,a,s)){p=!1;break}}return s.delete(n),s.delete(i),p},nn}function Fn(){if(un)return an;un=1;var t=ur().Uint8Array;return an=t}function kn(){if(fn)return cn;return fn=1,cn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r},cn}function zn(){if(vn)return dn;vn=1;var t=sr(),e=Fn(),r=hr(),n=En(),i=(ln||(ln=1,sn=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}),sn),o=kn(),a=t?t.prototype:void 0,u=a?a.valueOf:void 0;return dn=function(t,a,s,l,c,f,d){switch(s){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!f(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var v=i;case"[object Set]":var _=1&l;if(v||(v=o),t.size!=a.size&&!_)return!1;var p=d.get(t);if(p)return p==a;l|=2,d.set(t,a);var y=n(v(t),v(a),l,c,f,d);return d.delete(t),y;case"[object Symbol]":if(u)return u.call(t)==u.call(a)}return!1}}function An(){if(pn)return _n;pn=1;var t=zr(),e=Lr();return _n=function(r,n,i){var o=n(r);return e(r)?o:t(o,i(r))}}function Cn(){if(bn)return mn;return bn=1,mn=function(){return[]}}function Ln(){if(jn)return gn;jn=1;var t=(hn||(hn=1,yn=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}),yn),e=Cn(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return gn=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(t){return r.call(e,t)}))}:e}var Mn,qn,Nn,In,Rn,Qn,Dn,Tn={exports:{}};function Jn(){return Nn||(Nn=1,function(t,e){var r=ur(),n=qn?Mn:(qn=1,Mn=function(){return!1}),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||n;t.exports=u}(Tn,Tn.exports)),Tn.exports}var Bn,Un,$n,Xn,Vn,Wn,Yn,Hn,Zn,Kn,Gn,ti,ei,ri,ni,ii,oi,ai,ui,si,li,ci,fi,di,vi,_i,pi,yi,hi,mi,bi,gi,ji,wi,xi,Oi={exports:{}};function Pi(){return Bn||(Bn=1,function(t,e){var r=ar(),n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Oi,Oi.exports)),Oi.exports}function Si(){if($n)return Un;$n=1;var t=function(){if(Dn)return Qn;Dn=1;var t=lr(),e=Dr(),r=Ar(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Qn=function(i){return r(i)&&e(i.length)&&!!n[t(i)]}}(),e=Fr(),r=Pi(),n=r&&r.isTypedArray,i=n?e(n):t;return Un=i}function Ei(){if(Vn)return Xn;Vn=1;var t=(xn||(xn=1,wn=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),wn),e=Cr(),r=Lr(),n=Jn(),i=function(){if(Rn)return In;Rn=1;var t=/^(?:0|[1-9]\d*)$/;return In=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}(),o=Si(),a=Object.prototype.hasOwnProperty;return Xn=function(u,s){var l=r(u),c=!l&&e(u),f=!l&&!c&&n(u),d=!l&&!c&&!f&&o(u),v=l||c||f||d,_=v?t(u.length,String):[],p=_.length;for(var y in u)!s&&!a.call(u,y)||v&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,p))||_.push(y);return _}}function Fi(){if(Yn)return Wn;Yn=1;var t=Object.prototype;return Wn=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}function ki(){if(Zn)return Hn;return Zn=1,Hn=function(t,e){return function(r){return t(e(r))}}}function zi(){if(ei)return ti;ei=1;var t=Fi(),e=function(){if(Gn)return Kn;Gn=1;var t=ki()(Object.keys,Object);return Kn=t}(),r=Object.prototype.hasOwnProperty;return ti=function(n){if(!t(n))return e(n);var i=[];for(var o in Object(n))r.call(n,o)&&"constructor"!=o&&i.push(o);return i}}function Ai(){if(ni)return ri;ni=1;var t=Ei(),e=zi(),r=Tr();return ri=function(n){return r(n)?t(n):e(n)}}function Ci(){if(oi)return ii;oi=1;var t=An(),e=Ln(),r=Ai();return ii=function(n){return t(n,r,e)}}function Li(){if(vi)return di;vi=1;var t=_r()(ur(),"Set");return di=t}function Mi(){if(hi)return yi;hi=1;var t=function(){if(li)return si;li=1;var t=_r()(ur(),"DataView");return si=t}(),e=gr(),r=function(){if(fi)return ci;fi=1;var t=_r()(ur(),"Promise");return ci=t}(),n=Li(),i=function(){if(pi)return _i;pi=1;var t=_r()(ur(),"WeakMap");return _i=t}(),o=lr(),a=vr(),u="[object Map]",s="[object Promise]",l="[object Set]",c="[object WeakMap]",f="[object DataView]",d=a(t),v=a(e),_=a(r),p=a(n),y=a(i),h=o;return(t&&h(new t(new ArrayBuffer(1)))!=f||e&&h(new e)!=u||r&&h(r.resolve())!=s||n&&h(new n)!=l||i&&h(new i)!=c)&&(h=function(t){var e=o(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case d:return f;case v:return u;case _:return s;case p:return l;case y:return c}return e}),yi=h}function qi(){if(bi)return mi;bi=1;var t=Sn(),e=En(),r=zn(),n=function(){if(ui)return ai;ui=1;var t=Ci(),e=Object.prototype.hasOwnProperty;return ai=function(r,n,i,o,a,u){var s=1&i,l=t(r),c=l.length;if(c!=t(n).length&&!s)return!1;for(var f=c;f--;){var d=l[f];if(!(s?d in n:e.call(n,d)))return!1}var v=u.get(r),_=u.get(n);if(v&&_)return v==n&&_==r;var p=!0;u.set(r,n),u.set(n,r);for(var y=s;++f<c;){var h=r[d=l[f]],m=n[d];if(o)var b=s?o(m,h,d,n,r,u):o(h,m,d,r,n,u);if(!(void 0===b?h===m||a(h,m,i,o,u):b)){p=!1;break}y||(y="constructor"==d)}if(p&&!y){var g=r.constructor,j=n.constructor;g==j||!("constructor"in r)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j||(p=!1)}return u.delete(r),u.delete(n),p},ai}(),i=Mi(),o=Lr(),a=Jn(),u=Si(),s="[object Arguments]",l="[object Array]",c="[object Object]",f=Object.prototype.hasOwnProperty;return mi=function(d,v,_,p,y,h){var m=o(d),b=o(v),g=m?l:i(d),j=b?l:i(v),w=(g=g==s?c:g)==c,x=(j=j==s?c:j)==c,O=g==j;if(O&&a(d)){if(!a(v))return!1;m=!0,w=!1}if(O&&!w)return h||(h=new t),m||u(d)?e(d,v,_,p,y,h):r(d,v,g,_,p,y,h);if(!(1&_)){var P=w&&f.call(d,"__wrapped__"),S=x&&f.call(v,"__wrapped__");if(P||S){var E=P?d.value():d,F=S?v.value():v;return h||(h=new t),y(E,F,_,p,h)}}return!!O&&(h||(h=new t),n(d,v,_,p,y,h))}}var Ni,Ii,Ri=b(function(){if(xi)return wi;xi=1;var t=function(){if(ji)return gi;ji=1;var t=qi(),e=Ar();return gi=function r(n,i,o,a,u){return n===i||(null==n||null==i||!e(n)&&!e(i)?n!=n&&i!=i:t(n,i,o,a,r,u))},gi}();return wi=function(e,r){return t(e,r)}}());var Qi,Di,Ti,Ji,Bi,Ui,$i,Xi,Vi,Wi,Yi,Hi,Zi,Ki,Gi,to,eo,ro,no=function(){if(Ii)return Ni;Ii=1;var t=zi(),e=Mi(),r=Cr(),n=Lr(),i=Tr(),o=Jn(),a=Fi(),u=Si(),s=Object.prototype.hasOwnProperty;return Ni=function(l){if(null==l)return!0;if(i(l)&&(n(l)||"string"==typeof l||"function"==typeof l.splice||o(l)||u(l)||r(l)))return!l.length;var c=e(l);if("[object Map]"==c||"[object Set]"==c)return!l.size;if(a(l))return!t(l).length;for(var f in l)if(s.call(l,f))return!1;return!0}}(),io=b(no);function oo(){if(Ji)return Ti;Ji=1;var t=Ir();return Ti=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n}}function ao(){if(Ui)return Bi;Ui=1;var t=oo(),e=hr(),r=Object.prototype.hasOwnProperty;return Bi=function(n,i,o){var a=n[i];r.call(n,i)&&e(a,o)&&(void 0!==o||i in n)||t(n,i,o)}}function uo(){if(Xi)return $i;Xi=1;var t=ao(),e=oo();return $i=function(r,n,i,o){var a=!i;i||(i={});for(var u=-1,s=n.length;++u<s;){var l=n[u],c=o?o(i[l],r[l],l,i,r):void 0;void 0===c&&(c=r[l]),a?e(i,l,c):t(i,l,c)}return i},$i}function so(){if(Ki)return Zi;Ki=1;var t=cr(),e=Fi(),r=Hi?Yi:(Hi=1,Yi=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}),n=Object.prototype.hasOwnProperty;return Zi=function(i){if(!t(i))return r(i);var o=e(i),a=[];for(var u in i)("constructor"!=u||!o&&n.call(i,u))&&a.push(u);return a}}function lo(){if(to)return Gi;to=1;var t=Ei(),e=so(),r=Tr();return Gi=function(n){return r(n)?t(n,!0):e(n)}}var co,fo,vo,_o,po,yo,ho,mo,bo,go,jo,wo,xo,Oo,Po,So,Eo,Fo,ko,zo,Ao,Co,Lo,Mo,qo,No,Io,Ro,Qo,Do,To,Jo,Bo,Uo,$o,Xo,Vo,Wo,Yo,Ho,Zo,Ko,Go,ta,ea,ra,na,ia,oa,aa,ua,sa,la,ca,fa,da,va,_a,pa,ya,ha,ma,ba,ga,ja,wa,xa,Oa,Pa,Sa,Ea,Fa,ka,za,Aa,Ca,La,Ma={exports:{}};function qa(){if(ho)return yo;ho=1;var t=ki()(Object.getPrototypeOf,Object);return yo=t}function Na(){if(bo)return mo;bo=1;var t=zr(),e=qa(),r=Ln(),n=Cn(),i=Object.getOwnPropertySymbols;return mo=i?function(n){for(var i=[];n;)t(i,r(n)),n=e(n);return i}:n}function Ia(){if(xo)return wo;xo=1;var t=An(),e=Na(),r=lo();return wo=function(n){return t(n,r,e)}}function Ra(){if(Eo)return So;Eo=1;var t=Fn();return So=function(e){var r=new e.constructor(e.byteLength);return new t(r).set(new t(e)),r}}function Qa(){if(Io)return No;Io=1;var t=Ra(),e=function(){if(ko)return Fo;ko=1;var t=Ra();return Fo=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}}(),r=function(){if(Ao)return zo;Ao=1;var t=/\w*$/;return zo=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}}(),n=function(){if(Lo)return Co;Lo=1;var t=sr(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;return Co=function(t){return r?Object(r.call(t)):{}}}(),i=function(){if(qo)return Mo;qo=1;var t=Ra();return Mo=function(e,r){var n=r?t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}();return No=function(o,a,u){var s=o.constructor;switch(a){case"[object ArrayBuffer]":return t(o);case"[object Boolean]":case"[object Date]":return new s(+o);case"[object DataView]":return e(o,u);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,u);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(o);case"[object RegExp]":return r(o);case"[object Symbol]":return n(o)}}}function Da(){if(To)return Do;To=1;var t=function(){if(Qo)return Ro;Qo=1;var t=cr(),e=Object.create,r=function(){function r(){}return function(n){if(!t(n))return{};if(e)return e(n);r.prototype=n;var i=new r;return r.prototype=void 0,i}}();return Ro=r}(),e=qa(),r=Fi();return Do=function(n){return"function"!=typeof n.constructor||r(n)?{}:t(e(n))}}function Ta(){if($o)return Uo;$o=1;var t=function(){if(Bo)return Jo;Bo=1;var t=Mi(),e=Ar();return Jo=function(r){return e(r)&&"[object Map]"==t(r)}}(),e=Fr(),r=Pi(),n=r&&r.isMap,i=n?e(n):t;return Uo=i}function Ja(){if(Yo)return Wo;Yo=1;var t=function(){if(Vo)return Xo;Vo=1;var t=Mi(),e=Ar();return Xo=function(r){return e(r)&&"[object Set]"==t(r)}}(),e=Fr(),r=Pi(),n=r&&r.isSet,i=n?e(n):t;return Wo=i}function Ba(){if(Zo)return Ho;Zo=1;var t=Sn(),e=(Di||(Di=1,Qi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),Qi),r=ao(),n=function(){if(Wi)return Vi;Wi=1;var t=uo(),e=Ai();return Vi=function(r,n){return r&&t(n,e(n),r)}}(),i=function(){if(ro)return eo;ro=1;var t=uo(),e=lo();return eo=function(r,n){return r&&t(n,e(n),r)}}(),o=(co||(co=1,function(t,e){var r=ur(),n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}(Ma,Ma.exports)),Ma.exports),a=(vo||(vo=1,fo=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}),fo),u=function(){if(po)return _o;po=1;var t=uo(),e=Ln();return _o=function(r,n){return t(r,e(r),n)}}(),s=function(){if(jo)return go;jo=1;var t=uo(),e=Na();return go=function(r,n){return t(r,e(r),n)}}(),l=Ci(),c=Ia(),f=Mi(),d=function(){if(Po)return Oo;Po=1;var t=Object.prototype.hasOwnProperty;return Oo=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}}(),v=Qa(),_=Da(),p=Lr(),y=Jn(),h=Ta(),m=cr(),b=Ja(),g=Ai(),j=lo(),w="[object Arguments]",x="[object Function]",O="[object Object]",P={};return P[w]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[O]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[x]=P["[object WeakMap]"]=!1,Ho=function S(E,F,k,z,A,C){var L,M=1&F,q=2&F,N=4&F;if(k&&(L=A?k(E,z,A,C):k(E)),void 0!==L)return L;if(!m(E))return E;var I=p(E);if(I){if(L=d(E),!M)return a(E,L)}else{var R=f(E),Q=R==x||"[object GeneratorFunction]"==R;if(y(E))return o(E,M);if(R==O||R==w||Q&&!A){if(L=q||Q?{}:_(E),!M)return q?s(E,i(L,E)):u(E,n(L,E))}else{if(!P[R])return A?E:{};L=v(E,R,M)}}C||(C=new t);var D=C.get(E);if(D)return D;C.set(E,L),b(E)?E.forEach(function(t){L.add(S(t,F,k,t,E,C))}):h(E)&&E.forEach(function(t,e){L.set(e,S(t,F,k,e,E,C))});var T=I?void 0:(N?q?c:l:q?j:g)(E);return e(T||E,function(t,e){T&&(t=E[e=t]),r(L,e,S(t,F,k,e,E,C))}),L},Ho}function Ua(){if(Go)return Ko;Go=1;var t=lr(),e=Ar();return Ko=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function $a(){if(na)return ra;na=1;var t=wr();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var i=function(){var t=arguments,e=n?n.apply(this,t):t[0],o=i.cache;if(o.has(e))return o.get(e);var a=r.apply(this,t);return i.cache=o.set(e,a)||o,a};return i.cache=new(e.Cache||t),i}return e.Cache=t,ra=e}function Xa(){if(ua)return aa;ua=1;var t=function(){if(oa)return ia;oa=1;var t=$a();return ia=function(e){var r=t(e,function(t){return 500===n.size&&n.clear(),t}),n=r.cache;return r}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,function(t,e,i,o){n.push(i?o.replace(r,"$1"):e||t)}),n});return aa=n}function Va(){if(fa)return ca;fa=1;var t=function(){if(la)return sa;la=1;var t=sr(),e=Er(),r=Lr(),n=Ua(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return sa=function t(i){if("string"==typeof i)return i;if(r(i))return e(i,t)+"";if(n(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},sa}();return ca=function(e){return null==e?"":t(e)}}function Wa(){if(va)return da;va=1;var t=Lr(),e=function(){if(ea)return ta;ea=1;var t=Lr(),e=Ua(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ta=function(i,o){if(t(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!e(i))||n.test(i)||!r.test(i)||null!=o&&i in Object(o)}}(),r=Xa(),n=Va();return da=function(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))}}function Ya(){if(pa)return _a;pa=1;var t=Ua();return _a=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function Ha(){if(ja)return ga;ja=1;var t=function(){if(ha)return ya;ha=1;var t=Wa(),e=Ya();return ya=function(r,n){for(var i=0,o=(n=t(n,r)).length;null!=r&&i<o;)r=r[e(n[i++])];return i&&i==o?r:void 0},ya}(),e=(ba||(ba=1,ma=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}),ma);return ga=function(r,n){return n.length<2?r:t(r,e(n,0,-1))}}function Za(){if(Ea)return Sa;Ea=1;var t=function(){if(Pa)return Oa;Pa=1;var t=lr(),e=qa(),r=Ar(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,u=o.call(Object);return Oa=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var s=a.call(i,"constructor")&&i.constructor;return"function"==typeof s&&s instanceof s&&o.call(s)==u}}();return Sa=function(e){return t(e)?void 0:e}}function Ka(){if(Aa)return za;Aa=1;var t=function(){if(ka)return Fa;ka=1;var t=Mr();return Fa=function(e){return null!=e&&e.length?t(e,1):[]}}(),e=Nr(),r=Qr();return za=function(n){return r(e(n,void 0,t),n+"")}}var Ga,tu,eu,ru,nu,iu,ou,au,uu=function(){if(La)return Ca;La=1;var t=Er(),e=Ba(),r=function(){if(xa)return wa;xa=1;var t=Wa(),e=Jr(),r=Ha(),n=Ya(),i=Object.prototype.hasOwnProperty;return wa=function(o,a){var u=-1,s=(a=t(a,o)).length;if(!s)return!0;for(;++u<s;){var l=n(a[u]);if("__proto__"===l&&!i.call(o,"__proto__"))return!1;if(("constructor"===l||"prototype"===l)&&u<s-1)return!1}var c=r(o,a);return null==c||delete c[n(e(a))]},wa}(),n=Wa(),i=uo(),o=Za(),a=Ka(),u=Ia(),s=a(function(a,s){var l={};if(null==a)return l;var c=!1;s=t(s,function(t){return t=n(t,a),c||(c=t.length>1),t}),i(a,u(a),l),c&&(l=e(l,7,o));for(var f=s.length;f--;)r(l,s[f]);return l});return Ca=s}(),su=b(uu);function lu(){if(ru)return eu;ru=1;var t=Li(),e=tu?Ga:(tu=1,Ga=function(){}),r=kn(),n=t&&1/r(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return eu=n}!function(){if(au)return ou;au=1;var t=function(){if(iu)return nu;iu=1;var t=xr(),e=Pr(),r=Sr(),n=kr(),i=lu(),o=kn();return nu=function(a,u,s){var l=-1,c=e,f=a.length,d=!0,v=[],_=v;if(s)d=!1,c=r;else if(f>=200){var p=u?null:i(a);if(p)return o(p);d=!1,c=n,_=new t}else _=u?[]:v;t:for(;++l<f;){var y=a[l],h=u?u(y):y;if(y=s||0!==y?y:0,d&&h==h){for(var m=_.length;m--;)if(_[m]===h)continue t;u&&_.push(h),v.push(y)}else c(_,h,s)||(_!==v&&_.push(h),v.push(y))}return v},nu}();ou=function(e,r){return r="function"==typeof r?r:void 0,e&&e.length?t(e,void 0,r):[]}}();var cu,fu,du=b($a());var vu,_u,pu=b(function(){if(fu)return cu;fu=1;var t=Va(),e=/[\\^$.*+?()[\]{}|]/g,r=RegExp(e.source);return cu=function(n){return(n=t(n))&&r.test(n)?n.replace(e,"\\$&"):n}}());var yu=b(function(){if(_u)return vu;_u=1;var t=Ba();return vu=function(e){return t(e,5)}}());const hu=t=>t.localadmin||t.localadmin||t.address&&t.address.lastIndexOf(",")<t.address.length-2&&t.address.substring(t.address.lastIndexOf(",")+2)||"",mu=({id:t,code:e})=>e||(void 0!==t&&void 0!==t.indexOf&&-1!==t.indexOf("#")?t.substring(t.indexOf("#")+1):void 0),bu=(t,e)=>[t||e&&e.split(",")[0],"string"==typeof e?e.replace(new RegExp(`${pu(t)}([ ,]|$)+`),""):""];function gu(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}du((t,e=!1)=>{switch(t.layer){case"currentPosition":return[t.labelId,t.address];case"selectFromMap":case"ownLocations":case"back":return[t.labelId];case"favouritePlace":return bu(t.name,t.address);case"favouriteVehicleRentalStation":case"bikestation":return[t.name];case"favouriteRoute":case"route-BUS":case"route-TRAM":case"route-RAIL":case"route-SUBWAY":case"route-FERRY":case"route-FUNICULAR":case"route-AIRPLANE":return!e&&t.shortName?[t.gtfsId,t.mode.toLowerCase(),t.longName]:[t.shortName,t.longName,t.agency?t.agency.name:void 0];case"venue":case"address":case"street":return[t.name,t.label.replace(new RegExp(`${pu(t.name)}(,)?( )?`),"")];case"favouriteStop":case"stop":return e?[t.name||t.label||t.address&&t.address.split(",")[0],hu(t)]:[t.name,t.id,mu(t),hu(t)];default:return[t.name||t.label||t.address&&t.address.split(",")[0],hu(t)]}},(t,e)=>{const r=yu(t);return r.plain=e,r});var ju="modal-content_favourite-edit-modal-content-container__XELOg",wu="modal-content_favourite-edit-modal-content-top__HvY4M",xu="modal-content_favourite-edit-modal-content-header__MOjaO";gu(".modal-content_favourite-edit-modal-content-container__XELOg {\n display: flex;\n flex-direction: column;\n}\n.modal-content_favourite-edit-modal-content-container__XELOg .modal-content_favourite-edit-modal-content-top__HvY4M {\n display: flex;\n flex-direction: row;\n width: 100%;\n border-bottom: 1px solid #ddd;\n margin-bottom: 31px;\n}\n@media screen and (min-width: 768px) {\n .modal-content_favourite-edit-modal-content-container__XELOg .modal-content_favourite-edit-modal-content-top__HvY4M {\n border-bottom: none;\n margin-bottom: 0;\n }\n}\n.modal-content_favourite-edit-modal-content-container__XELOg .modal-content_favourite-edit-modal-content-top__HvY4M .modal-content_favourite-edit-modal-content-header__MOjaO {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: inherit;\n font-size: 18px;\n font-weight: var(--font-weight-medium);\n line-height: normal;\n letter-spacing: -0.6px;\n color: #333;\n margin-bottom: 34px;\n}\n@media screen and (min-width: 768px) {\n .modal-content_favourite-edit-modal-content-container__XELOg .modal-content_favourite-edit-modal-content-top__HvY4M .modal-content_favourite-edit-modal-content-header__MOjaO {\n justify-content: start;\n align-items: center;\n margin-bottom: 26px;\n line-height: 1.33;\n }\n}");const Ou=({headerText:t,renderList:e})=>d.default.createElement("div",{className:ju},d.default.createElement("div",{className:wu},d.default.createElement("div",{className:xu},t)),e());"production"!==process.env.NODE_ENV&&(Ou.propTypes={headerText:f.default.string.isRequired,renderList:f.default.func.isRequired});var Pu={"favourite-edit-list-container":"styles_favourite-edit-list-container__-J3iq","favourite-edit-list":"styles_favourite-edit-list__L7nQC","favourite-edit-list-item":"styles_favourite-edit-list-item__PF-tz","favourite-edit-list-item-left":"styles_favourite-edit-list-item-left__rokeP","favourite-edit-list-arrow-hidden":"styles_favourite-edit-list-arrow-hidden__p-ltn","favourite-edit-list-item-drag":"styles_favourite-edit-list-item-drag__4u3w1","favourite-edit-list-item-ellipsis":"styles_favourite-edit-list-item-ellipsis__2ZRRy","favourite-edit-list-item-icon":"styles_favourite-edit-list-item-icon__ui2XQ",place:"styles_place__04Tjf",home:"styles_home__8eD4Q",school:"styles_school__dj0zO",sport:"styles_sport__lBLQC",shopping:"styles_shopping__rQw4B",work:"styles_work__mLKr4","favourite-edit-list-item-content":"styles_favourite-edit-list-item-content__-4xN7","favourite-edit-list-item-name":"styles_favourite-edit-list-item-name__etzNo","favourite-edit-list-item-address":"styles_favourite-edit-list-item-address__Ym8ms","favourite-edit-list-item-right":"styles_favourite-edit-list-item-right__RUbTS","favourite-edit-list-item-edit":"styles_favourite-edit-list-item-edit__iMM6D","favourite-edit-list-item-remove":"styles_favourite-edit-list-item-remove__2wevI","favourite-edit-list-overlay":"styles_favourite-edit-list-overlay__-rCnF"};gu(".styles_favourite-edit-list-container__-J3iq {\n display: flex;\n position: relative;\n width: 100%;\n}\n@media screen and (min-width: 768px) {\n .styles_favourite-edit-list-container__-J3iq {\n min-height: 286px;\n }\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz:not(:first-child) {\n margin-top: 9px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz {\n display: flex;\n flex-direction: row;\n align-items: center;\n background: white;\n margin: 0;\n padding: 0;\n width: 100%;\n min-height: 50px;\n border-radius: 5px;\n border: solid 1px #ddd;\n list-style: none;\n box-sizing: border-box;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP {\n display: flex;\n min-width: 69px;\n height: 100%;\n align-items: center;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-arrow-hidden__p-ltn {\n z-index: -999;\n opacity: 0;\n width: 0;\n padding: 0;\n border: 0;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-arrow-hidden__p-ltn:focus {\n font-weight: bold;\n z-index: 10;\n opacity: 1;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-drag__4u3w1 {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 37px;\n height: 100%;\n cursor: move;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-drag__4u3w1 .styles_favourite-edit-list-item-ellipsis__2ZRRy {\n height: 20px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-drag__4u3w1 .styles_favourite-edit-list-item-ellipsis__2ZRRy svg {\n fill: #888;\n height: 20px;\n transform: rotate(90deg);\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n min-width: 24px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ svg {\n position: relative;\n left: -3px;\n top: -1px;\n fill: var(--color);\n width: 22px;\n height: 22px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_place__04Tjf svg {\n fill: var(--color);\n width: 24px;\n height: 24px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_home__8eD4Q svg, .styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_school__dj0zO svg, .styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_sport__lBLQC svg, .styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_shopping__rQw4B svg {\n fill: var(--color);\n width: 18px;\n height: 18px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-left__rokeP .styles_favourite-edit-list-item-icon__ui2XQ.styles_work__mLKr4 svg {\n fill: var(--color);\n width: 20px;\n height: 20px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-content__-4xN7 {\n display: flex;\n flex-direction: column;\n width: calc(100% - 69px - 86px);\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-content__-4xN7 .styles_favourite-edit-list-item-name__etzNo {\n margin: 0;\n font-weight: var(--font-weight-medium);\n color: #333;\n font-size: 15px;\n line-height: 1;\n letter-spacing: -0.6px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-content__-4xN7 .styles_favourite-edit-list-item-address__Ym8ms {\n margin: 3px 0 0;\n color: #666;\n font-size: 12px;\n font-weight: 400;\n line-height: 1;\n letter-spacing: -0.48px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-content__-4xN7 .styles_favourite-edit-list-item-address__Ym8ms:empty {\n margin-top: 0;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-right__RUbTS {\n display: flex;\n min-width: 86px;\n align-items: center;\n justify-content: space-evenly;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-right__RUbTS .styles_favourite-edit-list-item-edit__iMM6D {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 22px;\n height: 48px;\n cursor: pointer;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-right__RUbTS .styles_favourite-edit-list-item-edit__iMM6D svg {\n fill: #888;\n width: 22px;\n height: 22px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-right__RUbTS .styles_favourite-edit-list-item-remove__2wevI {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n width: 18px;\n height: 48px;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list__L7nQC .styles_favourite-edit-list-item__PF-tz .styles_favourite-edit-list-item-right__RUbTS .styles_favourite-edit-list-item-remove__2wevI svg {\n fill: #888;\n width: 18px;\n height: 20px;\n}\n.styles_favourite-edit-list-container__-J3iq > div {\n width: 100%;\n}\n.styles_favourite-edit-list-container__-J3iq .styles_favourite-edit-list-overlay__-rCnF {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #fff;\n}");const Su=l.createInstance({fallbackLng:"fi",resources:{de:{translation:{cancel:"Abbrechen","choose-icon":"Wähle das Symbol für diesen Ort","close-modal":"Schließe den Dialog",delete:"Löschen","delete-place-header":"Wollen Sie den Favoriten löschen?","delete-place-name":"Lösche Favorit: {{favourite.name}}","edit-modal-on-open":"Favoriten bearbeiten.","edit-place-name":"Bearbeite Favorit: {{favourite.name}}","edit-places":"Bearbeite Favoriten","input-placeholder":"Wählen Sie einen Name für diesen Ort (optional)",save:"Speichern","save-place":"Favorit speichern"}},en:{translation:{cancel:"Cancel","choose-icon":"Select the place's icon","close-modal":"Close the modal",delete:"Delete","delete-place-header":"Do you want to delete the place?","delete-place-name":"Delete place: {{favourite.name}}",down:"Move favourite down","edit-modal-on-open":"Favourite editing modal.","edit-place-name":"Edit place: {{favourite.name}}","edit-places":"Edit places","input-placeholder":"Give the name a place (optional)",save:"Save","save-place":"Save place",up:"Move favourite up"}},fi:{translation:{cancel:"Peruuta","choose-icon":"Valitse paikan kuvake","close-modal":"Sulje modaali",delete:"Poista","delete-place-header":"Haluatko poistaa paikan?","delete-place-name":"Poista paikka: {{favourite.name}}",down:"Siirrä suosikkisijaintia alaspäin","edit-modal-on-open":"Suosikkien muokkaus modaali.","edit-place-name":"Muokkaa paikkaa: {{favourite.name}}","edit-places":"Muokkaa paikkoja","input-placeholder":"Anna paikalle nimi (vapaaehtoinen)",save:"Tallenna","save-place":"Tallenna paikka",up:"Siirrä suosikkisijaintia ylöpäin"}},pl:{translation:{cancel:"Anuluj","choose-icon":"Wybierz ikonę miejsca","close-modal":"Zamknij modal",delete:"Usuń","delete-place-header":"Czy na pewno chcesz usunąć to miejsce?","delete-place-name":"Usuń miejsce: {{favourite.name}}",down:"Przenieś ulubione niżej","edit-modal-on-open":"Modal edycji ulubionych.","edit-place-name":"Edytuj miejsce: {{favourite.name}}","edit-places":"Edytuj miejsca","input-placeholder":"Nadaj nazwę miejscu (opcjonalne)",save:"Zapisz","save-place":"Zapisz miejsce",up:"Przenieś ulubione wyżej"}},sv:{translation:{cancel:"Avbryt","choose-icon":"Välj platsens ikon","close-modal":"Stäng modalen",delete:"Ta bort","delete-place-header":"Vill du ta bort platsen?","delete-place-name":"Ta bort platsen: {{favourite.name}}",down:"Flytta favoriten nedåt","edit-modal-on-open":"Favourite editing modal.","edit-place-name":"Edit place: {{favourite.name}}","edit-places":"Redigera platser","input-placeholder":"Ange platsens namn (frivilligt)",save:"Spara","save-place":"Spara plats",up:"Flytta favoriten uppåt"}}},defaultNS:"translation",react:{useSuspense:!0}});function Eu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}Su.init();const Fu=t=>{const e=t&&(t.key||t.which||t.keyCode)||"";return!(!e||![13," ","Spacebar"].concat([32,"Enter"]).includes(e))&&(t.preventDefault(),!0)};class ku extends d.default.Component{constructor(t){super(t),m(this,"translate",(t,e)=>this.props.t(t,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Eu(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eu(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({lng:this.props.lang},e))),m(this,"moveFavourite",(t,e)=>{const{favourites:r}=this.state,n=[...r],i=n[t+e];n[t+e]=n[t],n[t]=i,this.setState({favourites:n})}),m(this,"renderFavouriteListItem",(t,e)=>{let r="place";if(t.selectedIconId){const e=t.selectedIconId.indexOf("icon_");e>0&&(r=t.selectedIconId.substring(e+5))}const[n,i]=bu(t.name,t.address);return d.default.createElement("li",{className:or(Pu["favourite-edit-list-item"]),key:t.favouriteId},d.default.createElement("div",{className:Pu["favourite-edit-list-item-left"]},e>0&&d.default.createElement("button",{className:Pu["favourite-edit-list-arrow-hidden"],type:"button","aria-label":this.translate("up"),onClick:()=>{this.moveFavourite(e,-1)}},"↑"),e<this.state.favourites.length-1&&d.default.createElement("button",{className:Pu["favourite-edit-list-arrow-hidden"],type:"button","aria-label":this.translate("down"),onClick:()=>{this.moveFavourite(e,1)}},"↓"),d.default.createElement("div",{className:Pu["favourite-edit-list-item-drag"]},d.default.createElement("div",{className:Pu["favourite-edit-list-item-ellipsis"]},d.default.createElement(_.default,{img:"ellipsis"}))),d.default.createElement("div",{className:or(Pu["favourite-edit-list-item-icon"],Pu[r])},d.default.createElement(_.default,{img:r,color:this.props.colors.primary}))),d.default.createElement("div",{className:Pu["favourite-edit-list-item-content"]},d.default.createElement("p",{className:Pu["favourite-edit-list-item-name"]},n),d.default.createElement("p",{className:Pu["favourite-edit-list-item-address"]},i)),d.default.createElement("div",{className:Pu["favourite-edit-list-item-right"]},d.default.createElement("div",{role:"button",tabIndex:"0","aria-label":this.translate("edit-place-name",{favourite:t}),className:Pu["favourite-edit-list-item-edit"],onClick:()=>this.props.onEditSelected(t),onKeyDown:e=>{Fu(e)&&this.props.onEditSelected(t)}},d.default.createElement(_.default,{img:"edit"})),d.default.createElement("div",{role:"button",tabIndex:"0","aria-label":this.translate("delete-place-name",{favourite:t}),className:Pu["favourite-edit-list-item-remove"],onClick:()=>this.setState({selectedFavourite:t,showDeletePlaceModal:!0}),onKeyDown:e=>{Fu(e)&&this.setState({selectedFavourite:t,showDeletePlaceModal:!0})}},d.default.createElement(_.default,{img:"trash"}))))}),m(this,"renderFavouriteList",()=>{const{isLoading:t}=this.props,{favourites:e}=this.state;return d.default.createElement("div",{className:Pu["favourite-edit-list-container"]},d.default.createElement(i.ReactSortable,{className:Pu["favourite-edit-list"],tag:"ul",list:e,setList:t=>this.setState({favourites:t}),animation:200,handle:`.${Pu["favourite-edit-list-item-left"]}`},e.map((t,e)=>this.renderFavouriteListItem(t,e))),t&&d.default.createElement("div",{className:Pu["favourite-edit-list-overlay"]},d.default.createElement(o.Spinner,null)))}),m(this,"renderDeleteFavouriteModal",t=>d.default.createElement(p.default,{headerText:this.translate("delete-place-header"),handleClose:()=>this.setState({selectedFavourite:null,showDeletePlaceModal:!1},()=>this.props.handleClose()),isModalOpen:this.state.showDeletePlaceModal,dialogContent:t?`${t.name}: ${t.address}`:"",primaryButtonText:this.translate("delete"),primaryButtonOnClick:()=>{this.props.deleteFavourite(t),this.setState({selectedFavourite:null,showDeletePlaceModal:!1})},secondaryButtonText:this.translate("cancel"),secondaryButtonOnClick:()=>this.setState({selectedFavourite:null,showDeletePlaceModal:!1}),lang:this.props.lang})),m(this,"closeModal",()=>{this.props.handleClose();const t=this.state.favourites.map(t=>su(t,["chosen","selected"]));Ri(t,this.props.favourites)||this.props.updateFavourites(t)}),m(this,"renderModalContent",()=>{const{fontWeights:t}=this.props,{primary:e,hover:r}=this.props.colors,n={headerText:this.translate("edit-places"),renderList:this.renderFavouriteList},i={"--color":e,"--hover-color":r,"--font-weight-medium":t.medium};return d.default.createElement("div",{style:i},d.default.createElement(Ou,n))}),this.state={favourites:t.favourites,showDeletePlaceModal:!1,selectedFavourite:null}}static getDerivedStateFromProps(t,e){const r=t.favourites,n=e.favourites;return io(Pn(r,n,Ri))&&io(Pn(n,r,Ri))?null:(io(r)&&t.handleClose(),{favourites:r})}render(){const{isMobile:t}=this.props,{showDeletePlaceModal:e,selectedFavourite:r}=this.state;return d.default.createElement(v.default,{appElement:this.props.appElement,contentLabel:this.translate("edit-modal-on-open"),closeButtonLabel:this.translate("close-modal"),variant:t?"large":"small",isOpen:this.props.isModalOpen,onCrossClick:this.closeModal},this.renderDeleteFavouriteModal(r),!e&&this.renderModalContent())}}m(ku,"defaultProps",{lang:"fi",isMobile:!1,colors:u.defaultColors,fontWeights:{medium:500}}),"production"!==process.env.NODE_ENV&&(ku.propTypes={handleClose:f.default.func.isRequired,updateFavourites:f.default.func.isRequired,deleteFavourite:f.default.func.isRequired,onEditSelected:f.default.func.isRequired,favourites:f.default.arrayOf(f.default.shape({type:f.default.string,address:f.default.string,gtfsId:f.default.string,gid:f.default.string,lat:f.default.number,lon:f.default.number,name:f.default.string,selectedIconId:f.default.string,favouriteId:f.default.string,layer:f.default.string})).isRequired,lang:f.default.string,t:f.default.func.isRequired,appElement:f.default.string.isRequired,isModalOpen:f.default.bool.isRequired,isMobile:f.default.bool,isLoading:f.default.bool.isRequired,colors:f.default.objectOf(f.default.string),fontWeights:f.default.shape({medium:f.default.number})});const zu=n.withTranslation()(ku);t.default=t=>d.default.createElement(n.I18nextProvider,{i18n:Su},d.default.createElement(zu,t)),Object.defineProperty(t,"__esModule",{value:!0})});
7
+ //# sourceMappingURL=index.cjs.map