From 54b03920c595c3efea09256cdb0220f07cf09e03 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 18 Aug 2021 20:51:15 +0200 Subject: [PATCH] FIX: linting --- dist/icons/manifest.webapp | 2 +- dist/icons/yandex-browser-manifest.json | 2 +- dist/index.html | 24 +- dist/js/app.js | 2 +- dist/js/app_sw.js | 2 +- dist/records.json | 54 --- dist/report.html | 4 +- src/_graphql/mockServiceWorker.js | 242 +++++------ src/html/Elements/Accordion.html | 163 ++++--- src/html/Elements/Content.html | 320 +++++++------- src/html/Elements/ElementsList.html | 84 ++-- src/html/Elements/Map.html | 122 +++--- src/html/First.html | 2 +- src/html/Footer.html | 80 ++-- src/html/Head.html | 4 +- src/html/Last.html | 8 +- src/html/Navigation.html | 205 +++++---- src/html/Slider.html | 159 ++++--- src/html/_components/Alerts.html | 66 +-- src/html/_components/Flyout.html | 18 +- src/html/_components/LoadingSpinner.html | 411 +++++++++--------- src/index.html | 164 ++++--- src/js/_consts.js | 2 +- src/js/_events.js | 76 ++-- src/js/ajax/apollo/cache.js | 15 +- src/js/ajax/apollo/init.js | 52 +-- src/js/ajax/lazy-images.js | 46 +- src/js/ajax/links.js | 300 +++++++------ src/js/ajax/models/element.jsx | 326 +++++++------- src/js/ajax/models/page.jsx | 357 ++++++++------- src/js/ajax/online.js | 25 +- src/js/app.js | 20 +- src/js/drivers/google.track.external.links.js | 26 +- src/js/drivers/map.google.font-icons.js | 80 ++-- src/js/drivers/map.google.js | 129 +++--- src/js/drivers/map.google.marker.js | 82 ++-- src/js/drivers/map.mapbox.js | 61 ++- src/js/layout/index.js | 19 +- src/js/libs/log.js | 2 +- src/js/main/css-screen-size.js | 22 +- src/js/main/index.js | 12 +- src/js/main/loading-spinner.js | 10 +- src/js/main/main.js | 36 +- src/js/main/touch.js | 36 +- src/js/main/visibility.js | 18 +- src/js/store/components/index.js | 6 +- src/js/store/components/page-controls.js | 2 +- src/js/store/configure.js | 8 +- src/js/store/connect.js | 2 +- src/js/store/index.js | 14 +- src/js/store/reducers/counter.js | 19 +- src/js/store/reducers/index.js | 6 +- src/js/test-build.js | 37 +- src/js/types/sw.js | 34 +- src/js/ui/carousel.js | 85 ++-- src/js/ui/instagram.feed.js | 66 ++- src/js/ui/map.api.js | 44 +- src/js_old/_components/_ui.ajax.js | 102 ++--- src/js_old/_components/_ui.carousel.js | 56 +-- src/js_old/_components/_ui.cookie.js | 14 +- src/js_old/_components/_ui.flyout.js | 18 +- src/js_old/_components/_ui.form.basics.js | 60 +-- src/js_old/_components/_ui.form.croppie.js | 108 ++--- src/js_old/_components/_ui.form.datetime.js | 54 +-- src/js_old/_components/_ui.form.fields.js | 48 +- .../_components/_ui.form.fields.toggle.js | 54 +-- src/js_old/_components/_ui.form.jqte.js | 28 +- src/js_old/_components/_ui.form.select2.js | 26 +- src/js_old/_components/_ui.form.stepped.js | 78 ++-- src/js_old/_components/_ui.form.storage.js | 50 +-- .../_components/_ui.form.validate.field.js | 70 +-- src/js_old/_components/_ui.form.validate.js | 40 +- src/js_old/_components/_ui.header-footer.js | 28 +- src/js_old/_components/_ui.hover.js | 70 +-- src/js_old/_components/_ui.image-position.js | 12 +- src/js_old/_components/_ui.instagramfeed.js | 64 ++- src/js_old/_components/_ui.map.api.js | 54 +-- src/js_old/_components/_ui.menu.js | 8 +- src/js_old/_components/_ui.multislider.js | 68 +-- src/js_old/_components/_ui.nocaptcha.js | 46 +- src/js_old/_components/_ui.opening-hours.js | 72 +-- src/js_old/_components/_ui.search.js | 64 +-- src/js_old/_components/_ui.shrink.js | 55 +-- src/js_old/_components/_ui.sidebar.js | 20 +- src/js_old/_components/_ui.spinner.js | 8 +- src/js_old/_components/_ui.video.preview.js | 39 +- src/js_old/_components/_ui.visibility.js | 4 +- .../drivers/_google.track.external.links.js | 26 +- .../drivers/_map.google.font-icons.js | 80 ++-- src/js_old/_components/drivers/_map.google.js | 102 ++--- .../_components/drivers/_map.google.marker.js | 72 +-- src/js_old/_components/drivers/_map.mapbox.js | 63 ++- src/js_old/_components/mapStorage.js | 179 +++++--- src/js_old/_components/routes/index.js | 12 +- src/js_old/_consts.js | 4 +- src/js_old/_events.js | 74 ++-- src/js_old/_events.router.js | 20 +- src/js_old/_layout.js | 13 +- src/js_old/_main.js | 262 +++++------ src/js_old/app.js | 16 +- src/js_old/lang/_en.js | 12 +- ...ce_it_to_types_folder_PageTypeClassName.js | 13 +- .../SilverShop.Page.CheckoutPageController.js | 2 +- .../Site.Controllers.MapElementController.js | 2 +- src/mocks/browser.js | 4 +- src/mocks/handlers.js | 40 +- src/mocks/server.js | 4 +- src/scss/_colors.scss | 9 +- src/test-pajax.html | 128 +++--- src/test.json | 4 +- 110 files changed, 3409 insertions(+), 3363 deletions(-) diff --git a/dist/icons/manifest.webapp b/dist/icons/manifest.webapp index a576c85..f8d77ad 100644 --- a/dist/icons/manifest.webapp +++ b/dist/icons/manifest.webapp @@ -1,5 +1,5 @@ { - "version": "4.2.2", + "version": "4.2.3", "name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react", "description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.", "icons": { diff --git a/dist/icons/yandex-browser-manifest.json b/dist/icons/yandex-browser-manifest.json index 9845d62..7201ba1 100644 --- a/dist/icons/yandex-browser-manifest.json +++ b/dist/icons/yandex-browser-manifest.json @@ -1,5 +1,5 @@ { - "version": "4.2.2", + "version": "4.2.3", "api_version": 1, "layout": { "logo": "yandex-browser-50x50.png", diff --git a/dist/index.html b/dist/index.html index 57487af..1e7ba19 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,15 +1,15 @@ -Webpack Bootstrap 4 UI Demo


LOADING...
L O A D I N G . . .

Flyout Demo

Lipsum .... .... ....

Webpack Bootstrap 4 UI Demo

Content Demo

Quick start

  1. Clone quick start repository

    +Webpack Bootstrap 4 UI Demo


    LOADING...
    L O A D I N G . . .

    Flyout Demo

    Lipsum .... .... ....

    Webpack Bootstrap 4 UI Demo

    Content Demo

    Quick start

    1. Clone quick start repository

       git clone https://github.com/a2nt/webpack-bootstrap-ui-kit-quick-start.git
    2. Install npm packages

       				cd ./webpack-bootstrap-ui-kit-quick-start.git
       				npm install
      -			
    3. Edit ./src files

    4. Start development server at https://127.0.0.1:8001/:

      yarn start

      Compile:

      yarn build

    Header #2

    Test ImageContent Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    1. First
      • First
      • Second
        1. First
        2. Second
        3. Third
        • First
        • Second
        • Third
      • Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    2. {paragraph} Second

      {paragraph} Second #2

    3. Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Responsive Table #1: Default

    Header #1Header #2Header #3
    #1-1#1-2#1-3
    #2-1#2-2#2-3
    #3-1#3-2#3-3

    Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Responsive Table #2: Border-less

    Header #1Header #2Header #3
    #1-1#1-2#1-3
    #2-1#2-2#2-3
    #3-1#3-2#3-3

    Content Header

    Some content ...
    Some kind image
    Some kind image
    Some kind image
    Some kind image

    Accordion demo

    Some content ...

    This is the first item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

    This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

    This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

    Find Location

    Use _consts.js to change Google Maps to Mapbox.

    Office #1
    17 Lakeside Drive
    U
    Office #2
    Flower Hill Cemetery
    N
    Office #3
    555 Phoenix Road
    U
    Office #4
    15 East Hadley Road
    U
    \ No newline at end of file +
  2. Edit ./src files

  3. Start development server at https://127.0.0.1:8001/:

    yarn start

    Compile:

    yarn build

Header #2

Test ImageContent Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  1. First
    • First
    • Second
      1. First
      2. Second
      3. Third
      • First
      • Second
      • Third
    • Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  2. {paragraph} Second

    {paragraph} Second #2

  3. Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Responsive Table #1: Default

Header #1Header #2Header #3
#1-1#1-2#1-3
#2-1#2-2#2-3
#3-1#3-2#3-3

Content Text Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Responsive Table #2: Border-less

Header #1Header #2Header #3
#1-1#1-2#1-3
#2-1#2-2#2-3
#3-1#3-2#3-3

Content Header

Some content ...
Some kind image
Some kind image
Some kind image
Some kind image

Accordion demo

Some content ...

This is the first item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

This is the second item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

This is the third item's accordion body. It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the .accordion-body, though the transition does limit overflow.

Find Location

Use _consts.js to change Google Maps to Mapbox.

Office #1
17 Lakeside Drive
U
Office #2
Flower Hill Cemetery
N
Office #3
555 Phoenix Road
U
Office #4
15 East Hadley Road
U
\ No newline at end of file diff --git a/dist/js/app.js b/dist/js/app.js index 11c4a7f..5856b60 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(){var e={722:function(e,t,n){e.exports=n(895)},196:function(e,t,n){"use strict";var r=n(695),i=n(30),o=n(305),a=n(999),s=n(492),c=n(867),u=n(751),l=n(174);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var y=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function handleLoad(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,o),d=null}},d.onabort=function handleAbort(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function handleError(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(p,(function setRequestHeader(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(g){if("json"!==e.responseType)throw g}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},895:function(e,t,n){"use strict";var r=n(695),i=n(129),o=n(653),a=n(309);function createInstance(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var s=createInstance(n(933));s.Axios=o,s.create=function create(e){return createInstance(a(s.defaults,e))},s.Cancel=n(638),s.CancelToken=n(114),s.isCancel=n(539),s.all=function all(e){return Promise.all(e)},s.spread=n(522),s.isAxiosError=n(431),e.exports=s,e.exports.default=s},638:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},114:function(e,t,n){"use strict";var r=n(638);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},539:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},653:function(e,t,n){"use strict";var r=n(695),i=n(999),o=n(328),a=n(570),s=n(309);function Axios(e){this.defaults=e,this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},328:function(e,t,n){"use strict";var r=n(695);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},492:function(e,t,n){"use strict";var r=n(794),i=n(296);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},174:function(e,t,n){"use strict";var r=n(2);e.exports=function createError(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},570:function(e,t,n){"use strict";var r=n(695),i=n(554),o=n(539),a=n(933);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return o(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},2:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},309:function(e,t,n){"use strict";var r=n(695);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(o,mergeDeepProperties),r.forEach(a,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(s,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),u=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===c.indexOf(e)}));return r.forEach(u,mergeDeepProperties),n}},30:function(e,t,n){"use strict";var r=n(174);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},554:function(e,t,n){"use strict";var r=n(695);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},933:function(e,t,n){"use strict";var r=n(695),i=n(965),o={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(196)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=r.merge(o)})),e.exports=a},129:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},522:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},695:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(129),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{shown:!1},n=arguments.length>1?arguments[1]:void 0;_classCallCheck(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null}),_defineProperty(this,"show",(function(){var t=e;console.log("".concat(t.name,": show")),t.setState({shown:!0}),r.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var t=e;console.log("".concat(t.name,": hide")),t.setState({shown:!1}),r.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var t=e,n=t.state.current.getAttribute("data-gallery"),i=t._currIndex();i0?i--:i=t.state.collections[n].length-1,t.state.collections[n][i].click(),console.log("".concat(t.name,": prev")),r.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){e.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(t){var n=e,i=n.axios;n.reset(),n.setState({loading:!0}),n.show(),i.get(t,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),"text html pajax");break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}r.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),r.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var t=e,n=t.state.current,r=n.getAttribute("data-gallery");return t.state.collections[r].indexOf(n)})),_defineProperty(this,"embed",(function(t){var n=e;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:t,loading:!1,type:["meta-".concat(n.name,"__embed"),"meta-".concat(n.name,"__video")]}),n.show()})),_defineProperty(this,"setCaption",(function(t){var n=e;console.log("".concat(n.name,": setCaption")),n.state.caption=t})),_defineProperty(this,"getCaption",(function(){return e.state.caption})),_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(this,"setContent",(function(t,n){var r=e;console.log("".concat(r.name,": setContent"));var i=n||["html","text"];Array.isArray(i)||(i=n.split(" ")),r.setState({content:t,type:i})})),_defineProperty(this,"getHtml",(function(){var t=e;if(t.state.embed){var n=__webpack_require__(46)(t.state.embed);t.state.content='')}return t.state.content}));var o=this;switch(o.name=o.constructor.name,console.log("".concat(o.name,": init")),o.axios=i,o.setState(t),n){case"show":case"hide":o.hide()}r.dispatchEvent(new Event("{ui.name}.init"))}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(){var e=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r);var o=n.getAttribute("data-title");o&&e.setCaption(o)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e,t=this,n=t.name,r=t.state.current;t.state.target.innerHTML="";var i=document.createElement("div");i.classList.add("meta-".concat(n)),(e=i.classList).add.apply(e,_toConsumableArray(t.state.type)),t.state.target.append(i);var o=document.createElement("div");o.classList.add("meta-".concat(n,"-overlay")),t.state.shown&&o.classList.add("meta-".concat(n,"-overlay__open")),t.state.loading&&o.classList.add("meta-".concat(n,"-overlay__loading")),t.state.error&&o.classList.add("meta-".concat(n,"-overlay__error")),i.append(o);var a=document.createElement("div");a.classList.add("meta-content"),o.append(a);var s=document.createElement("button");if(s.classList.add("meta-nav","meta-close","a"),s.innerHTML=' Close',s.addEventListener("click",(function(e){e.preventDefault(),t.hide()})),a.append(s),r){var c=r.getAttribute("data-gallery");if(c&&t.state.collections[c].length>1){var u=document.createElement("nav");u.classList.add("meta-navs");var l=document.createElement("button");l.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),l.innerHTML=' Previous',l.addEventListener("click",(function(e){e.preventDefault(),t.prev()})),u.append(l);var f=document.createElement("button");f.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),f.innerHTML=' Next',f.addEventListener("click",(function(e){e.preventDefault(),t.next()})),u.append(f),a.append(u)}}var p=document.createElement("section");if(p.classList.add("meta-wrap","typography"),p.innerHTML=t.getHtml(),a.append(p),t.state.error){var d=document.createElement("div");d.classList.add("meta-error"),d.innerHTML=t.state.error,a.append(d)}else if(t.state.caption){var h=document.createElement("div");h.classList.add("meta-caption"),h.innerHTML=t.getCaption(),a.append(h)}return t}}]),MetaWindow}(),a=document.getElementById("MetaLightboxApp");a||console.log("MetaWindow: missing container");var s=new o({target:a}),c=function init(){s.init()};window.addEventListener("".concat(n),c),window.addEventListener("".concat(t),c),window.addEventListener("MetaWindow.initLinks",c),window.MetaWindow=s;var u={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},l={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(e){var t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(u.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(u.TABFOCUSED)))}))})(window),function(e){var t,n,r="_main.touch",i=document,o=i.body,a=function SET_TOUCH_SCREEN(i,a){n||a===t||(i?(console.log("".concat(r,": Touch screen enabled")),o.classList.add("is-touch"),o.classList.remove("is-mouse"),e.dispatchEvent(new Event(u.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),o.classList.add("is-mouse"),o.classList.remove("is-touch"),e.dispatchEvent(new Event(u.TOUCHDISABLED))),t=a,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};a("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")}))}(window);function css_screen_size_toConsumableArray(e){return function css_screen_size_arrayWithoutHoles(e){if(Array.isArray(e))return css_screen_size_arrayLikeToArray(e)}(e)||function css_screen_size_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function css_screen_size_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return css_screen_size_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return css_screen_size_arrayLikeToArray(e,t)}(e)||function css_screen_size_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function css_screen_size_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(u=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(a," | landscape ").concat(u)),n.removeChild(i),a};e.addEventListener("".concat(u.LOADED),r),e.addEventListener("".concat(u.RESIZE),r)}(window);function loading_spinner_defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(u).forEach((function(e){console.info("".concat(e,": ").concat(u[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(l).forEach((function(e){console.info("".concat(e,": ").concat(l[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var r=function(){function MainUI(){!function main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(e,t,n){return t&&main_defineProperties(e.prototype,t),n&&main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(u.LOADED),(function(){r.init(),n.classList.add("loaded"),h.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(u.LODEDANDREADY))})),e.addEventListener("".concat(u.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var m=React;var y=function extendStatics(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var v=function __assign(){return(v=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]120){for(var p=Math.floor(c/80),d=c%80,h=[],m=0;m",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function inspect_typeof(e){return(inspect_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function inspect_inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(inspect_typeof(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function getCustomFn(e){var t=e[String(E)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"===typeof i?i:formatValue(i,n)}else if(Array.isArray(e))return function formatArray(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var k=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat(inspect_inspect(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:g,get:function get(){return"Source"}}]),Source}();var C=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;ai&&isBlank(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t31||9===o));return new S(O.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body,s=n,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw syntaxError(e,c,"Invalid number, unexpected digit after 0: ".concat(printCharCode(s),"."))}else c=readDigits(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=readDigits(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=readDigits(e,c,s),s=a.charCodeAt(c)),46===s||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw syntaxError(e,c,"Invalid number, expected digit but got: ".concat(printCharCode(s),"."));return new S(u?O.FLOAT:O.INT,t,c,r,i,o,a.slice(t,c))}function readDigits(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){for(var o,a,s,c,u=e.body,l=t+1,f=l,p=0,d="";l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new S(O.NAME,t,s,n,r,i,o.slice(t,s))}var x=function(){function Parser(e,t){var n=function isSource(e){return k(e,T)}(e)?e:new T(e);this._lexer=new A(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(O.NAME);return{kind:b.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:b.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(O.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(O.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(O.BRACE_L))return{kind:b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(O.NAME)&&(t=this.parseName()),{kind:b.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(O.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(O.DOLLAR),{kind:b.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:b.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(O.COLON)?(e=r,t=this.parseName()):t=r,{kind:b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(O.COLON),{kind:b.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:b.ARGUMENT,name:this.parseName(),value:(this.expectToken(O.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(O.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?{kind:b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this._lexer.advance(),{kind:b.INT,value:t.value,loc:this.loc(t)};case O.FLOAT:return this._lexer.advance(),{kind:b.FLOAT,value:t.value,loc:this.loc(t)};case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:b.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:b.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:b.NULL,loc:this.loc(t)};default:return{kind:b.ENUM,value:t.value,loc:this.loc(t)}}case O.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:b.STRING,value:e.value,block:e.kind===O.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:b.LIST,values:this.any(O.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),O.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:b.OBJECT,fields:this.any(O.BRACE_L,(function item(){return t.parseObjectField(e)}),O.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),{kind:b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(O.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(O.AT),{kind:b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(O.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(O.BRACKET_R),e={kind:b.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(O.BANG)?{kind:b.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:b.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return{kind:b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);var n=this.parseNamedType();return{kind:b.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(O.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(O.AMP)||this.peek(O.NAME));return t}return this.delimitedMany(O.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(O.BRACE_L)&&this._lexer.lookahead().kind===O.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(O.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:b.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:b.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:b.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==C[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new w(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}(e)?'"'.concat(e,'"'):e}function lib_typeof(e){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var D=new Map,I=new Map,N=!0,L=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),o=I.get(r);o&&!o.has(i)?N&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||I.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),v(v({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!D.has(t)){var n=function parse(e,t){return new x(e,t).parseDocument()}(e,{experimentalFragmentVariables:L});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");D.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===lib_typeof(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return D.get(t)}function gql(e){for(var t=[],n=1;nthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),ee=new J,te=Object.prototype.hasOwnProperty,ne=void 0===(X=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:X;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var re=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var ie=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),ee.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,(function(t,n){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=re.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(ne(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),re.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=ee.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(e,t){var n=e.parents.size;if(n)for(var r=ne(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(re.length<100&&re.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}var oe={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=ee.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e,n){var r=t.get(e);if(r){var i=n&&te.call(oe,n)?n:"setDirty";ne(r).forEach((function(e){return e[i]()})),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new z("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var ae=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var n=new Z(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),o=function optimistic(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new ie(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),ae.add(n),ee.hasValue()||(ae.forEach((function(e){return e.clean()})),ae.clear()),s};function dirtyKey(e){var t=n.get(e);t&&t.setDirty()}function peekKey(e){var t=n.get(e);if(t)return t.peek()}function forgetKey(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function get(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=dirtyKey,o.dirty=function dirty(){dirtyKey(i.apply(null,arguments))},o.peekKey=peekKey,o.peek=function peek(){return peekKey(i.apply(null,arguments))},o.forgetKey=forgetKey,o.forget=function forget(){return forgetKey(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function getKey(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var se=Object.prototype,ce=se.toString,ue=se.hasOwnProperty,le=Function.prototype.toString,fe=new Map;function equal(e,t){try{return check(e,t)}finally{fe.clear()}}function check(e,t){if(e===t)return!0;var n=ce.call(e);if(n!==ce.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a=0&&e.indexOf(t,n)===n}(m,pe)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var pe="{ [native code] }";function previouslyCompared(e,t){var n=fe.get(e);if(n){if(n.has(t))return!0}else fe.set(e,n=new Set);return n.add(t),!1}var de="Invariant Violation",he=Object.setPrototypeOf,me=void 0===he?function(e,t){return e.__proto__=t,e}:he,ye=function(e){function InvariantError(t){void 0===t&&(t=de);var n=e.call(this,"number"===typeof t?de+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=de,me(n,InvariantError.prototype),n}return __extends(InvariantError,e),InvariantError}(Error);function invariant_esm_invariant(e,t){if(!e)throw new ye(t)}var ve=["debug","log","warn","error","silent"],ge=ve.indexOf("log");function wrapConsoleMethod(e){return function(){if(ve.indexOf(e)>=ge){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant_esm_invariant||(invariant_esm_invariant={}));function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new ye("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new ye(47);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(__DEV__?invariant_esm_invariant(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant_esm_invariant(1===r.length,48),n=r[0].name.value),v(v({},e),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?invariant_esm_invariant(n,"No fragment named "+e.name.value+"."):invariant_esm_invariant(n,49),n;default:return null}}var _e=function(){function ApolloCache(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return ApolloCache.prototype.batch=function(e){var t="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(v(v({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(v(v({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=__rest(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=__rest(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},ApolloCache}(),be=function(e){function MissingFieldError(t,n,r,i){var o=e.call(this,t)||this;return o.message=t,o.path=n,o.query=r,o.variables=i,o.__proto__=MissingFieldError.prototype,o}return __extends(MissingFieldError,e),MissingFieldError}(Error);function objects_typeof(e){return(objects_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isNonNullObject(e){return null!==e&&"object"===objects_typeof(e)}function storeUtils_typeof(e){return(storeUtils_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===storeUtils_typeof(e)&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return valueToObjectRepresentation(i,e.name,e.value,r)})),e[t.value]=i}else if(function isVariable(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw __DEV__?new ye('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new ye(58);e[t.value]=null}}var Ee=["connection","include","skip","client","rest","export"],we=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+Se(i)+")"}return n.connection.key}var o=e;if(t){var a=Se(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===Ee.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+Se(n[e])+")":o+="@"+e)})),o}),{setStringify:function setStringify(e){var t=Se;return Se=e,t}}),Se=function defaultStringify(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,t){return isNonNullObject(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r2&&void 0!==arguments[2]?arguments[2]:Oe,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],c=void 0,u=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(u=0===p.length?void 0:f[f.length-1],c=l,l=p.pop(),m){if(i)c=c.slice();else{for(var y={},v=0,g=Object.keys(c);v-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var Ie=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t1)for(var r=new Le,i=1;i0);var s=0;do{++r,s=10*s+o-qe,o=t.charCodeAt(r)}while(isDigit(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}(e,t)}))}var Be=function(){function LexicalDistance(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return LexicalDistance.prototype.measure=function measure(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=stringToArray(n),i=this._inputArray;if(r.lengtht)){for(var c=this._rows,u=0;u<=s;u++)c[0][u]=u;for(var l=1;l<=a;l++){for(var f=c[(l-1)%3],p=c[l%3],d=p[0]=l,h=1;h<=s;h++){var m=r[l-1]===i[h-1]?0:1,y=Math.min(f[h]+1,p[h-1]+1,f[h-1]+m);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var v=c[(l-2)%3][h-2];y=Math.min(y,v+1)}yt)return}var g=c[a%3][s];return g<=t?g:void 0}},LexicalDistance}();function stringToArray(e){for(var t=e.length,n=new Array(t),r=0;r80&&(s=a+printer_wrap("(\n",indent(join(r,"\n")),"\n)")),join([s,join(i," "),o]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+printer_wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",printer_wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(printer_wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(printer_wrap("",join(i," ")," "))+o},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?function printBlockString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,c="";return!s||r&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+printer_wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+": "+r+printer_wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,printer_wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return printer_wrap("{\n",indent(join(e,"\n")),"\n}")}function printer_wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return printer_wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}function valueFromASTUntyped(e,t){switch(e.kind){case b.NULL:return null;case b.INT:return parseInt(e.value,10);case b.FLOAT:return parseFloat(e.value);case b.STRING:case b.ENUM:case b.BOOLEAN:return e.value;case b.LIST:return e.values.map((function(e){return valueFromASTUntyped(e,t)}));case b.OBJECT:return keyValMap(e.fields,(function(e){return e.name.value}),(function(e){return valueFromASTUntyped(e.value,t)}));case b.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}invariant(0,"Unexpected value node: "+inspect_inspect(e))}function definition_defineProperties(e,t){for(var n=0;n0?e:void 0}GraphQLList.prototype.toString=function toString(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLList.prototype,g,{get:function get(){return"GraphQLList"}}),defineInspect(GraphQLList),GraphQLNonNull.prototype.toString=function toString(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,g,{get:function get(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);var ze=function(){function GraphQLScalarType(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:identityFunc;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:identityFunc,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(valueFromASTUntyped(e,t))},this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||devAssert(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(inspect_inspect(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||devAssert(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||devAssert(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=GraphQLScalarType.prototype;return e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLScalarType,[{key:g,get:function get(){return"GraphQLScalarType"}}]),GraphQLScalarType}();defineInspect(ze);var We=function(){function GraphQLObjectType(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||devAssert(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(inspect_inspect(e.isTypeOf),"."))}var e=GraphQLObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLObjectType,[{key:g,get:function get(){return"GraphQLObjectType"}}]),GraphQLObjectType}();function defineInterfaces(e){var t,n=null!==(t=resolveThunk(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||devAssert(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function defineFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){var r;isPlainObj(t)||devAssert(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||devAssert(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||devAssert(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(inspect_inspect(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};isPlainObj(i)||devAssert(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Qe(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&toObjMap(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function isPlainObj(e){return isObjectLike(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return mapValue(e,(function(e){return{description:e.description,type:e.type,args:(t=e.args,keyValMap(t,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode};var t}))}defineInspect(We);var He=function(){function GraphQLInterfaceType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLInterfaceType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInterfaceType,[{key:g,get:function get(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType}();defineInspect(He);var Ke=function(){function GraphQLUnionType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._types=defineTypes.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLUnionType.prototype;return e.getTypes=function getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLUnionType,[{key:g,get:function get(){return"GraphQLUnionType"}}]),GraphQLUnionType}();function defineTypes(e){var t=resolveThunk(e.types);return Array.isArray(t)||devAssert(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}defineInspect(Ke);var Ge=function(){function GraphQLEnumType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._values=function defineEnumValues(e,t){return isPlainObj(t)||devAssert(0,"".concat(e," values must be an object with value names as keys.")),Qe(t).map((function(t){var n=t[0],r=t[1];return isPlainObj(r)||devAssert(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(inspect_inspect(r),".")),!("isDeprecated"in r)||devAssert(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&toObjMap(r.extensions),astNode:r.astNode}}))}(this.name,e.values),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=function keyMap(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}(this._values,(function(e){return e.name})),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLEnumType.prototype;return e.getValues=function getValues(){return this._values},e.getValue=function getValue(e){return this._nameLookup[e]},e.serialize=function serialize(e){var t=this._valueLookup.get(e);if(void 0===t)throw new _('Enum "'.concat(this.name,'" cannot represent value: ').concat(inspect_inspect(e)));return t.name},e.parseValue=function parseValue(e){if("string"!==typeof e){var t=inspect_inspect(e);throw new _('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+didYouMeanEnumValue(this,t))}var n=this.getValue(e);if(null==n)throw new _('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,e));return n.value},e.parseLiteral=function parseLiteral(e,t){if(e.kind!==b.ENUM){var n=print(e);throw new _('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+didYouMeanEnumValue(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=print(e);throw new _('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,i),e)}return r.value},e.toConfig=function toConfig(){var e,t=keyValMap(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLEnumType,[{key:g,get:function get(){return"GraphQLEnumType"}}]),GraphQLEnumType}();function didYouMeanEnumValue(e,t){return function didYouMean(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}("the enum value",suggestionList(t,e.getValues().map((function(e){return e.name}))))}defineInspect(Ge);var Ye=function(){function GraphQLInputObjectType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLInputObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.toConfig=function toConfig(){var e,t=mapValue(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInputObjectType,[{key:g,get:function get(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType}();function defineInputFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){return!("resolve"in t)||devAssert(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function maybeDeepFreeze(e){return __DEV__&&function deepFreeze(e){var t=new Set([e]);return t.forEach((function(e){isNonNullObject(e)&&(Object.isFrozen(e)||Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){isNonNullObject(e[n])&&t.add(e[n])})))})),e}(e),e}defineInspect(Ye),function removeTemporaryGlobals(){return isType(null),function remove(){Ve&&(delete Fe.process,Ve=!1)}()}();var Je=Object.prototype.hasOwnProperty;var Xe=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(Xe);return t?t[0]:e}function selectionSetMatchesResult(e,t,n){return!!isNonNullObject(t)&&(Array.isArray(t)?t.every((function(t){return selectionSetMatchesResult(e,t,n)})):e.selections.every((function(e){if(storeUtils_isField(e)&&shouldInclude(e,n)){var r=resultKeyNameFromField(e);return Je.call(t,r)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[r],n))}return!0})))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!Array.isArray(e)}function entityStore_typeof(e){return(entityStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $e=Object.create(null),Ze=function delModifier(){return $e},et=Object.create(null),tt=function(){function EntityStore(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return maybeDeepFreeze(isReference(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?n.has(e.__ref):"object"===entityStore_typeof(e)},this.toReference=function(e,t){if("string"===typeof e)return makeReference(e);if(isReference(e))return e;var r=n.policies.identify(e)[0];if(r){var i=makeReference(r);return t&&n.merge(r,e),i}}}return EntityStore.prototype.toObject=function(){return v({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),Je.call(this.data,e)){var n=this.data[e];if(n&&Je.call(n,t))return n[t]}return"__typename"===t&&Je.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rt?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Je.call(this.data,e)?this.data[e]:this instanceof rt?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var n,r=this;isReference(e)&&(e=e.__ref),isReference(t)&&(t=t.__ref);var i="string"===typeof e?this.lookup(n=e):e,o="string"===typeof t?this.lookup(n=t):t;if(o){__DEV__?invariant_esm_invariant("string"===typeof n,"store.merge expects a string ID"):invariant_esm_invariant("string"===typeof n,2);var a=new Le(storeObjectReconciler).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=fieldNameFromStoreName(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof rt||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},EntityStore.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:$e,INVALIDATE:et,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function readField(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||makeReference(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var u=fieldNameFromStoreName(c),l=r[c];if(void 0!==l){var f="function"===typeof t?t:t[c]||t[u];if(f){var p=f===Ze?$e:f(maybeDeepFreeze(l),v(v({},s),{fieldName:u,storeFieldName:c,storage:n.getStorage(e,c)}));p===et?n.group.dirty(e,c):(p===$e&&(p=void 0),p!==l&&(i[c]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof rt?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=Ze,r):Ze)}return!1},EntityStore.prototype.evict=function(e){var t=!1;return e.id&&(Je.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof rt&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Je.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Je.call(e,n)||t.delete(n)})),e){var n=e.__META,r=__rest(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof rt?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Je.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof rt;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!Je.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){isReference(e)&&(t[e.__ref]=!0),isNonNullObject(e)&&Object.keys(e).forEach((function(t){var n=e[t];isNonNullObject(n)&&r.add(n)}))}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),nt=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new z(xe)},CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(makeDepKey(e,t));var n=fieldNameFromStoreName(t);n!==t&&this.d(makeDepKey(e,n)),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(makeDepKey(e,t),"__exists"===t?"forget":"setDirty")},CacheGroup}();function makeDepKey(e,t){return t+"#"+e}function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function Root(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new nt(i))||this;return a.stump=new it(a),a.storageTrie=new z(xe),o&&a.replace(o),a}return __extends(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(e);e.Root=t}(tt||(tt={}));var rt=function(e){function Layer(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return __extends(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){equal(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return v(v({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Je.call(this.data,t)?v(v({},n),e.prototype.findChildRefIds.call(this,t)):n},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(tt),it=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new nt(t.group.caching,t.group))||this}return __extends(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(rt);function storeObjectReconciler(e,t,n){var r=e[n],i=t[n];return equal(r,i)?r:i}function supportsResultCaching(e){return!!(e instanceof tt&&e.group.caching)}var ot,at,st=function(){function ObjectCanon(){this.known=new(De?WeakSet:Set),this.pool=new z(xe),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if(isNonNullObject(e)){var t=function shallowCopy(e){return isNonNullObject(e)?Array.isArray(e)?e.slice(0):v({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if(isNonNullObject(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.object}}return e},ObjectCanon.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},ObjectCanon}(),ct=Object.assign((function(e){if(isNonNullObject(e)){void 0===ot&&resetCanonicalStringify();var t=ot.admit(e),n=at.get(t);return void 0===n&&at.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:resetCanonicalStringify});function resetCanonicalStringify(){ot=new st,at=new(xe?WeakMap:Map)}function missingFromInvariant(e,t){return new be(e.message,t.path.slice(),t.query,t.variables)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ut=function(){function StoreReader(e){var t=this;this.knownResults=new(xe?WeakMap:Map),this.config=v(v({},e),{addTypename:!1!==e.addTypename}),this.canon=e.canon||new st,this.executeSelectionSet=wrap((function(e){var n,r=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?v(v({},o),{result:t.canon.admit(o.result)}):o:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function makeCacheKey(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=wrap((function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var t=e.field,n=e.array,r=e.context;if(supportsResultCaching(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new st},StoreReader.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,u=void 0===c||c,l=this.config.cache.policies;o=v(v({},getDefaultValues(function getQueryDefinition(e){var t=getOperationDefinition(e);return __DEV__?invariant_esm_invariant(t&&"query"===t.operation,"Must contain a query definition."):invariant_esm_invariant(t&&"query"===t.operation,53),t}(n))),o);var f=makeReference(i),p=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:ct(o),canonizeResults:u,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(isReference(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[missingFromInvariant(__DEV__?new ye("Dangling reference to missing "+r.__ref+" object"):new ye(6),o)]};var a=o.variables,s=o.policies,c=o.store,u=[],l={result:null},f=c.getFieldValue(r,"__typename");function getMissing(){return l.missing||(l.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof f&&!s.rootIdsByTypename[f]&&u.push({__typename:f});var p=new Set(n.selections);p.forEach((function(e){var n;if(shouldInclude(e,a))if(storeUtils_isField(e)){var c=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=resultKeyNameFromField(e);o.path.push(l),void 0===c?Ce.added(e)||getMissing().push(missingFromInvariant(__DEV__?new ye("Can't find field '"+e.name.value+"' on "+(isReference(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new ye(7),o)):Array.isArray(c)?c=handleMissing(t.executeSubSelectedArray({field:e,array:c,enclosingRef:i,context:o})):e.selectionSet?null!=c&&(c=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:isReference(c)?c:i,context:o}))):o.canonizeResults&&(c=t.canon.pass(c)),void 0!==c&&u.push(((n={})[l]=c,n)),invariant_esm_invariant(o.path.pop()===l)}else{var d=getFragmentFromSelection(e,o.fragmentMap);d&&s.fragmentMatches(d,f)&&d.selectionSet.selections.forEach(p.add,p)}}));var d=mergeDeepArray(u);return l.result=o.canonizeResults?this.canon.admit(d):maybeDeepFreeze(d),this.knownResults.set(l.result,n),l},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),invariant_esm_invariant(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&function assertSelectionSetForIdValue(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){isNonNullObject(n)&&(__DEV__?invariant_esm_invariant(!isReference(n),"Missing selection set for object of type "+function getTypenameFromStoreObject(e,t){return isReference(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):invariant_esm_invariant(!isReference(n),8),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),invariant_esm_invariant(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}();var lt=Object.prototype.toString;function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(e,t){switch(lt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=cloneDeepHelper(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=cloneDeepHelper(e[n],t)})),r;default:return e}}function writeToStore_typeof(e){return(writeToStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ft=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=getOperationDefinition(r),u=function makeProcessedFieldsMerger(){return new Le}();a=v(v({},getDefaultValues(c)),a);var l={store:e,written:Object.create(null),merge:function merge(e,t){return u.merge(e,t)},variables:a,varString:ct(a),fragmentMap:createFragmentMap(getFragmentDefinitions(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!isReference(f))throw __DEV__?new ye("Could not identify object "+JSON.stringify(i)):new ye(9);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=makeReference(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,l);if(isReference(c))return;i=c}if(__DEV__&&!l.overwrite){var u=new Set;a.forEach((function(e){storeUtils_isField(e)&&e.selectionSet&&u.add(e.name.value)}));Object.keys(i).forEach((function(e){(function hasSelectionSet_1(e){return u.has(fieldNameFromStoreName(e))})(e)&&!function hasMergeFunction_1(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function warnAboutDataLoss(e,t,n,r){var i=function getChild(e){var t=r.getFieldValue(e,n);return"object"===writeToStore_typeof(t)&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(isReference(o))return;if(equal(o,a))return;if(Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=fieldNameFromStoreName(n),u=s+"."+c;if(dt.has(u))return;dt.add(u);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||l.includes(t)||l.push(t)}));__DEV__&&invariant_esm_invariant.warn("Cache data may be lost when replacing the "+c+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+u+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=s.identify(r,i,o.fragmentMap),u=c[0],l=c[1];if("string"===typeof(n=n||u)){var f=o.written[n]||(o.written[n]=[]),p=makeReference(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||getTypenameFromResult(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"===typeof h&&(d.__typename=h);var m=new Set(i.selections);if(m.forEach((function(e){var n;if(shouldInclude(e,o.variables))if(storeUtils_isField(e)){var i=resultKeyNameFromField(e),c=r[i],u=o.clientOnly;if(o.clientOnly=u||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==c){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=getChildMergeTree(a,l),p=t.processFieldValue(c,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&isReference(p)){var v=o.incomingById.get(p.__ref);y=v&&v.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:maybeRecycleChildMergeTree(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Ce.added(e)||__DEV__&&invariant_esm_invariant.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=u}else{var _=getFragmentFromSelection(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(m.add,m)}})),"string"===typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=mergeMergeTrees(y.mergeTree,a),y.selections.forEach(m.add,m),y.selections=m):o.incomingById.set(n,{fields:d,mergeTree:mergeTreeIsEmpty(a)?void 0:a,selections:m}),makeReference(n)}return d},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,getChildMergeTree(r,o));return maybeRecycleChildMergeTree(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?cloneDeep(e):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!isReference(n)){var s,c=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,u=n;c&&!i&&(i=[isReference(c)?c.__ref:c]);var l=function getValue_1(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(c,t),o=l(u,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&invariant_esm_invariant(i.pop()===t)}})),s&&(n=Array.isArray(u)?u.slice(0):v({},u),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},StoreWriter}(),pt=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,pt.pop()||{map:new Map}),n.get(t)}function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var n=e.info&&t.info?v(v({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,mergeMergeTrees(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,mergeMergeTrees(t.map.get(n),e.map.get(n)))}))}return i}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);r&&mergeTreeIsEmpty(r)&&(pt.push(r),n.delete(t))}var dt=new Set;var ht=new J,mt=new WeakMap;function getCacheInfo(e){var t=mt.get(e);return t||mt.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,r=function rv(r){if(arguments.length>0){if(e!==r){e=r,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var a=ht.getValue();a&&(i(a),getCacheInfo(a).dep(rv))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var yt=new Map;function makeUniqueId(e){var t=yt.get(e)||1;return yt.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(e){var t=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("")}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?argumentsObjectFromField(e.field,e.variables):null}we.setStringify(ct);var vt=function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},gt=function nullKeyFieldsFn(){},_t=function simpleKeyArgsFn(e,t){return t.fieldName},bt=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},Et=function mergeFalseFn(e,t){return t},wt=function(){function Policies(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=v({dataIdFromObject:vt},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return Policies.prototype.identify=function(e,t,n){var r=t&&n?getTypenameFromResult(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var c=s(e,o);if(!Array.isArray(c)){i=c;break}s=keyFieldsFnFromSpecifier(c)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=__rest(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Je.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?bt:!1===t?Et:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?gt:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var a=i.keyArgs,s=i.read,c=i.merge;r.keyFn=!1===a?_t:Array.isArray(a)?keyArgsFnFromSpecifier(a):"function"===typeof a?a:r.keyFn,"function"===typeof s&&(r.read=s),setMerge(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||_t)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?invariant_esm_invariant(!r||r===e,"Cannot change root "+e+" __typename more than once"):invariant_esm_invariant(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Xe);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!Je.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=__rest(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f1?i:t};else{if(!isNonNullObject(n))return void(__DEV__&&invariant_esm_invariant.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));o=v({},n),Je.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&invariant_esm_invariant.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function makeMergeObjectsFunction(e){return function mergeObjects(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new ye("Cannot automatically merge arrays"):new ye(4);if(isNonNullObject(t)&&isNonNullObject(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(isReference(t)&&storeValueIsStoreObject(n))return e.merge(t.__ref,n),t;if(storeValueIsStoreObject(t)&&isReference(n))return e.merge(t,n.__ref),n;if(storeValueIsStoreObject(t)&&storeValueIsStoreObject(n))return v(v({},t),n)}return n}}function keyArgsFnFromSpecifier(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(computeKeyObject(t,e,!1)):n.fieldName}}function keyFieldsFnFromSpecifier(e){var t=new z(xe);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=makeAliasMap(r.selectionSet,r.fragmentMap))}var a=r.keyObject=computeKeyObject(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function makeAliasMap(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(storeUtils_isField(e)){if(e.alias){var i=e.alias.value,o=e.name.value;if(o!==i)(n.aliases||(n.aliases=Object.create(null)))[o]=i}if(e.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,t)}else{var a=getFragmentFromSelection(e,t);a&&r.add(a.selectionSet)}}))})),n}function computeKeyObject(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"===typeof o&&"string"===typeof i){var s=r&&r.subsets,c=s&&s[o];a[o]=computeKeyObject(e[i],t,n,c)}}else{var u=r&&r.aliases,l=u&&u[t]||t;Je.call(e,l)?a[o=t]=e[i=l]:(__DEV__?invariant_esm_invariant(!n,"Missing field '"+l+"' while computing key fields"):invariant_esm_invariant(!n,5),i=o=void 0)}})),a}var St={dataIdFromObject:vt,addTypename:!0,resultCaching:!0,typePolicies:{}},Ot=function(e){function InMemoryCache(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=makeVar,n.txCount=0,n.config=v(v({},St),t),n.addTypename=!!n.config.addTypename,n.policies=new wt({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return __extends(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new tt.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new ft(this,this.storeReader=new ut({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=wrap((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var n=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,ct({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(v(v({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof be)return null;throw r}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(Je.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(v(v({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||function recallCache(e){getCacheInfo(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&function forgetCache(e){getCacheInfo(e).vars.forEach((function(t){return t.forgetCache(e)}))}(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){ct.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){return isReference(e)?e.__ref:this.policies.identify(e)[0]},InMemoryCache.prototype.evict=function(e){if(!e.id){if(Je.call(e,"id"))return!1;e=v(v({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(){return this.init(),this.broadcastWatches(),ct.reset(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function perform(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},c=new Set;a&&!this.txCount&&this.broadcastWatches(v(v({},e),{onWatchUpdated:function onWatchUpdated(e){return c.add(e),!1}})),"string"===typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"===typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&c.size?(this.broadcastWatches(v(v({},e),{onWatchUpdated:function onWatchUpdated(e,t){var n=a.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Ce(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},InMemoryCache.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n)},InMemoryCache}(_e),Log_spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,4];case 3:return n.sent(),this.paused=!0,[2];case 4:return this.paused?[2]:[4,this.storage.write(e)];case 5:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,7];case 6:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 7:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function module_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function next(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function error(e){n.error(e)},complete:function complete(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},e.concat=function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(o)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},e[qt]=function(){return this},Observable.from=function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var n=getMethod(e,qt);if(n){var r=n.call(e);if(Object(r)!==r)throw new TypeError(r+" is not an object");return isObservable(r)&&r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}if(Ft("iterator")&&(n=getMethod(e,Qt)))return new t((function(t){enqueue((function(){if(!t.closed){for(var r,i=_createForOfIteratorHelperLoose(n.call(e));!(r=i()).done;){var o=r.value;if(t.next(o),t.closed)return}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n=300&&Jt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||Xt.call(n,"data")||Xt.call(n,"errors")||Jt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))},tn=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,en(t).request)||this;return n.options=t,n}return __extends(HttpLink,e),HttpLink}(Kt),nn=Kt.execute;function compact(){for(var e=[],t=0;t0||!1}function iterateObserversSafely(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:Wt})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"===typeof e.then}var rn=function(e){function Concast(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function next(e){null!==n.sub&&(n.latest=["next",e],iterateObserversSafely(n.observers,"next",e))},error:function error(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),iterateObserversSafely(n.observers,"error",e))},complete:function complete(){if(null!==n.sub){var e=n.sources.shift();e?Concast_isPromiseLike(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),iterateObserversSafely(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new Wt(t)]),Concast_isPromiseLike(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return __extends(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},Concast.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},Concast.prototype.cleanup=function(e){var t=this,n=!1,r=function once(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},Concast}(Wt);function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}fixObservableSubclass(rn),__DEV__?invariant_esm_invariant("boolean"===typeof Me,Me):invariant_esm_invariant("boolean"===typeof Me,22);var an,sn=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.clientErrors,i=t.networkError,o=t.errorMessage,a=t.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.clientErrors=r||[],s.networkError=i||null,s.message=o||function generateErrorMessage(e){var t="";return(isNonEmptyArray(e.graphQLErrors)||isNonEmptyArray(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=ApolloError.prototype,s}return __extends(ApolloError,e),ApolloError}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(an||(an={}));var cn=!1,un=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=getOperationDefinition(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return __extends(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function next(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||an.ready,r=v(v({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(r.data=i.result),equal(r.data,{})&&(r.data=void 0);var o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;i.complete?(r.networkStatus!==an.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=an.ready,r.loading=!1),delete r.partial):"no-cache"!==a&&(r.partial=!0),!__DEV__||i.complete||this.options.partialRefetch||r.loading||r.data||r.error||logMissingFieldErrors(i.missing)}return e&&this.updateLastResult(r),r},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!this.last||!equal(this.last.result,e)},ObservableQuery.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||equal(n.variables,this.variables)))return n[e]},ObservableQuery.prototype.getLastResult=function(e){return this.getLast("result",e)},ObservableQuery.prototype.getLastError=function(e){return this.getLast("error",e)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"===n?t.fetchPolicy="no-cache":"cache-and-network"!==n&&(t.fetchPolicy="network-only"),e&&!equal(this.options.variables,e)&&(t.variables=this.options.variables=v(v({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,an.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=v(v({},e.query?e:v(v(v({},this.options),e),{variables:v(v({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=an.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,an.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!cn&&(__DEV__&&invariant_esm_invariant.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),cn=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function next(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function error(t){e.onError?e.onError(t):__DEV__&&invariant_esm_invariant.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},an.setVariables):Promise.resolve())},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},ObservableQuery.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?invariant_esm_invariant(n,"Attempted to start a polling query without a polling interval."):invariant_esm_invariant(n,13),(t||(this.pollingInfo={})).interval=n;var r=function maybeFetch(){e.pollingInfo&&(isNetworkRequestInFlight(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},an.poll).then(i,i))},i=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},ObservableQuery.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=v(v({},this.last),{result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t}),isNonEmptyArray(e.errors)||delete this.last.error,this.last},ObservableQuery.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===an.refetch||t===an.fetchMore||t===an.poll,i=this.options.variables,o=r?compact(this.options,e):Object.assign(this.options,compact(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!equal(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=an.setVariables)));var a=o.variables&&v({},o.variables),s=this.fetch(o,t),c={next:function next(e){n.reportResult(e,a)},error:function error(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=c),s.addObserver(c),s.promise},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),iterateObserversSafely(this.observers,"next",e))},ObservableQuery.prototype.reportError=function(e,t){var n=v(v({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:an.error,loading:!1});this.updateLastResult(n,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(Wt);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant_esm_invariant.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&isNonEmptyArray(e)&&__DEV__&&invariant_esm_invariant.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}fixObservableSubclass(un);var ln=function(){function LocalState(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=mergeDeep(t.resolvers,e)})):this.resolvers=mergeDeep(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return v(v({},n),{data:e.result})}))]:[2,n]}))}))},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return function removeClientSetsFromDocument(e){checkDocument(e);var t=removeDirectivesFromDocument([{test:function test(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=visit(t,{FragmentDefinition:{enter:function enter(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return storeUtils_isField(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return v(v({},e),{cache:t,getCacheKey:function getCacheKey(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return v(v({},t),e.exportedVariables)}))]:[2,v({},t)]}))}))},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return visit(e,{Directive:{enter:function enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return ke}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function fragmentMatcher(){return!0}),void 0===o&&(o=!1),__awaiter(this,void 0,void 0,(function(){var a,s,c,u,l,f,p,d,h;return __generator(this,(function(m){return a=getMainDefinition(e),s=getFragmentDefinitions(e),c=createFragmentMap(s),u=a.operation,l=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:c,context:v(v({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return __generator(this,(function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function execute(e){return __awaiter(c,void 0,void 0,(function(){var s,c;return __generator(this,(function(u){return shouldInclude(e,o)?storeUtils_isField(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&a.push(((n={})[resultKeyNameFromField(e)]=t,n))}))]:(isInlineFragment(e)?s=e:(s=r[e.name.value],__DEV__?invariant_esm_invariant(s,"No fragment named "+e.name.value):invariant_esm_invariant(s,12)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return mergeDeepArray(a)}))]}))}))},LocalState.prototype.resolveField=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,f,p=this;return __generator(this,(function(d){return r=n.variables,i=e.name.value,o=resultKeyNameFromField(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&(f=l[a?i:o])&&(c=Promise.resolve(ht.withValue(this.cache,f,[t,argumentsObjectFromField(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},LocalState.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},LocalState}(),pn=new(xe?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return pn.set(e,(pn.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var dn=function(){function QueryInfo(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;pn.has(n)||(pn.set(n,0),wrapDestructiveCacheMethod(n,"evict"),wrapDestructiveCacheMethod(n,"modify"),wrapDestructiveCacheMethod(n,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||an.loading;return this.variables&&this.networkStatus!==an.loading&&!equal(this.variables,e.variables)&&(t=an.setVariables),equal(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.lastDiff=void 0,this.dirty=!1},QueryInfo.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(e){void 0===e&&(e=this.variables);var t=this.observableQuery;return{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:!t||!1!==t.options.canonizeResults}},QueryInfo.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},QueryInfo.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=v(v({},this.getDiffOptions(e)),{watcher:this,callback:function callback(e){return t.setDiff(e)}});this.lastWatch&&equal(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===pn.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},QueryInfo.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=isNonEmptyArray(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(shouldWriteResult(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:pn.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=an.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=an.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var hn=Object.prototype.hasOwnProperty,mn=function(){function QueryManager(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,c=e.clientAwareness,u=void 0===c?{}:c,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(xe?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=u,this.localState=l||new ln({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new ye("QueryManager stopped while query was in flight"):new ye(14))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,u=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,y=e.context;return __awaiter(this,void 0,void 0,(function(){var e,o,s;return __generator(this,(function(f){switch(f.label){case 0:return __DEV__?invariant_esm_invariant(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant_esm_invariant(t,15),__DEV__?invariant_esm_invariant("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):invariant_esm_invariant("network-only"===h||"no-cache"===h,16),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:u,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return asyncMap(s.getObservableFromLink(t,v(v({},y),{optimisticResponse:r}),n,!1),(function(f){if(graphQLResultHasError(f)&&"none"===p)throw new sn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=v({},f);return"function"===typeof a&&(a=a(d)),"ignore"===p&&graphQLResultHasError(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:u,updateQueries:i,awaitRefetchQueries:c,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:m})})).subscribe({next:function next(e){s.broadcastQueries(),f(e)},error:function error(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof sn?t:new sn({networkError:t}))}})}))]}}))}))},QueryManager.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&shouldWriteResult(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,c=s&&s.queryName;if(c&&hn.call(a,c)){var u=a[c],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=u(h,{mutationResult:r,queryName:f&&getOperationName(f)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function updateCache(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=v(v({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function fields(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},QueryManager.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(v(v({},t),{result:{data:r}}),e)}catch(i){__DEV__&&invariant_esm_invariant.error(i)}}),t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([Ae],checkDocument(e))}(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:hasClientExports(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:getDefaultValues(getOperationDefinition(n)),asQuery:v(v({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?v(v({},e),{operation:"query"}):e}))})},s=function add(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(i),s(o)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return v(v({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){"undefined"===typeof(e=v(v({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new dn(this),n=new un({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},QueryManager.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant_esm_invariant(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant_esm_invariant(e.query,17),__DEV__?invariant_esm_invariant("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant_esm_invariant("Document"===e.query.kind,18),__DEV__?invariant_esm_invariant(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant_esm_invariant(!e.returnPartialData,19),__DEV__?invariant_esm_invariant(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant_esm_invariant(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(){return this.cancelPendingFetches(__DEV__?new ye("Store reset while query was in flight (not completed in link chain)"):new ye(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=an.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},QueryManager.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},QueryManager.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?r.set(e,!1):!function isDocumentNode(e){return isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?isNonNullObject(e)&&e.query&&i.add(e):r.set(t.transform(e).document,!1)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=makeUniqueId("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new un({queryManager:t,queryInfo:i,options:v(v({},e),{fetchPolicy:"network-only"})});invariant_esm_invariant(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&invariant_esm_invariant.warn("Unknown query "+("string"===typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function makeObservable(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(shouldWriteResult(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),graphQLResultHasError(o))throw new sn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,s).then(c);return new Wt((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,u=this.link,l={query:s,variables:n,operationName:getOperationName(s)||void 0,context:this.prepareContext(v(v({},t),{forceFetch:!r}))};if(t=l.context,r){var f=c.get(s)||new Map;c.set(s,f);var p=ct(n);if(!(o=f.get(p))){var d=new rn([nn(u,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&c.delete(s)}))}}else o=new rn([nn(u,l)])}else o=new rn([Wt.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=asyncMap(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},QueryManager.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return asyncMap(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=isNonEmptyArray(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new sn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||an.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new sn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=an.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,c=void 0===s?"cache-first":s,u=t.errorPolicy,l=void 0===u?"none":u,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,y=void 0===m?{}:m,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function fromVariables(e){return v.variables=e,r.fetchQueryByPolicy(a,v,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return _.cancel(e)}))}));var _=new rn(this.transform(v.query).hasClientExports?this.localState.addExportedVariables(v.query,v.variables,v.context).then(g):g(v.variables));return _.cleanup((function(){r.fetchCancelFns.delete(e),function applyNextFetchPolicy(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"===typeof r?r.call(e,n):r)}(t)})),_},QueryManager.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?makeUniqueId("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function onWatchUpdated(e,t,n){var r=e.watcher instanceof dn&&e.watcher.observableQuery;if(r){if(c){u.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==c&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function readCache(){return e.getDiff(o)},h=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||an.loading);var a=t.result;!__DEV__||u||equal(a,{})||logMissingFieldErrors(t.missing);var s=function fromData(e){return Wt.of(v({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},m="no-cache"===a?0:n===an.refetch&&"merge"!==s?1:2,y=function resultsFromLink(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:c})},g=f&&"number"===typeof p&&p!==n&&isNetworkRequestInFlight(n);switch(a){default:case"cache-first":return(_=d()).complete?[h(_,e.markReady())]:u||g?[h(_),y()]:[y()];case"cache-and-network":var _;return(_=d()).complete||u||g?[h(_),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return g?[h(d()),y()]:[y()];case"no-cache":return g?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new dn(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return v(v({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function ApolloClient_typeof(e){return(ApolloClient_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var yn=!1;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:v(v({},e.variables),t.variables)})}var vn=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,u=void 0===c?0:c,l=e.connectToDevTools,f=void 0===l?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,m=e.assumeImmutableResults,y=void 0!==m&&m,v=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,w=e.link;if(w||(w=n?new tn({uri:n,credentials:r,headers:i}):Kt.empty()),!o)throw __DEV__?new ye("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new ye(10);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),!yn&&__DEV__&&(yn=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,O=S&&S.userAgent,k=void 0;"string"===typeof O&&(O.indexOf("Chrome/")>-1?k="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":O.indexOf("Firefox/")>-1&&(k="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),k&&__DEV__&&invariant_esm_invariant.log("Download the Apollo DevTools for a better development experience: "+k)}this.version="3.4.8",this.localState=new ln({cache:o,client:this,resolvers:v,fragmentMatcher:_}),this.queryManager=new mn({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),__DEV__?invariant_esm_invariant("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant_esm_invariant("cache-and-network"!==e.fetchPolicy,11),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return nn(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&invariant_esm_invariant.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}();function onError(e){return new Kt((function(t,n){return new Wt((function(r){var i,o,a;try{i=n(t).subscribe({next:function next(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function error(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function complete(){a||r.complete.bind(r)()}})}catch(s){e({networkError:s,operation:t,forward:n}),r.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function ErrorLink(t){var n=e.call(this)||this;return n.link=onError(t),n}__extends(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(Kt);var gn="appolo",_n=document.querySelector('meta[name="api_url"]'),bn=_n?_n.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),En=new Kt((function(e,t){return e.setContext({headers:{apikey:"".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")}}),t(e)}));console.info("%cAPI: ".concat(bn),"color:green;font-size:10px");var wn=new vn({cache:Rt,link:Gt([En,new Kt((function(e,t){return e.setContext({start:new Date}),t(e)})),onError((function(e){var t=e.operation,n=e.response,r=e.graphQLErrors,i=e.networkError;e.forward;if("IgnoreErrorsQuery"===t.operationName)return console.error("".concat(gn,": IgnoreErrorsQuery")),void(n.errors=null);r&&r.forEach((function(e){var t=e.message,n=e.locations,r=e.path;return console.error("".concat(gn,": [GraphQL error]: Message: ").concat(t,", Location: ").concat(n,", Path: ").concat(r))})),i&&console.error("".concat(gn,": [Network error] ").concat(i.statusCode)),console.error("".concat(gn,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(u.APOLLO_ERROR))})),new Kt((function(e,t){return t(e).map((function(t){var n=new Date-e.getContext().start;return console.log("".concat(gn,": operation ").concat(e.operationName," took ").concat(n," ms to complete")),window.dispatchEvent(new Event(u.ONLINE)),t}))})),new tn({uri:bn,fetch:function(e){function fetch(){return e.apply(this,arguments)}return fetch.toString=function(){return e.toString()},fetch}((function(){return fetch.apply(void 0,arguments)})),credentials:"same-origin",connectToDevTools:!1})])});function page_typeof(e){return(page_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function page_defineProperties(e,t){for(var n=0;n")),e.state.loading){Sn.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(m.Component),Tn=__webpack_require__(528),Cn="top",An="bottom",xn="right",Dn="left",In="auto",Nn=[Cn,An,xn,Dn],Ln="start",Pn="end",jn="clippingParents",Rn="viewport",Mn="popper",Fn="reference",Vn=Nn.reduce((function(e,t){return e.concat([t+"-"+Ln,t+"-"+Pn])}),[]),Qn=[].concat(Nn,[In]).reduce((function(e,t){return e.concat([t,t+"-"+Ln,t+"-"+Pn])}),[]),qn="beforeRead",Bn="read",Un="afterRead",zn="beforeMain",Wn="main",Hn="afterMain",Kn="beforeWrite",Gn="write",Yn="afterWrite",Jn=[qn,Bn,Un,zn,Wn,Hn,Kn,Gn,Yn];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Xn={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var $n=Math.round;function getBoundingClientRect(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;return isHTMLElement(e)&&t&&(r=n.width/e.offsetWidth||1,i=n.height/e.offsetHeight||1),{width:$n(n.width/r),height:$n(n.height/i),top:$n(n.top/i),right:$n(n.right/r),bottom:$n(n.bottom/i),left:$n(n.left/r),x:$n(n.left/r),y:$n(n.top/i)}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Zn=Math.max,er=Math.min,tr=Math.round;function within(e,t,n){return Zn(e,er(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var nr={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement(n.placement),c=getMainAxisFromPlacement(s),u=[Dn,xn].indexOf(s)>=0?"height":"width";if(o&&a){var l=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,Nn))}(i.padding,n),f=getLayoutRect(o),p="y"===c?Cn:Dn,d="y"===c?An:xn,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],y=getOffsetParent(o),v=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,g=h/2-m/2,_=l[p],b=v-f[u]-l[d],E=v/2-f[u]/2+g,w=within(_,E,b),S=c;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-E,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},rr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=!0===u?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:tr(tr(t*r)/r)||0,y:tr(tr(n*r)/r)||0}}(o):"function"===typeof u?u(o):o,f=l.x,p=void 0===f?0:f,d=l.y,h=void 0===d?0:d,m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Dn,g=Cn,_=window;if(c){var b=getOffsetParent(n),E="clientHeight",w="clientWidth";b===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(b=getDocumentElement(n)).position&&(E="scrollHeight",w="scrollWidth"),b=b,i===Cn&&(g=An,h-=b[E]-r.height,h*=s?1:-1),i===Dn&&(v=xn,p-=b[w]-r.width,p*=s?1:-1)}var S,O=Object.assign({position:a},c&&rr);return s?Object.assign({},O,((S={})[g]=y?"0":"",S[v]=m?"0":"",S.transform=(_.devicePixelRatio||1)<2?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},O,((t={})[g]=y?h+"px":"",t[v]=m?p+"px":"",t.transform="",t))}var ir={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},or={passive:!0};var ar={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,or)})),s&&c.addEventListener("resize",n.update,or),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,or)})),s&&c.removeEventListener("resize",n.update,or)}},data:{}},sr={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return sr[e]}))}var cr={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return cr[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=getWindow(r),a=i?[o].concat(o.visualViewport||[],isScrollParent(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===Rn?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+getWindowScrollBarX(e),y:s}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Zn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Zn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+getWindowScrollBarX(e),c=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(s+=Zn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Zn(r.top,t.top),t.right=er(r.right,t.right),t.bottom=er(r.bottom,t.bottom),t.left=Zn(r.left,t.left),t}),getClientRectFromMixedType(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?getBasePlacement(i):null,a=i?getVariation(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case Cn:t={x:s,y:n.y-r.height};break;case An:t={x:s,y:n.y+n.height};break;case xn:t={x:n.x+n.width,y:c};break;case Dn:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?getMainAxisFromPlacement(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Ln:t[u]=t[u]-(n[l]/2-r[l]/2);break;case Pn:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?jn:o,s=n.rootBoundary,c=void 0===s?Rn:s,u=n.elementContext,l=void 0===u?Mn:u,f=n.altBoundary,p=void 0!==f&&f,d=n.padding,h=void 0===d?0:d,m=mergePaddingObject("number"!==typeof h?h:expandToHashMap(h,Nn)),y=l===Mn?Fn:Mn,v=e.elements.reference,g=e.rects.popper,_=e.elements[p?y:l],b=getClippingRect(isElement(_)?_:_.contextElement||getDocumentElement(e.elements.popper),a,c),E=getBoundingClientRect(v),w=computeOffsets({reference:E,element:g,strategy:"absolute",placement:i}),S=rectToClientRect(Object.assign({},g,w)),O=l===Mn?S:E,k={top:b.top-O.top+m.top,bottom:O.bottom-b.bottom+m.bottom,left:b.left-O.left+m.left,right:O.right-b.right+m.right},T=e.modifiersData.offset;if(l===Mn&&T){var C=T[i];Object.keys(k).forEach((function(e){var t=[xn,An].indexOf(e)>=0?1:-1,n=[Cn,An].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}var ur={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,v=getBasePlacement(y),g=c||(v===y||!h?[getOppositePlacement(y)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===In)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(y)),_=[y].concat(g).reduce((function(e,n){return e.concat(getBasePlacement(n)===In?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qn:c,l=getVariation(r),f=l?s?Vn:Vn.filter((function(e){return getVariation(e)===l})):Nn,p=f.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[getBasePlacement(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,E=t.rects.popper,w=new Map,S=!0,O=_[0],k=0;k<_.length;k++){var T=_[k],C=getBasePlacement(T),A=getVariation(T)===Ln,x=[Cn,An].indexOf(C)>=0,D=x?"width":"height",I=detectOverflow(t,{placement:T,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),N=x?A?xn:Dn:A?An:Cn;b[D]>E[D]&&(N=getOppositePlacement(N));var L=getOppositePlacement(N),P=[];if(o&&P.push(I[C]<=0),s&&P.push(I[N]<=0,I[L]<=0),P.every((function(e){return e}))){O=T,S=!1;break}w.set(T,P)}if(S)for(var j=function _loop(e){var t=_.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},R=h?3:1;R>0;R--){if("break"===j(R))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[Cn,xn,An,Dn].some((function(t){return e[t]>=0}))}var lr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(a,r),u=getSideOffsets(s,i,o),l=isAnySideFullyClipped(c),f=isAnySideFullyClipped(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}};var fr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Qn.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[Dn,Cn].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Dn,xn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var pr={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var dr={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,y=detectOverflow(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=getBasePlacement(t.placement),g=getVariation(t.placement),_=!g,b=getMainAxisFromPlacement(v),E=function getAltAxis(e){return"x"===e?"y":"x"}(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,k="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T={x:0,y:0};if(w){if(o||s){var C="y"===b?Cn:Dn,A="y"===b?An:xn,x="y"===b?"height":"width",D=w[b],I=w[b]+y[C],N=w[b]-y[A],L=d?-O[x]/2:0,P=g===Ln?S[x]:O[x],j=g===Ln?-O[x]:-S[x],R=t.elements.arrow,M=d&&R?getLayoutRect(R):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[C],Q=F[A],q=within(0,S[x],M[x]),B=_?S[x]/2-L-q-V-k:P-q-V-k,U=_?-S[x]/2+L+q+Q+k:j+q+Q+k,z=t.elements.arrow&&getOffsetParent(t.elements.arrow),W=z?"y"===b?z.clientTop||0:z.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,K=w[b]+B-H-W,G=w[b]+U-H;if(o){var Y=within(d?er(I,K):I,D,d?Zn(N,G):N);w[b]=Y,T[b]=Y-D}if(s){var J="x"===b?Cn:Dn,X="x"===b?An:xn,Z=w[E],ee=Z+y[J],te=Z-y[X],ne=within(d?er(ee,K):ee,Z,d?Zn(te,G):te);w[E]=ne,T[E]=ne-Z}}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=isHTMLElement(t),i=isHTMLElement(t)&&function isElementScaled(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),o=getDocumentElement(t),a=getBoundingClientRect(e,i),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==getNodeName(t)||isScrollParent(o))&&(s=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((c=getBoundingClientRect(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=getWindowScrollBarX(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var hr={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?document.querySelector(e):null},Cr=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],o=t[r],a=o&&kr(o)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(o);if(!new RegExp(i).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(i,'".'))}))},Ar=function isVisible(e){return!(!kr(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},xr=function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))},Dr=function findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},Ir=function noop(){},Nr=function reflow(e){e.offsetHeight},Lr=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},Pr=[],jr=function isRTL(){return"rtl"===document.documentElement.dir},Rr=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(Pr.length||document.addEventListener("DOMContentLoaded",(function(){Pr.forEach((function(e){return e()}))})),Pr.push(e)):e()}((function(){var $=Lr();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},Mr=function execute(e){"function"===typeof e&&e()},Fr=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=Sr(t)+r,o=!1,a=function handler(n){n.target===t&&(o=!0,t.removeEventListener(_r,handler),Mr(e))};t.addEventListener(_r,a),setTimeout((function(){o||Or(t)}),i)}else Mr(e)},Vr=function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var o=e.length;return i+=n?1:-1,r&&(i=(i+o)%o),e[Math.max(0,Math.min(i,o-1))]},Qr=/[^.]*(?=\..*)\.|.*/,qr=/\..*/,Br=/::\d+$/,Ur={},zr=1,Wr={mouseenter:"mouseover",mouseleave:"mouseout"},Hr=/^(mouseenter|mouseleave)/i,Kr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(e,t){return t&&"".concat(t,"::").concat(zr++)||e.uidEvent||zr++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,Ur[t]=Ur[t]||{},Ur[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,o=r.length;i2&&void 0!==arguments[2])||arguments[2];Fr(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return Xr(Tr(e),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===bootstrap_esm_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.1.0"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),ei=function enableDismissTrigger(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",n="click.dismiss".concat(e.EVENT_KEY),r=e.NAME;Gr.on(document,n,'[data-bs-dismiss="'.concat(r,'"]'),(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),!xr(this)){var i=wr(this)||this.closest(".".concat(r));e.getOrCreateInstance(i)[t]()}}))},ti=".".concat("bs.alert"),ni="close".concat(ti),ri="closed".concat(ti),ii=function(e){bootstrap_esm_inherits(Alert,e);var t=bootstrap_esm_createSuper(Alert);function Alert(){return bootstrap_esm_classCallCheck(this,Alert),t.apply(this,arguments)}return bootstrap_esm_createClass(Alert,[{key:"close",value:function close(){var e=this;if(!Gr.trigger(this._element,ni).defaultPrevented){this._element.classList.remove("show");var t=this._element.classList.contains("fade");this._queueCallback((function(){return e._destroyElement()}),this._element,t)}}},{key:"_destroyElement",value:function _destroyElement(){this._element.remove(),Gr.trigger(this._element,ri),this.dispose()}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Alert.getOrCreateInstance(this);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Alert}(Zr);ei(ii,"close"),Rr(ii);var oi=".".concat("bs.button"),ai='[data-bs-toggle="button"]',si="click".concat(oi).concat(".data-api"),ci=function(e){bootstrap_esm_inherits(Button,e);var t=bootstrap_esm_createSuper(Button);function Button(){return bootstrap_esm_classCallCheck(this,Button),t.apply(this,arguments)}return bootstrap_esm_createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function get(){return"button"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Button.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}]),Button}(Zr);function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}Gr.on(document,si,ai,(function(e){e.preventDefault();var t=e.target.closest(ai);ci.getOrCreateInstance(t).toggle()})),Rr(ci);var ui={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(normalizeDataKey(t)))},getDataAttributes:function getDataAttributes(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return normalizeData(e.getAttribute("data-bs-".concat(normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},li={find:function find(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(", ");return this.find(t,e).filter((function(e){return!xr(e)&&Ar(e)}))}},fi="carousel",pi=".".concat("bs.carousel"),di=".data-api",hi={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},mi={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},yi="next",vi="prev",gi="left",_i="right",bi=(bootstrap_esm_defineProperty(mr={},"ArrowLeft",_i),bootstrap_esm_defineProperty(mr,"ArrowRight",gi),mr),Ei="slide".concat(pi),wi="slid".concat(pi),Si="keydown".concat(pi),Oi="mouseenter".concat(pi),ki="mouseleave".concat(pi),Ti="touchstart".concat(pi),Ci="touchmove".concat(pi),Ai="touchend".concat(pi),xi="pointerdown".concat(pi),Di="pointerup".concat(pi),Ii="dragstart".concat(pi),Ni="load".concat(pi).concat(di),Li="click".concat(pi).concat(di),Pi="active",ji=".active.carousel-item",Ri="touch",Mi=function(e){bootstrap_esm_inherits(Carousel,e);var t=bootstrap_esm_createSuper(Carousel);function Carousel(e,n){var r;return bootstrap_esm_classCallCheck(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=li.findOne(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._slide(yi)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&Ar(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(vi)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),li.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Or(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=li.findOne(ji,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Gr.one(this._element,wi,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?yi:vi;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},hi),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(fi,e,mi),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?_i:gi)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Gr.on(this._element,Si,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Gr.on(this._element,Oi,(function(t){return e.pause(t)})),Gr.on(this._element,ki,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ri?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ri||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};li.find(".carousel-item img",this._element).forEach((function(e){Gr.on(e,Ii,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Gr.on(this._element,xi,(function(e){return t(e)})),Gr.on(this._element,Di,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Gr.on(this._element,Ti,(function(e){return t(e)})),Gr.on(this._element,Ci,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Gr.on(this._element,Ai,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=bi[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?li.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===yi;return Vr(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(li.findOne(ji,this._element));return Gr.trigger(this._element,Ei,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=li.findOne(".active",this._indicatorsElement);t.classList.remove(Pi),t.removeAttribute("aria-current");for(var n=li.find("[data-bs-target]",this._indicatorsElement),r=0;r0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(Gi)}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},qi),ui.getDataAttributes(this._element)),e)).toggle=Boolean(e.toggle),e.parent=Tr(e.parent),Cr(Fi,e,Bi),e}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var e=this;if(this._config.parent){var t=li.find(".".concat(Yi," .").concat(Yi),this._config.parent);li.find($i,this._config.parent).filter((function(e){return!t.includes(e)})).forEach((function(t){var n=wr(t);n&&e._addAriaAndCollapsedClass([t],e._isShown(n))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(e,t){e.length&&e.forEach((function(e){t?e.classList.remove(Xi):e.classList.add(Xi),e.setAttribute("aria-expanded",t)}))}}],[{key:"Default",get:function get(){return qi}},{key:"NAME",get:function get(){return Fi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t={};"string"===typeof e&&/show|hide/.test(e)&&(t.toggle=!1);var n=Collapse.getOrCreateInstance(this,t);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}]),Collapse}(Zr);Gr.on(document,Ki,$i,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=Er(this);li.find(t).forEach((function(e){Zi.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),Rr(Zi);var eo="dropdown",no=".".concat("bs.dropdown"),ro=".data-api",io="Escape",oo="Space",ao="ArrowUp",so="ArrowDown",co=new RegExp("".concat(ao,"|").concat(so,"|").concat(io)),uo="hide".concat(no),lo="hidden".concat(no),fo="show".concat(no),po="shown".concat(no),ho="click".concat(no).concat(ro),mo="keydown".concat(no).concat(ro),yo="keyup".concat(no).concat(ro),vo="show",go='[data-bs-toggle="dropdown"]',_o=".dropdown-menu",bo=jr()?"top-end":"top-start",Eo=jr()?"top-start":"top-end",wo=jr()?"bottom-end":"bottom-start",So=jr()?"bottom-start":"bottom-end",Oo=jr()?"left-start":"right-start",ko=jr()?"right-start":"left-start",To={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Co={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},Ao=function(t){bootstrap_esm_inherits(Dropdown,t);var n=bootstrap_esm_createSuper(Dropdown);function Dropdown(e,t){var r;return bootstrap_esm_classCallCheck(this,Dropdown),(r=n.call(this,e))._popper=null,r._config=r._getConfig(t),r._menu=r._getMenuElement(),r._inNavbar=r._detectNavbar(),r}return bootstrap_esm_createClass(Dropdown,[{key:"toggle",value:function toggle(){return this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){if(!xr(this._element)&&!this._isShown(this._menu)){var e={relatedTarget:this._element};if(!Gr.trigger(this._element,fo,e).defaultPrevented){var t,n=Dropdown.getParentFromElement(this._element);if(this._inNavbar?ui.setDataAttribute(this._menu,"popper","none"):this._createPopper(n),"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav"))(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.on(e,"mouseover",Ir)}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(vo),this._element.classList.add(vo),Gr.trigger(this._element,po,e)}}}},{key:"hide",value:function hide(){if(!xr(this._element)&&this._isShown(this._menu)){var e={relatedTarget:this._element};this._completeHide(e)}}},{key:"dispose",value:function dispose(){this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Dropdown.prototype),"dispose",this).call(this)}},{key:"update",value:function update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_completeHide",value:function _completeHide(e){if(!Gr.trigger(this._element,uo,e).defaultPrevented){var t;if("ontouchstart"in document.documentElement)(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.off(e,"mouseover",Ir)}));this._popper&&this._popper.destroy(),this._menu.classList.remove(vo),this._element.classList.remove(vo),this._element.setAttribute("aria-expanded","false"),ui.removeDataAttribute(this._menu,"popper"),Gr.trigger(this._element,lo,e)}}},{key:"_getConfig",value:function _getConfig(e){if(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),ui.getDataAttributes(this._element)),e),Cr(eo,e,this.constructor.DefaultType),"object"===bootstrap_esm_typeof(e.reference)&&!kr(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError("".concat(eo.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}},{key:"_createPopper",value:function _createPopper(t){if("undefined"===typeof e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var n=this._element;"parent"===this._config.reference?n=t:kr(this._config.reference)?n=Tr(this._config.reference):"object"===bootstrap_esm_typeof(this._config.reference)&&(n=this._config.reference);var r=this._getPopperConfig(),i=r.modifiers.find((function(e){return"applyStyles"===e.name&&!1===e.enabled}));this._popper=vr(n,this._menu,r),i&&ui.setDataAttribute(this._menu,"popper","static")}},{key:"_isShown",value:function _isShown(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(vo)}},{key:"_getMenuElement",value:function _getMenuElement(){return li.next(this._element,_o)[0]}},{key:"_getPlacement",value:function _getPlacement(){var e=this._element.parentNode;if(e.classList.contains("dropend"))return Oo;if(e.classList.contains("dropstart"))return ko;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Eo:bo:t?So:wo}},{key:"_detectNavbar",value:function _detectNavbar(){return null!==this._element.closest(".".concat("navbar"))}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function _getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},e),"function"===typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_selectMenuItem",value:function _selectMenuItem(e){var t=e.key,n=e.target,r=li.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Ar);r.length&&Vr(r,n,t===so,!r.includes(n)).focus()}}],[{key:"Default",get:function get(){return To}},{key:"DefaultType",get:function get(){return Co}},{key:"NAME",get:function get(){return eo}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Dropdown.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}},{key:"clearMenus",value:function clearMenus(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=li.find(go),n=0,r=t.length;ne.clientWidth+i)){r._saveInitialAttribute(e,t);var o=window.getComputedStyle(e)[t];e.style[t]="".concat(n(Number.parseFloat(o)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(xo,"paddingRight"),this._resetElementAttributes(Do,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(e,t){var n=e.style[t];n&&ui.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){this._applyManipulationCallback(e,(function manipulationCallBack(e){var n=ui.getDataAttribute(e,t);"undefined"===typeof n?e.style.removeProperty(t):(ui.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(e,t){kr(e)?t(e):li.find(e,this._element).forEach(t)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),No={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Lo={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Po="backdrop",jo="show",Ro="mousedown.bs.".concat(Po),Mo=function(){function Backdrop(e){bootstrap_esm_classCallCheck(this,Backdrop),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}return bootstrap_esm_createClass(Backdrop,[{key:"show",value:function show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&Nr(this._getElement()),this._getElement().classList.add(jo),this._emulateAnimation((function(){Mr(e)}))):Mr(e)}},{key:"hide",value:function hide(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(jo),this._emulateAnimation((function(){t.dispose(),Mr(e)}))):Mr(e)}},{key:"_getElement",value:function _getElement(){if(!this._element){var e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},No),"object"===bootstrap_esm_typeof(e)?e:{})).rootElement=Tr(e.rootElement),Cr(Po,e,Lo),e}},{key:"_append",value:function _append(){var e=this;this._isAppended||(this._config.rootElement.append(this._getElement()),Gr.on(this._getElement(),Ro,(function(){Mr(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&(Gr.off(this._element,Ro),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(e){Fr(e,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),Fo={trapElement:null,autofocus:!0},Vo={trapElement:"element",autofocus:"boolean"},Qo=".".concat("bs.focustrap"),qo="focusin".concat(Qo),Bo="keydown.tab".concat(Qo),Uo="backward",zo=function(){function FocusTrap(e){bootstrap_esm_classCallCheck(this,FocusTrap),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}return bootstrap_esm_createClass(FocusTrap,[{key:"activate",value:function activate(){var e=this,t=this._config,n=t.trapElement,r=t.autofocus;this._isActive||(r&&n.focus(),Gr.off(document,Qo),Gr.on(document,qo,(function(t){return e._handleFocusin(t)})),Gr.on(document,Bo,(function(t){return e._handleKeydown(t)})),this._isActive=!0)}},{key:"deactivate",value:function deactivate(){this._isActive&&(this._isActive=!1,Gr.off(document,Qo))}},{key:"_handleFocusin",value:function _handleFocusin(e){var t=e.target,n=this._config.trapElement;if(t!==document&&t!==n&&!n.contains(t)){var r=li.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===Uo?r[r.length-1].focus():r[0].focus()}}},{key:"_handleKeydown",value:function _handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Uo:"forward")}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Fo),"object"===bootstrap_esm_typeof(e)?e:{}),Cr("focustrap",e,Vo),e}}]),FocusTrap}(),Wo="modal",Ho=".".concat("bs.modal"),Ko="Escape",Go={backdrop:!0,keyboard:!0,focus:!0},Yo={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Jo="hide".concat(Ho),Xo="hidePrevented".concat(Ho),$o="hidden".concat(Ho),Zo="show".concat(Ho),ea="shown".concat(Ho),ta="resize".concat(Ho),na="click.dismiss".concat(Ho),ra="keydown.dismiss".concat(Ho),ia="mouseup.dismiss".concat(Ho),oa="mousedown.dismiss".concat(Ho),aa="click".concat(Ho).concat(".data-api"),sa="modal-open",ca="show",ua="modal-static",la=function(e){bootstrap_esm_inherits(Modal,e);var t=bootstrap_esm_createSuper(Modal);function Modal(e,n){var r;return bootstrap_esm_classCallCheck(this,Modal),(r=t.call(this,e))._config=r._getConfig(n),r._dialog=li.findOne(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new Io,r}return bootstrap_esm_createClass(Modal,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;this._isShown||this._isTransitioning||(Gr.trigger(this._element,Zo,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(sa),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Gr.on(this._dialog,oa,(function(){Gr.one(t._element,ia,(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)}))))}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!this._isTransitioning&&!Gr.trigger(this._element,Jo).defaultPrevented){this._isShown=!1;var t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(ca),Gr.off(this._element,na),Gr.off(this._dialog,oa),this._queueCallback((function(){return e._hideModal()}),this._element,t)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(e){return Gr.off(e,Ho)})),this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new Mo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new zo({trapElement:this._element})}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Go),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(Wo,e,Yo),e}},{key:"_showElement",value:function _showElement(e){var t=this,n=this._isAnimated(),r=li.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,r&&(r.scrollTop=0),n&&Nr(this._element),this._element.classList.add(ca);this._queueCallback((function transitionComplete(){t._config.focus&&t._focustrap.activate(),t._isTransitioning=!1,Gr.trigger(t._element,ea,{relatedTarget:e})}),this._dialog,n)}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var e=this;this._isShown?Gr.on(this._element,ra,(function(t){e._config.keyboard&&t.key===Ko?(t.preventDefault(),e.hide()):e._config.keyboard||t.key!==Ko||e._triggerBackdropTransition()})):Gr.off(this._element,ra)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var e=this;this._isShown?Gr.on(window,ta,(function(){return e._adjustDialog()})):Gr.off(window,ta)}},{key:"_hideModal",value:function _hideModal(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(sa),e._resetAdjustments(),e._scrollBar.reset(),Gr.trigger(e._element,$o)}))}},{key:"_showBackdrop",value:function _showBackdrop(e){var t=this;Gr.on(this._element,na,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())})),this._backdrop.show(e)}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var e=this;if(!Gr.trigger(this._element,Xo).defaultPrevented){var t=this._element,n=t.classList,r=t.scrollHeight,i=t.style,o=r>document.documentElement.clientHeight;!o&&"hidden"===i.overflowY||n.contains(ua)||(o||(i.overflowY="hidden"),n.add(ua),this._queueCallback((function(){n.remove(ua),o||e._queueCallback((function(){i.overflowY=""}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!jr()||n&&!e&&jr())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!jr()||!n&&e&&jr())&&(this._element.style.paddingRight="".concat(t,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function get(){return Go}},{key:"NAME",get:function get(){return Wo}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=Modal.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(Zr);Gr.on(document,aa,'[data-bs-toggle="modal"]',(function(e){var t=this,n=wr(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Gr.one(n,Zo,(function(e){e.defaultPrevented||Gr.one(n,$o,(function(){Ar(t)&&t.focus()}))})),la.getOrCreateInstance(n).toggle(this)})),ei(la),Rr(la);var fa="offcanvas",pa=".".concat("bs.offcanvas"),da=".data-api",ha="load".concat(pa).concat(da),ma={backdrop:!0,keyboard:!0,scroll:!1},ya={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},va="show",ga=".offcanvas.show",_a="show".concat(pa),ba="shown".concat(pa),Ea="hide".concat(pa),wa="hidden".concat(pa),Sa="click".concat(pa).concat(da),Oa="keydown.dismiss".concat(pa),ka=function(e){bootstrap_esm_inherits(Offcanvas,e);var t=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(e,n){var r;return bootstrap_esm_classCallCheck(this,Offcanvas),(r=t.call(this,e))._config=r._getConfig(n),r._isShown=!1,r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._addEventListeners(),r}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;if(!this._isShown&&!Gr.trigger(this._element,_a,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new Io).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(va);this._queueCallback((function completeCallBack(){t._config.scroll||t._focustrap.activate(),Gr.trigger(t._element,ba,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!Gr.trigger(this._element,Ea).defaultPrevented){this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(va),this._backdrop.hide();this._queueCallback((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new Io).reset(),Gr.trigger(e._element,wa)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},ma),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(fa,e,ya),e}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var e=this;return new Mo({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return e.hide()}})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new zo({trapElement:this._element})}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;Gr.on(this._element,Oa,(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function get(){return fa}},{key:"Default",get:function get(){return ma}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Offcanvas.getOrCreateInstance(this,e);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Offcanvas}(Zr);Gr.on(document,Sa,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=wr(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!xr(this)){Gr.one(n,wa,(function(){Ar(t)&&t.focus()}));var r=li.findOne(ga);r&&r!==n&&ka.getInstance(r).hide(),ka.getOrCreateInstance(n).toggle(this)}})),Gr.on(window,ha,(function(){return li.find(ga).forEach((function(e){return ka.getOrCreateInstance(e).show()}))})),ei(ka),Rr(ka);var Ta=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ca=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Aa=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,xa={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(e,t,n){var r;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),o=Object.keys(t),a=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),s=function _loop(e,n){var r,i=a[e],s=i.nodeName.toLowerCase();if(!o.includes(s))return i.remove(),"continue";var c=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),u=[].concat(t["*"]||[],t[s]||[]);c.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!Ta.has(n)||Boolean(Ca.test(e.nodeValue)||Aa.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:xa,popperConfig:null},Ra={HIDE:"hide".concat(Ia),HIDDEN:"hidden".concat(Ia),SHOW:"show".concat(Ia),SHOWN:"shown".concat(Ia),INSERTED:"inserted".concat(Ia),CLICK:"click".concat(Ia),FOCUSIN:"focusin".concat(Ia),FOCUSOUT:"focusout".concat(Ia),MOUSEENTER:"mouseenter".concat(Ia),MOUSELEAVE:"mouseleave".concat(Ia)},Ma="fade",Fa="show",Va="show",Qa="out",qa=".".concat("modal"),Ba="hide.bs.modal",Ua="hover",za="focus",Wa=function(t){bootstrap_esm_inherits(Tooltip,t);var n=bootstrap_esm_createSuper(Tooltip);function Tooltip(t,r){var i;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=n.call(this,t))._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i._config=i._getConfig(r),i.tip=null,i._setListeners(),i}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Fa))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),Gr.off(this._element.closest(qa),Ba,this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=Gr.trigger(this._element,this.constructor.Event.SHOW),n=Dr(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),o=function getUID(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e}(this.constructor.NAME);i.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&i.classList.add(Ma);var a="function"===typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,s=this._getAttachment(a);this._addAttachmentClass(s);var c=this._config.container;Jr(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.append(i),Gr.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=vr(this._element,i,this._getPopperConfig(s)),i.classList.add(Fa);var u,l,f=this._resolvePossibleFunction(this._config.customClass);if(f)(u=i.classList).add.apply(u,bootstrap_esm_toConsumableArray(f.split(" ")));if("ontouchstart"in document.documentElement)(l=[]).concat.apply(l,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){Gr.on(e,"mouseover",Ir)}));var p=this.tip.classList.contains(Ma);this._queueCallback((function complete(){var t=e._hoverState;e._hoverState=null,Gr.trigger(e._element,e.constructor.Event.SHOWN),t===Qa&&e._leave(null,e)}),this.tip,p)}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement();if(!Gr.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(t.classList.remove(Fa),"ontouchstart"in document.documentElement)(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.off(e,"mouseover",Ir)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var r=this.tip.classList.contains(Ma);this._queueCallback((function complete(){e._isWithActiveTrigger()||(e._hoverState!==Va&&t.remove(),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),Gr.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))}),this.tip,r),this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var e=document.createElement("div");e.innerHTML=this._config.template;var t=e.children[0];return this.setContent(t),t.classList.remove(Ma,Fa),this.tip=t,this.tip}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".tooltip-inner")}},{key:"_sanitizeAndSetContent",value:function _sanitizeAndSetContent(e,t,n){var r=li.findOne(n,e);t||!r?this.setElementContent(r,t):r.remove()}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return kr(t)?(t=Tr(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function getTitle(){var e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(e){return"function"===typeof e?e.call(this._element):e}},{key:"_getPopperConfig",value:function _getPopperConfig(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function onFirstUpdate(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},n),"function"===typeof this._config.popperConfig?this._config.popperConfig(n):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(this._getBasicClassPrefix(),"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function _getAttachment(e){return Pa[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)Gr.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Ua?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Ua?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Gr.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),Gr.on(e._element,r,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},Gr.on(this._element.closest(qa),Ba,this._hideModalHandler),this._config.selector?this._config=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var e=this._element.getAttribute("title"),t=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?za:Ua]=!0),t.getTipElement().classList.contains(Fa)||t._hoverState===Va?t._hoverState=Va:(clearTimeout(t._timeout),t._hoverState=Va,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Va&&t.show()}),t._config.delay.show):t.show())}},{key:"_leave",value:function _leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?za:Ua]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Qa,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Qa&&t.hide()}),t._config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function _getConfig(e){var t=ui.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){Na.has(e)&&delete t[e]})),(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).container=!1===e.container?document.body:Tr(e.container),"number"===typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),Cr(Da,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};for(var t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=new RegExp("(^|\\s)".concat(this._getBasicClassPrefix(),"\\S+"),"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-tooltip"}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function get(){return ja}},{key:"NAME",get:function get(){return Da}},{key:"Event",get:function get(){return Ra}},{key:"DefaultType",get:function get(){return La}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tooltip.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(Zr);Rr(Wa);var Ha=".".concat("bs.popover"),Ka=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Wa.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),Ga=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Wa.DefaultType),{},{content:"(string|element|function)"}),Ya={HIDE:"hide".concat(Ha),HIDDEN:"hidden".concat(Ha),SHOW:"show".concat(Ha),SHOWN:"shown".concat(Ha),INSERTED:"inserted".concat(Ha),CLICK:"click".concat(Ha),FOCUSIN:"focusin".concat(Ha),FOCUSOUT:"focusout".concat(Ha),MOUSEENTER:"mouseenter".concat(Ha),MOUSELEAVE:"mouseleave".concat(Ha)};Rr(function(e){bootstrap_esm_inherits(Popover,e);var t=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),t.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}},{key:"_getContent",value:function _getContent(){return this._resolvePossibleFunction(this._config.content)}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-popover"}}],[{key:"Default",get:function get(){return Ka}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return Ya}},{key:"DefaultType",get:function get(){return Ga}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Popover.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(Wa));var Ja="scrollspy",Xa=".".concat("bs.scrollspy"),$a={offset:10,method:"auto",target:""},Za={offset:"number",method:"string",target:"(string|element)"},es="activate".concat(Xa),ts="scroll".concat(Xa),ns="load".concat(Xa).concat(".data-api"),rs="dropdown-item",is="active",os=".nav-link",as=".list-group-item",ss="".concat(os,", ").concat(as,", .").concat(rs),cs="position",us=function(e){bootstrap_esm_inherits(ScrollSpy,e);var t=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(e,n){var r;return bootstrap_esm_classCallCheck(this,ScrollSpy),(r=t.call(this,e))._scrollElement="BODY"===r._element.tagName?window:r._element,r._config=r._getConfig(n),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,Gr.on(r._scrollElement,ts,(function(){return r._process()})),r.refresh(),r._process(),r}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":cs,n="auto"===this._config.method?t:this._config.method,r=n===cs?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),li.find(ss,this._config.target).map((function(e){var t=Er(e),i=t?li.findOne(t):null;if(i){var o=i.getBoundingClientRect();if(o.width||o.height)return[ui[n](i).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function dispose(){Gr.off(this._scrollElement,Xa),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},$a),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target=Tr(e.target)||document.documentElement,Cr(Ja,e,Za),e}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||e .dropdown-menu .active",t.parentNode);r&&r.classList.remove(ys),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(ys),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),Nr(e),e.classList.contains(vs)&&e.classList.add(gs);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){var o=e.closest(".dropdown");o&&li.find(".dropdown-toggle",o).forEach((function(e){return e.classList.add(ys)})),e.setAttribute("aria-expanded",!0)}n&&n()}}],[{key:"NAME",get:function get(){return"tab"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tab.getOrCreateInstance(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(Zr);Gr.on(document,ms,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){(["A","AREA"].includes(this.tagName)&&e.preventDefault(),xr(this))||Es.getOrCreateInstance(this).show()})),Rr(Es);var ws="toast",Ss=".".concat("bs.toast"),Os="mouseover".concat(Ss),ks="mouseout".concat(Ss),Ts="focusin".concat(Ss),Cs="focusout".concat(Ss),As="hide".concat(Ss),xs="hidden".concat(Ss),Ds="show".concat(Ss),Is="shown".concat(Ss),Ns="hide",Ls="show",Ps="showing",js={animation:"boolean",autohide:"boolean",delay:"number"},Rs={animation:!0,autohide:!0,delay:5e3},Ms=function(e){bootstrap_esm_inherits(Toast,e);var t=bootstrap_esm_createSuper(Toast);function Toast(e,n){var r;return bootstrap_esm_classCallCheck(this,Toast),(r=t.call(this,e))._config=r._getConfig(n),r._timeout=null,r._hasMouseInteraction=!1,r._hasKeyboardInteraction=!1,r._setListeners(),r}return bootstrap_esm_createClass(Toast,[{key:"show",value:function show(){var e=this;if(!Gr.trigger(this._element,Ds).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ns),Nr(this._element),this._element.classList.add(Ls),this._element.classList.add(Ps),this._queueCallback((function complete(){e._element.classList.remove(Ps),Gr.trigger(e._element,Is),e._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function hide(){var e=this;if(this._element.classList.contains(Ls)&&!Gr.trigger(this._element,As).defaultPrevented){this._element.classList.add(Ps),this._queueCallback((function complete(){e._element.classList.add(Ns),e._element.classList.remove(Ps),e._element.classList.remove(Ls),Gr.trigger(e._element,xs)}),this._element,this._config.animation)}}},{key:"dispose",value:function dispose(){this._clearTimeout(),this._element.classList.contains(Ls)&&this._element.classList.remove(Ls),_get(bootstrap_esm_getPrototypeOf(Toast.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Rs),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{}),Cr(ws,e,this.constructor.DefaultType),e}},{key:"_maybeScheduleHide",value:function _maybeScheduleHide(){var e=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){e.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function _onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)this._clearTimeout();else{var n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function _setListeners(){var e=this;Gr.on(this._element,Os,(function(t){return e._onInteraction(t,!0)})),Gr.on(this._element,ks,(function(t){return e._onInteraction(t,!1)})),Gr.on(this._element,Ts,(function(t){return e._onInteraction(t,!0)})),Gr.on(this._element,Cs,(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function get(){return js}},{key:"Default",get:function get(){return Rs}},{key:"NAME",get:function get(){return ws}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Toast.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Toast}(Zr);function links_defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{value:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"counter/incremented":return{value:e.value+1};case"counter/decremented":return{value:e.value-1};default:return e}}});var zs=function configure(){return createStore(Us)}();function importAll(e){return e.keys().map(e)}zs.subscribe((function(){return console.log(zs.getState())})),zs.dispatch({type:"counter/incremented"}),zs.dispatch({type:"counter/incremented"}),zs.dispatch({type:"counter/decremented"});importAll(__webpack_require__(310)),importAll(__webpack_require__(761))}()}(); \ No newline at end of file +!function(){var e={722:function(e,t,n){e.exports=n(895)},196:function(e,t,n){"use strict";var r=n(695),i=n(30),o=n(305),a=n(999),s=n(492),c=n(867),u=n(751),l=n(174);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var y=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function handleLoad(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};i(t,n,o),d=null}},d.onabort=function handleAbort(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function handleError(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(p,(function setRequestHeader(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(g){if("json"!==e.responseType)throw g}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},895:function(e,t,n){"use strict";var r=n(695),i=n(129),o=n(653),a=n(309);function createInstance(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var s=createInstance(n(933));s.Axios=o,s.create=function create(e){return createInstance(a(s.defaults,e))},s.Cancel=n(638),s.CancelToken=n(114),s.isCancel=n(539),s.all=function all(e){return Promise.all(e)},s.spread=n(522),s.isAxiosError=n(431),e.exports=s,e.exports.default=s},638:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},114:function(e,t,n){"use strict";var r=n(638);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},539:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},653:function(e,t,n){"use strict";var r=n(695),i=n(999),o=n(328),a=n(570),s=n(309);function Axios(e){this.defaults=e,this.interceptors={request:new o,response:new o}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},328:function(e,t,n){"use strict";var r=n(695);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},492:function(e,t,n){"use strict";var r=n(794),i=n(296);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},174:function(e,t,n){"use strict";var r=n(2);e.exports=function createError(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},570:function(e,t,n){"use strict";var r=n(695),i=n(554),o=n(539),a=n(933);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return o(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},2:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},309:function(e,t,n){"use strict";var r=n(695);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(o,mergeDeepProperties),r.forEach(a,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(s,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),u=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===c.indexOf(e)}));return r.forEach(u,mergeDeepProperties),n}},30:function(e,t,n){"use strict";var r=n(174);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},554:function(e,t,n){"use strict";var r=n(695);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},933:function(e,t,n){"use strict";var r=n(695),i=n(965),o={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(196)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){a.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){a.headers[e]=r.merge(o)})),e.exports=a},129:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},522:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},695:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(129),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{shown:!1},n=arguments.length>1?arguments[1]:void 0;_classCallCheck(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null}),_defineProperty(this,"show",(function(){var t=e;console.log("".concat(t.name,": show")),t.setState({shown:!0}),r.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var t=e;console.log("".concat(t.name,": hide")),t.setState({shown:!1}),r.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var t=e,n=t.state.current.getAttribute("data-gallery"),i=t._currIndex();i0?i--:i=t.state.collections[n].length-1,t.state.collections[n][i].click(),console.log("".concat(t.name,": prev")),r.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){e.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(t){var n=e,i=n.axios;n.reset(),n.setState({loading:!0}),n.show(),i.get(t,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),"text html pajax");break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}r.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),r.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var t=e,n=t.state.current,r=n.getAttribute("data-gallery");return t.state.collections[r].indexOf(n)})),_defineProperty(this,"embed",(function(t){var n=e;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:t,loading:!1,type:["meta-".concat(n.name,"__embed"),"meta-".concat(n.name,"__video")]}),n.show()})),_defineProperty(this,"setCaption",(function(t){var n=e;console.log("".concat(n.name,": setCaption")),n.state.caption=t})),_defineProperty(this,"getCaption",(function(){return e.state.caption})),_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(this,"setContent",(function(t,n){var r=e;console.log("".concat(r.name,": setContent"));var i=n||["html","text"];Array.isArray(i)||(i=n.split(" ")),r.setState({content:t,type:i})})),_defineProperty(this,"getHtml",(function(){var t=e;if(t.state.embed){var n=__webpack_require__(46)(t.state.embed);t.state.content='')}return t.state.content}));var o=this;switch(o.name=o.constructor.name,console.log("".concat(o.name,": init")),o.axios=i,o.setState(t),n){case"show":case"hide":o.hide()}r.dispatchEvent(new Event("{ui.name}.init"))}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(){var e=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r);var o=n.getAttribute("data-title");o&&e.setCaption(o)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e,t=this,n=t.name,r=t.state.current;t.state.target.innerHTML="";var i=document.createElement("div");i.classList.add("meta-".concat(n)),(e=i.classList).add.apply(e,_toConsumableArray(t.state.type)),t.state.target.append(i);var o=document.createElement("div");o.classList.add("meta-".concat(n,"-overlay")),t.state.shown&&o.classList.add("meta-".concat(n,"-overlay__open")),t.state.loading&&o.classList.add("meta-".concat(n,"-overlay__loading")),t.state.error&&o.classList.add("meta-".concat(n,"-overlay__error")),i.append(o);var a=document.createElement("div");a.classList.add("meta-content"),o.append(a);var s=document.createElement("button");if(s.classList.add("meta-nav","meta-close","a"),s.innerHTML=' Close',s.addEventListener("click",(function(e){e.preventDefault(),t.hide()})),a.append(s),r){var c=r.getAttribute("data-gallery");if(c&&t.state.collections[c].length>1){var u=document.createElement("nav");u.classList.add("meta-navs");var l=document.createElement("button");l.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),l.innerHTML=' Previous',l.addEventListener("click",(function(e){e.preventDefault(),t.prev()})),u.append(l);var f=document.createElement("button");f.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),f.innerHTML=' Next',f.addEventListener("click",(function(e){e.preventDefault(),t.next()})),u.append(f),a.append(u)}}var p=document.createElement("section");if(p.classList.add("meta-wrap","typography"),p.innerHTML=t.getHtml(),a.append(p),t.state.error){var d=document.createElement("div");d.classList.add("meta-error"),d.innerHTML=t.state.error,a.append(d)}else if(t.state.caption){var h=document.createElement("div");h.classList.add("meta-caption"),h.innerHTML=t.getCaption(),a.append(h)}return t}}]),MetaWindow}(),a=document.getElementById("MetaLightboxApp");a||console.log("MetaWindow: missing container");var s=new o({target:a}),c=function init(){s.init()};window.addEventListener("".concat(n),c),window.addEventListener("".concat(t),c),window.addEventListener("MetaWindow.initLinks",c),window.MetaWindow=s;var u={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},l={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(e){var t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(u.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(u.TABFOCUSED)))}))})(window),function(e){var t,n,r="_main.touch",i=document,o=i.body,a=function SET_TOUCH_SCREEN(i,a){n||a===t||(i?(console.log("".concat(r,": Touch screen enabled")),o.classList.add("is-touch"),o.classList.remove("is-mouse"),e.dispatchEvent(new Event(u.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),o.classList.add("is-mouse"),o.classList.remove("is-touch"),e.dispatchEvent(new Event(u.TOUCHDISABLED))),t=a,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};a("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),a(t,"click-touchend")}))}(window);function css_screen_size_toConsumableArray(e){return function css_screen_size_arrayWithoutHoles(e){if(Array.isArray(e))return css_screen_size_arrayLikeToArray(e)}(e)||function css_screen_size_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function css_screen_size_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return css_screen_size_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return css_screen_size_arrayLikeToArray(e,t)}(e)||function css_screen_size_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function css_screen_size_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(u=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(a," | landscape ").concat(u)),n.removeChild(i),a};e.addEventListener("".concat(u.LOADED),r),e.addEventListener("".concat(u.RESIZE),r)}(window);function loading_spinner_defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(u).forEach((function(e){console.info("".concat(e,": ").concat(u[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(l).forEach((function(e){console.info("".concat(e,": ").concat(l[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var r=function(){function MainUI(){!function main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(e,t,n){return t&&main_defineProperties(e.prototype,t),n&&main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(u.LOADED),(function(){r.init(),n.classList.add("loaded"),h.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(u.LODEDANDREADY))})),e.addEventListener("".concat(u.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var m=React;var y=function extendStatics(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var v=function __assign(){return(v=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]120){for(var p=Math.floor(c/80),d=c%80,h=[],m=0;m",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function inspect_typeof(e){return(inspect_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function inspect_inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(inspect_typeof(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function getCustomFn(e){var t=e[String(E)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"===typeof i?i:formatValue(i,n)}else if(Array.isArray(e))return function formatArray(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var k=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat(inspect_inspect(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:g,get:function get(){return"Source"}}]),Source}();var C=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;ai&&isBlank(t[o-1]);)--o;return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t31||9===o));return new S(O.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body,s=n,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw syntaxError(e,c,"Invalid number, unexpected digit after 0: ".concat(printCharCode(s),"."))}else c=readDigits(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=readDigits(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=readDigits(e,c,s),s=a.charCodeAt(c)),46===s||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw syntaxError(e,c,"Invalid number, expected digit but got: ".concat(printCharCode(s),"."));return new S(u?O.FLOAT:O.INT,t,c,r,i,o,a.slice(t,c))}function readDigits(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){for(var o,a,s,c,u=e.body,l=t+1,f=l,p=0,d="";l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new S(O.NAME,t,s,n,r,i,o.slice(t,s))}var x=function(){function Parser(e,t){var n=function isSource(e){return k(e,T)}(e)?e:new T(e);this._lexer=new A(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(O.NAME);return{kind:b.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:b.DOCUMENT,definitions:this.many(O.SOF,this.parseDefinition,O.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(O.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(O.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(O.BRACE_L))return{kind:b.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(O.NAME)&&(t=this.parseName()),{kind:b.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(O.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(O.PAREN_L,this.parseVariableDefinition,O.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(O.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(O.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(O.DOLLAR),{kind:b.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:b.SELECTION_SET,selections:this.many(O.BRACE_L,this.parseSelection,O.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(O.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(O.COLON)?(e=r,t=this.parseName()):t=r,{kind:b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(O.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(O.PAREN_L,t,O.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(O.COLON),{kind:b.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:b.ARGUMENT,name:this.parseName(),value:(this.expectToken(O.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(O.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(O.NAME)?{kind:b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case O.BRACKET_L:return this.parseList(e);case O.BRACE_L:return this.parseObject(e);case O.INT:return this._lexer.advance(),{kind:b.INT,value:t.value,loc:this.loc(t)};case O.FLOAT:return this._lexer.advance(),{kind:b.FLOAT,value:t.value,loc:this.loc(t)};case O.STRING:case O.BLOCK_STRING:return this.parseStringLiteral();case O.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:b.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:b.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:b.NULL,loc:this.loc(t)};default:return{kind:b.ENUM,value:t.value,loc:this.loc(t)}}case O.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:b.STRING,value:e.value,block:e.kind===O.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:b.LIST,values:this.any(O.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),O.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:b.OBJECT,fields:this.any(O.BRACE_L,(function item(){return t.parseObjectField(e)}),O.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(O.COLON),{kind:b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(O.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(O.AT),{kind:b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(O.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(O.BRACKET_R),e={kind:b.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(O.BANG)?{kind:b.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:b.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(O.STRING)||this.peek(O.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);return{kind:b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(O.COLON);var n=this.parseNamedType();return{kind:b.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(O.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(O.AMP)||this.peek(O.NAME));return t}return this.delimitedMany(O.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(O.BRACE_L)&&this._lexer.lookahead().kind===O.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(O.BRACE_L,this.parseFieldDefinition,O.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(O.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(O.PAREN_L,this.parseInputValueDef,O.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(O.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(O.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:b.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(O.EQUALS)?this.delimitedMany(O.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(O.BRACE_L,this.parseEnumValueDefinition,O.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(O.BRACE_L,this.parseInputValueDef,O.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===O.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(O.BRACE_L,this.parseOperationTypeDefinition,O.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:b.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:b.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(O.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(O.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==C[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new w(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==O.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===O.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===O.BANG||e===O.DOLLAR||e===O.AMP||e===O.PAREN_L||e===O.PAREN_R||e===O.SPREAD||e===O.COLON||e===O.EQUALS||e===O.AT||e===O.BRACKET_L||e===O.BRACKET_R||e===O.BRACE_L||e===O.PIPE||e===O.BRACE_R}(e)?'"'.concat(e,'"'):e}function lib_typeof(e){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var D=new Map,I=new Map,N=!0,L=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),o=I.get(r);o&&!o.has(i)?N&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||I.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),v(v({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!D.has(t)){var n=function parse(e,t){return new x(e,t).parseDocument()}(e,{experimentalFragmentVariables:L});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");D.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===lib_typeof(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return D.get(t)}function gql(e){for(var t=[],n=1;nthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),ee=new J,te=Object.prototype.hasOwnProperty,ne=void 0===(X=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:X;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var re=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var ie=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),ee.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,(function(t,n){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=re.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(ne(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),re.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=ee.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(e,t){var n=e.parents.size;if(n)for(var r=ne(e.parents),i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(re.length<100&&re.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}var oe={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=ee.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e,n){var r=t.get(e);if(r){var i=n&&te.call(oe,n)?n:"setDirty";ne(r).forEach((function(e){return e[i]()})),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new z("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var ae=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var n=new Z(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),o=function optimistic(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new ie(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),ae.add(n),ee.hasValue()||(ae.forEach((function(e){return e.clean()})),ae.clear()),s};function dirtyKey(e){var t=n.get(e);t&&t.setDirty()}function peekKey(e){var t=n.get(e);if(t)return t.peek()}function forgetKey(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function get(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=dirtyKey,o.dirty=function dirty(){dirtyKey(i.apply(null,arguments))},o.peekKey=peekKey,o.peek=function peek(){return peekKey(i.apply(null,arguments))},o.forgetKey=forgetKey,o.forget=function forget(){return forgetKey(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function getKey(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var se=Object.prototype,ce=se.toString,ue=se.hasOwnProperty,le=Function.prototype.toString,fe=new Map;function equal(e,t){try{return check(e,t)}finally{fe.clear()}}function check(e,t){if(e===t)return!0;var n=ce.call(e);if(n!==ce.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)return!1;for(var a=0;a=0&&e.indexOf(t,n)===n}(m,pe)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var pe="{ [native code] }";function previouslyCompared(e,t){var n=fe.get(e);if(n){if(n.has(t))return!0}else fe.set(e,n=new Set);return n.add(t),!1}var de="Invariant Violation",he=Object.setPrototypeOf,me=void 0===he?function(e,t){return e.__proto__=t,e}:he,ye=function(e){function InvariantError(t){void 0===t&&(t=de);var n=e.call(this,"number"===typeof t?de+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=de,me(n,InvariantError.prototype),n}return __extends(InvariantError,e),InvariantError}(Error);function invariant_esm_invariant(e,t){if(!e)throw new ye(t)}var ve=["debug","log","warn","error","silent"],ge=ve.indexOf("log");function wrapConsoleMethod(e){return function(){if(ve.indexOf(e)>=ge){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=wrapConsoleMethod("debug"),e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant_esm_invariant||(invariant_esm_invariant={}));function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new ye("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed."):new ye(47);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(__DEV__?invariant_esm_invariant(1===r.length,"Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment."):invariant_esm_invariant(1===r.length,48),n=r[0].name.value),v(v({},e),{definitions:__spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?invariant_esm_invariant(n,"No fragment named "+e.name.value+"."):invariant_esm_invariant(n,49),n;default:return null}}var _e=function(){function ApolloCache(){this.getFragmentDoc=wrap(getFragmentQueryDocument)}return ApolloCache.prototype.batch=function(e){var t="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;this.performTransaction(e.update,t)},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(v(v({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(v(v({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=__rest(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=__rest(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},ApolloCache}(),be=function(e){function MissingFieldError(t,n,r,i){var o=e.call(this,t)||this;return o.message=t,o.path=n,o.query=r,o.variables=i,o.__proto__=MissingFieldError.prototype,o}return __extends(MissingFieldError,e),MissingFieldError}(Error);function objects_typeof(e){return(objects_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isNonNullObject(e){return null!==e&&"object"===objects_typeof(e)}function storeUtils_typeof(e){return(storeUtils_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===storeUtils_typeof(e)&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return valueToObjectRepresentation(i,e.name,e.value,r)})),e[t.value]=i}else if(function isVariable(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw __DEV__?new ye('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.'):new ye(58);e[t.value]=null}}var Ee=["connection","include","skip","client","rest","export"],we=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+Se(i)+")"}return n.connection.key}var o=e;if(t){var a=Se(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===Ee.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+Se(n[e])+")":o+="@"+e)})),o}),{setStringify:function setStringify(e){var t=Se;return Se=e,t}}),Se=function defaultStringify(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,t){return isNonNullObject(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r2&&void 0!==arguments[2]?arguments[2]:Oe,r=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],c=void 0,u=void 0,l=void 0,f=[],p=[],d=e;do{var h=++a===o.length,m=h&&0!==s.length;if(h){if(u=0===p.length?void 0:f[f.length-1],c=l,l=p.pop(),m){if(i)c=c.slice();else{for(var y={},v=0,g=Object.keys(c);v-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var Ie=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t1)for(var r=new Le,i=1;i0);var s=0;do{++r,s=10*s+o-qe,o=t.charCodeAt(r)}while(isDigit(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}(e,t)}))}var Be=function(){function LexicalDistance(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return LexicalDistance.prototype.measure=function measure(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=stringToArray(n),i=this._inputArray;if(r.lengtht)){for(var c=this._rows,u=0;u<=s;u++)c[0][u]=u;for(var l=1;l<=a;l++){for(var f=c[(l-1)%3],p=c[l%3],d=p[0]=l,h=1;h<=s;h++){var m=r[l-1]===i[h-1]?0:1,y=Math.min(f[h]+1,p[h-1]+1,f[h-1]+m);if(l>1&&h>1&&r[l-1]===i[h-2]&&r[l-2]===i[h-1]){var v=c[(l-2)%3][h-2];y=Math.min(y,v+1)}yt)return}var g=c[a%3][s];return g<=t?g:void 0}},LexicalDistance}();function stringToArray(e){for(var t=e.length,n=new Array(t),r=0;r80&&(s=a+printer_wrap("(\n",indent(join(r,"\n")),"\n)")),join([s,join(i," "),o]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+printer_wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",printer_wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(printer_wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(printer_wrap("",join(i," ")," "))+o},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?function printBlockString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,c="";return!s||r&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+printer_wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+": "+r+printer_wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,printer_wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,printer_wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return printer_wrap("{\n",indent(join(e,"\n")),"\n}")}function printer_wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return printer_wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}function valueFromASTUntyped(e,t){switch(e.kind){case b.NULL:return null;case b.INT:return parseInt(e.value,10);case b.FLOAT:return parseFloat(e.value);case b.STRING:case b.ENUM:case b.BOOLEAN:return e.value;case b.LIST:return e.values.map((function(e){return valueFromASTUntyped(e,t)}));case b.OBJECT:return keyValMap(e.fields,(function(e){return e.name.value}),(function(e){return valueFromASTUntyped(e.value,t)}));case b.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}invariant(0,"Unexpected value node: "+inspect_inspect(e))}function definition_defineProperties(e,t){for(var n=0;n0?e:void 0}GraphQLList.prototype.toString=function toString(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLList.prototype,g,{get:function get(){return"GraphQLList"}}),defineInspect(GraphQLList),GraphQLNonNull.prototype.toString=function toString(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function toJSON(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,g,{get:function get(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);var ze=function(){function GraphQLScalarType(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:identityFunc;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:identityFunc,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(valueFromASTUntyped(e,t))},this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||devAssert(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(inspect_inspect(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||devAssert(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||devAssert(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=GraphQLScalarType.prototype;return e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLScalarType,[{key:g,get:function get(){return"GraphQLScalarType"}}]),GraphQLScalarType}();defineInspect(ze);var We=function(){function GraphQLObjectType(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||devAssert(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(inspect_inspect(e.isTypeOf),"."))}var e=GraphQLObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLObjectType,[{key:g,get:function get(){return"GraphQLObjectType"}}]),GraphQLObjectType}();function defineInterfaces(e){var t,n=null!==(t=resolveThunk(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||devAssert(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function defineFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){var r;isPlainObj(t)||devAssert(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||devAssert(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||devAssert(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(inspect_inspect(t.resolve),"."));var i=null!==(r=t.args)&&void 0!==r?r:{};isPlainObj(i)||devAssert(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=Qe(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&toObjMap(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function isPlainObj(e){return isObjectLike(e)&&!Array.isArray(e)}function fieldsToFieldsConfig(e){return mapValue(e,(function(e){return{description:e.description,type:e.type,args:(t=e.args,keyValMap(t,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode};var t}))}defineInspect(We);var He=function(){function GraphQLInterfaceType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,e),this._interfaces=defineInterfaces.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLInterfaceType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.getInterfaces=function getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInterfaceType,[{key:g,get:function get(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType}();defineInspect(He);var Ke=function(){function GraphQLUnionType(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._types=defineTypes.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect_inspect(e.resolveType),"."))}var e=GraphQLUnionType.prototype;return e.getTypes=function getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types},e.toConfig=function toConfig(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLUnionType,[{key:g,get:function get(){return"GraphQLUnionType"}}]),GraphQLUnionType}();function defineTypes(e){var t=resolveThunk(e.types);return Array.isArray(t)||devAssert(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}defineInspect(Ke);var Ge=function(){function GraphQLEnumType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._values=function defineEnumValues(e,t){return isPlainObj(t)||devAssert(0,"".concat(e," values must be an object with value names as keys.")),Qe(t).map((function(t){var n=t[0],r=t[1];return isPlainObj(r)||devAssert(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(inspect_inspect(r),".")),!("isDeprecated"in r)||devAssert(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&toObjMap(r.extensions),astNode:r.astNode}}))}(this.name,e.values),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=function keyMap(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}(this._values,(function(e){return e.name})),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLEnumType.prototype;return e.getValues=function getValues(){return this._values},e.getValue=function getValue(e){return this._nameLookup[e]},e.serialize=function serialize(e){var t=this._valueLookup.get(e);if(void 0===t)throw new _('Enum "'.concat(this.name,'" cannot represent value: ').concat(inspect_inspect(e)));return t.name},e.parseValue=function parseValue(e){if("string"!==typeof e){var t=inspect_inspect(e);throw new _('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+didYouMeanEnumValue(this,t))}var n=this.getValue(e);if(null==n)throw new _('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,e));return n.value},e.parseLiteral=function parseLiteral(e,t){if(e.kind!==b.ENUM){var n=print(e);throw new _('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+didYouMeanEnumValue(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=print(e);throw new _('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,i),e)}return r.value},e.toConfig=function toConfig(){var e,t=keyValMap(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLEnumType,[{key:g,get:function get(){return"GraphQLEnumType"}}]),GraphQLEnumType}();function didYouMeanEnumValue(e,t){return function didYouMean(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}("the enum value",suggestionList(t,e.getValues().map((function(e){return e.name}))))}defineInspect(Ge);var Ye=function(){function GraphQLInputObjectType(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&toObjMap(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=undefineIfEmpty(e.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,e),"string"===typeof e.name||devAssert(0,"Must provide name.")}var e=GraphQLInputObjectType.prototype;return e.getFields=function getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},e.toConfig=function toConfig(){var e,t=mapValue(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},e.toString=function toString(){return this.name},e.toJSON=function toJSON(){return this.toString()},definition_createClass(GraphQLInputObjectType,[{key:g,get:function get(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType}();function defineInputFieldMap(e){var t=resolveThunk(e.fields);return isPlainObj(t)||devAssert(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(t,(function(t,n){return!("resolve"in t)||devAssert(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&toObjMap(t.extensions),astNode:t.astNode}}))}function maybeDeepFreeze(e){return __DEV__&&function deepFreeze(e){var t=new Set([e]);return t.forEach((function(e){isNonNullObject(e)&&(Object.isFrozen(e)||Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){isNonNullObject(e[n])&&t.add(e[n])})))})),e}(e),e}defineInspect(Ye),function removeTemporaryGlobals(){return isType(null),function remove(){Ve&&(delete Fe.process,Ve=!1)}()}();var Je=Object.prototype.hasOwnProperty;var Xe=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(Xe);return t?t[0]:e}function selectionSetMatchesResult(e,t,n){return!!isNonNullObject(t)&&(Array.isArray(t)?t.every((function(t){return selectionSetMatchesResult(e,t,n)})):e.selections.every((function(e){if(storeUtils_isField(e)&&shouldInclude(e,n)){var r=resultKeyNameFromField(e);return Je.call(t,r)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[r],n))}return!0})))}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!Array.isArray(e)}function entityStore_typeof(e){return(entityStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $e=Object.create(null),Ze=function delModifier(){return $e},et=Object.create(null),tt=function(){function EntityStore(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return maybeDeepFreeze(isReference(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?n.has(e.__ref):"object"===entityStore_typeof(e)},this.toReference=function(e,t){if("string"===typeof e)return makeReference(e);if(isReference(e))return e;var r=n.policies.identify(e)[0];if(r){var i=makeReference(r);return t&&n.merge(r,e),i}}}return EntityStore.prototype.toObject=function(){return v({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),Je.call(this.data,e)){var n=this.data[e];if(n&&Je.call(n,t))return n[t]}return"__typename"===t&&Je.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rt?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Je.call(this.data,e)?this.data[e]:this instanceof rt?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var n,r=this;isReference(e)&&(e=e.__ref),isReference(t)&&(t=t.__ref);var i="string"===typeof e?this.lookup(n=e):e,o="string"===typeof t?this.lookup(n=t):t;if(o){__DEV__?invariant_esm_invariant("string"===typeof n,"store.merge expects a string ID"):invariant_esm_invariant("string"===typeof n,2);var a=new Le(storeObjectReconciler).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=fieldNameFromStoreName(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof rt||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},EntityStore.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:$e,INVALIDATE:et,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function readField(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||makeReference(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var u=fieldNameFromStoreName(c),l=r[c];if(void 0!==l){var f="function"===typeof t?t:t[c]||t[u];if(f){var p=f===Ze?$e:f(maybeDeepFreeze(l),v(v({},s),{fieldName:u,storeFieldName:c,storage:n.getStorage(e,c)}));p===et?n.group.dirty(e,c):(p===$e&&(p=void 0),p!==l&&(i[c]=p,o=!0,l=p))}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof rt?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=Ze,r):Ze)}return!1},EntityStore.prototype.evict=function(e){var t=!1;return e.id&&(Je.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof rt&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Je.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Je.call(e,n)||t.delete(n)})),e){var n=e.__META,r=__rest(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof rt?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Je.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof rt;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!Je.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){isReference(e)&&(t[e.__ref]=!0),isNonNullObject(e)&&Object.keys(e).forEach((function(t){var n=e[t];isNonNullObject(n)&&r.add(n)}))}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),nt=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new z(xe)},CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(makeDepKey(e,t));var n=fieldNameFromStoreName(t);n!==t&&this.d(makeDepKey(e,n)),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(makeDepKey(e,t),"__exists"===t?"forget":"setDirty")},CacheGroup}();function makeDepKey(e,t){return t+"#"+e}function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function Root(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new nt(i))||this;return a.stump=new it(a),a.storageTrie=new z(xe),o&&a.replace(o),a}return __extends(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(e);e.Root=t}(tt||(tt={}));var rt=function(e){function Layer(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return __extends(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){equal(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return v(v({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Je.call(this.data,t)?v(v({},n),e.prototype.findChildRefIds.call(this,t)):n},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(tt),it=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new nt(t.group.caching,t.group))||this}return __extends(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(rt);function storeObjectReconciler(e,t,n){var r=e[n],i=t[n];return equal(r,i)?r:i}function supportsResultCaching(e){return!!(e instanceof tt&&e.group.caching)}var ot,at,st=function(){function ObjectCanon(){this.known=new(De?WeakSet:Set),this.pool=new z(xe),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if(isNonNullObject(e)){var t=function shallowCopy(e){return isNonNullObject(e)?Array.isArray(e)?e.slice(0):v({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if(isNonNullObject(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.object}}return e},ObjectCanon.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},ObjectCanon}(),ct=Object.assign((function(e){if(isNonNullObject(e)){void 0===ot&&resetCanonicalStringify();var t=ot.admit(e),n=at.get(t);return void 0===n&&at.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:resetCanonicalStringify});function resetCanonicalStringify(){ot=new st,at=new(xe?WeakMap:Map)}function missingFromInvariant(e,t){return new be(e.message,t.path.slice(),t.query,t.variables)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ut=function(){function StoreReader(e){var t=this;this.knownResults=new(xe?WeakMap:Map),this.config=v(v({},e),{addTypename:!1!==e.addTypename}),this.canon=e.canon||new st,this.executeSelectionSet=wrap((function(e){var n,r=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?v(v({},o),{result:t.canon.admit(o.result)}):o:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function makeCacheKey(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=wrap((function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var t=e.field,n=e.array,r=e.context;if(supportsResultCaching(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new st},StoreReader.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,u=void 0===c||c,l=this.config.cache.policies;o=v(v({},getDefaultValues(function getQueryDefinition(e){var t=getOperationDefinition(e);return __DEV__?invariant_esm_invariant(t&&"query"===t.operation,"Must contain a query definition."):invariant_esm_invariant(t&&"query"===t.operation,53),t}(n))),o);var f=makeReference(i),p=this.executeSelectionSet({selectionSet:getMainDefinition(n).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:t,query:n,policies:l,variables:o,varString:ct(o),canonizeResults:u,fragmentMap:createFragmentMap(getFragmentDefinitions(n)),path:[]}}),d=p.missing&&p.missing.length>0;if(d&&!s)throw p.missing[0];return{result:p.result,missing:p.missing,complete:!d}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(isReference(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:[missingFromInvariant(__DEV__?new ye("Dangling reference to missing "+r.__ref+" object"):new ye(6),o)]};var a=o.variables,s=o.policies,c=o.store,u=[],l={result:null},f=c.getFieldValue(r,"__typename");function getMissing(){return l.missing||(l.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof f&&!s.rootIdsByTypename[f]&&u.push({__typename:f});var p=new Set(n.selections);p.forEach((function(e){var n;if(shouldInclude(e,a))if(storeUtils_isField(e)){var c=s.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),l=resultKeyNameFromField(e);o.path.push(l),void 0===c?Ce.added(e)||getMissing().push(missingFromInvariant(__DEV__?new ye("Can't find field '"+e.name.value+"' on "+(isReference(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2))):new ye(7),o)):Array.isArray(c)?c=handleMissing(t.executeSubSelectedArray({field:e,array:c,enclosingRef:i,context:o})):e.selectionSet?null!=c&&(c=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:isReference(c)?c:i,context:o}))):o.canonizeResults&&(c=t.canon.pass(c)),void 0!==c&&u.push(((n={})[l]=c,n)),invariant_esm_invariant(o.path.pop()===l)}else{var d=getFragmentFromSelection(e,o.fragmentMap);d&&s.fragmentMatches(d,f)&&d.selectionSet.selections.forEach(p.add,p)}}));var d=mergeDeepArray(u);return l.result=o.canonizeResults?this.canon.admit(d):maybeDeepFreeze(d),this.knownResults.set(l.result,n),l},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),invariant_esm_invariant(a.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:(a.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&function assertSelectionSetForIdValue(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){isNonNullObject(n)&&(__DEV__?invariant_esm_invariant(!isReference(n),"Missing selection set for object of type "+function getTypenameFromStoreObject(e,t){return isReference(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)+" returned for query field "+t.name.value):invariant_esm_invariant(!isReference(n),8),Object.values(n).forEach(r.add,r))}))}}(a.store,r,e),invariant_esm_invariant(a.path.pop()===t),e))})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}();var lt=Object.prototype.toString;function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(e,t){switch(lt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=cloneDeepHelper(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=cloneDeepHelper(e[n],t)})),r;default:return e}}function writeToStore_typeof(e){return(writeToStore_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ft=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=getOperationDefinition(r),u=function makeProcessedFieldsMerger(){return new Le}();a=v(v({},getDefaultValues(c)),a);var l={store:e,written:Object.create(null),merge:function merge(e,t){return u.merge(e,t)},variables:a,varString:ct(a),fragmentMap:createFragmentMap(getFragmentDefinitions(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1},f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!isReference(f))throw __DEV__?new ye("Could not identify object "+JSON.stringify(i)):new ye(9);return l.incomingById.forEach((function(t,r){var i=t.fields,o=t.mergeTree,a=t.selections,s=makeReference(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,l);if(isReference(c))return;i=c}if(__DEV__&&!l.overwrite){var u=new Set;a.forEach((function(e){storeUtils_isField(e)&&e.selectionSet&&u.add(e.name.value)}));Object.keys(i).forEach((function(e){(function hasSelectionSet_1(e){return u.has(fieldNameFromStoreName(e))})(e)&&!function hasMergeFunction_1(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function warnAboutDataLoss(e,t,n,r){var i=function getChild(e){var t=r.getFieldValue(e,n);return"object"===writeToStore_typeof(t)&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(isReference(o))return;if(equal(o,a))return;if(Object.keys(o).every((function(e){return void 0!==r.getFieldValue(a,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=fieldNameFromStoreName(n),u=s+"."+c;if(dt.has(u))return;dt.add(u);var l=[];Array.isArray(o)||Array.isArray(a)||[o,a].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||l.includes(t)||l.push(t)}));__DEV__&&invariant_esm_invariant.warn("Cache data may be lost when replacing the "+c+" field of a "+s+" object.\n\nTo address this problem (which is not a bug in Apollo Client), "+(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+u+" field, so InMemoryCache can safely merge these objects:\n\n existing: "+JSON.stringify(o).slice(0,1e3)+"\n incoming: "+JSON.stringify(a).slice(0,1e3)+"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n")}(s,i,e,l.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=s.identify(r,i,o.fragmentMap),u=c[0],l=c[1];if("string"===typeof(n=n||u)){var f=o.written[n]||(o.written[n]=[]),p=makeReference(n);if(f.indexOf(i)>=0)return p;if(f.push(i),this.reader&&this.reader.isFresh(r,p,i,o))return p}var d=Object.create(null);l&&(d=o.merge(d,l));var h=n&&s.rootTypenamesById[n]||getTypenameFromResult(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"===typeof h&&(d.__typename=h);var m=new Set(i.selections);if(m.forEach((function(e){var n;if(shouldInclude(e,o.variables))if(storeUtils_isField(e)){var i=resultKeyNameFromField(e),c=r[i],u=o.clientOnly;if(o.clientOnly=u||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0!==c){var l=s.getStoreFieldName({typename:h,fieldName:e.name.value,field:e,variables:o.variables}),f=getChildMergeTree(a,l),p=t.processFieldValue(c,e,o,f),y=void 0;if(e.selectionSet&&!(y=o.store.getFieldValue(p,"__typename"))&&isReference(p)){var v=o.incomingById.get(p.__ref);y=v&&v.fields.__typename}var g=s.getMergeFunction(h,e.name.value,y);g?f.info={field:e,typename:h,merge:g}:maybeRecycleChildMergeTree(a,l),d=o.merge(d,((n={})[l]=p,n))}else o.clientOnly||Ce.added(e)||__DEV__&&invariant_esm_invariant.error(("Missing field '"+resultKeyNameFromField(e)+"' while writing result "+JSON.stringify(r,null,2)).substring(0,1e3));o.clientOnly=u}else{var _=getFragmentFromSelection(e,o.fragmentMap);_&&s.fragmentMatches(_,h,r,o.variables)&&_.selectionSet.selections.forEach(m.add,m)}})),"string"===typeof n){var y=o.incomingById.get(n);return y?(y.fields=o.merge(y.fields,d),y.mergeTree=mergeMergeTrees(y.mergeTree,a),y.selections.forEach(m.add,m),y.selections=m):o.incomingById.set(n,{fields:d,mergeTree:mergeTreeIsEmpty(a)?void 0:a,selections:m}),makeReference(n)}return d},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,getChildMergeTree(r,o));return maybeRecycleChildMergeTree(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?cloneDeep(e):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var o,a=this;if(e.map.size&&!isReference(n)){var s,c=Array.isArray(n)||!isReference(t)&&!storeValueIsStoreObject(t)?void 0:t,u=n;c&&!i&&(i=[isReference(c)?c.__ref:c]);var l=function getValue_1(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(c,t),o=l(u,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,n,o,r,i);f!==o&&(s=s||new Map).set(t,f),i&&invariant_esm_invariant(i.pop()===t)}})),s&&(n=Array.isArray(u)?u.slice(0):v({},u),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},StoreWriter}(),pt=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,pt.pop()||{map:new Map}),n.get(t)}function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var n=e.info&&t.info?v(v({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,mergeMergeTrees(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,mergeMergeTrees(t.map.get(n),e.map.get(n)))}))}return i}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);r&&mergeTreeIsEmpty(r)&&(pt.push(r),n.delete(t))}var dt=new Set;var ht=new J,mt=new WeakMap;function getCacheInfo(e){var t=mt.get(e);return t||mt.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,r=function rv(r){if(arguments.length>0){if(e!==r){e=r,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var a=ht.getValue();a&&(i(a),getCacheInfo(a).dep(rv))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var yt=new Map;function makeUniqueId(e){var t=yt.get(e)||1;return yt.set(e,t+1),e+":"+t+":"+Math.random().toString(36).slice(2)}function stringifyForDisplay(e){var t=makeUniqueId("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("")}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?argumentsObjectFromField(e.field,e.variables):null}we.setStringify(ct);var vt=function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},gt=function nullKeyFieldsFn(){},_t=function simpleKeyArgsFn(e,t){return t.fieldName},bt=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},Et=function mergeFalseFn(e,t){return t},wt=function(){function Policies(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=v({dataIdFromObject:vt},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return Policies.prototype.identify=function(e,t,n){var r=t&&n?getTypenameFromResult(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},a=r&&this.getTypePolicy(r),s=a&&a.keyFn||this.config.dataIdFromObject;s;){var c=s(e,o);if(!Array.isArray(c)){i=c;break}s=keyFieldsFnFromSpecifier(c)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=__rest(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),Je.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?bt:!1===t?Et:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?gt:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var a=i.keyArgs,s=i.read,c=i.merge;r.keyFn=!1===a?_t:Array.isArray(a)?keyArgsFnFromSpecifier(a):"function"===typeof a?a:r.keyFn,"function"===typeof s&&(r.read=s),setMerge(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||_t)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?invariant_esm_invariant(!r||r===e,"Cannot change root "+e+" __typename more than once"):invariant_esm_invariant(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Xe);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!Je.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=__rest(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!n||!this.fuzzySubtypes.size),l=!1,f=0;f1?i:t};else{if(!isNonNullObject(n))return void(__DEV__&&invariant_esm_invariant.warn("Unexpected readField arguments: "+stringifyForDisplay(Array.from(arguments))));o=v({},n),Je.call(n,"from")||(o.from=t)}return __DEV__&&void 0===o.from&&__DEV__&&invariant_esm_invariant.warn("Undefined 'from' passed to readField with arguments "+stringifyForDisplay(Array.from(arguments))),void 0===o.variables&&(o.variables=s),e.readField(o,r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function makeMergeObjectsFunction(e){return function mergeObjects(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new ye("Cannot automatically merge arrays"):new ye(4);if(isNonNullObject(t)&&isNonNullObject(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(isReference(t)&&storeValueIsStoreObject(n))return e.merge(t.__ref,n),t;if(storeValueIsStoreObject(t)&&isReference(n))return e.merge(t,n.__ref),n;if(storeValueIsStoreObject(t)&&storeValueIsStoreObject(n))return v(v({},t),n)}return n}}function keyArgsFnFromSpecifier(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(computeKeyObject(t,e,!1)):n.fieldName}}function keyFieldsFnFromSpecifier(e){var t=new z(xe);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=makeAliasMap(r.selectionSet,r.fragmentMap))}var a=r.keyObject=computeKeyObject(n,e,!0,i);return r.typename+":"+JSON.stringify(a)}}function makeAliasMap(e,t){var n=Object.create(null),r=new Set([e]);return r.forEach((function(e){e.selections.forEach((function(e){if(storeUtils_isField(e)){if(e.alias){var i=e.alias.value,o=e.name.value;if(o!==i)(n.aliases||(n.aliases=Object.create(null)))[o]=i}if(e.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[e.name.value]=makeAliasMap(e.selectionSet,t)}else{var a=getFragmentFromSelection(e,t);a&&r.add(a.selectionSet)}}))})),n}function computeKeyObject(e,t,n,r){var i,o,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"===typeof o&&"string"===typeof i){var s=r&&r.subsets,c=s&&s[o];a[o]=computeKeyObject(e[i],t,n,c)}}else{var u=r&&r.aliases,l=u&&u[t]||t;Je.call(e,l)?a[o=t]=e[i=l]:(__DEV__?invariant_esm_invariant(!n,"Missing field '"+l+"' while computing key fields"):invariant_esm_invariant(!n,5),i=o=void 0)}})),a}var St={dataIdFromObject:vt,addTypename:!0,resultCaching:!0,typePolicies:{}},Ot=function(e){function InMemoryCache(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=makeVar,n.txCount=0,n.config=v(v({},St),t),n.addTypename=!!n.config.addTypename,n.policies=new wt({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return __extends(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new tt.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new ft(this,this.storeReader=new ut({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=wrap((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function makeCacheKey(e){var n=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,ct({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(v(v({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof be)return null;throw r}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(Je.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(v(v({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||function recallCache(e){getCacheInfo(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&function forgetCache(e){getCacheInfo(e).vars.forEach((function(t){return t.forgetCache(e)}))}(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){ct.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){return isReference(e)?e.__ref:this.policies.identify(e)[0]},InMemoryCache.prototype.evict=function(e){if(!e.id){if(Je.call(e,"id"))return!1;e=v(v({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(){return this.init(),this.broadcastWatches(),ct.reset(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=void 0===r||r,o=e.removeOptimistic,a=e.onWatchUpdated,s=function perform(e){var r=t,i=r.data,o=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{n(t)}finally{--t.txCount,t.data=i,t.optimisticData=o}},c=new Set;a&&!this.txCount&&this.broadcastWatches(v(v({},e),{onWatchUpdated:function onWatchUpdated(e){return c.add(e),!1}})),"string"===typeof i?this.optimisticData=this.optimisticData.addLayer(i,s):!1===i?s(this.data):s(),"string"===typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&c.size?(this.broadcastWatches(v(v({},e),{onWatchUpdated:function onWatchUpdated(e,t){var n=a.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return t.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e)},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Ce(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},InMemoryCache.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n)},InMemoryCache}(_e),Log_spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,4];case 3:return n.sent(),this.paused=!0,[2];case 4:return this.paused?[2]:[4,this.storage.write(e)];case 5:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,7];case 6:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 7:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function module_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function next(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function error(e){n.error(e)},complete:function complete(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))},e.concat=function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(o)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},e[qt]=function(){return this},Observable.from=function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var n=getMethod(e,qt);if(n){var r=n.call(e);if(Object(r)!==r)throw new TypeError(r+" is not an object");return isObservable(r)&&r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}if(Ft("iterator")&&(n=getMethod(e,Qt)))return new t((function(t){enqueue((function(){if(!t.closed){for(var r,i=_createForOfIteratorHelperLoose(n.call(e));!(r=i()).done;){var o=r.value;if(t.next(o),t.closed)return}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n=300&&Jt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||Xt.call(n,"data")||Xt.call(n,"errors")||Jt(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))},tn=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,en(t).request)||this;return n.options=t,n}return __extends(HttpLink,e),HttpLink}(Kt),nn=Kt.execute;function compact(){for(var e=[],t=0;t0||!1}function iterateObserversSafely(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:Wt})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"===typeof e.then}var rn=function(e){function Concast(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function next(e){null!==n.sub&&(n.latest=["next",e],iterateObserversSafely(n.observers,"next",e))},error:function error(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),iterateObserversSafely(n.observers,"error",e))},complete:function complete(){if(null!==n.sub){var e=n.sources.shift();e?Concast_isPromiseLike(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),iterateObserversSafely(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new Wt(t)]),Concast_isPromiseLike(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return __extends(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},Concast.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},Concast.prototype.cleanup=function(e){var t=this,n=!1,r=function once(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},Concast}(Wt);function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}fixObservableSubclass(rn),__DEV__?invariant_esm_invariant("boolean"===typeof Me,Me):invariant_esm_invariant("boolean"===typeof Me,22);var an,sn=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.clientErrors,i=t.networkError,o=t.errorMessage,a=t.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.clientErrors=r||[],s.networkError=i||null,s.message=o||function generateErrorMessage(e){var t="";return(isNonEmptyArray(e.graphQLErrors)||isNonEmptyArray(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=ApolloError.prototype,s}return __extends(ApolloError,e),ApolloError}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(an||(an={}));var cn=!1,un=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(t){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=r.queryId||n.generateQueryId();var a=getOperationDefinition(i.query);return o.queryName=a&&a.name&&a.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=n,o.queryInfo=r,o}return __extends(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function next(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||an.ready,r=v(v({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n});if(!this.queryManager.transform(this.options.query).hasForcedResolvers){var i=this.queryInfo.getDiff();(i.complete||this.options.returnPartialData)&&(r.data=i.result),equal(r.data,{})&&(r.data=void 0);var o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;i.complete?(r.networkStatus!==an.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=an.ready,r.loading=!1),delete r.partial):"no-cache"!==a&&(r.partial=!0),!__DEV__||i.complete||this.options.partialRefetch||r.loading||r.data||r.error||logMissingFieldErrors(i.missing)}return e&&this.updateLastResult(r),r},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!this.last||!equal(this.last.result,e)},ObservableQuery.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||equal(n.variables,this.variables)))return n[e]},ObservableQuery.prototype.getLastResult=function(e){return this.getLast("result",e)},ObservableQuery.prototype.getLastError=function(e){return this.getLast("error",e)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"===n?t.fetchPolicy="no-cache":"cache-and-network"!==n&&(t.fetchPolicy="network-only"),e&&!equal(this.options.variables,e)&&(t.variables=this.options.variables=v(v({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,an.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=v(v({},e.query?e:v(v(v({},this.options),e),{variables:v(v({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=an.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,an.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?(__DEV__&&!cn&&(__DEV__&&invariant_esm_invariant.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),cn=!0),t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function next(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function error(t){e.onError?e.onError(t):__DEV__&&invariant_esm_invariant.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},an.setVariables):Promise.resolve())},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},ObservableQuery.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?invariant_esm_invariant(n,"Attempted to start a polling query without a polling interval."):invariant_esm_invariant(n,13),(t||(this.pollingInfo={})).interval=n;var r=function maybeFetch(){e.pollingInfo&&(isNetworkRequestInFlight(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},an.poll).then(i,i))},i=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},ObservableQuery.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=v(v({},this.last),{result:this.queryManager.assumeImmutableResults?e:cloneDeep(e),variables:t}),isNonEmptyArray(e.errors)||delete this.last.error,this.last},ObservableQuery.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===an.refetch||t===an.fetchMore||t===an.poll,i=this.options.variables,o=r?compact(this.options,e):Object.assign(this.options,compact(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!equal(e.variables,i)&&(o.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=an.setVariables)));var a=o.variables&&v({},o.variables),s=this.fetch(o,t),c={next:function next(e){n.reportResult(e,a)},error:function error(e){n.reportError(e,a)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=c),s.addObserver(c),s.promise},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),iterateObserversSafely(this.observers,"next",e))},ObservableQuery.prototype.reportError=function(e,t){var n=v(v({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:an.error,loading:!1});this.updateLastResult(n,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(Wt);function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant_esm_invariant.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&isNonEmptyArray(e)&&__DEV__&&invariant_esm_invariant.debug("Missing cache result fields: "+e.map((function(e){return e.path.join(".")})).join(", "),e)}fixObservableSubclass(un);var ln=function(){function LocalState(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=mergeDeep(t.resolvers,e)})):this.resolvers=mergeDeep(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then((function(e){return v(v({},n),{data:e.result})}))]:[2,n]}))}))},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return function removeClientSetsFromDocument(e){checkDocument(e);var t=removeDirectivesFromDocument([{test:function test(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=visit(t,{FragmentDefinition:{enter:function enter(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return storeUtils_isField(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return v(v({},e),{cache:t,getCacheKey:function getCacheKey(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return v(v({},t),e.exportedVariables)}))]:[2,v({},t)]}))}))},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return visit(e,{Directive:{enter:function enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return ke}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function fragmentMatcher(){return!0}),void 0===o&&(o=!1),__awaiter(this,void 0,void 0,(function(){var a,s,c,u,l,f,p,d,h;return __generator(this,(function(m){return a=getMainDefinition(e),s=getFragmentDefinitions(e),c=createFragmentMap(s),u=a.operation,l=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(f=this).cache,d=f.client,h={fragmentMap:c,context:v(v({},n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c=this;return __generator(this,(function(u){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function execute(e){return __awaiter(c,void 0,void 0,(function(){var s,c;return __generator(this,(function(u){return shouldInclude(e,o)?storeUtils_isField(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&a.push(((n={})[resultKeyNameFromField(e)]=t,n))}))]:(isInlineFragment(e)?s=e:(s=r[e.name.value],__DEV__?invariant_esm_invariant(s,"No fragment named "+e.name.value):invariant_esm_invariant(s,12)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(t,c,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return mergeDeepArray(a)}))]}))}))},LocalState.prototype.resolveField=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,f,p=this;return __generator(this,(function(d){return r=n.variables,i=e.name.value,o=resultKeyNameFromField(e),a=i!==o,s=t[o]||t[i],c=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&(f=l[a?i:o])&&(c=Promise.resolve(ht.withValue(this.cache,f,[t,argumentsObjectFromField(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},LocalState.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},LocalState}(),pn=new(xe?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return pn.set(e,(pn.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var dn=function(){function QueryInfo(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;pn.has(n)||(pn.set(n,0),wrapDestructiveCacheMethod(n,"evict"),wrapDestructiveCacheMethod(n,"modify"),wrapDestructiveCacheMethod(n,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||an.loading;return this.variables&&this.networkStatus!==an.loading&&!equal(this.variables,e.variables)&&(t=an.setVariables),equal(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.lastDiff=void 0,this.dirty=!1},QueryInfo.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(e){void 0===e&&(e=this.variables);var t=this.observableQuery;return{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:!t||!1!==t.options.canonizeResults}},QueryInfo.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},QueryInfo.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=v(v({},this.getDiffOptions(e)),{watcher:this,callback:function callback(e){return t.setDiff(e)}});this.lastWatch&&equal(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===pn.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},QueryInfo.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=isNonEmptyArray(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(shouldWriteResult(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:pn.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=an.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=an.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var hn=Object.prototype.hasOwnProperty,mn=function(){function QueryManager(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,a=e.ssrMode,s=void 0!==a&&a,c=e.clientAwareness,u=void 0===c?{}:c,l=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(xe?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=u,this.localState=l||new ln({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new ye("QueryManager stopped while query was in flight"):new ye(14))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,c=void 0!==s&&s,u=e.update,l=e.onQueryUpdated,f=e.errorPolicy,p=void 0===f?"none":f,d=e.fetchPolicy,h=void 0===d?"network-only":d,m=e.keepRootFields,y=e.context;return __awaiter(this,void 0,void 0,(function(){var e,o,s;return __generator(this,(function(f){switch(f.label){case 0:return __DEV__?invariant_esm_invariant(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant_esm_invariant(t,15),__DEV__?invariant_esm_invariant("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):invariant_esm_invariant("network-only"===h||"no-cache"===h,16),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,updateQueries:i,update:u,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return asyncMap(s.getObservableFromLink(t,v(v({},y),{optimisticResponse:r}),n,!1),(function(f){if(graphQLResultHasError(f)&&"none"===p)throw new sn({graphQLErrors:f.errors});o&&(o.loading=!1,o.error=null);var d=v({},f);return"function"===typeof a&&(a=a(d)),"ignore"===p&&graphQLResultHasError(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:h,errorPolicy:p,context:y,update:u,updateQueries:i,awaitRefetchQueries:c,refetchQueries:a,removeOptimistic:r?e:void 0,onQueryUpdated:l,keepRootFields:m})})).subscribe({next:function next(e){s.broadcastQueries(),f(e)},error:function error(t){o&&(o.loading=!1,o.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof sn?t:new sn({networkError:t}))}})}))]}}))}))},QueryManager.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&shouldWriteResult(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach((function(e,o){var s=e.observableQuery,c=s&&s.queryName;if(c&&hn.call(a,c)){var u=a[c],l=n.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=u(h,{mutationResult:r,queryName:f&&getOperationName(f)||void 0,queryVariables:p});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function updateCache(t){o||i.forEach((function(e){return t.write(e)}));var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=v(v({},r),{data:s.result}))}a(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function fields(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},QueryManager.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(v(v({},t),{result:{data:r}}),e)}catch(i){__DEV__&&invariant_esm_invariant.error(i)}}),t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([Ae],checkDocument(e))}(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:hasClientExports(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:getDefaultValues(getOperationDefinition(n)),asQuery:v(v({},n),{definitions:n.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?v(v({},e),{operation:"query"}):e}))})},s=function add(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(i),s(o)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return v(v({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){"undefined"===typeof(e=v(v({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new dn(this),n=new un({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},QueryManager.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant_esm_invariant(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant_esm_invariant(e.query,17),__DEV__?invariant_esm_invariant("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant_esm_invariant("Document"===e.query.kind,18),__DEV__?invariant_esm_invariant(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant_esm_invariant(!e.returnPartialData,19),__DEV__?invariant_esm_invariant(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant_esm_invariant(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return n.stopQuery(t)}))},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(){return this.cancelPendingFetches(__DEV__?new ye("Store reset while query was in flight (not completed in link chain)"):new ye(21)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=an.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},QueryManager.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},QueryManager.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"===typeof e?r.set(e,!1):!function isDocumentNode(e){return isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?isNonNullObject(e)&&e.query&&i.add(e):r.set(t.transform(e).document,!1)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void n.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}})),i.size&&i.forEach((function(e){var r=makeUniqueId("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new un({queryManager:t,queryInfo:i,options:v(v({},e),{fetchPolicy:"network-only"})});invariant_esm_invariant(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&invariant_esm_invariant.warn("Unknown query "+("string"===typeof t?"named ":"")+JSON.stringify(t,null,2)+" requested in refetchQueries options.include array")})),n},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var c=function makeObservable(e){return t.getObservableFromLink(n,s,e).map((function(o){if("no-cache"!==r&&(shouldWriteResult(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),graphQLResultHasError(o))throw new sn({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,s).then(c);return new Wt((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,u=this.link,l={query:s,variables:n,operationName:getOperationName(s)||void 0,context:this.prepareContext(v(v({},t),{forceFetch:!r}))};if(t=l.context,r){var f=c.get(s)||new Map;c.set(s,f);var p=ct(n);if(!(o=f.get(p))){var d=new rn([nn(u,l)]);f.set(p,o=d),d.cleanup((function(){f.delete(p)&&f.size<1&&c.delete(s)}))}}else o=new rn([nn(u,l)])}else o=new rn([Wt.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=asyncMap(o,(function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),o},QueryManager.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return asyncMap(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=isNonEmptyArray(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new sn({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:e.networkStatus||an.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors),a}),(function(t){var n=function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new sn({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=an.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=t.fetchPolicy,c=void 0===s?"cache-first":s,u=t.errorPolicy,l=void 0===u?"none":u,f=t.returnPartialData,p=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,h=void 0!==d&&d,m=t.context,y=void 0===m?{}:m,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:l,returnPartialData:p,notifyOnNetworkStatusChange:h,context:y}),g=function fromVariables(e){return v.variables=e,r.fetchQueryByPolicy(a,v,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return _.cancel(e)}))}));var _=new rn(this.transform(v.query).hasClientExports?this.localState.addExportedVariables(v.query,v.variables,v.context).then(g):g(v.variables));return _.cleanup((function(){r.fetchCancelFns.delete(e),function applyNextFetchPolicy(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"===typeof r?r.call(e,n):r)}(t)})),_},QueryManager.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?makeUniqueId("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function onWatchUpdated(e,t,n){var r=e.watcher instanceof dn&&e.watcher.observableQuery;if(r){if(c){u.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),!1}null!==c&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var d=function readCache(){return e.getDiff(o)},h=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||an.loading);var a=t.result;!__DEV__||u||equal(a,{})||logMissingFieldErrors(t.missing);var s=function fromData(e){return Wt.of(v({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(a)},m="no-cache"===a?0:n===an.refetch&&"merge"!==s?1:2,y=function resultsFromLink(){return r.getResultsFromLink(e,m,{variables:o,context:l,fetchPolicy:a,errorPolicy:c})},g=f&&"number"===typeof p&&p!==n&&isNetworkRequestInFlight(n);switch(a){default:case"cache-first":return(_=d()).complete?[h(_,e.markReady())]:u||g?[h(_),y()]:[y()];case"cache-and-network":var _;return(_=d()).complete||u||g?[h(_),y()]:[y()];case"cache-only":return[h(d(),e.markReady())];case"network-only":return g?[h(d()),y()]:[y()];case"no-cache":return g?[h(e.getDiff()),y()]:[y()];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new dn(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return v(v({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function ApolloClient_typeof(e){return(ApolloClient_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var yn=!1;function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:v(v({},e.variables),t.variables)})}var vn=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,u=void 0===c?0:c,l=e.connectToDevTools,f=void 0===l?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,m=e.assumeImmutableResults,y=void 0!==m&&m,v=e.resolvers,g=e.typeDefs,_=e.fragmentMatcher,b=e.name,E=e.version,w=e.link;if(w||(w=n?new tn({uri:n,credentials:r,headers:i}):Kt.empty()),!o)throw __DEV__?new ye("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new ye(10);if(this.link=w,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=d,this.defaultOptions=h||{},this.typeDefs=g,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),!yn&&__DEV__&&(yn=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,O=S&&S.userAgent,k=void 0;"string"===typeof O&&(O.indexOf("Chrome/")>-1?k="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":O.indexOf("Firefox/")>-1&&(k="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),k&&__DEV__&&invariant_esm_invariant.log("Download the Apollo DevTools for a better development experience: "+k)}this.version="3.4.8",this.localState=new ln({cache:o,client:this,resolvers:v,fragmentMatcher:_}),this.queryManager=new mn({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:E},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),__DEV__?invariant_esm_invariant("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant_esm_invariant("cache-and-network"!==e.fetchPolicy,11),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return nn(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&invariant_esm_invariant.debug("In client.refetchQueries, Promise.all promise rejected with error "+e)})),i},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}();function onError(e){return new Kt((function(t,n){return new Wt((function(r){var i,o,a;try{i=n(t).subscribe({next:function next(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function error(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function complete(){a||r.complete.bind(r)()}})}catch(s){e({networkError:s,operation:t,forward:n}),r.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function ErrorLink(t){var n=e.call(this)||this;return n.link=onError(t),n}__extends(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(Kt);var gn="appolo",_n=document.querySelector('meta[name="api_url"]'),bn=_n?_n.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),En=new Kt((function(e,t){return e.setContext({headers:{apikey:"".concat("ApKrRSjySO4JAmX3E2Z7HvrBD0m8xdDlAiXyh4IbH3w")}}),t(e)}));console.info("%cAPI: ".concat(bn),"color:green;font-size:10px");var wn=new vn({cache:Rt,link:Gt([En,new Kt((function(e,t){return e.setContext({start:new Date}),t(e)})),onError((function(e){var t=e.operation,n=e.response,r=e.graphQLErrors,i=e.networkError;e.forward;if("IgnoreErrorsQuery"===t.operationName)return console.error("".concat(gn,": IgnoreErrorsQuery")),void(n.errors=null);r&&r.forEach((function(e){var t=e.message,n=e.locations,r=e.path;return console.error("".concat(gn,": [GraphQL error]: Message: ").concat(t,", Location: ").concat(n,", Path: ").concat(r))})),i&&console.error("".concat(gn,": [Network error] ").concat(i.statusCode)),console.error("".concat(gn,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(u.APOLLO_ERROR))})),new Kt((function(e,t){return t(e).map((function(t){var n=new Date-e.getContext().start;return console.log("".concat(gn,": operation ").concat(e.operationName," took ").concat(n," ms to complete")),window.dispatchEvent(new Event(u.ONLINE)),t}))})),new tn({uri:bn,fetch:function(e){function fetch(){return e.apply(this,arguments)}return fetch.toString=function(){return e.toString()},fetch}((function(){return fetch.apply(void 0,arguments)})),credentials:"same-origin",connectToDevTools:!1})])});function page_typeof(e){return(page_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function page_defineProperties(e,t){for(var n=0;n")),e.state.loading){Sn.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(m.Component),Tn=__webpack_require__(528),Cn="top",An="bottom",xn="right",Dn="left",In="auto",Nn=[Cn,An,xn,Dn],Ln="start",Pn="end",jn="clippingParents",Rn="viewport",Mn="popper",Fn="reference",Vn=Nn.reduce((function(e,t){return e.concat([t+"-"+Ln,t+"-"+Pn])}),[]),Qn=[].concat(Nn,[In]).reduce((function(e,t){return e.concat([t,t+"-"+Ln,t+"-"+Pn])}),[]),qn="beforeRead",Bn="read",Un="afterRead",zn="beforeMain",Wn="main",Hn="afterMain",Kn="beforeWrite",Gn="write",Yn="afterWrite",Jn=[qn,Bn,Un,zn,Wn,Hn,Kn,Gn,Yn];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Xn={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var $n=Math.round;function getBoundingClientRect(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;return isHTMLElement(e)&&t&&(r=n.width/e.offsetWidth||1,i=n.height/e.offsetHeight||1),{width:$n(n.width/r),height:$n(n.height/i),top:$n(n.top/i),right:$n(n.right/r),bottom:$n(n.bottom/i),left:$n(n.left/r),x:$n(n.left/r),y:$n(n.top/i)}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Zn=Math.max,er=Math.min,tr=Math.round;function within(e,t,n){return Zn(e,er(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var nr={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement(n.placement),c=getMainAxisFromPlacement(s),u=[Dn,xn].indexOf(s)>=0?"height":"width";if(o&&a){var l=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,Nn))}(i.padding,n),f=getLayoutRect(o),p="y"===c?Cn:Dn,d="y"===c?An:xn,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],y=getOffsetParent(o),v=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,g=h/2-m/2,_=l[p],b=v-f[u]-l[d],E=v/2-f[u]/2+g,w=within(_,E,b),S=c;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-E,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},rr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,l=!0===u?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:tr(tr(t*r)/r)||0,y:tr(tr(n*r)/r)||0}}(o):"function"===typeof u?u(o):o,f=l.x,p=void 0===f?0:f,d=l.y,h=void 0===d?0:d,m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Dn,g=Cn,_=window;if(c){var b=getOffsetParent(n),E="clientHeight",w="clientWidth";b===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(b=getDocumentElement(n)).position&&(E="scrollHeight",w="scrollWidth"),b=b,i===Cn&&(g=An,h-=b[E]-r.height,h*=s?1:-1),i===Dn&&(v=xn,p-=b[w]-r.width,p*=s?1:-1)}var S,O=Object.assign({position:a},c&&rr);return s?Object.assign({},O,((S={})[g]=y?"0":"",S[v]=m?"0":"",S.transform=(_.devicePixelRatio||1)<2?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},O,((t={})[g]=y?h+"px":"",t[v]=m?p+"px":"",t.transform="",t))}var ir={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},or={passive:!0};var ar={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,or)})),s&&c.addEventListener("resize",n.update,or),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,or)})),s&&c.removeEventListener("resize",n.update,or)}},data:{}},sr={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return sr[e]}))}var cr={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return cr[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=getWindow(r),a=i?[o].concat(o.visualViewport||[],isScrollParent(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===Rn?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+getWindowScrollBarX(e),y:s}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Zn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Zn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+getWindowScrollBarX(e),c=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(s+=Zn(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Zn(r.top,t.top),t.right=er(r.right,t.right),t.bottom=er(r.bottom,t.bottom),t.left=Zn(r.left,t.left),t}),getClientRectFromMixedType(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?getBasePlacement(i):null,a=i?getVariation(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case Cn:t={x:s,y:n.y-r.height};break;case An:t={x:s,y:n.y+n.height};break;case xn:t={x:n.x+n.width,y:c};break;case Dn:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?getMainAxisFromPlacement(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Ln:t[u]=t[u]-(n[l]/2-r[l]/2);break;case Pn:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?jn:o,s=n.rootBoundary,c=void 0===s?Rn:s,u=n.elementContext,l=void 0===u?Mn:u,f=n.altBoundary,p=void 0!==f&&f,d=n.padding,h=void 0===d?0:d,m=mergePaddingObject("number"!==typeof h?h:expandToHashMap(h,Nn)),y=l===Mn?Fn:Mn,v=e.elements.reference,g=e.rects.popper,_=e.elements[p?y:l],b=getClippingRect(isElement(_)?_:_.contextElement||getDocumentElement(e.elements.popper),a,c),E=getBoundingClientRect(v),w=computeOffsets({reference:E,element:g,strategy:"absolute",placement:i}),S=rectToClientRect(Object.assign({},g,w)),O=l===Mn?S:E,k={top:b.top-O.top+m.top,bottom:O.bottom-b.bottom+m.bottom,left:b.left-O.left+m.left,right:O.right-b.right+m.right},T=e.modifiersData.offset;if(l===Mn&&T){var C=T[i];Object.keys(k).forEach((function(e){var t=[xn,An].indexOf(e)>=0?1:-1,n=[Cn,An].indexOf(e)>=0?"y":"x";k[e]+=C[n]*t}))}return k}var ur={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,v=getBasePlacement(y),g=c||(v===y||!h?[getOppositePlacement(y)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===In)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(y)),_=[y].concat(g).reduce((function(e,n){return e.concat(getBasePlacement(n)===In?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?Qn:c,l=getVariation(r),f=l?s?Vn:Vn.filter((function(e){return getVariation(e)===l})):Nn,p=f.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[getBasePlacement(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),b=t.rects.reference,E=t.rects.popper,w=new Map,S=!0,O=_[0],k=0;k<_.length;k++){var T=_[k],C=getBasePlacement(T),A=getVariation(T)===Ln,x=[Cn,An].indexOf(C)>=0,D=x?"width":"height",I=detectOverflow(t,{placement:T,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),N=x?A?xn:Dn:A?An:Cn;b[D]>E[D]&&(N=getOppositePlacement(N));var L=getOppositePlacement(N),P=[];if(o&&P.push(I[C]<=0),s&&P.push(I[N]<=0,I[L]<=0),P.every((function(e){return e}))){O=T,S=!1;break}w.set(T,P)}if(S)for(var j=function _loop(e){var t=_.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},R=h?3:1;R>0;R--){if("break"===j(R))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[Cn,xn,An,Dn].some((function(t){return e[t]>=0}))}var lr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(a,r),u=getSideOffsets(s,i,o),l=isAnySideFullyClipped(c),f=isAnySideFullyClipped(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}};var fr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Qn.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[Dn,Cn].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Dn,xn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var pr={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var dr={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,p=n.tether,d=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,y=detectOverflow(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=getBasePlacement(t.placement),g=getVariation(t.placement),_=!g,b=getMainAxisFromPlacement(v),E=function getAltAxis(e){return"x"===e?"y":"x"}(b),w=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,k="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,T={x:0,y:0};if(w){if(o||s){var C="y"===b?Cn:Dn,A="y"===b?An:xn,x="y"===b?"height":"width",D=w[b],I=w[b]+y[C],N=w[b]-y[A],L=d?-O[x]/2:0,P=g===Ln?S[x]:O[x],j=g===Ln?-O[x]:-S[x],R=t.elements.arrow,M=d&&R?getLayoutRect(R):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=F[C],Q=F[A],q=within(0,S[x],M[x]),B=_?S[x]/2-L-q-V-k:P-q-V-k,U=_?-S[x]/2+L+q+Q+k:j+q+Q+k,z=t.elements.arrow&&getOffsetParent(t.elements.arrow),W=z?"y"===b?z.clientTop||0:z.clientLeft||0:0,H=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,K=w[b]+B-H-W,G=w[b]+U-H;if(o){var Y=within(d?er(I,K):I,D,d?Zn(N,G):N);w[b]=Y,T[b]=Y-D}if(s){var J="x"===b?Cn:Dn,X="x"===b?An:xn,Z=w[E],ee=Z+y[J],te=Z-y[X],ne=within(d?er(ee,K):ee,Z,d?Zn(te,G):te);w[E]=ne,T[E]=ne-Z}}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=isHTMLElement(t),i=isHTMLElement(t)&&function isElementScaled(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),o=getDocumentElement(t),a=getBoundingClientRect(e,i),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==getNodeName(t)||isScrollParent(o))&&(s=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((c=getBoundingClientRect(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=getWindowScrollBarX(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var hr={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?document.querySelector(e):null},Cr=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],o=t[r],a=o&&kr(o)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(o);if(!new RegExp(i).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(i,'".'))}))},Ar=function isVisible(e){return!(!kr(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},xr=function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))},Dr=function findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},Ir=function noop(){},Nr=function reflow(e){e.offsetHeight},Lr=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},Pr=[],jr=function isRTL(){return"rtl"===document.documentElement.dir},Rr=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(Pr.length||document.addEventListener("DOMContentLoaded",(function(){Pr.forEach((function(e){return e()}))})),Pr.push(e)):e()}((function(){var $=Lr();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},Mr=function execute(e){"function"===typeof e&&e()},Fr=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=Sr(t)+r,o=!1,a=function handler(n){n.target===t&&(o=!0,t.removeEventListener(_r,handler),Mr(e))};t.addEventListener(_r,a),setTimeout((function(){o||Or(t)}),i)}else Mr(e)},Vr=function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var o=e.length;return i+=n?1:-1,r&&(i=(i+o)%o),e[Math.max(0,Math.min(i,o-1))]},Qr=/[^.]*(?=\..*)\.|.*/,qr=/\..*/,Br=/::\d+$/,Ur={},zr=1,Wr={mouseenter:"mouseover",mouseleave:"mouseout"},Hr=/^(mouseenter|mouseleave)/i,Kr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(e,t){return t&&"".concat(t,"::").concat(zr++)||e.uidEvent||zr++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,Ur[t]=Ur[t]||{},Ur[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,o=r.length;i2&&void 0!==arguments[2])||arguments[2];Fr(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return Xr(Tr(e),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===bootstrap_esm_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.1.0"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),ei=function enableDismissTrigger(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hide",n="click.dismiss".concat(e.EVENT_KEY),r=e.NAME;Gr.on(document,n,'[data-bs-dismiss="'.concat(r,'"]'),(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),!xr(this)){var i=wr(this)||this.closest(".".concat(r));e.getOrCreateInstance(i)[t]()}}))},ti=".".concat("bs.alert"),ni="close".concat(ti),ri="closed".concat(ti),ii=function(e){bootstrap_esm_inherits(Alert,e);var t=bootstrap_esm_createSuper(Alert);function Alert(){return bootstrap_esm_classCallCheck(this,Alert),t.apply(this,arguments)}return bootstrap_esm_createClass(Alert,[{key:"close",value:function close(){var e=this;if(!Gr.trigger(this._element,ni).defaultPrevented){this._element.classList.remove("show");var t=this._element.classList.contains("fade");this._queueCallback((function(){return e._destroyElement()}),this._element,t)}}},{key:"_destroyElement",value:function _destroyElement(){this._element.remove(),Gr.trigger(this._element,ri),this.dispose()}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Alert.getOrCreateInstance(this);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Alert}(Zr);ei(ii,"close"),Rr(ii);var oi=".".concat("bs.button"),ai='[data-bs-toggle="button"]',si="click".concat(oi).concat(".data-api"),ci=function(e){bootstrap_esm_inherits(Button,e);var t=bootstrap_esm_createSuper(Button);function Button(){return bootstrap_esm_classCallCheck(this,Button),t.apply(this,arguments)}return bootstrap_esm_createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function get(){return"button"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Button.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}]),Button}(Zr);function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}Gr.on(document,si,ai,(function(e){e.preventDefault();var t=e.target.closest(ai);ci.getOrCreateInstance(t).toggle()})),Rr(ci);var ui={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(normalizeDataKey(t)))},getDataAttributes:function getDataAttributes(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return normalizeData(e.getAttribute("data-bs-".concat(normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},li={find:function find(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(", ");return this.find(t,e).filter((function(e){return!xr(e)&&Ar(e)}))}},fi="carousel",pi=".".concat("bs.carousel"),di=".data-api",hi={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},mi={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},yi="next",vi="prev",gi="left",_i="right",bi=(bootstrap_esm_defineProperty(mr={},"ArrowLeft",_i),bootstrap_esm_defineProperty(mr,"ArrowRight",gi),mr),Ei="slide".concat(pi),wi="slid".concat(pi),Si="keydown".concat(pi),Oi="mouseenter".concat(pi),ki="mouseleave".concat(pi),Ti="touchstart".concat(pi),Ci="touchmove".concat(pi),Ai="touchend".concat(pi),xi="pointerdown".concat(pi),Di="pointerup".concat(pi),Ii="dragstart".concat(pi),Ni="load".concat(pi).concat(di),Li="click".concat(pi).concat(di),Pi="active",ji=".active.carousel-item",Ri="touch",Mi=function(e){bootstrap_esm_inherits(Carousel,e);var t=bootstrap_esm_createSuper(Carousel);function Carousel(e,n){var r;return bootstrap_esm_classCallCheck(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=li.findOne(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._slide(yi)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&Ar(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(vi)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),li.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Or(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=li.findOne(ji,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Gr.one(this._element,wi,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?yi:vi;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},hi),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(fi,e,mi),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?_i:gi)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Gr.on(this._element,Si,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Gr.on(this._element,Oi,(function(t){return e.pause(t)})),Gr.on(this._element,ki,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ri?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ri||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};li.find(".carousel-item img",this._element).forEach((function(e){Gr.on(e,Ii,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Gr.on(this._element,xi,(function(e){return t(e)})),Gr.on(this._element,Di,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Gr.on(this._element,Ti,(function(e){return t(e)})),Gr.on(this._element,Ci,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Gr.on(this._element,Ai,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=bi[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?li.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===yi;return Vr(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(li.findOne(ji,this._element));return Gr.trigger(this._element,Ei,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=li.findOne(".active",this._indicatorsElement);t.classList.remove(Pi),t.removeAttribute("aria-current");for(var n=li.find("[data-bs-target]",this._indicatorsElement),r=0;r0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(Gi)}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},qi),ui.getDataAttributes(this._element)),e)).toggle=Boolean(e.toggle),e.parent=Tr(e.parent),Cr(Fi,e,Bi),e}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}},{key:"_initializeChildren",value:function _initializeChildren(){var e=this;if(this._config.parent){var t=li.find(".".concat(Yi," .").concat(Yi),this._config.parent);li.find($i,this._config.parent).filter((function(e){return!t.includes(e)})).forEach((function(t){var n=wr(t);n&&e._addAriaAndCollapsedClass([t],e._isShown(n))}))}}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(e,t){e.length&&e.forEach((function(e){t?e.classList.remove(Xi):e.classList.add(Xi),e.setAttribute("aria-expanded",t)}))}}],[{key:"Default",get:function get(){return qi}},{key:"NAME",get:function get(){return Fi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t={};"string"===typeof e&&/show|hide/.test(e)&&(t.toggle=!1);var n=Collapse.getOrCreateInstance(this,t);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}]),Collapse}(Zr);Gr.on(document,Ki,$i,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=Er(this);li.find(t).forEach((function(e){Zi.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),Rr(Zi);var eo="dropdown",no=".".concat("bs.dropdown"),ro=".data-api",io="Escape",oo="Space",ao="ArrowUp",so="ArrowDown",co=new RegExp("".concat(ao,"|").concat(so,"|").concat(io)),uo="hide".concat(no),lo="hidden".concat(no),fo="show".concat(no),po="shown".concat(no),ho="click".concat(no).concat(ro),mo="keydown".concat(no).concat(ro),yo="keyup".concat(no).concat(ro),vo="show",go='[data-bs-toggle="dropdown"]',_o=".dropdown-menu",bo=jr()?"top-end":"top-start",Eo=jr()?"top-start":"top-end",wo=jr()?"bottom-end":"bottom-start",So=jr()?"bottom-start":"bottom-end",Oo=jr()?"left-start":"right-start",ko=jr()?"right-start":"left-start",To={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},Co={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},Ao=function(t){bootstrap_esm_inherits(Dropdown,t);var n=bootstrap_esm_createSuper(Dropdown);function Dropdown(e,t){var r;return bootstrap_esm_classCallCheck(this,Dropdown),(r=n.call(this,e))._popper=null,r._config=r._getConfig(t),r._menu=r._getMenuElement(),r._inNavbar=r._detectNavbar(),r}return bootstrap_esm_createClass(Dropdown,[{key:"toggle",value:function toggle(){return this._isShown()?this.hide():this.show()}},{key:"show",value:function show(){if(!xr(this._element)&&!this._isShown(this._menu)){var e={relatedTarget:this._element};if(!Gr.trigger(this._element,fo,e).defaultPrevented){var t,n=Dropdown.getParentFromElement(this._element);if(this._inNavbar?ui.setDataAttribute(this._menu,"popper","none"):this._createPopper(n),"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav"))(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.on(e,"mouseover",Ir)}));this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(vo),this._element.classList.add(vo),Gr.trigger(this._element,po,e)}}}},{key:"hide",value:function hide(){if(!xr(this._element)&&this._isShown(this._menu)){var e={relatedTarget:this._element};this._completeHide(e)}}},{key:"dispose",value:function dispose(){this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Dropdown.prototype),"dispose",this).call(this)}},{key:"update",value:function update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_completeHide",value:function _completeHide(e){if(!Gr.trigger(this._element,uo,e).defaultPrevented){var t;if("ontouchstart"in document.documentElement)(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.off(e,"mouseover",Ir)}));this._popper&&this._popper.destroy(),this._menu.classList.remove(vo),this._element.classList.remove(vo),this._element.setAttribute("aria-expanded","false"),ui.removeDataAttribute(this._menu,"popper"),Gr.trigger(this._element,lo,e)}}},{key:"_getConfig",value:function _getConfig(e){if(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),ui.getDataAttributes(this._element)),e),Cr(eo,e,this.constructor.DefaultType),"object"===bootstrap_esm_typeof(e.reference)&&!kr(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError("".concat(eo.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return e}},{key:"_createPopper",value:function _createPopper(t){if("undefined"===typeof e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var n=this._element;"parent"===this._config.reference?n=t:kr(this._config.reference)?n=Tr(this._config.reference):"object"===bootstrap_esm_typeof(this._config.reference)&&(n=this._config.reference);var r=this._getPopperConfig(),i=r.modifiers.find((function(e){return"applyStyles"===e.name&&!1===e.enabled}));this._popper=vr(n,this._menu,r),i&&ui.setDataAttribute(this._menu,"popper","static")}},{key:"_isShown",value:function _isShown(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element;return e.classList.contains(vo)}},{key:"_getMenuElement",value:function _getMenuElement(){return li.next(this._element,_o)[0]}},{key:"_getPlacement",value:function _getPlacement(){var e=this._element.parentNode;if(e.classList.contains("dropend"))return Oo;if(e.classList.contains("dropstart"))return ko;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Eo:bo:t?So:wo}},{key:"_detectNavbar",value:function _detectNavbar(){return null!==this._element.closest(".".concat("navbar"))}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function _getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},e),"function"===typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_selectMenuItem",value:function _selectMenuItem(e){var t=e.key,n=e.target,r=li.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Ar);r.length&&Vr(r,n,t===so,!r.includes(n)).focus()}}],[{key:"Default",get:function get(){return To}},{key:"DefaultType",get:function get(){return Co}},{key:"NAME",get:function get(){return eo}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Dropdown.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}},{key:"clearMenus",value:function clearMenus(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=li.find(go),n=0,r=t.length;ne.clientWidth+i)){r._saveInitialAttribute(e,t);var o=window.getComputedStyle(e)[t];e.style[t]="".concat(n(Number.parseFloat(o)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(xo,"paddingRight"),this._resetElementAttributes(Do,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(e,t){var n=e.style[t];n&&ui.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){this._applyManipulationCallback(e,(function manipulationCallBack(e){var n=ui.getDataAttribute(e,t);"undefined"===typeof n?e.style.removeProperty(t):(ui.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(e,t){kr(e)?t(e):li.find(e,this._element).forEach(t)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),No={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Lo={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Po="backdrop",jo="show",Ro="mousedown.bs.".concat(Po),Mo=function(){function Backdrop(e){bootstrap_esm_classCallCheck(this,Backdrop),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}return bootstrap_esm_createClass(Backdrop,[{key:"show",value:function show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&Nr(this._getElement()),this._getElement().classList.add(jo),this._emulateAnimation((function(){Mr(e)}))):Mr(e)}},{key:"hide",value:function hide(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(jo),this._emulateAnimation((function(){t.dispose(),Mr(e)}))):Mr(e)}},{key:"_getElement",value:function _getElement(){if(!this._element){var e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},No),"object"===bootstrap_esm_typeof(e)?e:{})).rootElement=Tr(e.rootElement),Cr(Po,e,Lo),e}},{key:"_append",value:function _append(){var e=this;this._isAppended||(this._config.rootElement.append(this._getElement()),Gr.on(this._getElement(),Ro,(function(){Mr(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&(Gr.off(this._element,Ro),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(e){Fr(e,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),Fo={trapElement:null,autofocus:!0},Vo={trapElement:"element",autofocus:"boolean"},Qo=".".concat("bs.focustrap"),qo="focusin".concat(Qo),Bo="keydown.tab".concat(Qo),Uo="backward",zo=function(){function FocusTrap(e){bootstrap_esm_classCallCheck(this,FocusTrap),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}return bootstrap_esm_createClass(FocusTrap,[{key:"activate",value:function activate(){var e=this,t=this._config,n=t.trapElement,r=t.autofocus;this._isActive||(r&&n.focus(),Gr.off(document,Qo),Gr.on(document,qo,(function(t){return e._handleFocusin(t)})),Gr.on(document,Bo,(function(t){return e._handleKeydown(t)})),this._isActive=!0)}},{key:"deactivate",value:function deactivate(){this._isActive&&(this._isActive=!1,Gr.off(document,Qo))}},{key:"_handleFocusin",value:function _handleFocusin(e){var t=e.target,n=this._config.trapElement;if(t!==document&&t!==n&&!n.contains(t)){var r=li.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===Uo?r[r.length-1].focus():r[0].focus()}}},{key:"_handleKeydown",value:function _handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Uo:"forward")}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Fo),"object"===bootstrap_esm_typeof(e)?e:{}),Cr("focustrap",e,Vo),e}}]),FocusTrap}(),Wo="modal",Ho=".".concat("bs.modal"),Ko="Escape",Go={backdrop:!0,keyboard:!0,focus:!0},Yo={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Jo="hide".concat(Ho),Xo="hidePrevented".concat(Ho),$o="hidden".concat(Ho),Zo="show".concat(Ho),ea="shown".concat(Ho),ta="resize".concat(Ho),na="click.dismiss".concat(Ho),ra="keydown.dismiss".concat(Ho),ia="mouseup.dismiss".concat(Ho),oa="mousedown.dismiss".concat(Ho),aa="click".concat(Ho).concat(".data-api"),sa="modal-open",ca="show",ua="modal-static",la=function(e){bootstrap_esm_inherits(Modal,e);var t=bootstrap_esm_createSuper(Modal);function Modal(e,n){var r;return bootstrap_esm_classCallCheck(this,Modal),(r=t.call(this,e))._config=r._getConfig(n),r._dialog=li.findOne(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new Io,r}return bootstrap_esm_createClass(Modal,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;this._isShown||this._isTransitioning||(Gr.trigger(this._element,Zo,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(sa),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Gr.on(this._dialog,oa,(function(){Gr.one(t._element,ia,(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)}))))}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!this._isTransitioning&&!Gr.trigger(this._element,Jo).defaultPrevented){this._isShown=!1;var t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(ca),Gr.off(this._element,na),Gr.off(this._dialog,oa),this._queueCallback((function(){return e._hideModal()}),this._element,t)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(e){return Gr.off(e,Ho)})),this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new Mo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new zo({trapElement:this._element})}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Go),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(Wo,e,Yo),e}},{key:"_showElement",value:function _showElement(e){var t=this,n=this._isAnimated(),r=li.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,r&&(r.scrollTop=0),n&&Nr(this._element),this._element.classList.add(ca);this._queueCallback((function transitionComplete(){t._config.focus&&t._focustrap.activate(),t._isTransitioning=!1,Gr.trigger(t._element,ea,{relatedTarget:e})}),this._dialog,n)}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var e=this;this._isShown?Gr.on(this._element,ra,(function(t){e._config.keyboard&&t.key===Ko?(t.preventDefault(),e.hide()):e._config.keyboard||t.key!==Ko||e._triggerBackdropTransition()})):Gr.off(this._element,ra)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var e=this;this._isShown?Gr.on(window,ta,(function(){return e._adjustDialog()})):Gr.off(window,ta)}},{key:"_hideModal",value:function _hideModal(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(sa),e._resetAdjustments(),e._scrollBar.reset(),Gr.trigger(e._element,$o)}))}},{key:"_showBackdrop",value:function _showBackdrop(e){var t=this;Gr.on(this._element,na,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())})),this._backdrop.show(e)}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var e=this;if(!Gr.trigger(this._element,Xo).defaultPrevented){var t=this._element,n=t.classList,r=t.scrollHeight,i=t.style,o=r>document.documentElement.clientHeight;!o&&"hidden"===i.overflowY||n.contains(ua)||(o||(i.overflowY="hidden"),n.add(ua),this._queueCallback((function(){n.remove(ua),o||e._queueCallback((function(){i.overflowY=""}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!jr()||n&&!e&&jr())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!jr()||!n&&e&&jr())&&(this._element.style.paddingRight="".concat(t,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function get(){return Go}},{key:"NAME",get:function get(){return Wo}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=Modal.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(Zr);Gr.on(document,aa,'[data-bs-toggle="modal"]',(function(e){var t=this,n=wr(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Gr.one(n,Zo,(function(e){e.defaultPrevented||Gr.one(n,$o,(function(){Ar(t)&&t.focus()}))})),la.getOrCreateInstance(n).toggle(this)})),ei(la),Rr(la);var fa="offcanvas",pa=".".concat("bs.offcanvas"),da=".data-api",ha="load".concat(pa).concat(da),ma={backdrop:!0,keyboard:!0,scroll:!1},ya={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},va="show",ga=".offcanvas.show",_a="show".concat(pa),ba="shown".concat(pa),Ea="hide".concat(pa),wa="hidden".concat(pa),Sa="click".concat(pa).concat(da),Oa="keydown.dismiss".concat(pa),ka=function(e){bootstrap_esm_inherits(Offcanvas,e);var t=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(e,n){var r;return bootstrap_esm_classCallCheck(this,Offcanvas),(r=t.call(this,e))._config=r._getConfig(n),r._isShown=!1,r._backdrop=r._initializeBackDrop(),r._focustrap=r._initializeFocusTrap(),r._addEventListeners(),r}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;if(!this._isShown&&!Gr.trigger(this._element,_a,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new Io).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(va);this._queueCallback((function completeCallBack(){t._config.scroll||t._focustrap.activate(),Gr.trigger(t._element,ba,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!Gr.trigger(this._element,Ea).defaultPrevented){this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(va),this._backdrop.hide();this._queueCallback((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new Io).reset(),Gr.trigger(e._element,wa)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},ma),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),Cr(fa,e,ya),e}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var e=this;return new Mo({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return e.hide()}})}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new zo({trapElement:this._element})}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;Gr.on(this._element,Oa,(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function get(){return fa}},{key:"Default",get:function get(){return ma}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Offcanvas.getOrCreateInstance(this,e);if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Offcanvas}(Zr);Gr.on(document,Sa,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=wr(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!xr(this)){Gr.one(n,wa,(function(){Ar(t)&&t.focus()}));var r=li.findOne(ga);r&&r!==n&&ka.getInstance(r).hide(),ka.getOrCreateInstance(n).toggle(this)}})),Gr.on(window,ha,(function(){return li.find(ga).forEach((function(e){return ka.getOrCreateInstance(e).show()}))})),ei(ka),Rr(ka);var Ta=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ca=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Aa=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,xa={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(e,t,n){var r;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),o=Object.keys(t),a=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),s=function _loop(e,n){var r,i=a[e],s=i.nodeName.toLowerCase();if(!o.includes(s))return i.remove(),"continue";var c=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),u=[].concat(t["*"]||[],t[s]||[]);c.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!Ta.has(n)||Boolean(Ca.test(e.nodeValue)||Aa.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:xa,popperConfig:null},Ra={HIDE:"hide".concat(Ia),HIDDEN:"hidden".concat(Ia),SHOW:"show".concat(Ia),SHOWN:"shown".concat(Ia),INSERTED:"inserted".concat(Ia),CLICK:"click".concat(Ia),FOCUSIN:"focusin".concat(Ia),FOCUSOUT:"focusout".concat(Ia),MOUSEENTER:"mouseenter".concat(Ia),MOUSELEAVE:"mouseleave".concat(Ia)},Ma="fade",Fa="show",Va="show",Qa="out",qa=".".concat("modal"),Ba="hide.bs.modal",Ua="hover",za="focus",Wa=function(t){bootstrap_esm_inherits(Tooltip,t);var n=bootstrap_esm_createSuper(Tooltip);function Tooltip(t,r){var i;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=n.call(this,t))._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i._config=i._getConfig(r),i.tip=null,i._setListeners(),i}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Fa))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),Gr.off(this._element.closest(qa),Ba,this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=Gr.trigger(this._element,this.constructor.Event.SHOW),n=Dr(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),o=function getUID(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e}(this.constructor.NAME);i.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&i.classList.add(Ma);var a="function"===typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,s=this._getAttachment(a);this._addAttachmentClass(s);var c=this._config.container;Jr(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(c.append(i),Gr.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=vr(this._element,i,this._getPopperConfig(s)),i.classList.add(Fa);var u,l,f=this._resolvePossibleFunction(this._config.customClass);if(f)(u=i.classList).add.apply(u,bootstrap_esm_toConsumableArray(f.split(" ")));if("ontouchstart"in document.documentElement)(l=[]).concat.apply(l,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){Gr.on(e,"mouseover",Ir)}));var p=this.tip.classList.contains(Ma);this._queueCallback((function complete(){var t=e._hoverState;e._hoverState=null,Gr.trigger(e._element,e.constructor.Event.SHOWN),t===Qa&&e._leave(null,e)}),this.tip,p)}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement();if(!Gr.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(t.classList.remove(Fa),"ontouchstart"in document.documentElement)(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Gr.off(e,"mouseover",Ir)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var r=this.tip.classList.contains(Ma);this._queueCallback((function complete(){e._isWithActiveTrigger()||(e._hoverState!==Va&&t.remove(),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),Gr.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))}),this.tip,r),this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var e=document.createElement("div");e.innerHTML=this._config.template;var t=e.children[0];return this.setContent(t),t.classList.remove(Ma,Fa),this.tip=t,this.tip}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".tooltip-inner")}},{key:"_sanitizeAndSetContent",value:function _sanitizeAndSetContent(e,t,n){var r=li.findOne(n,e);t||!r?this.setElementContent(r,t):r.remove()}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return kr(t)?(t=Tr(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function getTitle(){var e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this._config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(e){return"function"===typeof e?e.call(this._element):e}},{key:"_getPopperConfig",value:function _getPopperConfig(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function onFirstUpdate(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},n),"function"===typeof this._config.popperConfig?this._config.popperConfig(n):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(this._getBasicClassPrefix(),"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function _getAttachment(e){return Pa[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)Gr.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Ua?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Ua?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Gr.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),Gr.on(e._element,r,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},Gr.on(this._element.closest(qa),Ba,this._hideModalHandler),this._config.selector?this._config=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var e=this._element.getAttribute("title"),t=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?za:Ua]=!0),t.getTipElement().classList.contains(Fa)||t._hoverState===Va?t._hoverState=Va:(clearTimeout(t._timeout),t._hoverState=Va,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Va&&t.show()}),t._config.delay.show):t.show())}},{key:"_leave",value:function _leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?za:Ua]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Qa,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Qa&&t.hide()}),t._config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function _getConfig(e){var t=ui.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){Na.has(e)&&delete t[e]})),(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).container=!1===e.container?document.body:Tr(e.container),"number"===typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),Cr(Da,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};for(var t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=new RegExp("(^|\\s)".concat(this._getBasicClassPrefix(),"\\S+"),"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-tooltip"}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function get(){return ja}},{key:"NAME",get:function get(){return Da}},{key:"Event",get:function get(){return Ra}},{key:"DefaultType",get:function get(){return La}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tooltip.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(Zr);Rr(Wa);var Ha=".".concat("bs.popover"),Ka=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Wa.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),Ga=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Wa.DefaultType),{},{content:"(string|element|function)"}),Ya={HIDE:"hide".concat(Ha),HIDDEN:"hidden".concat(Ha),SHOW:"show".concat(Ha),SHOWN:"shown".concat(Ha),INSERTED:"inserted".concat(Ha),CLICK:"click".concat(Ha),FOCUSIN:"focusin".concat(Ha),FOCUSOUT:"focusout".concat(Ha),MOUSEENTER:"mouseenter".concat(Ha),MOUSELEAVE:"mouseleave".concat(Ha)};Rr(function(e){bootstrap_esm_inherits(Popover,e);var t=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),t.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}},{key:"_getContent",value:function _getContent(){return this._resolvePossibleFunction(this._config.content)}},{key:"_getBasicClassPrefix",value:function _getBasicClassPrefix(){return"bs-popover"}}],[{key:"Default",get:function get(){return Ka}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return Ya}},{key:"DefaultType",get:function get(){return Ga}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Popover.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(Wa));var Ja="scrollspy",Xa=".".concat("bs.scrollspy"),$a={offset:10,method:"auto",target:""},Za={offset:"number",method:"string",target:"(string|element)"},es="activate".concat(Xa),ts="scroll".concat(Xa),ns="load".concat(Xa).concat(".data-api"),rs="dropdown-item",is="active",os=".nav-link",as=".list-group-item",ss="".concat(os,", ").concat(as,", .").concat(rs),cs="position",us=function(e){bootstrap_esm_inherits(ScrollSpy,e);var t=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(e,n){var r;return bootstrap_esm_classCallCheck(this,ScrollSpy),(r=t.call(this,e))._scrollElement="BODY"===r._element.tagName?window:r._element,r._config=r._getConfig(n),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,Gr.on(r._scrollElement,ts,(function(){return r._process()})),r.refresh(),r._process(),r}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":cs,n="auto"===this._config.method?t:this._config.method,r=n===cs?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),li.find(ss,this._config.target).map((function(e){var t=Er(e),i=t?li.findOne(t):null;if(i){var o=i.getBoundingClientRect();if(o.width||o.height)return[ui[n](i).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function dispose(){Gr.off(this._scrollElement,Xa),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return(e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},$a),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target=Tr(e.target)||document.documentElement,Cr(Ja,e,Za),e}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||e .dropdown-menu .active",t.parentNode);r&&r.classList.remove(ys),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(ys),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),Nr(e),e.classList.contains(vs)&&e.classList.add(gs);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){var o=e.closest(".dropdown");o&&li.find(".dropdown-toggle",o).forEach((function(e){return e.classList.add(ys)})),e.setAttribute("aria-expanded",!0)}n&&n()}}],[{key:"NAME",get:function get(){return"tab"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tab.getOrCreateInstance(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(Zr);Gr.on(document,ms,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){(["A","AREA"].includes(this.tagName)&&e.preventDefault(),xr(this))||Es.getOrCreateInstance(this).show()})),Rr(Es);var ws="toast",Ss=".".concat("bs.toast"),Os="mouseover".concat(Ss),ks="mouseout".concat(Ss),Ts="focusin".concat(Ss),Cs="focusout".concat(Ss),As="hide".concat(Ss),xs="hidden".concat(Ss),Ds="show".concat(Ss),Is="shown".concat(Ss),Ns="hide",Ls="show",Ps="showing",js={animation:"boolean",autohide:"boolean",delay:"number"},Rs={animation:!0,autohide:!0,delay:5e3},Ms=function(e){bootstrap_esm_inherits(Toast,e);var t=bootstrap_esm_createSuper(Toast);function Toast(e,n){var r;return bootstrap_esm_classCallCheck(this,Toast),(r=t.call(this,e))._config=r._getConfig(n),r._timeout=null,r._hasMouseInteraction=!1,r._hasKeyboardInteraction=!1,r._setListeners(),r}return bootstrap_esm_createClass(Toast,[{key:"show",value:function show(){var e=this;if(!Gr.trigger(this._element,Ds).defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Ns),Nr(this._element),this._element.classList.add(Ls),this._element.classList.add(Ps),this._queueCallback((function complete(){e._element.classList.remove(Ps),Gr.trigger(e._element,Is),e._maybeScheduleHide()}),this._element,this._config.animation)}}},{key:"hide",value:function hide(){var e=this;if(this._element.classList.contains(Ls)&&!Gr.trigger(this._element,As).defaultPrevented){this._element.classList.add(Ps),this._queueCallback((function complete(){e._element.classList.add(Ns),e._element.classList.remove(Ps),e._element.classList.remove(Ls),Gr.trigger(e._element,xs)}),this._element,this._config.animation)}}},{key:"dispose",value:function dispose(){this._clearTimeout(),this._element.classList.contains(Ls)&&this._element.classList.remove(Ls),_get(bootstrap_esm_getPrototypeOf(Toast.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=bootstrap_esm_objectSpread(bootstrap_esm_objectSpread(bootstrap_esm_objectSpread({},Rs),ui.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{}),Cr(ws,e,this.constructor.DefaultType),e}},{key:"_maybeScheduleHide",value:function _maybeScheduleHide(){var e=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){e.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function _onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)this._clearTimeout();else{var n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function _setListeners(){var e=this;Gr.on(this._element,Os,(function(t){return e._onInteraction(t,!0)})),Gr.on(this._element,ks,(function(t){return e._onInteraction(t,!1)})),Gr.on(this._element,Ts,(function(t){return e._onInteraction(t,!0)})),Gr.on(this._element,Cs,(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function get(){return js}},{key:"Default",get:function get(){return Rs}},{key:"NAME",get:function get(){return ws}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Toast.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Toast}(Zr);function links_defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{value:0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"counter/incremented":return{value:e.value+1};case"counter/decremented":return{value:e.value-1};default:return e}}});var zs=function configure(){return createStore(Us)}();function importAll(e){return e.keys().map(e)}zs.subscribe((function(){return console.log(zs.getState())})),zs.dispatch({type:"counter/incremented"}),zs.dispatch({type:"counter/incremented"}),zs.dispatch({type:"counter/decremented"});importAll(__webpack_require__(310)),importAll(__webpack_require__(761))}()}(); \ No newline at end of file diff --git a/dist/js/app_sw.js b/dist/js/app_sw.js index b92c00e..9d5655b 100644 --- a/dist/js/app_sw.js +++ b/dist/js/app_sw.js @@ -1 +1 @@ -!function(){var e={857:function(e){e.exports=function log(e){false}},287:function(e){Cache.prototype.add||(Cache.prototype.add=function add(e){return this.addAll([e])}),Cache.prototype.addAll||(Cache.prototype.addAll=function addAll(e){var t=this;function NetworkError(e){this.name="NetworkError",this.code=19,this.message=e}return NetworkError.prototype=Object.create(Error.prototype),Promise.resolve().then((function(){if(arguments.length<1)throw new TypeError;return e=e.map((function(e){return e instanceof Request?e:String(e)})),Promise.all(e.map((function(e){"string"===typeof e&&(e=new Request(e));var t=new URL(e.url).protocol;if("http:"!==t&&"https:"!==t)throw new NetworkError("Invalid scheme");return fetch(e.clone())})))})).then((function(n){return Promise.all(n.map((function(n,r){return t.put(e[r],n)})))})).then((function(){}))}),CacheStorage.prototype.match||(CacheStorage.prototype.match=function match(e,t){var n=this;return this.keys().then((function(r){var o;return r.reduce((function(r,a){return r.then((function(){return o||n.open(a).then((function(n){return n.match(e,t)})).then((function(e){return o=e}))}))}),Promise.resolve())}))}),e.exports=self.caches}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}!function(){var e="".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react","-sw"),t="".concat("4.2.2","-sw"),n=__webpack_require__(857),r=__webpack_require__(287);if("string"!==typeof e)throw new Error("Cache Name cannot be empty");self.addEventListener("fetch",(function(t){if("GET"===t.request.method){var o=new URL(t.request.url);if(o.pathname.indexOf("admin")>=0||o.pathname.indexOf("Security")>=0||o.pathname.indexOf("/dev")>=0)n("SW: skip admin ".concat(t.request.url));else{var a=t.request.clone(),c=t.request.clone();t.respondWith(fetch(a).then((function(n){var o=n.clone();return r.open(e).then((function(e){var n=t.request.clone();e.put(n,o)})),n})).catch((function(e){return n("SW: fetch failed"),r.match(c)})))}}})),self.addEventListener("activate",(function(o){n("SW: activated: ".concat(t)),o.waitUntil(r.delete(e))})),self.addEventListener("install",(function(e){n("SW: installing version: ".concat(t))}))}()}(); \ No newline at end of file +!function(){var e={857:function(e){e.exports=function log(e){false}},287:function(e){Cache.prototype.add||(Cache.prototype.add=function add(e){return this.addAll([e])}),Cache.prototype.addAll||(Cache.prototype.addAll=function addAll(e){var t=this;function NetworkError(e){this.name="NetworkError",this.code=19,this.message=e}return NetworkError.prototype=Object.create(Error.prototype),Promise.resolve().then((function(){if(arguments.length<1)throw new TypeError;return e=e.map((function(e){return e instanceof Request?e:String(e)})),Promise.all(e.map((function(e){"string"===typeof e&&(e=new Request(e));var t=new URL(e.url).protocol;if("http:"!==t&&"https:"!==t)throw new NetworkError("Invalid scheme");return fetch(e.clone())})))})).then((function(n){return Promise.all(n.map((function(n,r){return t.put(e[r],n)})))})).then((function(){}))}),CacheStorage.prototype.match||(CacheStorage.prototype.match=function match(e,t){var n=this;return this.keys().then((function(r){var o;return r.reduce((function(r,a){return r.then((function(){return o||n.open(a).then((function(n){return n.match(e,t)})).then((function(e){return o=e}))}))}),Promise.resolve())}))}),e.exports=self.caches}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}!function(){var e="".concat("@a2nt/ss-bootstrap-ui-webpack-boilerplate-react","-sw"),t="".concat("4.2.3","-sw"),n=__webpack_require__(857),r=__webpack_require__(287);if("string"!==typeof e)throw new Error("Cache Name cannot be empty");self.addEventListener("fetch",(function(t){if("GET"===t.request.method){var o=new URL(t.request.url);if(o.pathname.indexOf("admin")>=0||o.pathname.indexOf("Security")>=0||o.pathname.indexOf("/dev")>=0)n("SW: skip admin ".concat(t.request.url));else{var a=t.request.clone(),c=t.request.clone();t.respondWith(fetch(a).then((function(n){var o=n.clone();return r.open(e).then((function(e){var n=t.request.clone();e.put(n,o)})),n})).catch((function(e){return n("SW: fetch failed"),r.match(c)})))}}})),self.addEventListener("activate",(function(o){n("SW: activated: ".concat(t)),o.waitUntil(r.delete(e))})),self.addEventListener("install",(function(e){n("SW: installing version: ".concat(t))}))}()}(); \ No newline at end of file diff --git a/dist/records.json b/dist/records.json index 85ff008..3632d39 100644 --- a/dist/records.json +++ b/dist/records.json @@ -73,60 +73,6 @@ 898 ] }, - "mini-css-extract-plugin /mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_sass@1.38.0+webpack@5.50.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.8_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/scss/app.scss": [ - { - "chunks": { - "byName": { - "child": 396 - }, - "bySource": { - "0 child": 396 - }, - "usedIds": [ - 396 - ] - }, - "modules": { - "byIdentifier": { - "./node_modules/.pnpm/babel-loader@8.2.2_6a7208b678074d97b8e10779794541f1/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/runtime/api.js": 149, - "./node_modules/.pnpm/babel-loader@8.2.2_6a7208b678074d97b8e10779794541f1/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/runtime/cssWithMappingToString.js": 686, - "./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_sass@1.38.0+webpack@5.50.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.8_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/scss/app.scss": 218 - }, - "usedIds": [ - 149, - 218, - 686 - ] - } - } - ], - "mini-css-extract-plugin /mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_sass@1.38.0+webpack@5.50.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.8_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/scss/test-build.scss": [ - { - "chunks": { - "byName": { - "child": 396 - }, - "bySource": { - "0 child": 396 - }, - "usedIds": [ - 396 - ] - }, - "modules": { - "byIdentifier": { - "./node_modules/.pnpm/babel-loader@8.2.2_6a7208b678074d97b8e10779794541f1/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/runtime/api.js": 149, - "./node_modules/.pnpm/babel-loader@8.2.2_6a7208b678074d97b8e10779794541f1/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use!./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/runtime/cssWithMappingToString.js": 686, - "./node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_sass@1.38.0+webpack@5.50.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./node_modules/.pnpm/@a2nt+meta-lightbox-js@4.0.8_debug@4.3.2/node_modules/@a2nt/meta-lightbox-js/src/scss/test-build.scss": 513 - }, - "usedIds": [ - 149, - 513, - 686 - ] - } - } - ], "mini-css-extract-plugin /mnt/data/srv/dist/repositories/webpack-bootstrap-ui-kit/node_modules/.pnpm/css-loader@6.2.0_webpack@5.50.0/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/.pnpm/resolve-url-loader@4.0.0/node_modules/resolve-url-loader/index.js!./node_modules/.pnpm/sass-loader@12.1.0_sass@1.38.0+webpack@5.50.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/test-build.scss": [ { "chunks": { diff --git a/dist/report.html b/dist/report.html index c5a23a8..0c12a66 100644 --- a/dist/report.html +++ b/dist/report.html @@ -3,7 +3,7 @@ - @a2nt/ss-bootstrap-ui-webpack-boilerplate-react [18 Aug 2021 at 20:37] + @a2nt/ss-bootstrap-ui-webpack-boilerplate-react [18 Aug 2021 at 20:48] diff --git a/src/_graphql/mockServiceWorker.js b/src/_graphql/mockServiceWorker.js index 6e11799..95defbf 100644 --- a/src/_graphql/mockServiceWorker.js +++ b/src/_graphql/mockServiceWorker.js @@ -8,118 +8,118 @@ * - Please do NOT serve this file on production. */ -const INTEGRITY_CHECKSUM = 'f0a916b13c8acc2b526a03a6d26df85f' -const bypassHeaderName = 'x-msw-bypass' -const activeClientIds = new Set() +const INTEGRITY_CHECKSUM = "f0a916b13c8acc2b526a03a6d26df85f"; +const bypassHeaderName = "x-msw-bypass"; +const activeClientIds = new Set(); -self.addEventListener('install', function () { - return self.skipWaiting() -}) +self.addEventListener("install", function () { + return self.skipWaiting(); +}); -self.addEventListener('activate', async function (event) { - return self.clients.claim() -}) +self.addEventListener("activate", async function (event) { + return self.clients.claim(); +}); -self.addEventListener('message', async function (event) { - const clientId = event.source.id +self.addEventListener("message", async function (event) { + const clientId = event.source.id; if (!clientId || !self.clients) { - return + return; } - const client = await self.clients.get(clientId) + const client = await self.clients.get(clientId); if (!client) { - return + return; } - const allClients = await self.clients.matchAll() + const allClients = await self.clients.matchAll(); switch (event.data) { - case 'KEEPALIVE_REQUEST': { + case "KEEPALIVE_REQUEST": { sendToClient(client, { - type: 'KEEPALIVE_RESPONSE', - }) - break + type: "KEEPALIVE_RESPONSE", + }); + break; } - case 'INTEGRITY_CHECK_REQUEST': { + case "INTEGRITY_CHECK_REQUEST": { sendToClient(client, { - type: 'INTEGRITY_CHECK_RESPONSE', + type: "INTEGRITY_CHECK_RESPONSE", payload: INTEGRITY_CHECKSUM, - }) - break + }); + break; } - case 'MOCK_ACTIVATE': { - activeClientIds.add(clientId) + case "MOCK_ACTIVATE": { + activeClientIds.add(clientId); sendToClient(client, { - type: 'MOCKING_ENABLED', + type: "MOCKING_ENABLED", payload: true, - }) - break + }); + break; } - case 'MOCK_DEACTIVATE': { - activeClientIds.delete(clientId) - break + case "MOCK_DEACTIVATE": { + activeClientIds.delete(clientId); + break; } - case 'CLIENT_CLOSED': { - activeClientIds.delete(clientId) + case "CLIENT_CLOSED": { + activeClientIds.delete(clientId); const remainingClients = allClients.filter((client) => { - return client.id !== clientId - }) + return client.id !== clientId; + }); // Unregister itself when there are no more clients if (remainingClients.length === 0) { - self.registration.unregister() + self.registration.unregister(); } - break + break; } } -}) +}); // Resolve the "master" client for the given event. // Client that issues a request doesn't necessarily equal the client // that registered the worker. It's with the latter the worker should // communicate with during the response resolving phase. async function resolveMasterClient(event) { - const client = await self.clients.get(event.clientId) + const client = await self.clients.get(event.clientId); - if (client.frameType === 'top-level') { - return client + if (client.frameType === "top-level") { + return client; } - const allClients = await self.clients.matchAll() + const allClients = await self.clients.matchAll(); return allClients .filter((client) => { // Get only those clients that are currently visible. - return client.visibilityState === 'visible' + return client.visibilityState === "visible"; }) .find((client) => { // Find the client ID that's recorded in the // set of clients that have registered the worker. - return activeClientIds.has(client.id) - }) + return activeClientIds.has(client.id); + }); } async function handleRequest(event, requestId) { - const client = await resolveMasterClient(event) - const response = await getResponse(event, client, requestId) + const client = await resolveMasterClient(event); + const response = await getResponse(event, client, requestId); // Send back the response clone for the "response:*" life-cycle events. // Ensure MSW is active and ready to handle the message, otherwise // this message will pend indefinitely. if (client && activeClientIds.has(client.id)) { - ;(async function () { - const clonedResponse = response.clone() + (async function () { + const clonedResponse = response.clone(); sendToClient(client, { - type: 'RESPONSE', + type: "RESPONSE", payload: { requestId, type: clonedResponse.type, @@ -131,21 +131,21 @@ async function handleRequest(event, requestId) { headers: serializeHeaders(clonedResponse.headers), redirected: clonedResponse.redirected, }, - }) - })() + }); + })(); } - return response + return response; } async function getResponse(event, client, requestId) { - const { request } = event - const requestClone = request.clone() - const getOriginalResponse = () => fetch(requestClone) + const { request } = event; + const requestClone = request.clone(); + const getOriginalResponse = () => fetch(requestClone); // Bypass mocking when the request client is not active. if (!client) { - return getOriginalResponse() + return getOriginalResponse(); } // Bypass initial page load requests (i.e. static assets). @@ -153,29 +153,29 @@ async function getResponse(event, client, requestId) { // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet // and is not ready to handle requests. if (!activeClientIds.has(client.id)) { - return await getOriginalResponse() + return await getOriginalResponse(); } // Bypass requests with the explicit bypass header - if (requestClone.headers.get(bypassHeaderName) === 'true') { - const cleanRequestHeaders = serializeHeaders(requestClone.headers) + if (requestClone.headers.get(bypassHeaderName) === "true") { + const cleanRequestHeaders = serializeHeaders(requestClone.headers); // Remove the bypass header to comply with the CORS preflight check. - delete cleanRequestHeaders[bypassHeaderName] + delete cleanRequestHeaders[bypassHeaderName]; const originalRequest = new Request(requestClone, { headers: new Headers(cleanRequestHeaders), - }) + }); - return fetch(originalRequest) + return fetch(originalRequest); } // Send the request to the client-side MSW. - const reqHeaders = serializeHeaders(request.headers) - const body = await request.text() + const reqHeaders = serializeHeaders(request.headers); + const body = await request.text(); const clientMessage = await sendToClient(client, { - type: 'REQUEST', + type: "REQUEST", payload: { id: requestId, url: request.url, @@ -193,31 +193,31 @@ async function getResponse(event, client, requestId) { bodyUsed: request.bodyUsed, keepalive: request.keepalive, }, - }) + }); switch (clientMessage.type) { - case 'MOCK_SUCCESS': { + case "MOCK_SUCCESS": { return delayPromise( () => respondWithMock(clientMessage), - clientMessage.payload.delay, - ) + clientMessage.payload.delay + ); } - case 'MOCK_NOT_FOUND': { - return getOriginalResponse() + case "MOCK_NOT_FOUND": { + return getOriginalResponse(); } - case 'NETWORK_ERROR': { - const { name, message } = clientMessage.payload - const networkError = new Error(message) - networkError.name = name + case "NETWORK_ERROR": { + const { name, message } = clientMessage.payload; + const networkError = new Error(message); + networkError.name = name; // Rejecting a request Promise emulates a network error. - throw networkError + throw networkError; } - case 'INTERNAL_ERROR': { - const parsedBody = JSON.parse(clientMessage.payload.body) + case "INTERNAL_ERROR": { + const parsedBody = JSON.parse(clientMessage.payload.body); console.error( `\ @@ -228,54 +228,54 @@ ${parsedBody.location} This exception has been gracefully handled as a 500 response, however, it's strongly recommended to resolve this error, as it indicates a mistake in your code. If you wish to mock an error response, please see this guide: https://mswjs.io/docs/recipes/mocking-error-responses\ `, request.method, - request.url, - ) + request.url + ); - return respondWithMock(clientMessage) + return respondWithMock(clientMessage); } } - return getOriginalResponse() + return getOriginalResponse(); } -self.addEventListener('fetch', function (event) { - const { request } = event - const accept = request.headers.get('accept') || '' +self.addEventListener("fetch", function (event) { + const { request } = event; + const accept = request.headers.get("accept") || ""; // Bypass server-sent events. - if (accept.includes('text/event-stream')) { - return + if (accept.includes("text/event-stream")) { + return; } // Bypass navigation requests. - if (request.mode === 'navigate') { - return + if (request.mode === "navigate") { + return; } // Opening the DevTools triggers the "only-if-cached" request // that cannot be handled by the worker. Bypass such requests. - if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') { - return + if (request.cache === "only-if-cached" && request.mode !== "same-origin") { + return; } // Bypass all requests when there are no active clients. // Prevents the self-unregistered worked from handling requests // after it's been deleted (still remains active until the next reload). if (activeClientIds.size === 0) { - return + return; } - const requestId = uuidv4() + const requestId = uuidv4(); return event.respondWith( handleRequest(event, requestId).catch((error) => { - if (error.name === 'NetworkError') { + if (error.name === "NetworkError") { console.warn( '[MSW] Successfully emulated a network error for the "%s %s" request.', request.method, - request.url, - ) - return + request.url + ); + return; } // At this point, any exception indicates an issue with the original request/response. @@ -284,55 +284,55 @@ self.addEventListener('fetch', function (event) { [MSW] Caught an exception from the "%s %s" request (%s). This is probably not a problem with Mock Service Worker. There is likely an additional logging output above.`, request.method, request.url, - `${error.name}: ${error.message}`, - ) - }), - ) -}) + `${error.name}: ${error.message}` + ); + }) + ); +}); function serializeHeaders(headers) { - const reqHeaders = {} + const reqHeaders = {}; headers.forEach((value, name) => { reqHeaders[name] = reqHeaders[name] ? [].concat(reqHeaders[name]).concat(value) - : value - }) - return reqHeaders + : value; + }); + return reqHeaders; } function sendToClient(client, message) { return new Promise((resolve, reject) => { - const channel = new MessageChannel() + const channel = new MessageChannel(); channel.port1.onmessage = (event) => { if (event.data && event.data.error) { - return reject(event.data.error) + return reject(event.data.error); } - resolve(event.data) - } + resolve(event.data); + }; - client.postMessage(JSON.stringify(message), [channel.port2]) - }) + client.postMessage(JSON.stringify(message), [channel.port2]); + }); } function delayPromise(cb, duration) { return new Promise((resolve) => { - setTimeout(() => resolve(cb()), duration) - }) + setTimeout(() => resolve(cb()), duration); + }); } function respondWithMock(clientMessage) { return new Response(clientMessage.payload.body, { ...clientMessage.payload, headers: clientMessage.payload.headers, - }) + }); } function uuidv4() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { - const r = (Math.random() * 16) | 0 - const v = c == 'x' ? r : (r & 0x3) | 0x8 - return v.toString(16) - }) + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { + const r = (Math.random() * 16) | 0; + const v = c == "x" ? r : (r & 0x3) | 0x8; + return v.toString(16); + }); } diff --git a/src/html/Elements/Accordion.html b/src/html/Elements/Accordion.html index db486eb..512b38e 100644 --- a/src/html/Elements/Accordion.html +++ b/src/html/Elements/Accordion.html @@ -1,66 +1,101 @@

Accordion demo

-
- Some content ... -
-
-
-

- -

-
-
- This is the first item's accordion body. It is - hidden by default, until the collapse plugin adds the - appropriate classes that we use to style each element. These - classes control the overall appearance, as well as the showing - and hiding via CSS transitions. You can modify any of this with - custom CSS or overriding our default variables. It's also worth - noting that just about any HTML can go within the - .accordion-body, though the transition does limit - overflow. -
-
-
-
-

- -

-
-
- This is the second item's accordion body. It is - hidden by default, until the collapse plugin adds the - appropriate classes that we use to style each element. These - classes control the overall appearance, as well as the showing - and hiding via CSS transitions. You can modify any of this with - custom CSS or overriding our default variables. It's also worth - noting that just about any HTML can go within the - .accordion-body, though the transition does limit - overflow. -
-
-
-
-

- -

-
-
- This is the third item's accordion body. It is - hidden by default, until the collapse plugin adds the - appropriate classes that we use to style each element. These - classes control the overall appearance, as well as the showing - and hiding via CSS transitions. You can modify any of this with - custom CSS or overriding our default variables. It's also worth - noting that just about any HTML can go within the - .accordion-body, though the transition does limit - overflow. -
-
-
+
Some content ...
+
+
+

+ +

+
+
+ This is the first item's accordion body. It is hidden + by default, until the collapse plugin adds the appropriate classes that + we use to style each element. These classes control the overall + appearance, as well as the showing and hiding via CSS transitions. You + can modify any of this with custom CSS or overriding our default + variables. It's also worth noting that just about any HTML can go within + the .accordion-body, though the transition does limit + overflow. +
+
+
+
+

+ +

+
+
+ This is the second item's accordion body. It is hidden + by default, until the collapse plugin adds the appropriate classes that + we use to style each element. These classes control the overall + appearance, as well as the showing and hiding via CSS transitions. You + can modify any of this with custom CSS or overriding our default + variables. It's also worth noting that just about any HTML can go within + the .accordion-body, though the transition does limit + overflow. +
+
+
+
+

+ +

+
+
+ This is the third item's accordion body. It is hidden + by default, until the collapse plugin adds the appropriate classes that + we use to style each element. These classes control the overall + appearance, as well as the showing and hiding via CSS transitions. You + can modify any of this with custom CSS or overriding our default + variables. It's also worth noting that just about any HTML can go within + the .accordion-body, though the transition does limit + overflow. +
+
+
diff --git a/src/html/Elements/Content.html b/src/html/Elements/Content.html index d411e10..124b360 100644 --- a/src/html/Elements/Content.html +++ b/src/html/Elements/Content.html @@ -1,165 +1,167 @@
-

Content Demo

-
-

Quick start

-
    -
  1. -

    Clone quick start repository

    -
    -git clone https://github.com/a2nt/webpack-bootstrap-ui-kit-quick-start.git
    -
  2. -
  3. -

    Install npm packages

    -
    +  

    Content Demo

    +
    +

    Quick start

    +
      +
    1. +

      Clone quick start repository

      +
      +git clone https://github.com/a2nt/webpack-bootstrap-ui-kit-quick-start.git
      +
    2. +
    3. +

      Install npm packages

      +
       				cd ./webpack-bootstrap-ui-kit-quick-start.git
       				npm install
      -			
      -
    4. -
    5. -

      Edit ./src files

      -
    6. -
    7. -

      Start development server at https://127.0.0.1:8001/:

      -
      yarn start
      -

      Compile:

      -
      yarn build
      -
    8. -
    -

    - Header #2 - -

    +
    +
  4. +
  5. +

    Edit ./src files

    +
  6. +
  7. +

    Start development server at https://127.0.0.1:8001/:

    +
    yarn start
    +

    Compile:

    +
    yarn build
    +
  8. +
+

+ Header #2 + +

+

+ Test ImageContent Text Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum has been the industry's standard dummy + text ever since the 1500s, when an unknown printer took a galley of type + and scrambled it to make a type specimen book. It has survived not only + five centuries, but also the leap into electronic typesetting, remaining + essentially unchanged. It was popularised in the 1960s with the release of + Letraset sheets containing Lorem Ipsum passages, and more recently with + desktop publishing software like Aldus PageMaker including versions of + Lorem Ipsum. +

+
    +
  1. + First +
      +
    • First
    • +
    • + Second +
        +
      1. First
      2. +
      3. Second
      4. +
      5. Third
      6. +
      +
        +
      • First
      • +
      • Second
      • +
      • Third
      • +
      +
    • +
    • +

      + Content Text Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum has been the industry's standard + dummy text ever since the 1500s, when an unknown printer took a + galley of type and scrambled it to make a type specimen book. It + has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was + popularised in the 1960s with the release of Letraset sheets + containing Lorem Ipsum passages, and more recently with desktop + publishing software like Aldus PageMaker including versions of + Lorem Ipsum. +

      +
    • +
    +
  2. +
  3. +

    {paragraph} Second

    +

    {paragraph} Second #2

    +
  4. +
  5. - Test ImageContent Text Lorem Ipsum is simply dummy text of the printing and - typesetting industry. Lorem Ipsum has been the industry's standard - dummy text ever since the 1500s, when an unknown printer took a - galley of type and scrambled it to make a type specimen book. It has - survived not only five centuries, but also the leap into electronic - typesetting, remaining essentially unchanged. It was popularised in - the 1960s with the release of Letraset sheets containing Lorem Ipsum - passages, and more recently with desktop publishing software like - Aldus PageMaker including versions of Lorem Ipsum. + Content Text Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum has been the industry's standard + dummy text ever since the 1500s, when an unknown printer took a galley + of type and scrambled it to make a type specimen book. It has survived + not only five centuries, but also the leap into electronic + typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum + passages, and more recently with desktop publishing software like + Aldus PageMaker including versions of Lorem Ipsum.

    -
      -
    1. - First -
        -
      • First
      • -
      • - Second -
          -
        1. First
        2. -
        3. Second
        4. -
        5. Third
        6. -
        -
          -
        • First
        • -
        • Second
        • -
        • Third
        • -
        -
      • -
      • -

        - Content Text Lorem Ipsum is simply dummy text of the - printing and typesetting industry. Lorem Ipsum has - been the industry's standard dummy text ever since - the 1500s, when an unknown printer took a galley of - type and scrambled it to make a type specimen book. - It has survived not only five centuries, but also - the leap into electronic typesetting, remaining - essentially unchanged. It was popularised in the - 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop - publishing software like Aldus PageMaker including - versions of Lorem Ipsum. -

        -
      • -
      -
    2. -
    3. -

      {paragraph} Second

      -

      {paragraph} Second #2

      -
    4. -
    5. -

      - Content Text Lorem Ipsum is simply dummy text of the - printing and typesetting industry. Lorem Ipsum has been the - industry's standard dummy text ever since the 1500s, when an - unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five - centuries, but also the leap into electronic typesetting, - remaining essentially unchanged. It was popularised in the - 1960s with the release of Letraset sheets containing Lorem - Ipsum passages, and more recently with desktop publishing - software like Aldus PageMaker including versions of Lorem - Ipsum. -

      -
    6. -
    -

    Responsive Table #1: Default

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Header #1Header #2Header #3
    #1-1#1-2#1-3
    #2-1#2-2#2-3
    #3-1#3-2#3-3
    -

    - Content Text Lorem Ipsum is simply dummy text of the printing and - typesetting industry. Lorem Ipsum has been the industry's standard - dummy text ever since the 1500s, when an unknown printer took a - galley of type and scrambled it to make a type specimen book. It has - survived not only five centuries, but also the leap into electronic - typesetting, remaining essentially unchanged. It was popularised in - the 1960s with the release of Letraset sheets containing Lorem Ipsum - passages, and more recently with desktop publishing software like - Aldus PageMaker including versions of Lorem Ipsum. -

    -

    Responsive Table #2: Border-less

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    Header #1Header #2Header #3
    #1-1#1-2#1-3
    #2-1#2-2#2-3
    #3-1#3-2#3-3
    -
+ + +

Responsive Table #1: Default

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Header #1Header #2Header #3
#1-1#1-2#1-3
#2-1#2-2#2-3
#3-1#3-2#3-3
+

+ Content Text Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum has been the industry's standard dummy + text ever since the 1500s, when an unknown printer took a galley of type + and scrambled it to make a type specimen book. It has survived not only + five centuries, but also the leap into electronic typesetting, remaining + essentially unchanged. It was popularised in the 1960s with the release of + Letraset sheets containing Lorem Ipsum passages, and more recently with + desktop publishing software like Aldus PageMaker including versions of + Lorem Ipsum. +

+

Responsive Table #2: Border-less

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Header #1Header #2Header #3
#1-1#1-2#1-3
#2-1#2-2#2-3
#3-1#3-2#3-3
+
diff --git a/src/html/Elements/ElementsList.html b/src/html/Elements/ElementsList.html index a3846a4..38aaa9c 100644 --- a/src/html/Elements/ElementsList.html +++ b/src/html/Elements/ElementsList.html @@ -1,42 +1,64 @@

Content Header

-
- Some content ... -
+
Some content ...
-
-
-
-
- Some kind image -
-
+
+
+
+
+ Some kind image
+
-
-
-
-
- Some kind image -
-
+
+
+
+
+
+ Some kind image
+
-
-
-
-
- Some kind image -
-
+
+
+
+
+
+ Some kind image
+
-
-
-
-
- Some kind image -
-
+
+
+
+
+
+ Some kind image
+
+
diff --git a/src/html/Elements/Map.html b/src/html/Elements/Map.html index e43c6cd..cacd74e 100644 --- a/src/html/Elements/Map.html +++ b/src/html/Elements/Map.html @@ -1,59 +1,75 @@

Find Location

-

Use _consts.js to change Google Maps to Mapbox.

+

Use _consts.js to change Google Maps to Mapbox.

-
+ class="mapAPI-map-container" + data-map-zoom="12" + data-key="" + data-map-style="mapbox://styles/mapbox/streets-v9" + data-geojson='{"type":"MarkerCollection","features":[{"id":4,"type":"Feature","icon":"<i class=\"fas fa-map-marker-alt\"><\/i>","properties":{"content":"<div id=\"MapPin4\" data-id=\"4\" class=\"location\">\n <div class=\"fn\">Office #1<\/div>\n <div class=\"addr\">17 Lakeside Drive<\/div>\n \n \n \n <div class=\"d-none\"> U<\/div>\n \n \n \n <div class=\"dir-link\">\n <a href=\"https:\/\/www.google.com\/maps\/dir\/Current+Location\/40.8827743,-74.4276612\" target=\"_blank\">Get Directions &raquo;<\/a>\n <\/div>\n<\/div>\n"},"geometry":{"type":"Point","coordinates":[-74.4276612,40.8827743]}},{"id":3,"type":"Feature","icon":"<i class=\"fas fa-map-marker-alt\"><\/i>","properties":{"content":"<div id=\"MapPin3\" data-id=\"3\" class=\"location\">\n <div class=\"fn\">Office #2<\/div>\n <div class=\"addr\">Flower Hill Cemetery<\/div>\n \n \n \n <div class=\"d-none\"> N<\/div>\n \n \n \n <div class=\"dir-link\">\n <a href=\"https:\/\/www.google.com\/maps\/dir\/Current+Location\/40.7884708,-74.0249253\" target=\"_blank\">Get Directions &raquo;<\/a>\n <\/div>\n<\/div>\n"},"geometry":{"type":"Point","coordinates":[-74.0249253,40.7884708]}},{"id":2,"type":"Feature","icon":"<i class=\"fas fa-map-marker-alt\"><\/i>","properties":{"content":"<div id=\"MapPin2\" data-id=\"2\" class=\"location\">\n <div class=\"fn\">Office #3<\/div>\n <div class=\"addr\">555 Phoenix Road<\/div>\n \n \n \n <div class=\"d-none\"> U<\/div>\n \n \n \n <div class=\"dir-link\">\n <a href=\"https:\/\/www.google.com\/maps\/dir\/Current+Location\/40.8527479,-78.2475576\" target=\"_blank\">Get Directions &raquo;<\/a>\n <\/div>\n<\/div>\n"},"geometry":{"type":"Point","coordinates":[-78.2475576,40.8527479]}},{"id":1,"type":"Feature","icon":"<i class=\"fas fa-map-marker-alt\"><\/i>","properties":{"content":"<div id=\"MapPin1\" data-id=\"1\" class=\"location\">\n <div class=\"fn\">Office #4<\/div>\n <div class=\"addr\">15 East Hadley Road<\/div>\n \n \n \n <div class=\"d-none\"> U<\/div>\n \n \n \n <div class=\"dir-link\">\n <a href=\"https:\/\/www.google.com\/maps\/dir\/Current+Location\/42.3297023,-72.5552186\" target=\"_blank\">Get Directions &raquo;<\/a>\n <\/div>\n<\/div>\n"},"geometry":{"type":"Point","coordinates":[-72.5552186,42.3297023]}}]}' + data-fly-to-marker="true" + data-fly-to-bounds="false" +> +
-
-
-
-
Office #1
-
17 Lakeside Drive
-
U
- -
-
-
-
-
Office #2
-
Flower Hill Cemetery
-
N
- -
-
-
-
-
Office #3
-
555 Phoenix Road
-
U
- -
-
-
-
-
Office #4
-
15 East Hadley Road
-
U
- -
-
-
-
\ No newline at end of file +
+
+
+
Office #1
+
17 Lakeside Drive
+
U
+ +
+
+
+
+
Office #2
+
Flower Hill Cemetery
+
N
+ +
+
+
+
+
Office #3
+
555 Phoenix Road
+
U
+ +
+
+
+
+
Office #4
+
15 East Hadley Road
+
U
+ +
+
+
+
diff --git a/src/html/First.html b/src/html/First.html index f3348a8..f51b093 100644 --- a/src/html/First.html +++ b/src/html/First.html @@ -1,2 +1,2 @@ -
\ No newline at end of file +
diff --git a/src/html/Footer.html b/src/html/Footer.html index e5468bd..2214bf3 100644 --- a/src/html/Footer.html +++ b/src/html/Footer.html @@ -1,50 +1,38 @@
-
-
-
- Col #1 -
-
- Col #2 -
-
- Col #3 -
-
- Col #4 -
-
-
+
+
+
Col #1
+
Col #2
+
Col #3
+
Col #4
+
+
diff --git a/src/html/Head.html b/src/html/Head.html index a6f74fb..5308e21 100644 --- a/src/html/Head.html +++ b/src/html/Head.html @@ -1,7 +1,7 @@ diff --git a/src/html/Last.html b/src/html/Last.html index e4bc234..7a027fb 100644 --- a/src/html/Last.html +++ b/src/html/Last.html @@ -6,8 +6,8 @@ href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" / --> diff --git a/src/html/Navigation.html b/src/html/Navigation.html index 9bd5f34..67d94ca 100644 --- a/src/html/Navigation.html +++ b/src/html/Navigation.html @@ -1,114 +1,103 @@ diff --git a/src/html/Slider.html b/src/html/Slider.html index 6aab64e..7944d02 100644 --- a/src/html/Slider.html +++ b/src/html/Slider.html @@ -1,65 +1,106 @@ -' ); //$el.append(ui.inputData); - ui.uploadCropWrap = $el.find('.cropper-wrap'); - ui.uploadCrop = ui.uploadCropWrap.find('.cropper-container'); + ui.uploadCropWrap = $el.find(".cropper-wrap"); + ui.uploadCrop = ui.uploadCropWrap.find(".cropper-container"); const ratio = ui.width / (ui.uploadCrop.width() - 32); ui.uploadCrop.croppie({ @@ -63,24 +63,24 @@ const CroppieUI = (($) => { ui.uploadCrop.hide(); - ui.input.on('change', (e) => { + ui.input.on("change", (e) => { this.readFile(e.currentTarget); }); - ui.$btnRemove = $el.find('.btn-remove'); - ui.$btnRemove.on('click', (e) => { + ui.$btnRemove = $el.find(".btn-remove"); + ui.$btnRemove.on("click", (e) => { e.preventDefault(); - ui.uploadCrop.removeClass('ready'); - $el.find('.croppie-image').remove(); + ui.uploadCrop.removeClass("ready"); + $el.find(".croppie-image").remove(); - ui.$el.find('input[type="file"]').val(''); + ui.$el.find('input[type="file"]').val(""); ui.$el.find('input[type="file"]').change(); ui.uploadCropWrap.hide(); }); - if (ui.$el.find('img.croppie-image').length) { + if (ui.$el.find("img.croppie-image").length) { ui.$btnRemove.show(); } } @@ -88,14 +88,14 @@ const CroppieUI = (($) => { readFile(input) { const ui = this; const $el = ui.$el; - const $form = $el.closest('form'); + const $form = $el.closest("form"); if (input.files && input.files[0]) { const reader = new FileReader(); reader.onload = (e) => { - ui.uploadCrop.addClass('ready'); - ui.uploadCrop.croppie('bind', { + ui.uploadCrop.addClass("ready"); + ui.uploadCrop.croppie("bind", { url: e.target.result, }); @@ -106,56 +106,56 @@ const CroppieUI = (($) => { reader.readAsDataURL(input.files[0]); - $form.off('submit'); - $form.on('submit', (e) => { + $form.off("submit"); + $form.on("submit", (e) => { console.log(`${NAME}: Processing submission ...`); e.preventDefault(); - if ($form.data('locked')) { - console.warn(`${NAME}: Form#${$form.attr('id')} is locked.`); + if ($form.data("locked")) { + console.warn(`${NAME}: Form#${$form.attr("id")} is locked.`); return false; } - $form.data('locked', true); + $form.data("locked", true); SpinnerUI.show(); - if (!ui.uploadCrop.hasClass('ready')) { + if (!ui.uploadCrop.hasClass("ready")) { return true; } ui.uploadCrop - .croppie('result', { - type: 'blob', + .croppie("result", { + type: "blob", size: { width: ui.width, height: ui.height, }, - format: 'png', + format: "png", }) .then((blob) => { const form = e.currentTarget; const data = new FormData(form); - const name = $(input).attr('name'); + const name = $(input).attr("name"); - data.delete('BackURL'); + data.delete("BackURL"); data.delete(name); data.append(name, blob, `${name}-image.png`); - data.append('ajax', '1'); + data.append("ajax", "1"); - if (!$(form).data('jsFormValidate').validate()) { + if (!$(form).data("jsFormValidate").validate()) { return false; } $.ajax({ - url: $(form).attr('action'), + url: $(form).attr("action"), data, processData: false, contentType: false, - type: $(form).attr('method'), + type: $(form).attr("method"), success: function (data) { - $form.data('locked', false); + $form.data("locked", false); let IS_JSON = false; let json = {}; @@ -167,39 +167,39 @@ const CroppieUI = (($) => { } if (IS_JSON) { - if (typeof json['status'] !== 'undefined') { - if (json['status'] === 'success') { - MainUI.alert(json['message'], json['status']); + if (typeof json["status"] !== "undefined") { + if (json["status"] === "success") { + MainUI.alert(json["message"], json["status"]); - if (typeof json['link'] !== 'undefined') { + if (typeof json["link"] !== "undefined") { console.log( - `${NAME}: Finished submission > JSON ... Redirecting to ${json['link']}.`, + `${NAME}: Finished submission > JSON ... Redirecting to ${json["link"]}.` ); setTimeout(() => { - G.location = json['link']; + G.location = json["link"]; }, 2000); } else { console.warn( - `${NAME}: Finished submission > JSON no redirect link.`, + `${NAME}: Finished submission > JSON no redirect link.` ); } - } else if (json['status'] === 'error') { - MainUI.alert(json['message'], json['status']); + } else if (json["status"] === "error") { + MainUI.alert(json["message"], json["status"]); } } - if (typeof json['form'] !== 'undefined') { + if (typeof json["form"] !== "undefined") { console.log( - `${NAME}: Finished submission > JSON. Got new form response.`, + `${NAME}: Finished submission > JSON. Got new form response.` ); - $(form).replaceWith(json['form']); + $(form).replaceWith(json["form"]); $(G).trigger(Events.AJAX); } } else { console.log( - `${NAME}: Finished submission > DATA response.`, + `${NAME}: Finished submission > DATA response.` ); $(form).replaceWith(data); @@ -216,7 +216,7 @@ const CroppieUI = (($) => { }); } else { console.log( - `${NAME}: Sorry - your browser doesn't support the FileReader API.`, + `${NAME}: Sorry - your browser doesn't support the FileReader API.` ); } } @@ -249,7 +249,7 @@ const CroppieUI = (($) => { // auto-apply $(window).on(`${NAME}.init ${Events.AJAX} ${Events.LOADED}`, () => { - $('.field.croppie').jsCroppieUI(); + $(".field.croppie").jsCroppieUI(); }); return CroppieUI; diff --git a/src/js_old/_components/_ui.form.datetime.js b/src/js_old/_components/_ui.form.datetime.js index ae27ddd..d9da190 100644 --- a/src/js_old/_components/_ui.form.datetime.js +++ b/src/js_old/_components/_ui.form.datetime.js @@ -1,19 +1,19 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from '../_events'; +import Events from "../_events"; -import 'bootstrap-datepicker/dist/js/bootstrap-datepicker.js'; -import 'bootstrap-timepicker/js/bootstrap-timepicker.js'; +import "bootstrap-datepicker/dist/js/bootstrap-datepicker.js"; +import "bootstrap-timepicker/js/bootstrap-timepicker.js"; const DatetimeUI = (($) => { // Constants const W = window; const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'jsDatetimeUI'; + const NAME = "jsDatetimeUI"; const DATA_KEY = NAME; const datepickerOptions = { @@ -34,56 +34,56 @@ const DatetimeUI = (($) => { ui._el = el; // datepicker - if ($el.hasClass('date') || $el.attr('type') === 'date') { + if ($el.hasClass("date") || $el.attr("type") === "date") { const defaultDate = - $el.attr('name').toLowerCase().indexOf('end') !== -1 ? '+4d' : '+3d'; + $el.attr("name").toLowerCase().indexOf("end") !== -1 ? "+4d" : "+3d"; - $el.attr('readonly', 'true'); + $el.attr("readonly", "true"); $el.datepicker( $.extend( datepickerOptions, { defaultViewDate: defaultDate, - multidate: $el.data('multidate'), + multidate: $el.data("multidate"), }, - $el.data(), - ), + $el.data() + ) ); } // timepicker - else if ($el.hasClass('time') || $el.attr('type') === 'time') { - $el.attr('readonly', 'true'); + else if ($el.hasClass("time") || $el.attr("type") === "time") { + $el.attr("readonly", "true"); $el .timepicker( $.extend( { snapToStep: true, icons: { - up: 'fas fa-chevron-up', - down: 'fas fa-chevron-down', + up: "fas fa-chevron-up", + down: "fas fa-chevron-down", }, }, - $el.data(), - ), + $el.data() + ) ) - .on('show.timepicker', (e) => { + .on("show.timepicker", (e) => { const $el = $(e.currentTarget); - const $dropdown = $Body.find('.bootstrap-timepicker-widget'); + const $dropdown = $Body.find(".bootstrap-timepicker-widget"); if (!$dropdown.find('[data-action="clear"]').length) { $dropdown - .find('tbody') + .find("tbody") .append( - 'Clear', + 'Clear' ); } const $clearBtn = $dropdown.find('[data-action="clear"]'); - $clearBtn.on('click', (e) => { + $clearBtn.on("click", (e) => { e.preventDefault(); - $el.timepicker('clear'); - $el.timepicker('hideWidget'); + $el.timepicker("clear"); + $el.timepicker("hideWidget"); }); }); } @@ -118,7 +118,7 @@ const DatetimeUI = (($) => { // auto-apply $(window).on(`${NAME}.init ${Events.AJAX} ${Events.LOADED}`, () => { $( - 'input.date, input.time,input[type="date"], input[type="time"]', + 'input.date, input.time,input[type="date"], input[type="time"]' ).jsDatetimeUI(); }); diff --git a/src/js_old/_components/_ui.form.fields.js b/src/js_old/_components/_ui.form.fields.js index 3bc88ba..aa0ff4b 100644 --- a/src/js_old/_components/_ui.form.fields.js +++ b/src/js_old/_components/_ui.form.fields.js @@ -1,13 +1,13 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const FormFieldUI = (($) => { // Constants - const NAME = 'jsFormFieldUI'; + const NAME = "jsFormFieldUI"; const DATA_KEY = NAME; - const $Html = $('html, body'); + const $Html = $("html, body"); class FormFieldUI { constructor(el) { @@ -21,23 +21,23 @@ const FormFieldUI = (($) => { ui.vals = { val: ui.$el.val(), - checked: ui.$el.is(':checked'), + checked: ui.$el.is(":checked"), }; // bootstrap collapse integration - ui.$el.parents('.optionset').not('.field').removeClass('collapse'); + ui.$el.parents(".optionset").not(".field").removeClass("collapse"); ui.$collapse = ui.$el - .parents('.field.collapse') - .not('.composite') + .parents(".field.collapse") + .not(".composite") .first(); if (ui.$collapse.length) { - ui.$el.removeClass('collapse'); + ui.$el.removeClass("collapse"); - ui.$collapse.on('show.bs.collapse', (e) => { + ui.$collapse.on("show.bs.collapse", (e) => { ui.show(); }); - ui.$collapse.on('hidden.bs.collapse', (e) => { + ui.$collapse.on("hidden.bs.collapse", (e) => { ui.hide(); }); } @@ -98,29 +98,29 @@ const FormFieldUI = (($) => { const $el = ui.$el; ui.vals = { - name: $el.attr('name'), + name: $el.attr("name"), val: $el.val(), - checked: $el.is(':checked'), + checked: $el.is(":checked"), }; - $el.val(''); - $el.prop('checked', false); + $el.val(""); + $el.prop("checked", false); } restore() { const ui = this; const $el = ui.$el; - const checked = ui.vals['checked']; + const checked = ui.vals["checked"]; - $el.val(ui.vals['val']); - $el.prop('checked', checked); + $el.val(ui.vals["val"]); + $el.prop("checked", checked); } addMessage(msg, type = null, scrollTo = true) { const ui = this; - const $field = ui.$el.closest('.field'); + const $field = ui.$el.closest(".field"); - $field.addClass('has-message'); + $field.addClass("has-message"); if (msg) { $field.append(`
${msg}
`); } @@ -134,10 +134,10 @@ const FormFieldUI = (($) => { removeMessages() { const ui = this; - const $field = ui.$el.closest('.field'); + const $field = ui.$el.closest(".field"); - $field.removeClass('has-message'); - $field.find('.message').remove(); + $field.removeClass("has-message"); + $field.find(".message").remove(); } static _jQueryInterface() { diff --git a/src/js_old/_components/_ui.form.fields.toggle.js b/src/js_old/_components/_ui.form.fields.toggle.js index f7e3af5..066e8ca 100644 --- a/src/js_old/_components/_ui.form.fields.toggle.js +++ b/src/js_old/_components/_ui.form.fields.toggle.js @@ -1,17 +1,17 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; -import FormBasics from './_ui.form.basics'; +import FormBasics from "./_ui.form.basics"; const FormToggleUI = (($) => { // Constants - const NAME = 'jsFormToggleUI'; + const NAME = "jsFormToggleUI"; const DATA_KEY = NAME; const W = window; - const $Html = $('html, body'); - const FieldUI = 'jsFormFieldUI'; + const $Html = $("html, body"); + const FieldUI = "jsFormFieldUI"; class FormToggleUI { constructor($el) { @@ -40,31 +40,31 @@ const FormToggleUI = (($) => { const $el = ui.$el; return $el.is('[type="radio"],[type="checkbox"]') && - $el.parents('.optionset,.checkboxset').length - ? $el.parents('.optionset,.checkboxset') + $el.parents(".optionset,.checkboxset").length + ? $el.parents(".optionset,.checkboxset") : $el; } getCondition() { const ui = this; - return ui.getDataEl().data('value-toggle'); + return ui.getDataEl().data("value-toggle"); } getCurrentVal() { const ui = this; const $el = ui.$el; - if ($el.attr('type') === 'checkbox') { - if ($el.parents('.checkboxset').length && $el.is(':checked')) { + if ($el.attr("type") === "checkbox") { + if ($el.parents(".checkboxset").length && $el.is(":checked")) { return $el.val(); } - return $el.is(':checked') ? true : false; + return $el.is(":checked") ? true : false; } - if ($el.attr('type') === 'radio') { - return $Html.find(`[name="${$el.attr('name')}"]:checked`).val(); + if ($el.attr("type") === "radio") { + return $Html.find(`[name="${$el.attr("name")}"]:checked`).val(); } return $el.val(); @@ -75,9 +75,9 @@ const FormToggleUI = (($) => { const $dataEl = ui.getDataEl(); // compatibility params - const target = $dataEl.data('value-toggle-yes'); + const target = $dataEl.data("value-toggle-yes"); if (!target || !target.length) { - return ui.getElement($dataEl.data('target')); + return ui.getElement($dataEl.data("target")); } return ui.getElement(target); @@ -88,9 +88,9 @@ const FormToggleUI = (($) => { const $dataEl = ui.getDataEl(); // compatibility params - const target = $dataEl.data('value-toggle-no'); + const target = $dataEl.data("value-toggle-no"); if (!target || !target.length) { - return ui.getElement($dataEl.data('value-toggle-false')); + return ui.getElement($dataEl.data("value-toggle-false")); } return ui.getElement(target); @@ -115,7 +115,7 @@ const FormToggleUI = (($) => { // yes/no toggler const yesNoVal = - (condition === true && val && val !== '' && val !== '0') || + (condition === true && val && val !== "" && val !== "0") || condition === val ? true : false; @@ -124,7 +124,7 @@ const FormToggleUI = (($) => { const $noTarget = ui.getFalseTarget(); const elUI = $el.data(FieldUI); - if ((elUI && !elUI.shown) || typeof val === 'undefined') { + if ((elUI && !elUI.shown) || typeof val === "undefined") { ui.toggleElement($yesTarget, false); ui.toggleElement($noTarget, false); @@ -146,9 +146,9 @@ const FormToggleUI = (($) => { } const ui = this; - const action = show ? 'show' : 'hide'; + const action = show ? "show" : "hide"; - $el.filter('div.collapse').each((i, el) => { + $el.filter("div.collapse").each((i, el) => { const $el = $(el); $el.collapse(action); @@ -182,11 +182,11 @@ const FormToggleUI = (($) => { static validate() { return $(Events.FORM_FIELDS).each((i, el) => { const $el = $(el); - const name = $el.attr('name'); + const name = $el.attr("name"); if ($(`[name="${name}"]`).length > 1) { console.warn( - `${NAME}: Module malfunction duplicate "${name}" elements found`, + `${NAME}: Module malfunction duplicate "${name}" elements found` ); } }); @@ -204,9 +204,9 @@ const FormToggleUI = (($) => { // auto-apply $(W).on(`${Events.LODEDANDREADY}`, () => { //FormToggleUI.validate(); - $(Events.FORM_FIELDS).filter('[data-value-toggle]').jsFormToggleUI(); + $(Events.FORM_FIELDS).filter("[data-value-toggle]").jsFormToggleUI(); - $('[data-value-toggle]') + $("[data-value-toggle]") .not(Events.FORM_FIELDS) .find(Events.FORM_FIELDS) .jsFormToggleUI(); diff --git a/src/js_old/_components/_ui.form.jqte.js b/src/js_old/_components/_ui.form.jqte.js index 0b93bbf..c867618 100644 --- a/src/js_old/_components/_ui.form.jqte.js +++ b/src/js_old/_components/_ui.form.jqte.js @@ -1,22 +1,22 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from '../_events'; -import Spinner from '../_components/_ui.spinner'; -import FormValidateField from './_ui.form.validate.field'; +import Events from "../_events"; +import Spinner from "../_components/_ui.spinner"; +import FormValidateField from "./_ui.form.validate.field"; -import '../../thirdparty/jQuery-TE_v.1.4.0/jquery-te-1.4.0.css'; -import '../../thirdparty/jQuery-TE_v.1.4.0/uncompressed/jquery-te-1.4.0.js'; +import "../../thirdparty/jQuery-TE_v.1.4.0/jquery-te-1.4.0.css"; +import "../../thirdparty/jQuery-TE_v.1.4.0/uncompressed/jquery-te-1.4.0.js"; const JqteUI = (($) => { - const NAME = 'jsJqteUI'; + const NAME = "jsJqteUI"; const DATA_KEY = NAME; const jqteOptions = { color: false, fsize: false, - funit: 'em', + funit: "em", format: false, rule: false, source: false, @@ -30,7 +30,7 @@ const JqteUI = (($) => { const ui = this; const $element = $(element); - const validationUI = $element.data('jsFormValidateField'); + const validationUI = $element.data("jsFormValidateField"); ui._element = element; $element.data(DATA_KEY, this); @@ -39,9 +39,9 @@ const JqteUI = (($) => { // dynamic error control if (validationUI) { $element - .parents('.jqte') - .find('.jqte_editor') - .on('change', (e) => { + .parents(".jqte") + .find(".jqte_editor") + .on("change", (e) => { validationUI.validate(); }); } @@ -75,7 +75,7 @@ const JqteUI = (($) => { // auto-apply $(window).on(`${Events.AJAX} ${Events.LOADED}`, () => { - $('textarea.jqte-field').jsJqteUI(); + $("textarea.jqte-field").jsJqteUI(); }); return JqteUI; diff --git a/src/js_old/_components/_ui.form.select2.js b/src/js_old/_components/_ui.form.select2.js index 7817917..98e8119 100644 --- a/src/js_old/_components/_ui.form.select2.js +++ b/src/js_old/_components/_ui.form.select2.js @@ -1,15 +1,15 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import select2 from 'select2/dist/js/select2.js'; -import Events from '../_events'; +import select2 from "select2/dist/js/select2.js"; +import Events from "../_events"; const FormSelect2 = (($) => { // Constants - const NAME = 'jsFormSelect2'; + const NAME = "jsFormSelect2"; const DATA_KEY = NAME; - const $Html = $('html, body'); + const $Html = $("html, body"); const W = window; const D = document; @@ -27,8 +27,8 @@ const FormSelect2 = (($) => { const $fields = $el.find(Events.FORM_FIELDS); const $selectFields = $el - .find('select:not([readonly])') - .not('.no-select2'); + .find("select:not([readonly])") + .not(".no-select2"); $selectFields.each((i, el) => { $(el).select2(); @@ -46,12 +46,12 @@ const FormSelect2 = (($) => { const $el = $(ui._el); const $selectFields = $el - .find('select:not([readonly])') - .not('.no-select2'); + .find("select:not([readonly])") + .not(".no-select2"); $selectFields.each((i, el) => { const $el = $(el); - if ($el.hasClass('select2-hidden-accessible')) { - $el.select2('destroy'); + if ($el.hasClass("select2-hidden-accessible")) { + $el.select2("destroy"); } }); @@ -83,7 +83,7 @@ const FormSelect2 = (($) => { }; const init = () => { - $('form').jsFormSelect2(); + $("form").jsFormSelect2(); }; // auto-apply diff --git a/src/js_old/_components/_ui.form.stepped.js b/src/js_old/_components/_ui.form.stepped.js index bc8cf80..eec5a6e 100644 --- a/src/js_old/_components/_ui.form.stepped.js +++ b/src/js_old/_components/_ui.form.stepped.js @@ -1,15 +1,15 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; -import LANG from '../lang/_en'; -import FormValidateField from './_ui.form.validate.field'; +import $ from "jquery"; +import Events from "../_events"; +import LANG from "../lang/_en"; +import FormValidateField from "./_ui.form.validate.field"; -import '../../scss/_components/_ui.form.stepped.scss'; +import "../../scss/_components/_ui.form.stepped.scss"; const SteppedForm = (($) => { // Constants - const NAME = 'jsSteppedForm'; + const NAME = "jsSteppedForm"; const DATA_KEY = NAME; class SteppedForm { @@ -21,35 +21,35 @@ const SteppedForm = (($) => { $element.data(DATA_KEY, this); - if (!$element.find('.steps-counter').length) { - $element.prepend(LANG['en'][NAME]['STEPCOUNTER']); + if (!$element.find(".steps-counter").length) { + $element.prepend(LANG["en"][NAME]["STEPCOUNTER"]); } - if (!$element.find('.steps-buttons').length) { - $element.append(LANG['en'][NAME]['STEPBUTTONS']); + if (!$element.find(".steps-buttons").length) { + $element.append(LANG["en"][NAME]["STEPBUTTONS"]); } - ui._currentStepCounter = $element.find('.steps-counter .current-step'); - ui._totalStepsCounter = $element.find('.steps-counter .total-steps'); + ui._currentStepCounter = $element.find(".steps-counter .current-step"); + ui._totalStepsCounter = $element.find(".steps-counter .total-steps"); - ui._steps = $element.find('.step'); + ui._steps = $element.find(".step"); ui._steps.each((i, el) => { const $el = $(el); - if (!$el.data('step')) { - $el.data('step', i + 1); - $el.attr('data-step', i + 1); + if (!$el.data("step")) { + $el.data("step", i + 1); + $el.attr("data-step", i + 1); } }); - ui._stepNext = $element.find('.step-next'); + ui._stepNext = $element.find(".step-next"); - ui._stepPrev = $element.find('.step-prev'); - ui._actions = $element.children('.btn-toolbar,.form-actions'); + ui._stepPrev = $element.find(".step-prev"); + ui._actions = $element.children(".btn-toolbar,.form-actions"); ui._element = element; ui._currentStep = 1; - ui._totalSteps = ui._steps.last().data('step') || ui._steps.length; + ui._totalSteps = ui._steps.last().data("step") || ui._steps.length; ui._stepsOrder = []; ui._totalStepsCounter.text(ui._totalSteps); @@ -57,39 +57,39 @@ const SteppedForm = (($) => { // check if one of the steps already has an error const $hasError = ui._steps .find( - '.field.error,.field.holder-error,.field.holder-validation,.field.holder-info,.field.holder-warning,.field.holder-good', + ".field.error,.field.holder-error,.field.holder-validation,.field.holder-info,.field.holder-warning,.field.holder-good" ) .first(); if ($hasError.length) { - const $modal = $element.parents('.modal'); + const $modal = $element.parents(".modal"); // show modal - if ($modal.length && typeof $modal.modal !== 'undefined') { - $modal.modal('show'); + if ($modal.length && typeof $modal.modal !== "undefined") { + $modal.modal("show"); } ui._currentStep = - $hasError.parents('.step').data('step') || ui._currentStep; + $hasError.parents(".step").data("step") || ui._currentStep; } // ui.step(`.step[data-step="${ui._currentStep}"]`); - ui._stepNext.on('click', (e) => { + ui._stepNext.on("click", (e) => { e.preventDefault(); ui.next(); }); - ui._stepPrev.on('click', (e) => { + ui._stepPrev.on("click", (e) => { e.preventDefault(); ui.prev(); }); - $element.find('.step-toggle').on('click', (e) => { + $element.find(".step-toggle").on("click", (e) => { const $el = $(e.currentTarget); e.preventDefault(); - ui.step($el.data('target')); + ui.step($el.data("target")); }); $element.addClass(`${NAME}-active`); @@ -131,17 +131,17 @@ const SteppedForm = (($) => { const ui = this; const $element = $(ui._element); const $target = $element.find(target); - const targetStep = parseInt($target.data('step')); + const targetStep = parseInt($target.data("step")); // validate current step let valid = true; if (targetStep > ui._currentStep) { ui.currentStep() - .find('input,textarea,select') + .find("input,textarea,select") .each((i, el) => { const $el = $(el); - const fieldUI = $el.data('jsFormValidateField'); + const fieldUI = $el.data("jsFormValidateField"); if (fieldUI && !fieldUI.validate()) { valid = false; @@ -154,14 +154,14 @@ const SteppedForm = (($) => { } // - if (parseInt($target.data('step')) <= '1') { + if (parseInt($target.data("step")) <= "1") { ui._stepPrev.hide(); $element.trigger(Events.FORM_STEPPED_FIRST_STEP); } else { ui._stepPrev.show(); } - if (parseInt($target.data('step')) >= ui._totalSteps) { + if (parseInt($target.data("step")) >= ui._totalSteps) { ui._stepNext.hide(); ui._actions.show(); @@ -174,8 +174,8 @@ const SteppedForm = (($) => { ui._currentStep = targetStep; ui._stepsOrder[ui._currentStep] = $target; - ui._steps.removeClass('active'); - $target.addClass('active'); + ui._steps.removeClass("active"); + $target.addClass("active"); ui._currentStepCounter.text(ui._currentStep); @@ -187,7 +187,7 @@ const SteppedForm = (($) => { const ui = this; const $element = $(ui._element); - return $element.find('.step.active'); + return $element.find(".step.active"); } static _jQueryInterface() { @@ -214,7 +214,7 @@ const SteppedForm = (($) => { // auto-apply $(window).on(`${NAME}.init ${Events.AJAX} ${Events.LOADED}`, () => { - $('.form-stepped').jsSteppedForm(); + $(".form-stepped").jsSteppedForm(); }); return SteppedForm; diff --git a/src/js_old/_components/_ui.form.storage.js b/src/js_old/_components/_ui.form.storage.js index a7d1289..ffa53f8 100644 --- a/src/js_old/_components/_ui.form.storage.js +++ b/src/js_old/_components/_ui.form.storage.js @@ -1,11 +1,11 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const FormStorage = (($) => { // Constants - const NAME = 'jsFormStorage'; + const NAME = "jsFormStorage"; const DATA_KEY = NAME; const STORAGE = window.localStorage; @@ -15,11 +15,11 @@ const FormStorage = (($) => { const ui = this; const $element = $(element); - const $elements = $element.find('input, textarea, select'); + const $elements = $element.find("input, textarea, select"); const setRangeValues = function (el) { const $el = $(el); - $el.siblings('.value').text($el.val()); + $el.siblings(".value").text($el.val()); }; ui._element = element; @@ -30,17 +30,17 @@ const FormStorage = (($) => { // restore form data from localStorage $elements.each((i, el) => { const $el = $(el); - const id = $el.attr('id'); - const type = $el.attr('type'); + const id = $el.attr("id"); + const type = $el.attr("type"); const val = STORAGE.getItem(NAME + id); - if (type === 'file') { + if (type === "file") { return true; } if (id && val && type) { - if (type && (type === 'checkbox' || type === 'radio')) { - $el.prop('checked', val); + if (type && (type === "checkbox" || type === "radio")) { + $el.prop("checked", val); } else { $el.val(val); } @@ -56,40 +56,40 @@ const FormStorage = (($) => { $element.trigger(Events.RESTORE_FIELD); - $('input[type="range"]').on('change', (e) => { + $('input[type="range"]').on("change", (e) => { setRangeValues(e.currentTarget); }); // store form data into localStorage - $elements.on('change', (e) => { + $elements.on("change", (e) => { const $el = $(e.currentTarget); - const id = $el.attr('id'); - const type = $el.attr('type'); + const id = $el.attr("id"); + const type = $el.attr("type"); // skip some elements - if ($el.hasClass('no-storage')) { + if ($el.hasClass("no-storage")) { return true; } let val = $el.val(); - if (type && (type === 'checkbox' || type === 'radio')) { - val = !!$el.is(':checked'); + if (type && (type === "checkbox" || type === "radio")) { + val = !!$el.is(":checked"); } - if (id && type && type !== 'password') { + if (id && type && type !== "password") { STORAGE.setItem(NAME + id, val); } }); - $element.on('submit', () => { + $element.on("submit", () => { $element.data(DATA_KEY).clear(); }); $element - .find('.btn-toolbar,.form-actions') + .find(".btn-toolbar,.form-actions") .children('button,[type="submit"],[type="clear"]') - .on('click', () => { + .on("click", () => { $element.data(DATA_KEY).clear(); }); @@ -111,7 +111,7 @@ const FormStorage = (($) => { } static _jQueryInterface() { - if (typeof window.localStorage !== 'undefined') { + if (typeof window.localStorage !== "undefined") { return this.each(function () { // attach functionality to element const $element = $(this); @@ -136,11 +136,11 @@ const FormStorage = (($) => { // auto-apply $(window).on(`${Events.AJAX} ${Events.LOADED}`, () => { - $('form').each((i, el) => { + $("form").each((i, el) => { const $el = $(el); // skip some forms - if ($el.hasClass('no-storage')) { + if ($el.hasClass("no-storage")) { return true; } diff --git a/src/js_old/_components/_ui.form.validate.field.js b/src/js_old/_components/_ui.form.validate.field.js index 5f85989..0db1c53 100644 --- a/src/js_old/_components/_ui.form.validate.field.js +++ b/src/js_old/_components/_ui.form.validate.field.js @@ -1,15 +1,15 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const FormValidateField = (($) => { // Constants - const NAME = 'jsFormValidateField'; + const NAME = "jsFormValidateField"; const DATA_KEY = NAME; - const $Body = $('body'); + const $Body = $("body"); - const FieldUI = 'jsFormFieldUI'; + const FieldUI = "jsFormFieldUI"; class FormValidateField { constructor(el) { @@ -18,13 +18,13 @@ const FormValidateField = (($) => { ui.$el = $el; - ui._actions = $el.parents('form').children('.btn-toolbar,.form-actions'); + ui._actions = $el.parents("form").children(".btn-toolbar,.form-actions"); $el.data(DATA_KEY, this); // prevent browsers checks (will do it using JS) - $el.attr('novalidate', 'novalidate'); + $el.attr("novalidate", "novalidate"); - $el.on('change focusout', (e) => { + $el.on("change focusout", (e) => { ui.validate(false); }); @@ -45,7 +45,7 @@ const FormValidateField = (($) => { const ui = this; const $el = ui.$el; - const $field = $el.closest('.field'); + const $field = $el.closest(".field"); const extraChecks = $el.data(`${NAME}-extra`); let valid = true; let msg = null; @@ -56,58 +56,58 @@ const FormValidateField = (($) => { if (!ui.$el[0].checkValidity()) { valid = false; console.warn( - `${NAME}: Browser check validity is failed #${$el.attr('id')}`, + `${NAME}: Browser check validity is failed #${$el.attr("id")}` ); } let unmaskedVal = val; - if (typeof $el.inputmask === 'function') { - unmaskedVal = $el.inputmask('unmaskedvalue'); + if (typeof $el.inputmask === "function") { + unmaskedVal = $el.inputmask("unmaskedvalue"); } // required if ( - $el.hasClass('required') && + $el.hasClass("required") && (!unmaskedVal.length || !unmaskedVal.trim().length || (ui.isHtml(val) && !$(unmaskedVal).text().length)) ) { valid = false; - console.warn(`${NAME}: Required field is missing #${$el.attr('id')}`); + console.warn(`${NAME}: Required field is missing #${$el.attr("id")}`); } // validate URL if ( - $el.hasClass('url') && + $el.hasClass("url") && unmaskedVal.length && !ui.valideURL(unmaskedVal) ) { valid = false; msg = - 'Invalid URL: URL must start with http:// or https://. For example: https://your-domain.com/bla-bla/?p1=b&p2=a#tag'; - console.warn(`${NAME}: Wrong URL #${$el.attr('id')}`); + "Invalid URL: URL must start with http:// or https://. For example: https://your-domain.com/bla-bla/?p1=b&p2=a#tag"; + console.warn(`${NAME}: Wrong URL #${$el.attr("id")}`); } // maxlength - const maxLength = $el.attr('maxlength'); + const maxLength = $el.attr("maxlength"); if (unmaskedVal.length && maxLength && maxLength.length) { if (unmaskedVal.length > maxLength) { valid = false; msg = `The value is limited to ${maxLength} chars`; - console.warn(`${NAME}: Too long value #${$el.attr('id')}`); + console.warn(`${NAME}: Too long value #${$el.attr("id")}`); } } // minlength - const minLength = $el.attr('minlength'); + const minLength = $el.attr("minlength"); if (unmaskedVal.length && minLength && minLength.length) { if (unmaskedVal.length < minLength) { valid = false; msg = `The value should contain more than ${minLength} chars`; - console.warn(`${NAME}: Too short value #${$el.attr('id')}`); + console.warn(`${NAME}: Too short value #${$el.attr("id")}`); } } @@ -120,7 +120,7 @@ const FormValidateField = (($) => { valid = valid && result; if (!result) { console.log(check); - console.warn(`${NAME}: Extra check is failed #${$el.attr('id')}`); + console.warn(`${NAME}: Extra check is failed #${$el.attr("id")}`); } }); } @@ -135,9 +135,9 @@ const FormValidateField = (($) => { } isHtml(str) { - const doc = new DOMParser().parseFromString(str, 'text/html'); + const doc = new DOMParser().parseFromString(str, "text/html"); return Array.from(doc.body.childNodes).some( - (node) => node.nodeType === 1, + (node) => node.nodeType === 1 ); } @@ -150,24 +150,24 @@ const FormValidateField = (($) => { return false; } - return url.protocol === 'http:' || url.protocol === 'https:'; + return url.protocol === "http:" || url.protocol === "https:"; } setError(scrollTo = true, msg = null) { const ui = this; const fieldUI = ui.$el.data(FieldUI); - const $field = ui.$el.closest('.field'); + const $field = ui.$el.closest(".field"); const bodyScroll = $Body.scrollTop(); const pos = $field[0].getBoundingClientRect().top; //$field.offset().top; - const rowCorrection = parseInt($field.css('font-size')) * 4; + const rowCorrection = parseInt($field.css("font-size")) * 4; ui.removeError(); - $field.addClass('error'); + $field.addClass("error"); if (msg) { - fieldUI.addMessage(msg, 'alert-error alert-danger', scrollTo); + fieldUI.addMessage(msg, "alert-error alert-danger", scrollTo); } else if (pos && scrollTo) { $field.focus(); $Body.scrollTop(bodyScroll + pos - rowCorrection); @@ -178,13 +178,13 @@ const FormValidateField = (($) => { const ui = this; const fieldUI = ui.$el.data(FieldUI); - const $field = ui.$el.closest('.field'); + const $field = ui.$el.closest(".field"); - $field.removeClass('error'); + $field.removeClass("error"); - $field.removeClass('holder-error'); - $field.removeClass('holder-validation'); - $field.find('.alert-error').remove(); + $field.removeClass("holder-error"); + $field.removeClass("holder-validation"); + $field.find(".alert-error").remove(); } static _jQueryInterface() { diff --git a/src/js_old/_components/_ui.form.validate.js b/src/js_old/_components/_ui.form.validate.js index 871a46e..03b6ac0 100644 --- a/src/js_old/_components/_ui.form.validate.js +++ b/src/js_old/_components/_ui.form.validate.js @@ -1,40 +1,40 @@ -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; -import FormBasics from './_ui.form.basics'; -import FormValidateField from './_ui.form.validate.field'; -import SpinnerUI from './_ui.spinner'; +import FormBasics from "./_ui.form.basics"; +import FormValidateField from "./_ui.form.validate.field"; +import SpinnerUI from "./_ui.spinner"; const FormValidate = (($) => { // Constants - const NAME = 'jsFormValidate'; + const NAME = "jsFormValidate"; const DATA_KEY = NAME; - const $Html = $('html, body'); + const $Html = $("html, body"); class FormValidate { constructor(element) { const ui = this; const $element = $(element); - const $fields = $element.find('input,textarea,select'); + const $fields = $element.find("input,textarea,select"); ui._element = element; ui.$element = $element; $element.data(DATA_KEY, this); ui._fields = $fields; - ui._stepped_form = $element.data('jsSteppedForm'); + ui._stepped_form = $element.data("jsSteppedForm"); // prevent browsers checks (will do it using JS) - $element.attr('novalidate', 'novalidate'); + $element.attr("novalidate", "novalidate"); $element.on(Events.FORM_INIT_STEPPED, () => { - ui._stepped_form = $element.data('jsSteppedForm'); + ui._stepped_form = $element.data("jsSteppedForm"); }); // init fields validation $fields.each((i, el) => { // skip some fields here - if ($(el).attr('role') === 'combobox') { + if ($(el).attr("role") === "combobox") { return; } @@ -42,16 +42,16 @@ const FormValidate = (($) => { }); // check form - $element.on('submit', (e) => { + $element.on("submit", (e) => { ui.validate(true, () => { e.preventDefault(); // switch to step if (ui._stepped_form) { - const $el = $element.find('.error').first(); + const $el = $element.find(".error").first(); if ($el.length) { - ui._stepped_form.step($el.parents('.step')); + ui._stepped_form.step($el.parents(".step")); } } @@ -78,14 +78,14 @@ const FormValidate = (($) => { const ui = this; let valid = true; - ui._fields.filter(':visible').each((i, el) => { + ui._fields.filter(":visible").each((i, el) => { const $el = $(el); - const fieldUI = $el.data('jsFormValidateField'); + const fieldUI = $el.data("jsFormValidateField"); if (fieldUI && !fieldUI.validate()) { SpinnerUI.hide(); - ui.$element.addClass('error'); + ui.$element.addClass("error"); if (badCallback) { badCallback(); @@ -123,11 +123,11 @@ const FormValidate = (($) => { // auto-apply $(window).on(`${NAME}.init ${Events.AJAX} ${Events.LOADED}`, () => { - $('form').each((i, el) => { + $("form").each((i, el) => { const $el = $(el); // skip some forms - if ($el.hasClass('no-validation')) { + if ($el.hasClass("no-validation")) { return true; } diff --git a/src/js_old/_components/_ui.header-footer.js b/src/js_old/_components/_ui.header-footer.js index 721b150..66f5be8 100644 --- a/src/js_old/_components/_ui.header-footer.js +++ b/src/js_old/_components/_ui.header-footer.js @@ -1,13 +1,13 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const HeaderUI = (($) => { const D = document; const W = window; - const $Body = $('html,body'); - const NAME = 'HeaderUI'; + const $Body = $("html,body"); + const NAME = "HeaderUI"; const CLASSNAME = `js${NAME}`; class HeaderUI { @@ -22,9 +22,9 @@ const HeaderUI = (($) => { const h = $header.height(); const s = $Body.scrollTop(); if (s + 50 > h) { - $Body.addClass('shrink'); + $Body.addClass("shrink"); } else { - $Body.removeClass('shrink'); + $Body.removeClass("shrink"); } }; @@ -33,23 +33,23 @@ const HeaderUI = (($) => { const updateFooter = (i, el) => { const $el = $(el); const footerHeight = $el.height(); - $el.css('height', footerHeight); + $el.css("height", footerHeight); - $el.css('margin-top', -footerHeight); - $el.siblings('.wrapper').css('padding-bottom', footerHeight); + $el.css("margin-top", -footerHeight); + $el.siblings(".wrapper").css("padding-bottom", footerHeight); }; - $('.footer,.jsFooterUI').css('height', 'auto'); + $(".footer,.jsFooterUI").css("height", "auto"); setTimeout(() => { - $('.footer,.jsFooterUI').each(updateFooter); + $(".footer,.jsFooterUI").each(updateFooter); }, 500); } static dispose() { console.log(`${NAME}: dispose`); - $Body.removeClass('shrink'); - $(`#Header,.js${NAME},.footer,.jsFooterUI,.wrapper`).attr('css', ''); + $Body.removeClass("shrink"); + $(`#Header,.js${NAME},.footer,.jsFooterUI,.wrapper`).attr("css", ""); } } diff --git a/src/js_old/_components/_ui.hover.js b/src/js_old/_components/_ui.hover.js index a1f8539..ac33d7d 100644 --- a/src/js_old/_components/_ui.hover.js +++ b/src/js_old/_components/_ui.hover.js @@ -1,21 +1,21 @@ /* * Conflicts with 'bootstrap/js/dist/dropdown' */ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; -import 'jquery-hoverintent/jquery.hoverIntent.js'; -import MainUI from '../_main'; +import $ from "jquery"; +import Events from "../_events"; +import "jquery-hoverintent/jquery.hoverIntent.js"; +import MainUI from "../_main"; const HoverUI = (($) => { // Constants const W = window; const D = document; - const $Html = $('html'); - const $Body = $('body'); + const $Html = $("html"); + const $Body = $("body"); - const NAME = 'jsHoverUI'; + const NAME = "jsHoverUI"; const DATA_KEY = NAME; class HoverUI { @@ -28,7 +28,7 @@ const HoverUI = (($) => { if ( $el.is( - '[target="_blank"],.external,[data-toggle="lightbox"],[data-lightbox-gallery]', + '[target="_blank"],.external,[data-toggle="lightbox"],[data-lightbox-gallery]' ) ) { return true; @@ -37,18 +37,18 @@ const HoverUI = (($) => { ui.$el = $el; // find parent - let $parent = $el.parents('.nav-item, .dropdown'); + let $parent = $el.parents(".nav-item, .dropdown"); $parent = $parent && $parent.length ? $parent.first() : null; //$parent = $parent ? $parent : $el.parent(); ui.$parent = $parent; // find target - let $target = $el.data('target'); + let $target = $el.data("target"); $target = $target && $target.length ? $target : null; $target = $target ? $target : $parent - ? $parent.find('.dropdown-menu').first() + ? $parent.find(".dropdown-menu").first() : null; if (!$target || !$target.length) { @@ -63,7 +63,7 @@ const HoverUI = (($) => { ui.$triger = $triger; // integrate with dropdown-toggle - $('[data-toggle="dropdown"]').on('click touch', (e) => { + $('[data-toggle="dropdown"]').on("click touch", (e) => { console.log(`${NAME}: dropdown click-touch`); ui.hide(); }); @@ -81,15 +81,15 @@ const HoverUI = (($) => { }); } - $el.off('click touch'); - $el.on('click touch', (e) => { + $el.off("click touch"); + $el.on("click touch", (e) => { const size = MainUI.detectBootstrapScreenSize(); console.log(`${NAME}: click-touch size: ${size}`); if ( - size === 'xs' || - !$el.data('allow-click') || - (W.IsTouchScreen && !$el.data('allow-touch-click')) + size === "xs" || + !$el.data("allow-click") || + (W.IsTouchScreen && !$el.data("allow-touch-click")) ) { console.log(`${NAME}: click-touch prevent click`); e.stopPropagation(); @@ -108,29 +108,29 @@ const HoverUI = (($) => { } isShown() { - return this.$target.hasClass('show'); + return this.$target.hasClass("show"); } show() { const ui = this; ui.$el - .parents('.dropdown') - .not('.active') + .parents(".dropdown") + .not(".active") .each((i, el) => { const $el = $(el); - $el.find('.dropdown').removeClass('show'); - $el.addClass('show'); + $el.find(".dropdown").removeClass("show"); + $el.addClass("show"); }); - ui.$target.addClass('show'); + ui.$target.addClass("show"); } hide() { const ui = this; const $el = ui.$target; - $el.removeClass('show'); - $el.find('.dropdown-menu').removeClass('show'); - $el.parent('.dropdown').removeClass('show'); + $el.removeClass("show"); + $el.find(".dropdown-menu").removeClass("show"); + $el.parent(".dropdown").removeClass("show"); } dispose() { @@ -176,21 +176,21 @@ const HoverUI = (($) => { }); // rewrite 'bootstrap/js/dist/dropdown' - $('[data-toggle="dropdown"]').on('click touch', (e) => { + $('[data-toggle="dropdown"]').on("click touch", (e) => { e.preventDefault(); const $el = $(e.currentTarget); - const $parent = $el.parent('.dropdown'); + const $parent = $el.parent(".dropdown"); // hide siblings - $parent.parent().find('.dropdown, .dropdown-menu').removeClass('show'); + $parent.parent().find(".dropdown, .dropdown-menu").removeClass("show"); - if ($parent.hasClass('show')) { - $parent.removeClass('show'); - $parent.find('.dropdown-menu').removeClass('show'); + if ($parent.hasClass("show")) { + $parent.removeClass("show"); + $parent.find(".dropdown-menu").removeClass("show"); } else { - $parent.addClass('show'); - $parent.find('.dropdown-menu').addClass('show'); + $parent.addClass("show"); + $parent.find(".dropdown-menu").addClass("show"); } }); diff --git a/src/js_old/_components/_ui.image-position.js b/src/js_old/_components/_ui.image-position.js index 4c534b7..781023f 100644 --- a/src/js_old/_components/_ui.image-position.js +++ b/src/js_old/_components/_ui.image-position.js @@ -1,14 +1,14 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from '../_events'; +import Events from "../_events"; const ImagePositionUI = (($) => { const D = document; const W = window; - const $Body = $('html,body'); - const NAME = 'ImagePositionUI'; + const $Body = $("html,body"); + const NAME = "ImagePositionUI"; const CLASSNAME = `js${NAME}`; class ImagePositionUI { @@ -21,7 +21,7 @@ const ImagePositionUI = (($) => { } console.log(`${NAME}: init`); - $(`.${CLASSNAME}`).on('click', (e) => { + $(`.${CLASSNAME}`).on("click", (e) => { e.preventDefault(); console.log(e); }); diff --git a/src/js_old/_components/_ui.instagramfeed.js b/src/js_old/_components/_ui.instagramfeed.js index 7fb49f6..6fb7ae0 100644 --- a/src/js_old/_components/_ui.instagramfeed.js +++ b/src/js_old/_components/_ui.instagramfeed.js @@ -1,13 +1,13 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from '../_events'; -import 'jquery.instagramFeed/jquery.instagramFeed'; +import Events from "../_events"; +import "jquery.instagramFeed/jquery.instagramFeed"; const InstagramFeed = (($) => { // Constants - const NAME = 'jsInstagramFeed'; + const NAME = "jsInstagramFeed"; const DATA_KEY = NAME; const W = window; const D = document; @@ -23,15 +23,15 @@ const InstagramFeed = (($) => { console.log(`${NAME}: init`); $el.data(DATA_KEY, this); - const ID = $el.data('username') + $el.data('tag'); + const ID = $el.data("username") + $el.data("tag"); $.instagramFeed({ - username: $el.data('username'), - tag: $el.data('tag') || null, - display_profile: $el.data('display-profile'), - display_biography: $el.data('display-biography'), - display_gallery: $el.data('display-gallery'), - display_captions: $el.data('display-captions'), + username: $el.data("username"), + tag: $el.data("tag") || null, + display_profile: $el.data("display-profile"), + display_biography: $el.data("display-biography"), + display_gallery: $el.data("display-gallery"), + display_captions: $el.data("display-captions"), cache_time: 120, callback: (data) => { console.log(`${NAME}: data response received`); @@ -39,27 +39,23 @@ const InstagramFeed = (($) => { $el.append(`
`); const $list = $el.find(`.${NAME}-list`); - data['edge_owner_to_timeline_media']['edges'].forEach( - (el, i) => { - const item = el['node']; - const preview = ui.ig_media_preview( - item['media_preview'], - ); + data["edge_owner_to_timeline_media"]["edges"].forEach((el, i) => { + const item = el["node"]; + const preview = ui.ig_media_preview(item["media_preview"]); - $list.append( - `
` + - `${item['accessibility_caption']}` + - '
', - ); - }, - ); + $list.append( + `
` + + `${item[` + + "
" + ); + }); - $(W).trigger('MetaLightboxUI.init'); + $(W).trigger("MetaLightboxUI.init"); }, styling: false, - items: $el.data('items'), + items: $el.data("items"), lazy_load: true, on_error: (e) => { console.error(`${NAME}: ${e}`); @@ -71,20 +67,20 @@ const InstagramFeed = (($) => { ig_media_preview(base64data) { var jpegtpl = - '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==', + "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==", t = atob(base64data), - p = t.slice(3).split(''), + p = t.slice(3).split(""), o = t .substring(0, 3) - .split('') + .split("") .map((e) => { return e.charCodeAt(0); }), - c = atob(jpegtpl).split(''); + c = atob(jpegtpl).split(""); c[162] = String.fromCharCode(o[1]); c[160] = String.fromCharCode(o[2]); return base64data - ? `data:image/jpeg;base64,${btoa(c.concat(p).join(''))}` + ? `data:image/jpeg;base64,${btoa(c.concat(p).join(""))}` : null; } diff --git a/src/js_old/_components/_ui.map.api.js b/src/js_old/_components/_ui.map.api.js index d591415..6d2b675 100644 --- a/src/js_old/_components/_ui.map.api.js +++ b/src/js_old/_components/_ui.map.api.js @@ -1,19 +1,19 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; -import '../../scss/_components/_ui.map.scss'; +import "../../scss/_components/_ui.map.scss"; -import CONSTS from 'js/_consts'; +import CONSTS from "js/_consts"; const MapAPI = (($) => { // Constants - const NAME = 'jsMapAPI'; + const NAME = "jsMapAPI"; const DATA_KEY = NAME; - const $BODY = $('body'); + const $BODY = $("body"); - const MAP_DRIVER = CONSTS['MAP_DRIVER']; + const MAP_DRIVER = CONSTS["MAP_DRIVER"]; const W = window; class MapAPI { @@ -27,19 +27,19 @@ const MapAPI = (($) => { const $el = ui.$el; const config = $el.data(); - config['center'] = [ - config['lng'] ? config['lng'] : $BODY.data('default-lng'), - config['lat'] ? config['lat'] : $BODY.data('default-lat'), + config["center"] = [ + config["lng"] ? config["lng"] : $BODY.data("default-lng"), + config["lat"] ? config["lat"] : $BODY.data("default-lat"), ]; - config['style'] = config['style'] - ? jQuery.parseJSON(config['style']) + config["style"] = config["style"] + ? jQuery.parseJSON(config["style"]) : null; - config['font-family'] = $BODY.css('font-family'); + config["font-family"] = $BODY.css("font-family"); - if (!config['icon']) { - config['icon'] = ''; + if (!config["icon"]) { + config["icon"] = ''; } console.log(`${NAME}: init ${Drv.getName()}...`); @@ -49,31 +49,31 @@ const MapAPI = (($) => { $el.on(Events.MAPAPILOADED, (e) => { ui.map = Drv.getMap(); - if (config['geojson']) { + if (config["geojson"]) { console.log(`${NAME}: setting up geocode data`); Drv.addGeoJson(config); - } else if (config['address']) { - console.log(config['address']); + } else if (config["address"]) { + console.log(config["address"]); console.log(`${NAME}: setting up address marker`); - Drv.geocode(config['address'], (results) => { + Drv.geocode(config["address"], (results) => { console.log(results); const lat = results[0].geometry.location.lat(); const lng = results[0].geometry.location.lng(); console.log( - `${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`, + `${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}` ); Drv.addMarker([lng, lat], config); ui.map.setCenter({ lat, lng }); }); - } else if (config['lat'] && config['lng']) { - const lat = config['lat']; - const lng = config['lng']; + } else if (config["lat"] && config["lng"]) { + const lat = config["lat"]; + const lng = config["lng"]; console.log( - `${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}`, + `${NAME}: setting up single lat/lng marker lat: ${lat} lng: ${lng}` ); Drv.addMarker([lng, lat], config); @@ -102,7 +102,7 @@ const MapAPI = (($) => { } static _jQueryInterface() { - if (typeof W.localStorage !== 'undefined') { + if (typeof W.localStorage !== "undefined") { return this.each(() => { // attach functionality to el const $el = $(this); @@ -127,7 +127,7 @@ const MapAPI = (($) => { // auto-apply $(W).on(`${Events.AJAX} ${Events.LOADED}`, () => { - $('.mapAPI-map-container').jsMapAPI(); + $(".mapAPI-map-container").jsMapAPI(); }); return MapAPI; diff --git a/src/js_old/_components/_ui.menu.js b/src/js_old/_components/_ui.menu.js index 77b9907..8bff0df 100644 --- a/src/js_old/_components/_ui.menu.js +++ b/src/js_old/_components/_ui.menu.js @@ -1,10 +1,10 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; const SlidingMenu = (($) => { // Constants - const NAME = 'jsSlidingMenu'; + const NAME = "jsSlidingMenu"; const DATA_KEY = NAME; class SlidingMenu { @@ -16,7 +16,7 @@ const SlidingMenu = (($) => { $element.addClass(`${NAME}-active`); // esc button - $(window).on('keyup', (e) => { + $(window).on("keyup", (e) => { if (e.which === 27) { $element.find('.is-open[data-toggle="offcanvas"]').click(); } diff --git a/src/js_old/_components/_ui.multislider.js b/src/js_old/_components/_ui.multislider.js index 6277bbc..e3ccb34 100644 --- a/src/js_old/_components/_ui.multislider.js +++ b/src/js_old/_components/_ui.multislider.js @@ -1,21 +1,21 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; -import MainUI from '../_main'; +import $ from "jquery"; +import Events from "../_events"; +import MainUI from "../_main"; -import 'hammerjs/hammer'; -import 'jquery-hammerjs/jquery.hammer'; +import "hammerjs/hammer"; +import "jquery-hammerjs/jquery.hammer"; -import '../../scss/_components/_ui.multislider.scss'; +import "../../scss/_components/_ui.multislider.scss"; const W = window; const MultiSlider = (($) => { // Constants - const NAME = 'jsMultiSlider'; + const NAME = "jsMultiSlider"; const DATA_KEY = NAME; - const $BODY = $('body'); + const $BODY = $("body"); class MultiSlider { // Constructor @@ -38,10 +38,10 @@ const MultiSlider = (($) => { ui.addControls(); ui.calculate(); - $(W).on('resize', () => { + $(W).on("resize", () => { ui.$elContainer - .find('.act-slider-prev,.act-slider-next') - .removeClass('disabled'); + .find(".act-slider-prev,.act-slider-next") + .removeClass("disabled"); ui.calculate(); }); @@ -52,15 +52,15 @@ const MultiSlider = (($) => { calculate() { const ui = this; - ui.$slides = ui.$el.find('.slide'); + ui.$slides = ui.$el.find(".slide"); ui.numberOfSlides = ui.$slides.length; ui.containerWidth = ui.$el.parent().width(); ui.maxPos = ui.numberOfSlides - ui.numToDisplay(); ui.slideWidth = ui.containerWidth / ui.numToDisplay(); - ui.$slides.css('width', `${ui.slideWidth}px`); - ui.$el.css('width', ui.slideWidth * ui.numberOfSlides); + ui.$slides.css("width", `${ui.slideWidth}px`); + ui.$el.css("width", ui.slideWidth * ui.numberOfSlides); ui.currPos = 0; ui.slide(0); @@ -72,7 +72,7 @@ const MultiSlider = (($) => { const size = MainUI.detectBootstrapScreenSize(); let num = ui.$el.data(`length-${size}`); - num = num ? num : ui.$el.data('length'); + num = num ? num : ui.$el.data("length"); console.log(`${NAME}: size ${size} | num ${num}`); @@ -88,26 +88,26 @@ const MultiSlider = (($) => { '
' + 'Prev' + 'Next' + - '
', + "
" ); - ui.$prevBtn = ui.$elContainer.find('.act-slider-prev'); - ui.$nextBtn = ui.$elContainer.find('.act-slider-next'); + ui.$prevBtn = ui.$elContainer.find(".act-slider-prev"); + ui.$nextBtn = ui.$elContainer.find(".act-slider-next"); - ui.$prevBtn.on('click', (e) => { + ui.$prevBtn.on("click", (e) => { e.preventDefault(); - if ($(e.currentTarget).hasClass('disabled')) { + if ($(e.currentTarget).hasClass("disabled")) { return false; } ui.prev(); }); - ui.$nextBtn.on('click', (e) => { + ui.$nextBtn.on("click", (e) => { e.preventDefault(); - if ($(e.currentTarget).hasClass('disabled')) { + if ($(e.currentTarget).hasClass("disabled")) { return false; } @@ -115,11 +115,11 @@ const MultiSlider = (($) => { }); // init touch swipes - $e.hammer().bind('swipeleft panleft', (e) => { + $e.hammer().bind("swipeleft panleft", (e) => { ui.next(); }); - $e.hammer().bind('swiperight panright', (e) => { + $e.hammer().bind("swiperight panright", (e) => { ui.prev(); }); } @@ -152,17 +152,17 @@ const MultiSlider = (($) => { ui.sliding = true; if (ui.$nextBtn.length) { if (pos >= ui.maxPos) { - ui.$nextBtn.addClass('disabled'); + ui.$nextBtn.addClass("disabled"); } else { - ui.$nextBtn.removeClass('disabled'); + ui.$nextBtn.removeClass("disabled"); } } if (ui.$prevBtn.length) { if (pos <= 0) { - ui.$prevBtn.addClass('disabled'); + ui.$prevBtn.addClass("disabled"); } else { - ui.$prevBtn.removeClass('disabled'); + ui.$prevBtn.removeClass("disabled"); } } @@ -170,11 +170,11 @@ const MultiSlider = (($) => { { left: `${-(pos * ui.slideWidth)}px`, }, - 'slow', - 'swing', + "slow", + "swing", () => { ui.sliding = false; - }, + } ); } @@ -182,11 +182,11 @@ const MultiSlider = (($) => { const ui = this; if (ui.$elContainer) { - ui.$el.parent().find('.slider-actions').remove(); + ui.$el.parent().find(".slider-actions").remove(); } if (ui.$el) { - ui.$el.hammer().unbind('swipeleft panleft swiperight panright'); + ui.$el.hammer().unbind("swipeleft panleft swiperight panright"); } console.log(`Disposing: ${NAME}`); diff --git a/src/js_old/_components/_ui.nocaptcha.js b/src/js_old/_components/_ui.nocaptcha.js index a63e7eb..2ebc2cc 100644 --- a/src/js_old/_components/_ui.nocaptcha.js +++ b/src/js_old/_components/_ui.nocaptcha.js @@ -1,15 +1,15 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../lib/_events'; +import $ from "jquery"; +import Events from "../lib/_events"; const NoCaptcha = (($) => { // Constants const $window = $(window); const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'jsNoCaptcha'; + const NAME = "jsNoCaptcha"; class NoCaptcha { static init() { @@ -18,14 +18,17 @@ const NoCaptcha = (($) => { console.log(`${NAME}: init`); - if ($('.g-recaptcha').length && typeof $window[0].grecaptcha === 'undefined') { + if ( + $(".g-recaptcha").length && + typeof $window[0].grecaptcha === "undefined" + ) { console.log(`${NAME}: Loading Captcha API`); $.getScript( - 'https://www.google.com/recaptcha/api.js?render=explicit&hl=en&onload=noCaptchaFieldRender', + "https://www.google.com/recaptcha/api.js?render=explicit&hl=en&onload=noCaptchaFieldRender", () => { this.renderCaptcha(); - }, + } ); } else { this.renderCaptcha(); @@ -38,41 +41,44 @@ const NoCaptcha = (($) => { static renderCaptcha() { const grecaptcha = $window[0].grecaptcha; - if (typeof grecaptcha === 'undefined' || typeof grecaptcha.render === 'undefined') { + if ( + typeof grecaptcha === "undefined" || + typeof grecaptcha.render === "undefined" + ) { return; } console.log(`${NAME}: Rendering Captcha`); - const $_noCaptchaFields = $('.g-recaptcha'); + const $_noCaptchaFields = $(".g-recaptcha"); - if (!$('.g-recaptcha').length) { + if (!$(".g-recaptcha").length) { console.log(`${NAME}: No Captcha fields`); return; } const submitListener = (e) => { - const $field = $(e.currentTarget).find('.g-recaptcha'); - grecaptcha.execute($field.data('widgetid')); + const $field = $(e.currentTarget).find(".g-recaptcha"); + grecaptcha.execute($field.data("widgetid")); }; $_noCaptchaFields.each((i, field) => { const $field = $(field); - if ($field.data('widgetid') || $field.html().length) { + if ($field.data("widgetid") || $field.html().length) { return; } - const $form = $field.data('form') ? - $(`#${$field.data('form')}`) : - $field.parents('form'); + const $form = $field.data("form") + ? $(`#${$field.data("form")}`) + : $field.parents("form"); const widget_id = grecaptcha.render(field, $field.data()); - $field.data('widgetid', widget_id); + $field.data("widgetid", widget_id); // For the invisible captcha we need to setup some callback listeners - if ($field.data('size') === 'invisible' && !$field.data('callback')) { + if ($field.data("size") === "invisible" && !$field.data("callback")) { grecaptcha.execute(widget_id); - $form.on('submit', submitListener); + $form.on("submit", submitListener); } }); } diff --git a/src/js_old/_components/_ui.opening-hours.js b/src/js_old/_components/_ui.opening-hours.js index b5a6ef7..7b04d6d 100644 --- a/src/js_old/_components/_ui.opening-hours.js +++ b/src/js_old/_components/_ui.opening-hours.js @@ -1,18 +1,18 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from '../_events'; +import Events from "../_events"; const OpeningHoursUI = (($) => { // Constants - const NAME = 'OpeningHoursUI'; + const NAME = "OpeningHoursUI"; class OpeningHoursUI { // Static methods static each(callback) { - $('.js-opening-hours').each((i, e) => { + $(".js-opening-hours").each((i, e) => { callback(i, $(e)); }); } @@ -22,50 +22,50 @@ const OpeningHoursUI = (($) => { console.log(`${NAME}: init ...`); - const hours = $.parseJSON($('.oppening-hours-json').html()); + const hours = $.parseJSON($(".oppening-hours-json").html()); const date = new Date(); const dateYMD = this.Date_toYMD(date); const weekday = [ - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday', + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", ]; const today = weekday[date.getDay()]; let html = 'Closed today'; if ( - typeof hours['days'] !== 'undefined' && - typeof hours['days'][today] !== 'undefined' && - hours['days'][today].length + typeof hours["days"] !== "undefined" && + typeof hours["days"][today] !== "undefined" && + hours["days"][today].length ) { - html = 'Open today '; - $.each(hours['days'][today], (i, v) => { - if (v['DisplayStart'] || v['DisplayEnd']) { + html = "Open today "; + $.each(hours["days"][today], (i, v) => { + if (v["DisplayStart"] || v["DisplayEnd"]) { if ( - (v['DisplayStart'] && - v['DisplayStart'] <= dateYMD && - v['DisplayEnd'] && - v['DisplayEnd'] >= dateYMD) || - (v['DisplayStart'] && - v['DisplayStart'] <= dateYMD && - !v['DisplayEnd']) || - (v['DisplayEnd'] && - v['DisplayEnd'] >= dateYMD && - !v['DisplayStart']) + (v["DisplayStart"] && + v["DisplayStart"] <= dateYMD && + v["DisplayEnd"] && + v["DisplayEnd"] >= dateYMD) || + (v["DisplayStart"] && + v["DisplayStart"] <= dateYMD && + !v["DisplayEnd"]) || + (v["DisplayEnd"] && + v["DisplayEnd"] >= dateYMD && + !v["DisplayStart"]) ) { - html = `Open today from ${v['From']} to ${v['Till']}`; + html = `Open today from ${v["From"]} to ${v["Till"]}`; return false; } } else { if (i > 0) { - html += ',
'; + html += ",
"; } - html += `from ${v['From']} to ${v['Till']}`; + html += `from ${v["From"]} to ${v["Till"]}`; } }); @@ -73,11 +73,11 @@ const OpeningHoursUI = (($) => { } if ( - typeof hours['holidays'] !== 'undefined' && - typeof hours['holidays'][dateYMD] !== 'undefined' + typeof hours["holidays"] !== "undefined" && + typeof hours["holidays"][dateYMD] !== "undefined" ) { html = `Closed today${ - hours['holidays'][dateYMD] ? ` for ${hours['holidays'][dateYMD]}` : '' + hours["holidays"][dateYMD] ? ` for ${hours["holidays"][dateYMD]}` : "" }`; } @@ -104,7 +104,7 @@ const OpeningHoursUI = (($) => { static dispose() { console.log(`${NAME}: dispose`); this.each((i, e) => { - $(e).html(''); + $(e).html(""); }); } } diff --git a/src/js_old/_components/_ui.search.js b/src/js_old/_components/_ui.search.js index 61c5b86..31276a5 100644 --- a/src/js_old/_components/_ui.search.js +++ b/src/js_old/_components/_ui.search.js @@ -1,17 +1,17 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; $(() => { const $searchLat = $('[name="search-lat"]'); const $searchLng = $('[name="search-lng"]'); - const $nearbyLat = $('#nearby-lat'); - const $nearbyLng = $('#nearby-lng'); - const $radius = $('#distance-radius'); - const $category = $('#distance-category'); + const $nearbyLat = $("#nearby-lat"); + const $nearbyLng = $("#nearby-lng"); + const $radius = $("#distance-radius"); + const $category = $("#distance-category"); const $newLocation = $('[name="newlocation"]'); - const $setnewlocation = $('#setnewlocation'); - const $newlocationholder = $('.set-newlocation-holder'); + const $setnewlocation = $("#setnewlocation"); + const $newlocationholder = $(".set-newlocation-holder"); const updatePosition = (lat, lng) => { $searchLat.val(lat); @@ -29,14 +29,14 @@ $(() => { return; } - $('.search-location .current-val').text(newLocation); + $(".search-location .current-val").text(newLocation); const geoUrl = `https://maps.googleapis.com/maps/api/geocode/json?address=${newLocation}&key=AIzaSyC00L0023LPBhzj12uTCL-4EwJ_6zgwcTU&sensor=true`; $.getJSON(geoUrl).done((data) => { - if (data.status === 'OK') { + if (data.status === "OK") { updatePosition( data.results[0].geometry.location.lat, - data.results[0].geometry.location.lng, + data.results[0].geometry.location.lng ); //getCategories(); } @@ -44,7 +44,7 @@ $(() => { }; const getCurrentPosition = () => { - $('.search-location .current-val').text('Current Location'); + $(".search-location .current-val").text("Current Location"); navigator.geolocation.getCurrentPosition( (position) => { @@ -52,9 +52,9 @@ $(() => { //hideDistancesThatDontMatter(); }, () => { - $('.search-location .current-val').text('Unable to get your location'); - updatePosition('', ''); - }, + $(".search-location .current-val").text("Unable to get your location"); + updatePosition("", ""); + } ); }; @@ -64,7 +64,7 @@ $(() => { getCurrentPosition(); } - $('#Form_SearchForm').on('keyup keypress', (e) => { + $("#Form_SearchForm").on("keyup keypress", (e) => { var keyCode = e.keyCode || e.which; if (keyCode === 13) { e.preventDefault(); @@ -72,15 +72,15 @@ $(() => { } }); - $('.get-current-location').on('click', (e) => { + $(".get-current-location").on("click", (e) => { e.preventDefault(); getCurrentPosition(); $newlocationholder.toggle(); - $newLocation.val(''); + $newLocation.val(""); }); - $setnewlocation.on('click', (e) => { + $setnewlocation.on("click", (e) => { e.preventDefault(); $newlocationholder.toggle(); @@ -90,14 +90,14 @@ $(() => { getGeoPosition(); }); - $('.new-search').on('click', (e) => { + $(".new-search").on("click", (e) => { e.preventDefault(); - $('.section-search-secondary').animate( + $(".section-search-secondary").animate( { - 'max-height': 300, + "max-height": 300, }, - 'slow', + "slow" ); }); @@ -129,17 +129,17 @@ $(() => { }); }*/ - const $map = $('#Map'); - if (typeof google !== 'undefined' && $map.length) { - const $directions = $('#DirectionsPanel'), - $fromAddress = $('#FromAddress'), - $getDirections = $('#GetDirections'), - $directionContainer = $('#DirectionContainer'), + const $map = $("#Map"); + if (typeof google !== "undefined" && $map.length) { + const $directions = $("#DirectionsPanel"), + $fromAddress = $("#FromAddress"), + $getDirections = $("#GetDirections"), + $directionContainer = $("#DirectionContainer"), directionsDisplay = new google.maps.DirectionsRenderer(), directionsService = new google.maps.DirectionsService(), currentPosition = { - lat: $map.data('lat'), - lng: $map.data('lng'), + lat: $map.data("lat"), + lng: $map.data("lng"), }, map = new google.maps.Map($map[0], { zoom: 15, @@ -172,7 +172,7 @@ $(() => { if (status === google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } - }, + } ); $directionContainer.slideDown(); diff --git a/src/js_old/_components/_ui.shrink.js b/src/js_old/_components/_ui.shrink.js index 330c4b5..2ea0ae1 100644 --- a/src/js_old/_components/_ui.shrink.js +++ b/src/js_old/_components/_ui.shrink.js @@ -1,43 +1,46 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const ShrinkUI = (($) => { // Constants const W = window; const D = document; - const NAME = 'ShrinkUI'; + const NAME = "ShrinkUI"; console.log(`${NAME}: init`); - $(W).on(`${NAME}.init ${Events.LOADED} ${Events.SCROLL} ${Events.RESIZE}`, () => { - if ($('#Navigation > .navbar-collapse').hasClass('show')) { - return; - } + $(W).on( + `${NAME}.init ${Events.LOADED} ${Events.SCROLL} ${Events.RESIZE}`, + () => { + if ($("#Navigation > .navbar-collapse").hasClass("show")) { + return; + } - let h1 = $('#SiteWideMessage').height(); - if (!h1) { - h1 = 0; - } - let h2 = $('#SiteWideOffline').height(); - if (!h2) { - h2 = 0; - } + let h1 = $("#SiteWideMessage").height(); + if (!h1) { + h1 = 0; + } + let h2 = $("#SiteWideOffline").height(); + if (!h2) { + h2 = 0; + } - let h3 = $('#Header').height(); - if (!h3) { - h3 = 0; - } + let h3 = $("#Header").height(); + if (!h3) { + h3 = 0; + } - const headerHeight = h1 + h2 + h3; + const headerHeight = h1 + h2 + h3; - if ($(D).scrollTop() > headerHeight) { - $('body').addClass('shrink'); - } else { - $('body').removeClass('shrink'); + if ($(D).scrollTop() > headerHeight) { + $("body").addClass("shrink"); + } else { + $("body").removeClass("shrink"); + } } - }); + ); return ShrinkUI; })($); diff --git a/src/js_old/_components/_ui.sidebar.js b/src/js_old/_components/_ui.sidebar.js index d2c8e84..b8309e5 100644 --- a/src/js_old/_components/_ui.sidebar.js +++ b/src/js_old/_components/_ui.sidebar.js @@ -1,16 +1,16 @@ -'use strict'; +"use strict"; //import StickySidebar from 'sticky-sidebar/src/sticky-sidebar'; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; const SidebarUI = (($) => { const D = document; const W = window; - const $Body = $('body'); - const NAME = 'SidebarUI'; + const $Body = $("body"); + const NAME = "SidebarUI"; const CLASSNAME = `js${NAME}`; - const CONTENTHOLDER = 'content-holder'; + const CONTENTHOLDER = "content-holder"; const INNERWRAPPER = `${CLASSNAME}__inner`; class SidebarUI { @@ -50,18 +50,18 @@ const SidebarUI = (($) => { // normal pos if (contentOffset >= scrollPos) { - $innerWrapper.attr('style', ''); + $innerWrapper.attr("style", ""); } else if ( scrollPos >= contentOffset + contentOffsetHeight - $innerWrapper[0].offsetHeight ) { // bottom pos - $innerWrapper.attr('style', `position:absolute;bottom:${fontSize}px`); + $innerWrapper.attr("style", `position:absolute;bottom:${fontSize}px`); } else { // scrolled pos $innerWrapper.attr( - 'style', - `position:fixed;top:${fontSize}px;width:${sidebarWidth}px`, + "style", + `position:fixed;top:${fontSize}px;width:${sidebarWidth}px` ); } }); diff --git a/src/js_old/_components/_ui.spinner.js b/src/js_old/_components/_ui.spinner.js index 1dbfdfd..6bb9dcf 100644 --- a/src/js_old/_components/_ui.spinner.js +++ b/src/js_old/_components/_ui.spinner.js @@ -1,14 +1,14 @@ -'use strict'; -import $ from 'jquery'; +"use strict"; +import $ from "jquery"; const SpinnerUI = (($) => { class SpinnerUI { static show(callback) { - $('#PageLoading').show(0, callback); + $("#PageLoading").show(0, callback); } static hide(callback) { - $('#PageLoading').hide('slow', callback); + $("#PageLoading").hide("slow", callback); } } diff --git a/src/js_old/_components/_ui.video.preview.js b/src/js_old/_components/_ui.video.preview.js index 6470d9d..2efb647 100644 --- a/src/js_old/_components/_ui.video.preview.js +++ b/src/js_old/_components/_ui.video.preview.js @@ -1,13 +1,13 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import MainUI from '../_main'; -import Events from '../_events'; -import SpinnerUI from './_ui.spinner'; +import MainUI from "../_main"; +import Events from "../_events"; +import SpinnerUI from "./_ui.spinner"; const VideoPreviewUI = (($) => { - const NAME = 'jsVideoPreviewUI'; + const NAME = "jsVideoPreviewUI"; const DATA_KEY = NAME; const G = window; @@ -15,16 +15,15 @@ const VideoPreviewUI = (($) => { class VideoPreviewUI { constructor(el) { - const ui = this; ui.$_el = $(el); ui.innerHTML = ui.$_el[0].innerHTML; ui.$_el.data(DATA_KEY, this); - const href = ui.$_el.attr('href') || ui.$_el.data('href'); + const href = ui.$_el.attr("href") || ui.$_el.data("href"); const YouTubeGetID = (url) => { const parsedURL = url.split( - /(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/, + /(vi\/|v%3D|v=|\/v\/|youtu\.be\/|\/embed\/)/ ); console.log(`${NAME}: ${parsedURL}`); return undefined !== parsedURL[2] @@ -36,31 +35,31 @@ const VideoPreviewUI = (($) => { if ( (video = href.match( - /(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/, + /(youtube|youtube-nocookie|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/ )) ) { let video_id; if ( - video[1] === 'youtube' || - video[1] === 'youtube-nocookie' || - video[1] === 'youtu' + video[1] === "youtube" || + video[1] === "youtube-nocookie" || + video[1] === "youtu" ) { video_id = YouTubeGetID(href); } - if (video[1] == 'vimeo') { + if (video[1] == "vimeo") { video_id = video[3]; - ui.$_el.addClass('loading'); + ui.$_el.addClass("loading"); $.ajax({ - type: 'GET', + type: "GET", url: `https://vimeo.com/api/v2/video/${video_id}.json`, - jsonp: 'callback', - dataType: 'jsonp', + jsonp: "callback", + dataType: "jsonp", success: function (data) { const thumbnail_src = data[0].thumbnail_large; ui.show(thumbnail_src); - ui.$_el.removeClass('loading'); + ui.$_el.removeClass("loading"); }, }); @@ -75,7 +74,7 @@ const VideoPreviewUI = (($) => { show(src) { const ui = this; - ui.$_el[0].innerHTML = ''; + ui.$_el[0].innerHTML = ""; ui.$_el.append(`Video`); } diff --git a/src/js_old/_components/_ui.visibility.js b/src/js_old/_components/_ui.visibility.js index 87369f6..487e97d 100644 --- a/src/js_old/_components/_ui.visibility.js +++ b/src/js_old/_components/_ui.visibility.js @@ -1,5 +1,5 @@ -'use strict'; -import $ from 'jquery'; +"use strict"; +import $ from "jquery"; const G = window; const D = document; diff --git a/src/js_old/_components/drivers/_google.track.external.links.js b/src/js_old/_components/drivers/_google.track.external.links.js index 1ba472b..1c7e2e4 100644 --- a/src/js_old/_components/drivers/_google.track.external.links.js +++ b/src/js_old/_components/drivers/_google.track.external.links.js @@ -1,5 +1,5 @@ function _gaLt(event) { - if (typeof ga !== 'function') { + if (typeof ga !== "function") { return; } @@ -8,8 +8,8 @@ function _gaLt(event) { /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */ while ( el && - (typeof el.tagName == 'undefined' || - el.tagName.toLowerCase() != 'a' || + (typeof el.tagName == "undefined" || + el.tagName.toLowerCase() != "a" || !el.href) ) { el = el.parentNode; @@ -21,7 +21,7 @@ function _gaLt(event) { if (link.indexOf(location.host) == -1 && !link.match(/^javascript:/i)) { /* external link */ /* HitCallback function to either open link in either same or new window */ - var hitBack = function(link, target) { + var hitBack = function (link, target) { target ? window.open(link, target) : (window.location.href = link); }; /* Is target set and not _(self|parent|top)? */ @@ -31,12 +31,12 @@ function _gaLt(event) { : false; /* send event with callback */ ga( - 'send', - 'event', - 'Outgoing Links', + "send", + "event", + "Outgoing Links", link, document.location.pathname + document.location.search, - { hitCallback: hitBack(link, target) }, + { hitCallback: hitBack(link, target) } ); /* Prevent standard click */ @@ -49,13 +49,13 @@ function _gaLt(event) { var w = window; w.addEventListener ? w.addEventListener( - 'load', + "load", () => { - document.body.addEventListener('click', _gaLt, !1); + document.body.addEventListener("click", _gaLt, !1); }, - !1, + !1 ) : w.attachEvent && - w.attachEvent('onload', () => { - document.body.attachEvent('onclick', _gaLt); + w.attachEvent("onload", () => { + document.body.attachEvent("onclick", _gaLt); }); diff --git a/src/js_old/_components/drivers/_map.google.font-icons.js b/src/js_old/_components/drivers/_map.google.font-icons.js index ccb5373..db5b52e 100644 --- a/src/js_old/_components/drivers/_map.google.font-icons.js +++ b/src/js_old/_components/drivers/_map.google.font-icons.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; const Obj = { init: () => { @@ -9,11 +9,9 @@ const Obj = { ui.setMap(options.map); ui.position = options.position; - ui.html = - (options.html ? - options.html : - '
' - ); + ui.html = options.html + ? options.html + : '
'; ui.divClass = options.divClass; ui.align = options.align; ui.isDebugMode = options.debug; @@ -21,7 +19,7 @@ const Obj = { ui.onMouseOver = options.onMouseOver; ui.isBoolean = (arg) => { - if (typeof arg === 'boolean') { + if (typeof arg === "boolean") { return true; } else { return false; @@ -29,7 +27,7 @@ const Obj = { }; ui.isNotUndefined = (arg) => { - if (typeof arg !== 'undefined') { + if (typeof arg !== "undefined") { return true; } else { return false; @@ -45,7 +43,7 @@ const Obj = { }; ui.isString = (arg) => { - if (typeof arg === 'string') { + if (typeof arg === "string") { return true; } else { return false; @@ -53,7 +51,7 @@ const Obj = { }; ui.isFunction = (arg) => { - if (typeof arg === 'function') { + if (typeof arg === "function") { return true; } else { return false; @@ -64,8 +62,8 @@ const Obj = { const ui = this; // Create div element. - ui.div = document.createElement('div'); - ui.div.style.position = 'absolute'; + ui.div = document.createElement("div"); + ui.div.style.position = "absolute"; // Validate and set custom div class if (ui.isNotUndefined(ui.divClass) && ui.hasContent(ui.divClass)) @@ -81,19 +79,19 @@ const Obj = { // If debug mode is enabled custom content will be replaced with debug content if (ui.isBoolean(ui.isDebugMode) && ui.isDebugMode) { - ui.div.className = 'debug-mode'; + ui.div.className = "debug-mode"; ui.div.innerHTML = '
' + '
Debug mode
'; ui.div.setAttribute( - 'style', - 'position: absolute;' + - 'border: 5px dashed red;' + - 'height: 150px;' + - 'width: 150px;' + - 'display: flex;' + - 'justify-content: center;' + - 'align-items: center;' + "style", + "position: absolute;" + + "border: 5px dashed red;" + + "height: 150px;" + + "width: 150px;" + + "display: flex;" + + "justify-content: center;" + + "align-items: center;" ); } @@ -101,14 +99,14 @@ const Obj = { ui.getPanes().overlayMouseTarget.appendChild(ui.div); // Add listeners to the element. - google.maps.event.addDomListener(ui.div, 'click', (event) => { - google.maps.event.trigger(ui, 'click'); + google.maps.event.addDomListener(ui.div, "click", (event) => { + google.maps.event.trigger(ui, "click"); if (ui.isFunction(ui.onClick)) ui.onClick(); event.stopPropagation(); }); - google.maps.event.addDomListener(ui.div, 'mouseover', (event) => { - google.maps.event.trigger(ui, 'mouseover'); + google.maps.event.addDomListener(ui.div, "mouseover", (event) => { + google.maps.event.trigger(ui, "mouseover"); if (ui.isFunction(ui.onMouseOver)) ui.onMouseOver(); event.stopPropagation(); }); @@ -118,9 +116,9 @@ const Obj = { const ui = this; // Calculate position of div - var positionInPixels = ui.getProjection().fromLatLngToDivPixel( - new google.maps.LatLng(ui.position) - ); + var positionInPixels = ui + .getProjection() + .fromLatLngToDivPixel(new google.maps.LatLng(ui.position)); // Align HTML overlay relative to original position var divOffset = { @@ -128,40 +126,40 @@ const Obj = { x: undefined, }; - switch (Array.isArray(ui.align) ? ui.align.join(' ') : '') { - case 'left top': + switch (Array.isArray(ui.align) ? ui.align.join(" ") : "") { + case "left top": divOffset.y = ui.div.offsetHeight; divOffset.x = ui.div.offsetWidth; break; - case 'left center': + case "left center": divOffset.y = ui.div.offsetHeight / 2; divOffset.x = ui.div.offsetWidth; break; - case 'left bottom': + case "left bottom": divOffset.y = 0; divOffset.x = ui.div.offsetWidth; break; - case 'center top': + case "center top": divOffset.y = ui.div.offsetHeight; divOffset.x = ui.div.offsetWidth / 2; break; - case 'center center': + case "center center": divOffset.y = ui.div.offsetHeight / 2; divOffset.x = ui.div.offsetWidth / 2; break; - case 'center bottom': + case "center bottom": divOffset.y = 0; divOffset.x = ui.div.offsetWidth / 2; break; - case 'right top': + case "right top": divOffset.y = ui.div.offsetHeight; divOffset.x = 0; break; - case 'right center': + case "right center": divOffset.y = ui.div.offsetHeight / 2; divOffset.x = 0; break; - case 'right bottom': + case "right bottom": divOffset.y = 0; divOffset.x = 0; break; @@ -171,8 +169,8 @@ const Obj = { } // Set position - ui.div.style.top = `${positionInPixels.y - divOffset.y }px`; - ui.div.style.left = `${positionInPixels.x - divOffset.x }px`; + ui.div.style.top = `${positionInPixels.y - divOffset.y}px`; + ui.div.style.left = `${positionInPixels.x - divOffset.x}px`; } getPosition() { @@ -194,6 +192,6 @@ const Obj = { } return GoogleMapsHtmlOverlay; }, -} +}; export default Obj; diff --git a/src/js_old/_components/drivers/_map.google.js b/src/js_old/_components/drivers/_map.google.js index 3ac5994..8fdf1a9 100644 --- a/src/js_old/_components/drivers/_map.google.js +++ b/src/js_old/_components/drivers/_map.google.js @@ -1,16 +1,16 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import MarkerClusterer from '@googlemaps/markerclustererplus'; +import MarkerClusterer from "@googlemaps/markerclustererplus"; -import Events from '../../_events'; -import MarkerUI from './_map.google.marker'; +import Events from "../../_events"; +import MarkerUI from "./_map.google.marker"; const GoogleMapsDriver = (($) => { class GoogleMapsDriver { getName() { - return 'GoogleMapsDriver'; + return "GoogleMapsDriver"; } init($el, config = []) { @@ -25,10 +25,10 @@ const GoogleMapsDriver = (($) => { ui.googleApiLoaded(); }; - $('body').append( + $("body").append( ``, + config["key"] + }&callback=init${ui.getName()}">` ); } @@ -37,19 +37,19 @@ const GoogleMapsDriver = (($) => { const $el = ui.$el; const config = ui.config; - const $mapDiv = $el.find('.mapAPI-map'); + const $mapDiv = $el.find(".mapAPI-map"); - const zoom = config['mapZoom'] ? config['mapZoom'] : 10; - const center = config['center'] + const zoom = config["mapZoom"] ? config["mapZoom"] : 10; + const center = config["center"] ? { - lat: config['center'][1], - lng: config['center'][0], + lat: config["center"][1], + lng: config["center"][0], } : { lat: 0, lng: 0, }; - const style = config['style'] ? config['style'] : null; + const style = config["style"] ? config["style"] : null; console.log(`${ui.getName()}: API is loaded`); // init fontawesome icons @@ -64,28 +64,30 @@ const GoogleMapsDriver = (($) => { ui.default_zoom = zoom; - $mapDiv.addClass('mapboxgl-map'); + $mapDiv.addClass("mapboxgl-map"); ui.popup = new ui.MarkerUI({ map: ui.map, - align: ['center', 'top'], - divClass: 'mapboxgl-popup popup mapboxgl-popup-anchor-bottom d-none', + align: ["center", "top"], + divClass: "mapboxgl-popup popup mapboxgl-popup-anchor-bottom d-none", html: '
' + '
×
' + '
' + - '
', + "
", }); ui.popup.setMap(ui.map); ui.geocoder = new google.maps.Geocoder(); ui.cluster = new MarkerClusterer(ui.map, null, { - styles: [{ - width: 30, - height: 30, - className: 'mapboxgl-cluster', - }], + styles: [ + { + width: 30, + height: 30, + className: "mapboxgl-cluster", + }, + ], }); $el.trigger(Events.MAPAPILOADED); @@ -102,11 +104,11 @@ const GoogleMapsDriver = (($) => { const marker = new ui.MarkerUI({ position: pos, map: ui.map, - align: ['center', 'top'], - html: `
${config['icon']}
`, + align: ["center", "top"], + html: `
${config["icon"]}
`, onClick: () => { - const $el = $(`#Marker${config['id']}`); - ui.showPopup(pos, config['content']); + const $el = $(`#Marker${config["id"]}`); + ui.showPopup(pos, config["content"]); $el.trigger(Events.MAPMARKERCLICK); }, @@ -123,33 +125,33 @@ const GoogleMapsDriver = (($) => { const ui = this; const $popup = $(ui.popup.getDiv()); - if (ui.config['flyToMarker']) { + if (ui.config["flyToMarker"]) { ui.map.setCenter(pos); // panTo - if (!ui.config['noZoom']) { + if (!ui.config["noZoom"]) { ui.map.setZoom(18); } } // keep it hidden to render content $popup.css({ - opacity: '0', + opacity: "0", }); - $popup.removeClass('d-none'); + $popup.removeClass("d-none"); - $popup.find('.mapboxgl-popup-content .html').html(content); + $popup.find(".mapboxgl-popup-content .html").html(content); - $popup.find('.mapboxgl-popup-close-button').on('click', (e) => { + $popup.find(".mapboxgl-popup-close-button").on("click", (e) => { e.preventDefault(); ui.hidePopup(); }); // set position when content was rendered - ui.popup.setPosition(pos, ['center', 'top']); + ui.popup.setPosition(pos, ["center", "top"]); // display popup $popup.css({ - 'margin-top': '-1rem', - opacity: '1', + "margin-top": "-1rem", + opacity: "1", }); } @@ -157,8 +159,8 @@ const GoogleMapsDriver = (($) => { const ui = this; const $popup = $(ui.popup.getDiv()); - $popup.addClass('d-none'); - if (!ui.config['noRestoreBounds'] || ui.config['flyToBounds']) { + $popup.addClass("d-none"); + if (!ui.config["noRestoreBounds"] || ui.config["flyToBounds"]) { ui.restoreBounds(); } @@ -173,20 +175,20 @@ const GoogleMapsDriver = (($) => { address: addr, }, (results, status) => { - if (status === 'OK') { + if (status === "OK") { //results[0].geometry.location; - if (typeof callback === 'function') { + if (typeof callback === "function") { callback(results); } return results; } else { console.error( - `${ui.getName()}: Geocode was not successful for the following reason: ${status}`, + `${ui.getName()}: Geocode was not successful for the following reason: ${status}` ); } - }, + } ); } @@ -198,32 +200,32 @@ const GoogleMapsDriver = (($) => { location: latlng, }, (results, status) => { - if (status === 'OK') { + if (status === "OK") { //results[0].formatted_address; - if (typeof callback === 'function') { + if (typeof callback === "function") { callback(results); } return results; } else { console.error( - `${ui.getName()}: Reverse Geocoding was not successful for the following reason: ${status}`, + `${ui.getName()}: Reverse Geocoding was not successful for the following reason: ${status}` ); } - }, + } ); } addGeoJson(config) { const ui = this; - const firstMarker = config['geojson'].features[0].geometry.coordinates; + const firstMarker = config["geojson"].features[0].geometry.coordinates; //Map.setCenter(firstMarker); const bounds = new google.maps.LatLngBounds(); // add markers to map - config['geojson'].features.forEach((marker) => { + config["geojson"].features.forEach((marker) => { const id = marker.id; const crds = marker.geometry.coordinates; const content = marker.properties.content; @@ -232,7 +234,7 @@ const GoogleMapsDriver = (($) => { id, content, icon: marker.icon, - flyToMarker: config['flyToMarker'], + flyToMarker: config["flyToMarker"], }); bounds.extend({ diff --git a/src/js_old/_components/drivers/_map.google.marker.js b/src/js_old/_components/drivers/_map.google.marker.js index 7f475e4..38e69a6 100644 --- a/src/js_old/_components/drivers/_map.google.marker.js +++ b/src/js_old/_components/drivers/_map.google.marker.js @@ -1,6 +1,6 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; const Obj = { init: () => { @@ -22,7 +22,7 @@ const Obj = { ui.onMouseOver = options.onMouseOver; ui.isBoolean = (arg) => { - if (typeof arg === 'boolean') { + if (typeof arg === "boolean") { return true; } else { return false; @@ -30,7 +30,7 @@ const Obj = { }; ui.isNotUndefined = (arg) => { - if (typeof arg !== 'undefined') { + if (typeof arg !== "undefined") { return true; } else { return false; @@ -46,7 +46,7 @@ const Obj = { }; ui.isString = (arg) => { - if (typeof arg === 'string') { + if (typeof arg === "string") { return true; } else { return false; @@ -54,7 +54,7 @@ const Obj = { }; ui.isFunction = (arg) => { - if (typeof arg === 'function') { + if (typeof arg === "function") { return true; } else { return false; @@ -65,8 +65,8 @@ const Obj = { const ui = this; // Create div element. - ui.div = document.createElement('div'); - ui.div.style.position = 'absolute'; + ui.div = document.createElement("div"); + ui.div.style.position = "absolute"; // Validate and set custom div class if (ui.isNotUndefined(ui.divClass) && ui.hasContent(ui.divClass)) @@ -82,19 +82,19 @@ const Obj = { // If debug mode is enabled custom content will be replaced with debug content if (ui.isBoolean(ui.isDebugMode) && ui.isDebugMode) { - ui.div.className = 'debug-mode'; + ui.div.className = "debug-mode"; ui.div.innerHTML = '
' + '
Debug mode
'; ui.div.setAttribute( - 'style', - 'position: absolute;' + - 'border: 5px dashed red;' + - 'height: 150px;' + - 'width: 150px;' + - 'display: flex;' + - 'justify-content: center;' + - 'align-items: center;', + "style", + "position: absolute;" + + "border: 5px dashed red;" + + "height: 150px;" + + "width: 150px;" + + "display: flex;" + + "justify-content: center;" + + "align-items: center;" ); } @@ -102,14 +102,14 @@ const Obj = { ui.getPanes().overlayMouseTarget.appendChild(ui.div); // Add listeners to the element. - google.maps.event.addDomListener(ui.div, 'click', (event) => { - google.maps.event.trigger(ui, 'click'); + google.maps.event.addDomListener(ui.div, "click", (event) => { + google.maps.event.trigger(ui, "click"); if (ui.isFunction(ui.onClick)) ui.onClick(); event.stopPropagation(); }); - google.maps.event.addDomListener(ui.div, 'mouseover', (event) => { - google.maps.event.trigger(ui, 'mouseover'); + google.maps.event.addDomListener(ui.div, "mouseover", (event) => { + google.maps.event.trigger(ui, "mouseover"); if (ui.isFunction(ui.onMouseOver)) ui.onMouseOver(); event.stopPropagation(); }); @@ -119,7 +119,7 @@ const Obj = { const ui = this; let $div = $(ui.div).find( - '.mapboxgl-marker,.marker-pin,.mapboxgl-popup,.popup', + ".mapboxgl-marker,.marker-pin,.mapboxgl-popup,.popup" ); if (!$div.length) { $div = $(ui.div); @@ -128,12 +128,14 @@ const Obj = { // Calculate position of div const projection = ui.getProjection(); - if(!projection) { - console.log('GoogleMapsHtmlOverlay: current map is missing'); + if (!projection) { + console.log("GoogleMapsHtmlOverlay: current map is missing"); return null; } - const positionInPixels = projection.fromLatLngToDivPixel(ui.getPosition()); + const positionInPixels = projection.fromLatLngToDivPixel( + ui.getPosition() + ); // Align HTML overlay relative to original position const offset = { @@ -143,40 +145,40 @@ const Obj = { const divWidth = $div.outerWidth(); const divHeight = $div.outerHeight(); - switch (Array.isArray(ui.align) ? ui.align.join(' ') : '') { - case 'left top': + switch (Array.isArray(ui.align) ? ui.align.join(" ") : "") { + case "left top": offset.y = divHeight; offset.x = divWidth; break; - case 'left center': + case "left center": offset.y = divHeight / 2; offset.x = divWidth; break; - case 'left bottom': + case "left bottom": offset.y = 0; offset.x = divWidth; break; - case 'center top': + case "center top": offset.y = divHeight; offset.x = divWidth / 2; break; - case 'center center': + case "center center": offset.y = divHeight / 2; offset.x = divWidth / 2; break; - case 'center bottom': + case "center bottom": offset.y = 0; offset.x = divWidth / 2; break; - case 'right top': + case "right top": offset.y = divHeight; offset.x = 0; break; - case 'right center': + case "right center": offset.y = divHeight / 2; offset.x = 0; break; - case 'right bottom': + case "right bottom": offset.y = 0; offset.x = 0; break; diff --git a/src/js_old/_components/drivers/_map.mapbox.js b/src/js_old/_components/drivers/_map.mapbox.js index b4a9fe5..f525253 100644 --- a/src/js_old/_components/drivers/_map.mapbox.js +++ b/src/js_old/_components/drivers/_map.mapbox.js @@ -1,40 +1,40 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; -import mapBoxGL from 'mapbox-gl'; +import $ from "jquery"; +import mapBoxGL from "mapbox-gl"; -import Events from '../../_events'; +import Events from "../../_events"; const MapBoxDriver = (($) => { class MapBoxDriver { getName() { - return 'MapBoxDriver'; + return "MapBoxDriver"; } init($el, config = []) { const ui = this; - mapBoxGL.accessToken = config['key']; + mapBoxGL.accessToken = config["key"]; ui.map = new mapBoxGL.Map({ - container: $el.find('.mapAPI-map')[0], - center: config['center'] ? config['center'] : [0, 0], + container: $el.find(".mapAPI-map")[0], + center: config["center"] ? config["center"] : [0, 0], //hash: true, - style: config['style'] - ? config['style'] - : 'mapbox://styles/mapbox/streets-v9', - localIdeographFontFamily: config['font-family'], - zoom: config['mapZoom'] ? config['mapZoom'] : 10, + style: config["style"] + ? config["style"] + : "mapbox://styles/mapbox/streets-v9", + localIdeographFontFamily: config["font-family"], + zoom: config["mapZoom"] ? config["mapZoom"] : 10, attributionControl: false, antialias: true, - accessToken: config['key'], + accessToken: config["key"], }) .addControl( new mapBoxGL.AttributionControl({ compact: true, - }), + }) ) - .addControl(new mapBoxGL.NavigationControl(), 'top-right') + .addControl(new mapBoxGL.NavigationControl(), "top-right") .addControl( new mapBoxGL.GeolocateControl({ positionOptions: { @@ -42,24 +42,24 @@ const MapBoxDriver = (($) => { }, trackUserLocation: true, }), - 'bottom-right', + "bottom-right" ) .addControl( new mapBoxGL.ScaleControl({ maxWidth: 80, - unit: 'metric', + unit: "metric", }), - 'top-left', + "top-left" ) .addControl(new mapBoxGL.FullscreenControl()); - ui.map.on('load', (e) => { + ui.map.on("load", (e) => { $el.trigger(Events.MAPAPILOADED); }); ui.popup = new mapBoxGL.Popup({ closeOnClick: false, - className: 'popup', + className: "popup", }); } @@ -68,16 +68,13 @@ const MapBoxDriver = (($) => { // create a DOM el for the marker const $el = $( - `
${config['icon']}
`, + `
${config["icon"]}
` ); - $el.on('click', (e) => { - ui.popup - .setLngLat(crds) - .setHTML(config['content']) - .addTo(ui.map); + $el.on("click", (e) => { + ui.popup.setLngLat(crds).setHTML(config["content"]).addTo(ui.map); - if (config['flyToMarker']) { + if (config["flyToMarker"]) { ui.map.flyTo({ center: crds, zoom: 17, @@ -135,12 +132,12 @@ const MapBoxDriver = (($) => { }, labelLayerId); }*/ - const firstMarker = config['geojson'].features[0].geometry.coordinates; + const firstMarker = config["geojson"].features[0].geometry.coordinates; //Map.setCenter(firstMarker); const bounds = new mapBoxGL.LngLatBounds(firstMarker, firstMarker); // add markers to map - config['geojson'].features.forEach((marker) => { + config["geojson"].features.forEach((marker) => { const id = marker.id; const crds = marker.geometry.coordinates; const content = marker.properties.content; @@ -149,7 +146,7 @@ const MapBoxDriver = (($) => { id, content, icon: marker.icon, - flyToMarker: config['flyToMarker'], + flyToMarker: config["flyToMarker"], }); bounds.extend(crds); @@ -159,8 +156,8 @@ const MapBoxDriver = (($) => { padding: 30, }); - ui.popup.on('close', (e) => { - if (config['flyToBounds']) { + ui.popup.on("close", (e) => { + if (config["flyToBounds"]) { ui.map.fitBounds(bounds, { padding: 30, }); diff --git a/src/js_old/_components/mapStorage.js b/src/js_old/_components/mapStorage.js index 4be7e30..826b246 100644 --- a/src/js_old/_components/mapStorage.js +++ b/src/js_old/_components/mapStorage.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; import mapbox from "mapbox-gl"; @@ -8,7 +8,7 @@ window.offlineMaps.eventManager = { _events: {}, on: function (event, action) { - console.log(`event.on: ${ event}`); + console.log(`event.on: ${event}`); if (!(event in this._events)) { this._events[event] = []; } @@ -17,13 +17,13 @@ window.offlineMaps.eventManager = { }, off: function (event) { - console.log(`event.off: ${ event}`); + console.log(`event.off: ${event}`); delete this._events[event]; return this; }, fire: function (event) { - console.log(`event.fire: ${ event}`); + console.log(`event.fire: ${event}`); var events = this._events; if (event in events) { var actions = events[event]; @@ -43,16 +43,20 @@ window.offlineMaps.eventManager = { (function (window, emr, undefined) { var getIndexedDBStorage = function () { - var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; + var indexedDB = + window.indexedDB || + window.mozIndexedDB || + window.webkitIndexedDB || + window.msIndexedDB; var IndexedDBImpl = function () { var self = this; var db = null; - var request = indexedDB.open('TileStorage'); + var request = indexedDB.open("TileStorage"); - request.onsuccess = function() { + request.onsuccess = function () { db = this.result; - emr.fire('storageLoaded', self); + emr.fire("storageLoaded", self); }; request.onerror = function (error) { @@ -60,25 +64,25 @@ window.offlineMaps.eventManager = { }; request.onupgradeneeded = function () { - var store = this.result.createObjectStore('tile', { keyPath: 'key' }); - store.createIndex('key', 'key', { unique: true }); + var store = this.result.createObjectStore("tile", { keyPath: "key" }); + store.createIndex("key", "key", { unique: true }); }; this.add = function (key, value) { - var transaction = db.transaction(['tile'], 'readwrite'); - var objectStore = transaction.objectStore('tile'); + var transaction = db.transaction(["tile"], "readwrite"); + var objectStore = transaction.objectStore("tile"); objectStore.put({ key, value }); }; this.delete = function (key) { - var transaction = db.transaction(['tile'], 'readwrite'); - var objectStore = transaction.objectStore('tile'); + var transaction = db.transaction(["tile"], "readwrite"); + var objectStore = transaction.objectStore("tile"); objectStore.delete(key); }; this.get = function (key, successCallback, errorCallback) { - var transaction = db.transaction(['tile'], 'readonly'); - var objectStore = transaction.objectStore('tile'); + var transaction = db.transaction(["tile"], "readonly"); + var objectStore = transaction.objectStore("tile"); var result = objectStore.get(key); result.onsuccess = function () { successCallback(this.result ? this.result.value : undefined); @@ -95,30 +99,49 @@ window.offlineMaps.eventManager = { var WebSqlImpl = function () { var self = this; - var db = openDatabase('TileStorage', '1.0', 'Tile Storage', 5 * 1024 * 1024); + var db = openDatabase( + "TileStorage", + "1.0", + "Tile Storage", + 5 * 1024 * 1024 + ); db.transaction((tx) => { - tx.executeSql('CREATE TABLE IF NOT EXISTS tile (key TEXT PRIMARY KEY, value TEXT)', [], () => { - emr.fire('storageLoaded', self); - }); + tx.executeSql( + "CREATE TABLE IF NOT EXISTS tile (key TEXT PRIMARY KEY, value TEXT)", + [], + () => { + emr.fire("storageLoaded", self); + } + ); }); this.add = function (key, value) { db.transaction((tx) => { - tx.executeSql('INSERT INTO tile (key, value) VALUES (?, ?)', [key, value]); + tx.executeSql("INSERT INTO tile (key, value) VALUES (?, ?)", [ + key, + value, + ]); }); }; this.delete = function (key) { db.transaction((tx) => { - tx.executeSql('DELETE FROM tile WHERE key = ?', [key]); + tx.executeSql("DELETE FROM tile WHERE key = ?", [key]); }); }; this.get = function (key, successCallback, errorCallback) { db.transaction((tx) => { - tx.executeSql('SELECT value FROM tile WHERE key = ?', [key], (tx, result) => { - successCallback(result.rows.length ? result.rows.item(0).value : undefined); - }, errorCallback); + tx.executeSql( + "SELECT value FROM tile WHERE key = ?", + [key], + (tx, result) => { + successCallback( + result.rows.length ? result.rows.item(0).value : undefined + ); + }, + errorCallback + ); }); }; }; @@ -126,10 +149,10 @@ window.offlineMaps.eventManager = { return openDatabase ? new WebSqlImpl() : null; }; - emr.on('storageLoad', () => { - var storage = getIndexedDBStorage() || getWebSqlStorage() || null; + emr.on("storageLoad", () => { + var storage = getIndexedDBStorage() || getWebSqlStorage() || null; if (!storage) { - emr.fire('storageLoaded', null); + emr.fire("storageLoaded", null); } }); })(window, window.offlineMaps.eventManager); @@ -141,25 +164,30 @@ window.offlineMaps.eventManager = { }; StorageRequestManager.prototype._imageToDataUri = function (image) { - var canvas = window.document.createElement('canvas'); + var canvas = window.document.createElement("canvas"); canvas.width = image.width; canvas.height = image.height; - var context = canvas.getContext('2d'); + var context = canvas.getContext("2d"); context.drawImage(image, 0, 0); - return canvas.toDataURL('image/png'); + return canvas.toDataURL("image/png"); }; - StorageRequestManager.prototype._createTileImage = function (id, coord, value, cache) { - var img = window.document.createElement('img'); + StorageRequestManager.prototype._createTileImage = function ( + id, + coord, + value, + cache + ) { + var img = window.document.createElement("img"); img.id = id; - img.style.position = 'absolute'; + img.style.position = "absolute"; img.coord = coord; this.loadingBay.appendChild(img); if (cache) { img.onload = this.getLoadCompleteWithCache(); - img.crossOrigin = 'Anonymous'; + img.crossOrigin = "Anonymous"; } else { img.onload = this.getLoadComplete(); } @@ -170,15 +198,19 @@ window.offlineMaps.eventManager = { StorageRequestManager.prototype._loadTile = function (id, coord, url) { var self = this; if (this._storage) { - this._storage.get(id, (value) => { - if (value) { - self._createTileImage(id, coord, value, false); - } else { + this._storage.get( + id, + (value) => { + if (value) { + self._createTileImage(id, coord, value, false); + } else { + self._createTileImage(id, coord, url, true); + } + }, + () => { self._createTileImage(id, coord, url, true); } - }, () => { - self._createTileImage(id, coord, url, true); - }); + ); } else { self._createTileImage(id, coord, url, false); } @@ -188,7 +220,10 @@ window.offlineMaps.eventManager = { if (sortFunc && this.requestQueue.length > 8) { this.requestQueue.sort(sortFunc); } - while (this.openRequestCount < this.maxOpenRequests && this.requestQueue.length > 0) { + while ( + this.openRequestCount < this.maxOpenRequests && + this.requestQueue.length > 0 + ) { var request = this.requestQueue.pop(); if (request) { this.openRequestCount++; @@ -201,7 +236,7 @@ window.offlineMaps.eventManager = { StorageRequestManager.prototype.getLoadCompleteWithCache = function () { if (!this._loadComplete) { var theManager = this; - this._loadComplete = function(e) { + this._loadComplete = function (e) { //e = e || window.event; var img = e.srcElement || e.target; @@ -215,13 +250,15 @@ window.offlineMaps.eventManager = { theManager.openRequestCount--; delete theManager.requestsById[img.id]; - if (e.type === 'load' && (img.complete || - (img.readyState && img.readyState === 'complete'))) { - theManager.dispatchCallback('requestcomplete', img); + if ( + e.type === "load" && + (img.complete || (img.readyState && img.readyState === "complete")) + ) { + theManager.dispatchCallback("requestcomplete", img); } else { - theManager.dispatchCallback('requesterror', { + theManager.dispatchCallback("requesterror", { element: img, - url: (`${ img.src}`), + url: `${img.src}`, }); img.src = null; } @@ -234,15 +271,16 @@ window.offlineMaps.eventManager = { MM.extend(StorageRequestManager, MM.RequestManager); - var StorageLayer = function(provider, parent, name, storage) { - this.parent = parent || document.createElement('div'); - this.parent.style.cssText = 'position: absolute; top: 0px; left: 0px;' + - 'width: 100%; height: 100%; margin: 0; padding: 0; z-index: 0'; + var StorageLayer = function (provider, parent, name, storage) { + this.parent = parent || document.createElement("div"); + this.parent.style.cssText = + "position: absolute; top: 0px; left: 0px;" + + "width: 100%; height: 100%; margin: 0; padding: 0; z-index: 0"; this.name = name; this.levels = {}; this.requestManager = new StorageRequestManager(storage); - this.requestManager.addCallback('requestcomplete', this.getTileComplete()); - this.requestManager.addCallback('requesterror', this.getTileError()); + this.requestManager.addCallback("requestcomplete", this.getTileComplete()); + this.requestManager.addCallback("requesterror", this.getTileError()); if (provider) { this.setProvider(provider); } @@ -250,21 +288,32 @@ window.offlineMaps.eventManager = { MM.extend(StorageLayer, MM.Layer); - var StorageTemplatedLayer = function(template, subdomains, name, storage) { - return new StorageLayer(new MM.Template(template, subdomains), null, name, storage); + var StorageTemplatedLayer = function (template, subdomains, name, storage) { + return new StorageLayer( + new MM.Template(template, subdomains), + null, + name, + storage + ); }; - emr.on('mapLoad', (storage) => { - var map = mapbox.map('map'); - map.addLayer(new StorageTemplatedLayer('http://{S}.tile.osm.org/{Z}/{X}/{Y}.png', - ['a', 'b', 'c'], undefined, storage)); + emr.on("mapLoad", (storage) => { + var map = mapbox.map("map"); + map.addLayer( + new StorageTemplatedLayer( + "http://{S}.tile.osm.org/{Z}/{X}/{Y}.png", + ["a", "b", "c"], + undefined, + storage + ) + ); map.ui.zoomer.add(); map.ui.zoombox.add(); - map.centerzoom({ lat: 53.902254, lon: 27.561850 }, 13); + map.centerzoom({ lat: 53.902254, lon: 27.56185 }, 13); }); })(window, window.offlineMaps.eventManager, mapbox, MM); (function (emr) { - emr.on('storageLoaded', 'mapLoad'); - emr.fire('storageLoad'); -})(window.offlineMaps.eventManager); \ No newline at end of file + emr.on("storageLoaded", "mapLoad"); + emr.fire("storageLoad"); +})(window.offlineMaps.eventManager); diff --git a/src/js_old/_components/routes/index.js b/src/js_old/_components/routes/index.js index 12fe0dc..bd8d01e 100644 --- a/src/js_old/_components/routes/index.js +++ b/src/js_old/_components/routes/index.js @@ -1,13 +1,13 @@ -import Events from '../../_events'; +import Events from "../../_events"; import Routie from "routie"; $(window).on(`${Events.AJAX} ${Events.LOADED}`, () => { Routie({ - 'navigation': function() { - $('#NavbarCollapse').addClass('in'); + navigation: function () { + $("#NavbarCollapse").addClass("in"); }, - 'carousel:id:num': function(id, num) { - $(`#Carousel${ id}`).carousel(num); + "carousel:id:num": function (id, num) { + $(`#Carousel${id}`).carousel(num); }, }); -}); \ No newline at end of file +}); diff --git a/src/js_old/_consts.js b/src/js_old/_consts.js index 4fa84ab..fecb8cb 100644 --- a/src/js_old/_consts.js +++ b/src/js_old/_consts.js @@ -2,11 +2,11 @@ * Add your global events here */ -import MAP_DRIVER from './_components/drivers/_map.google'; +import MAP_DRIVER from "./_components/drivers/_map.google"; //import MAP_DRIVER from './_components/drivers/_map.mapbox'; const CONSTS = { - ENVS: ['xs', 'sm', 'md', 'lg', 'xl', 'xxl', 'xxxl'], + ENVS: ["xs", "sm", "md", "lg", "xl", "xxl", "xxxl"], MAP_DRIVER, }; diff --git a/src/js_old/_events.js b/src/js_old/_events.js index 592228c..8d6a10b 100644 --- a/src/js_old/_events.js +++ b/src/js_old/_events.js @@ -3,41 +3,41 @@ */ export default { - AJAX: 'ajax-load', - AJAXMAIN: 'ajax-main-load', - MAININIT: 'main-init', - TABHIDDEN: 'tab-hidden', - TABFOCUSED: 'tab-focused', - OFFLINE: 'offline', - ONLINE: 'online', - BACKONLINE: 'back-online', - TOUCHENABLE: 'touch-enabled', - TOUCHDISABLED: 'touch-disabled', - LOADED: 'load', - SWIPELEFT: 'swipeleft panleft', - SWIPERIGHT: 'swiperight panright', - ALLERTAPPEARED: 'alert-appeared', - ALERTREMOVED: 'alert-removed', - LODEDANDREADY: 'load-ready', - LAZYIMAGEREADY: 'image-lazy-bg-loaded', - LAZYIMAGESREADY: 'images-lazy-loaded', - MAPLOADED: 'map-loaded', - MAPAPILOADED: 'map-api-loaded', - MAPMARKERCLICK: 'map-marker-click', - MAPPOPUPCLOSE: 'map-popup-close', - SCROLL: 'scroll', - RESIZE: 'resize', - CAROUSEL_READY: 'bs.carousel.ready', - SET_TARGET_UPDATE: 'set-target-update', - RESTORE_FIELD: 'restore-field', - FORM_INIT_BASICS: 'form-basics', - FORM_INIT_STEPPED: 'form-init-stepped', - FORM_INIT_VALIDATE: 'form-init-validate', - FORM_INIT_VALIDATE_FIELD: 'form-init-validate-field', - FORM_INIT_STORAGE: 'form-init-storage', - FORM_VALIDATION_FAILED: 'form-validation-failed', - FORM_STEPPED_NEW_STEP: 'form-new-step', - FORM_STEPPED_FIRST_STEP: 'form-first-step', - FORM_STEPPED_LAST_STEP: 'form-last-step', - FORM_FIELDS: 'input,textarea,select', + AJAX: "ajax-load", + AJAXMAIN: "ajax-main-load", + MAININIT: "main-init", + TABHIDDEN: "tab-hidden", + TABFOCUSED: "tab-focused", + OFFLINE: "offline", + ONLINE: "online", + BACKONLINE: "back-online", + TOUCHENABLE: "touch-enabled", + TOUCHDISABLED: "touch-disabled", + LOADED: "load", + SWIPELEFT: "swipeleft panleft", + SWIPERIGHT: "swiperight panright", + ALLERTAPPEARED: "alert-appeared", + ALERTREMOVED: "alert-removed", + LODEDANDREADY: "load-ready", + LAZYIMAGEREADY: "image-lazy-bg-loaded", + LAZYIMAGESREADY: "images-lazy-loaded", + MAPLOADED: "map-loaded", + MAPAPILOADED: "map-api-loaded", + MAPMARKERCLICK: "map-marker-click", + MAPPOPUPCLOSE: "map-popup-close", + SCROLL: "scroll", + RESIZE: "resize", + CAROUSEL_READY: "bs.carousel.ready", + SET_TARGET_UPDATE: "set-target-update", + RESTORE_FIELD: "restore-field", + FORM_INIT_BASICS: "form-basics", + FORM_INIT_STEPPED: "form-init-stepped", + FORM_INIT_VALIDATE: "form-init-validate", + FORM_INIT_VALIDATE_FIELD: "form-init-validate-field", + FORM_INIT_STORAGE: "form-init-storage", + FORM_VALIDATION_FAILED: "form-validation-failed", + FORM_STEPPED_NEW_STEP: "form-new-step", + FORM_STEPPED_FIRST_STEP: "form-first-step", + FORM_STEPPED_LAST_STEP: "form-last-step", + FORM_FIELDS: "input,textarea,select", }; diff --git a/src/js_old/_events.router.js b/src/js_old/_events.router.js index 6d83451..d04e91d 100644 --- a/src/js_old/_events.router.js +++ b/src/js_old/_events.router.js @@ -1,6 +1,6 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; /** * Route side-wide events @@ -14,19 +14,19 @@ const EventsUI = (($) => { const W = window; const $W = $(W); const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'EventsUI'; + const NAME = "EventsUI"; class EventsUI { static process(el, args) { let modEl = el; const eventName = args[0]; - const tagName = typeof el !== undefined ? $(el).prop('tagName') : null; + const tagName = typeof el !== undefined ? $(el).prop("tagName") : null; switch (tagName) { - case 'HTML': - case 'BODY': + case "HTML": + case "BODY": modEl = $W; break; } @@ -52,11 +52,11 @@ const EventsUI = (($) => { let el = this; const args = arguments; - const tagName = typeof el !== undefined ? $(el).prop('tagName') : null; + const tagName = typeof el !== undefined ? $(el).prop("tagName") : null; switch (tagName) { - case 'HTML': - case 'BODY': + case "HTML": + case "BODY": el = $W; break; } diff --git a/src/js_old/_layout.js b/src/js_old/_layout.js index 23e83a5..e5c15e1 100644 --- a/src/js_old/_layout.js +++ b/src/js_old/_layout.js @@ -1,16 +1,16 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from './_events'; +import Events from "./_events"; const LayoutUI = (($) => { // Constants const W = window; const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'LayoutUI'; + const NAME = "LayoutUI"; const datepickerOptions = { autoclose: true, @@ -30,7 +30,7 @@ const LayoutUI = (($) => { // Custom fonts $Body.append( - '', + '' ); /*google analytics */ @@ -40,7 +40,6 @@ const LayoutUI = (($) => { ga('send', 'pageview'); });*/ - // Fire further js when layout is ready $(W).trigger(Events.LODEDANDREADY); } diff --git a/src/js_old/_main.js b/src/js_old/_main.js index 78a90f2..60cd661 100644 --- a/src/js_old/_main.js +++ b/src/js_old/_main.js @@ -1,20 +1,20 @@ -'use strict'; +"use strict"; -import $ from 'jquery'; +import $ from "jquery"; -import Events from './_events'; -import Consts from './_consts'; +import Events from "./_events"; +import Consts from "./_consts"; -import EventsRouter from './_events.router'; -import Spinner from './_components/_ui.spinner'; +import EventsRouter from "./_events.router"; +import Spinner from "./_components/_ui.spinner"; // AJAX functionality -import AjaxUI from './_components/_ui.ajax'; +import AjaxUI from "./_components/_ui.ajax"; -import FormBasics from './_components/_ui.form.basics'; -import HeaderUI from './_components/_ui.header-footer'; +import FormBasics from "./_components/_ui.form.basics"; +import HeaderUI from "./_components/_ui.header-footer"; -import SmoothScroll from 'smooth-scroll'; +import SmoothScroll from "smooth-scroll"; const smoothScroll = SmoothScroll(); const MainUI = (($) => { @@ -22,68 +22,68 @@ const MainUI = (($) => { const W = window; const $W = $(W); const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'MainUI'; + const NAME = "MainUI"; console.clear(); console.info( `%cUI Kit ${UINAME} ${UIVERSION}`, - 'color:yellow;font-size:14px', + "color:yellow;font-size:14px" ); console.info( `%c${UIMetaNAME} ${UIMetaVersion}`, - 'color:yellow;font-size:12px', + "color:yellow;font-size:12px" ); console.info( `%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by ${UIAUTHOR}`, - 'color:yellow;font-size:10px', + "color:yellow;font-size:10px" ); - console.groupCollapsed('Events'); + console.groupCollapsed("Events"); Object.keys(Events).forEach((k) => { console.info(`${k}: ${Events[k]}`); }); - console.groupEnd('Events'); + console.groupEnd("Events"); - console.groupCollapsed('Consts'); + console.groupCollapsed("Consts"); Object.keys(Consts).forEach((k) => { console.info(`${k}: ${Consts[k]}`); }); - console.groupEnd('Events'); + console.groupEnd("Events"); - console.groupCollapsed('Init'); - console.time('init'); + console.groupCollapsed("Init"); + console.time("init"); $W.on(`${Events.LODEDANDREADY}`, () => { - console.groupEnd('Init'); - console.timeEnd('init'); + console.groupEnd("Init"); + console.timeEnd("init"); - console.time('Post-init'); - console.groupCollapsed('Post-init'); + console.time("Post-init"); + console.groupCollapsed("Post-init"); }); // get browser locale //const Locale = $('html').attr('lang').substring(0, 2); - const $AlertNotify = $('#AlertNotify'); - const $SiteWideMessage = $('#SiteWideMessage'); + const $AlertNotify = $("#AlertNotify"); + const $SiteWideMessage = $("#SiteWideMessage"); // get browser window visibility preferences // Opera 12.10, Firefox >=18, Chrome >=31, IE11 - const HiddenName = 'hidden'; - const VisibilityChangeEvent = 'visibilitychange'; + const HiddenName = "hidden"; + const VisibilityChangeEvent = "visibilitychange"; // update visibility state D.addEventListener(VisibilityChangeEvent, () => { if (D.visibilityState === HiddenName) { console.log(`${NAME}: Tab: hidden`); - $Body.addClass('is-hidden'); + $Body.addClass("is-hidden"); $Body.trigger(Events.TABHIDDEN); $W.trigger(Events.TABHIDDEN); } else { console.log(`${NAME}: Tab: focused`); - $Body.removeClass('is-hidden'); + $Body.removeClass("is-hidden"); $Body.trigger(Events.TABFOCUSED); $W.trigger(Events.TABFOCUSED); } @@ -93,7 +93,7 @@ const MainUI = (($) => { let pingInterval; let pingLock = false; const sessionPing = () => { - if (pingLock || $Body.hasClass('is-offline')) { + if (pingLock || $Body.hasClass("is-offline")) { return; } @@ -103,12 +103,12 @@ const MainUI = (($) => { sync: false, async: true, cache: false, - url: '/Security/ping', + url: "/Security/ping", global: false, - type: 'POST', + type: "POST", complete: (data, datastatus) => { updateOnlineStatus(); - if (datastatus !== 'success') { + if (datastatus !== "success") { console.warn(`${NAME}: ping failed`); clearInterval(pingInterval); @@ -128,7 +128,7 @@ const MainUI = (($) => { } statusLock = true; - if (typeof navigator.onLine === 'undefined') { + if (typeof navigator.onLine === "undefined") { return false; } @@ -138,8 +138,8 @@ const MainUI = (($) => { clearInterval(pingInterval); pingInterval = null; - $Body.addClass('is-offline'); - $Body.removeClass('is-online'); + $Body.addClass("is-offline"); + $Body.removeClass("is-online"); $Body.trigger(Events.OFFLINE); $W.trigger(Events.OFFLINE); @@ -152,7 +152,7 @@ const MainUI = (($) => { pingInterval = setInterval(sessionPing, 300000); // 5 min in ms } - if ($Body.hasClass('is-offline')) { + if ($Body.hasClass("is-offline")) { sessionPing(); console.log(`${NAME}: is back online`); @@ -161,8 +161,8 @@ const MainUI = (($) => { console.log(`${NAME}: Online`); } - $Body.addClass('is-online'); - $Body.removeClass('is-offline'); + $Body.addClass("is-online"); + $Body.removeClass("is-offline"); $Body.trigger(Events.ONLINE); $W.trigger(Events.ONLINE); @@ -176,7 +176,7 @@ const MainUI = (($) => { () => { updateOnlineStatus(); }, - false, + false ); W.addEventListener( @@ -184,7 +184,7 @@ const MainUI = (($) => { () => { updateOnlineStatus(); }, - false, + false ); $W.on(`${Events.LOADED} ${Events.AJAX}`, () => { @@ -204,9 +204,9 @@ const MainUI = (($) => { }; W.URLDetails = { - base: $('base').attr('href'), - relative: '/', - hash: '', + base: $("base").attr("href"), + relative: "/", + hash: "", }; let eventFired = false; @@ -236,7 +236,7 @@ const MainUI = (($) => { }, 200); }; - setTouchScreen('ontouchstart' in window || navigator.msMaxTouchPoints > 0); + setTouchScreen("ontouchstart" in window || navigator.msMaxTouchPoints > 0); // disable touch on mouse events /*D.addEventListener('mousemove', () => { @@ -248,10 +248,10 @@ const MainUI = (($) => { });*/ // enable touch screen on touch events - D.addEventListener('touchmove', () => { + D.addEventListener("touchmove", () => { setTouchScreen(true); }); - D.addEventListener('touchstart', () => { + D.addEventListener("touchstart", () => { setTouchScreen(true); }); @@ -268,8 +268,8 @@ const MainUI = (($) => { ui.updateLocation(); // mark available offline areas - if ('caches' in W) { - $('a.offline').addClass('offline-available'); + if ("caches" in W) { + $("a.offline").addClass("offline-available"); } ui.loadImages(); @@ -278,7 +278,7 @@ const MainUI = (($) => { ui.detectBootstrapScreenSize(); // mark external links - $('a.external,a[rel="external"]').attr('target', '_blank'); + $('a.external,a[rel="external"]').attr("target", "_blank"); // show encoded emails /*$(D).find('.obm').each(() => { @@ -304,26 +304,26 @@ const MainUI = (($) => { // // scroll links - $('.js-scrollTo').on('click', (e) => { + $(".js-scrollTo").on("click", (e) => { console.log(`${NAME}: .js-scrollTo`); e.preventDefault(); const el = e.currentTarget; const $el = $(e.currentTarget); - ScrollTo(el, $el.attr('data-target')); + ScrollTo(el, $el.attr("data-target")); }); // load external fonts - if ($('[data-extfont]').length) { + if ($("[data-extfont]").length) { console.log(`${NAME}: loading external fonts [data-extfont]`); $.getScript( - '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js', + "//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js", () => { const fonts = []; - $('[data-extfont]').each((i, el) => { - fonts[i] = $(el).attr('data-extfont'); + $("[data-extfont]").each((i, el) => { + fonts[i] = $(el).attr("data-extfont"); }); W.WebFont.load({ @@ -331,16 +331,16 @@ const MainUI = (($) => { families: fonts, }, }); - }, + } ); } // data-set links - $('[data-set-target]').on('click', (e) => { + $("[data-set-target]").on("click", (e) => { console.log(`${NAME}: [data-set-target]`); const $el = $(e.currentTarget); - const $target = $($el.data('set-target')); + const $target = $($el.data("set-target")); if (!$target.length) { return; @@ -348,25 +348,25 @@ const MainUI = (($) => { $target.each((i, targetEl) => { const $targetEl = $(targetEl); - const tag = $targetEl.prop('tagName').toLowerCase(); + const tag = $targetEl.prop("tagName").toLowerCase(); - if (tag === 'input' || tag === 'select') { - $targetEl.val($el.data('set-val')); - } else if (!$targetEl.hasClass('field')) { - $targetEl.text($el.data('set-val')); + if (tag === "input" || tag === "select") { + $targetEl.val($el.data("set-val")); + } else if (!$targetEl.hasClass("field")) { + $targetEl.text($el.data("set-val")); } }); $el.trigger(Events.SET_TARGET_UPDATE); - $target.closest('form').trigger(Events.SET_TARGET_UPDATE); + $target.closest("form").trigger(Events.SET_TARGET_UPDATE); }); // emulate links - $('.a[data-href]').on('click', (e) => { + $(".a[data-href]").on("click", (e) => { console.log(`${NAME}: js link processing .a[data-href]`); const $el = $(e.currentTarget); - const href = $el.data('href'); + const href = $el.data("href"); if (!href.length) { console.warn(`${NAME}: .a[data-href] | Missing data-href`); console.warn($el); @@ -376,24 +376,24 @@ const MainUI = (($) => { }); // set attributes for mobile friendly tables - $('.typography table').each((i, el) => { + $(".typography table").each((i, el) => { const $table = $(el); - let $header = $table.find('thead tr:first-child'); + let $header = $table.find("thead tr:first-child"); if (!$header.length) { - $header = $(el).find('tr:first-child'); + $header = $(el).find("tr:first-child"); } - $header.addClass('d-typography-breakpoint-none'); + $header.addClass("d-typography-breakpoint-none"); - $header.find('td').each((i, h) => { + $header.find("td").each((i, h) => { const $h = $(h); $table - .find('tr') + .find("tr") .find(`td:eq(${i})`) .each((i, el) => { const $el = $(el); - if (!$el.attr('data-label')) { - $el.attr('data-label', $h.text()); + if (!$el.attr("data-label")) { + $el.attr("data-label", $h.text()); } }); }); @@ -402,16 +402,16 @@ const MainUI = (($) => { // hide spinner Spinner.hide(() => { - $Body.addClass('loaded'); + $Body.addClass("loaded"); }); // fire page printing - if (W.URLDetails['hash'].indexOf('printpage') > -1) { + if (W.URLDetails["hash"].indexOf("printpage") > -1) { W.print(); } $Body.data(NAME, ui); - $W.removeClass('lock-main-init'); + $W.removeClass("lock-main-init"); } static detectBootstrapScreenSize() { @@ -425,7 +425,7 @@ const MainUI = (($) => { for (let i = 0; i < envs.length; ++i) { const env = envs[i]; $el.addClass(`d-${env}-none`); - if ($el.is(':hidden')) { + if ($el.is(":hidden")) { curEnv = env; break; } @@ -437,17 +437,17 @@ const MainUI = (($) => { let landscape = true; if ($W.width() > $W.height()) { - $Body.removeClass('portrait'); - $Body.addClass('landscape'); + $Body.removeClass("portrait"); + $Body.addClass("landscape"); } else { landscape = false; - $Body.removeClass('landscape'); - $Body.addClass('portrait'); + $Body.removeClass("landscape"); + $Body.addClass("portrait"); } console.log( - `${NAME}: screen size detected ${curEnv} | landscape ${landscape}`, + `${NAME}: screen size detected ${curEnv} | landscape ${landscape}` ); return curEnv; @@ -455,30 +455,30 @@ const MainUI = (($) => { static updateLocation(url) { let location = url || W.location.href; - location = location.replace(W.URLDetails['base'], '/'); - const hash = location.indexOf('#'); + location = location.replace(W.URLDetails["base"], "/"); + const hash = location.indexOf("#"); - W.URLDetails.relative = location.split('#')[0]; + W.URLDetails.relative = location.split("#")[0]; W.URLDetails.hash = - hash >= 0 ? location.substr(location.indexOf('#')) : ''; + hash >= 0 ? location.substr(location.indexOf("#")) : ""; } // show site-wide alert static alert(msg, cls) { - $SiteWideMessage.fadeOut('fast'); + $SiteWideMessage.fadeOut("fast"); $SiteWideMessage.html( - `
×${msg}
`, + `
×${msg}
` ); - $SiteWideMessage.find('.page-alert').alert(); + $SiteWideMessage.find(".page-alert").alert(); $SiteWideMessage.find('.close[data-dismiss="alert"]').click(() => { - $SiteWideMessage.fadeOut('slow', () => { - $SiteWideMessage.find('.page-alert').alert('close'); + $SiteWideMessage.fadeOut("slow", () => { + $SiteWideMessage.find(".page-alert").alert("close"); }); }); - $SiteWideMessage.fadeIn('slow'); + $SiteWideMessage.fadeIn("slow"); if ($AlertNotify.length) { $AlertNotify[0].play(); @@ -490,12 +490,12 @@ const MainUI = (($) => { // hide site-wide alert static alertHide() { if ($SiteWideMessage.length !== 0) { - $SiteWideMessage.fadeOut('slow', () => { - $SiteWideMessage.find('.alert').alert('close'); + $SiteWideMessage.fadeOut("slow", () => { + $SiteWideMessage.find(".alert").alert("close"); }); } - if ($AlertNotify.length && typeof $AlertNotify[0].stop !== 'undefined') { + if ($AlertNotify.length && typeof $AlertNotify[0].stop !== "undefined") { $AlertNotify[0].stop(); } @@ -504,17 +504,17 @@ const MainUI = (($) => { // load all images static loadImages() { - const $imgs = $Body.find('img').not('.loaded'); + const $imgs = $Body.find("img").not(".loaded"); const $imgUrls = []; const $imgLazyUrls = []; // collect image details $imgs.each((i, el) => { const $el = $(el); - const src = $el.attr('src'); - const lazySrc = $el.data('lazy-src'); + const src = $el.attr("src"); + const lazySrc = $el.data("lazy-src"); - if ($el.hasClass('loaded')) { + if ($el.hasClass("loaded")) { return; } @@ -523,14 +523,14 @@ const MainUI = (($) => { } if (lazySrc && lazySrc.length) { $imgLazyUrls.push(lazySrc); - $el.addClass('loading'); + $el.addClass("loading"); AjaxUI.preload([lazySrc]).then(() => { - $el.attr('src', lazySrc); + $el.attr("src", lazySrc); $el.on(`${Events.LOADED}`, () => { - $el.addClass('loaded'); - $el.removeClass('loading'); + $el.addClass("loaded"); + $el.removeClass("loading"); $el.trigger(`${Events.LAZYIMAGEREADY}`); }); @@ -540,25 +540,25 @@ const MainUI = (($) => { // load lazy backgrounds $Body - .find('[data-lazy-bg]') - .not('.loaded') + .find("[data-lazy-bg]") + .not(".loaded") .each((i, el) => { const $el = $(el); - const lazySrc = $el.data('lazy-bg'); + const lazySrc = $el.data("lazy-bg"); - if ($el.hasClass('loaded')) { + if ($el.hasClass("loaded")) { return; } if (lazySrc && lazySrc.length) { $imgLazyUrls.push(lazySrc); - $el.addClass('loading'); + $el.addClass("loading"); AjaxUI.preload([lazySrc]).then(() => { - $el.css({ 'background-image': `url(${lazySrc})` }); + $el.css({ "background-image": `url(${lazySrc})` }); - $el.addClass('loaded'); - $el.removeClass('loading'); + $el.addClass("loaded"); + $el.removeClass("loading"); $el.trigger(`${Events.LAZYIMAGEREADY}`); }); @@ -567,25 +567,25 @@ const MainUI = (($) => { // replace img src $Body - .find('[data-src-replace]') - .not('.loaded') + .find("[data-src-replace]") + .not(".loaded") .each((i, el) => { const $el = $(el); - const lazySrc = $el.data('src-replace'); + const lazySrc = $el.data("src-replace"); - if ($el.hasClass('loaded')) { + if ($el.hasClass("loaded")) { return; } if (lazySrc && lazySrc.length) { - $el.addClass('loaded'); - $el.attr('src', lazySrc); + $el.addClass("loaded"); + $el.attr("src", lazySrc); } }); // load defined images AjaxUI.preload($imgUrls).then(() => { - $W.trigger('images-loaded'); + $W.trigger("images-loaded"); // load lazy images AjaxUI.preload($imgLazyUrls).then(() => { @@ -594,8 +594,8 @@ const MainUI = (($) => { setTimeout(() => { $W.trigger(`${Events.LAZYIMAGESREADY}`); - console.groupEnd('Post-init'); - console.timeEnd('Post-init'); + console.groupEnd("Post-init"); + console.timeEnd("Post-init"); }, 100); }); }); @@ -609,35 +609,35 @@ const MainUI = (($) => { $W.on( `${Events.MAININIT} ${Events.AJAX} ${Events.AJAXMAIN} ${Events.LOADED}`, () => { - if ($W.hasClass('lock-main-init')) { + if ($W.hasClass("lock-main-init")) { console.warn(`${NAME}: locked`); return; } - $W.addClass('lock-main-init'); + $W.addClass("lock-main-init"); MainUI.init(); - }, + } ); $W.on(`${Events.RESIZE}`, () => { MainUI.detectBootstrapScreenSize(); }); - $W.on('beforeunload unload', () => { + $W.on("beforeunload unload", () => { Spinner.show(() => { - $Body.removeClass('loaded'); + $Body.removeClass("loaded"); }); }); // hide spinner on target _blank $('[target="_blank"],.external') .not('[data-toggle="lightbox"],[data-lightbox-gallery]') - .on('click submit touch', (e) => { + .on("click submit touch", (e) => { console.log(`${NAME}: External link`); setTimeout(() => { Spinner.hide(() => { - $Body.addClass('loaded'); + $Body.addClass("loaded"); }); }, 1000); }); diff --git a/src/js_old/app.js b/src/js_old/app.js index a747712..b23c313 100644 --- a/src/js_old/app.js +++ b/src/js_old/app.js @@ -1,10 +1,10 @@ -'use strict'; +"use strict"; //import $ from 'jquery'; -import '../scss/app.scss'; +import "../scss/app.scss"; -import { Dropdown } from 'bootstrap'; -import Page from './_components/_page.jsx'; +import { Dropdown } from "bootstrap"; +import Page from "./_components/_page.jsx"; //import 'hammerjs/hammer'; //import 'jquery-hammerjs/jquery.hammer'; @@ -64,11 +64,11 @@ import 'bootstrap/js/dist/tab';*/ //import './_components/_ui.video.preview'; // Meta Lightbox -import '@a2nt/meta-lightbox-react/src/js/app'; +import "@a2nt/meta-lightbox-react/src/js/app"; const GraphPage = ReactDOM.render( , - document.getElementById('MainContent'), + document.getElementById("MainContent") ); //import Confirmation from 'bootstrap-confirmation2/dist/bootstrap-confirmation'; @@ -90,8 +90,8 @@ function importAll(r) { } const images = importAll( - require.context('../img/', false, /\.(png|jpe?g|svg)$/), + require.context("../img/", false, /\.(png|jpe?g|svg)$/) ); const fontAwesome = importAll( - require.context('font-awesome', false, /\.(otf|eot|svg|ttf|woff|woff2)$/), + require.context("font-awesome", false, /\.(otf|eot|svg|ttf|woff|woff2)$/) ); diff --git a/src/js_old/lang/_en.js b/src/js_old/lang/_en.js index 49afcd7..ceb84a6 100644 --- a/src/js_old/lang/_en.js +++ b/src/js_old/lang/_en.js @@ -5,11 +5,13 @@ export default { en: { jsSteppedForm: { - STEPCOUNTER: '
Step of
', - STEPBUTTONS: '
' + - ' Prev' + - ' Next ' + - '
', + STEPCOUNTER: + '
Step of
', + STEPBUTTONS: + '
' + + ' Prev' + + ' Next ' + + "
", }, }, }; diff --git a/src/js_old/place_it_to_types_folder_PageTypeClassName.js b/src/js_old/place_it_to_types_folder_PageTypeClassName.js index 0072927..9b8252d 100644 --- a/src/js_old/place_it_to_types_folder_PageTypeClassName.js +++ b/src/js_old/place_it_to_types_folder_PageTypeClassName.js @@ -16,21 +16,21 @@ "use strict"; // your page specific css -import '../scss/_types/PageTypeClassName.scss'; +import "../scss/_types/PageTypeClassName.scss"; -import $ from 'jquery'; -import Events from '../_events'; +import $ from "jquery"; +import Events from "../_events"; // Mapbox API -import '../_components/_ui.map.api'; +import "../_components/_ui.map.api"; const PageTypeUI = (($) => { // Constants const W = window; const D = document; - const $Body = $('body'); + const $Body = $("body"); - const NAME = 'PageTypeUI'; + const NAME = "PageTypeUI"; class PageTypeUI { // Static methods @@ -58,7 +58,6 @@ const PageTypeUI = (($) => { }); return PageTypeUI; - })($); export default PageTypeUI; diff --git a/src/js_old/types/SilverShop.Page.CheckoutPageController.js b/src/js_old/types/SilverShop.Page.CheckoutPageController.js index fa5d605..08c310d 100644 --- a/src/js_old/types/SilverShop.Page.CheckoutPageController.js +++ b/src/js_old/types/SilverShop.Page.CheckoutPageController.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; /*import $ from 'jquery'; import '../_components/_ui.map.api'; diff --git a/src/js_old/types/Site.Controllers.MapElementController.js b/src/js_old/types/Site.Controllers.MapElementController.js index 6911060..f258d83 100644 --- a/src/js_old/types/Site.Controllers.MapElementController.js +++ b/src/js_old/types/Site.Controllers.MapElementController.js @@ -1,4 +1,4 @@ -'use strict'; +"use strict"; /*import $ from 'jquery'; import Events from '../_events'; diff --git a/src/mocks/browser.js b/src/mocks/browser.js index 16c1b63..be4c02b 100644 --- a/src/mocks/browser.js +++ b/src/mocks/browser.js @@ -1,5 +1,5 @@ // src/mocks/browser.js -import { setupWorker } from 'msw'; -import { handlers } from './handlers'; +import { setupWorker } from "msw"; +import { handlers } from "./handlers"; // This configures a Service Worker with the given request handlers. export const worker = setupWorker(...handlers); diff --git a/src/mocks/handlers.js b/src/mocks/handlers.js index e317f9f..2baecfa 100644 --- a/src/mocks/handlers.js +++ b/src/mocks/handlers.js @@ -1,5 +1,5 @@ // src/mocks/handlers.js -import { graphql } from 'msw'; +import { graphql } from "msw"; export const handlers = [ // Handles a "Login" mutation @@ -15,7 +15,7 @@ export const handlers = [ ); }),*/ // Handles a "Pages" query - graphql.query('Pages11', (req, res, ctx) => { + graphql.query("Pages11", (req, res, ctx) => { const apiKey = req.headers.map.apikey; if ( !req.headers.map.apikey || @@ -25,10 +25,10 @@ export const handlers = [ return res( ctx.errors([ { - message: 'Not authenticated', - errorType: 'AuthenticationError', + message: "Not authenticated", + errorType: "AuthenticationError", }, - ]), + ]) ); } // When authenticated, respond with a query payload @@ -38,38 +38,38 @@ export const handlers = [ edges: [ { node: { - ID: '1', - Title: 'Home-Mocked', - ClassName: 'Site\\Pages\\HomePage', - CSSClass: 'Site-Pages-HomePage', + ID: "1", + Title: "Home-Mocked", + ClassName: "Site\\Pages\\HomePage", + CSSClass: "Site-Pages-HomePage", Summary: "That's my personal website, I'm full-stack developer mostly specializing on SilverStipe backend projects and share some of my hobbies at this website.", - Link: '/en/', - URLSegment: 'home', + Link: "/en/", + URLSegment: "home", Elements: { edges: [ { node: { - ID: '3', - Title: 'Slider', + ID: "3", + Title: "Slider", Render: - '<div\nid="e3"\nclass="element site__elements__sliderelement\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t\n\n\n <div id="Carousel3" class="carousel slide js-carousel">\n <div class="carousel-inner">\n \n <div class="carousel-item carousel-item-Video carousel-item-nocontrols active">\n <div class="carousel-slide">\n \n \n <div class="video">\n <iframe width="200" height="113" src="https://www.youtube.com/embed/IF1F_es1SaU?feature=oembed&wmode=transparent&enablejsapi=1&disablekb=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&autoplay=1&mute=1&loop=1&playlist=IF1F_es1SaU" allow="autoplay" allow="autoplay" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n </div>\n \n\n\n\n\n </div>\n </div>\n \n </div>\n </div>\n\n\n\t</div>\n</div>\n', + "<div\nid="e3"\nclass="element site__elements__sliderelement\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t\n\n\n <div id="Carousel3" class="carousel slide js-carousel">\n <div class="carousel-inner">\n \n <div class="carousel-item carousel-item-Video carousel-item-nocontrols active">\n <div class="carousel-slide">\n \n \n <div class="video">\n <iframe width="200" height="113" src="https://www.youtube.com/embed/IF1F_es1SaU?feature=oembed&wmode=transparent&enablejsapi=1&disablekb=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&autoplay=1&mute=1&loop=1&playlist=IF1F_es1SaU" allow="autoplay" allow="autoplay" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n </div>\n \n\n\n\n\n </div>\n </div>\n \n </div>\n </div>\n\n\n\t</div>\n</div>\n", }, }, { node: { - ID: '7', - Title: 'Categories List', + ID: "7", + Title: "Categories List", Render: - '<div\nid="e7"\nclass="element dnadesign__elementallist__model__elementlist\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t\n<div class="list-element__container row" data-listelement-count="3">\n \n \n\t <div\nid="e9"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/1609765749853__FillWzQwMCw0MDBd.jpg" class="img-responsive" alt="Aquascaping"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Aquascaping</h3>\n\n \n</div>\n\n\n\n <a href="/en/aquascaping/" class="stretched-link">\n <b class="sr-only">Aquascaping</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\t <div\nid="e10"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/1609766816754__FillWzQwMCw0MDBd.jpg" class="img-responsive" alt="Car Projects"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Car Projects</h3>\n\n \n</div>\n\n\n\n <a href="/en/car/" class="stretched-link">\n <b class="sr-only">Car Projects</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\t <div\nid="e12"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/Screenshot-from-2021-01-04-20-30-19__FillWzQwMCw0MDBd.png" class="img-responsive" alt="Programming"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Programming</h3>\n\n \n</div>\n\n\n\n <a href="/en/development/" class="stretched-link">\n <b class="sr-only">Programming</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\n\n</div>\n\n\t</div>\n</div>\n', + "<div\nid="e7"\nclass="element dnadesign__elementallist__model__elementlist\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t\n<div class="list-element__container row" data-listelement-count="3">\n \n \n\t <div\nid="e9"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/1609765749853__FillWzQwMCw0MDBd.jpg" class="img-responsive" alt="Aquascaping"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Aquascaping</h3>\n\n \n</div>\n\n\n\n <a href="/en/aquascaping/" class="stretched-link">\n <b class="sr-only">Aquascaping</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\t <div\nid="e10"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/1609766816754__FillWzQwMCw0MDBd.jpg" class="img-responsive" alt="Car Projects"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Car Projects</h3>\n\n \n</div>\n\n\n\n <a href="/en/car/" class="stretched-link">\n <b class="sr-only">Car Projects</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\t <div\nid="e12"\nclass="element dynamic__elements__image__elements__elementimage\n\t\n\t col-block col-md"\n>\n\t<div class="element-container">\n\t\t\n <div class="image-element__image height400 width400">\n <img\n src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"\n data-lazy-src="/assets/Uploads/ElementImage/Screenshot-from-2021-01-04-20-30-19__FillWzQwMCw0MDBd.png" class="img-responsive" alt="Programming"\n />\n </div>\n\n\n\n<div class="image-element__caption img-content">\n <h3 class="image-element__title title">Programming</h3>\n\n \n</div>\n\n\n\n <a href="/en/development/" class="stretched-link">\n <b class="sr-only">Programming</b>\n </a>\n\n\n\t</div>\n</div>\n\n \n\n\n</div>\n\n\t</div>\n</div>\n", }, }, { node: { - ID: '4', + ID: "4", Title: "Hello, I'm Tony Air", Render: - '<div\nid="e4"\nclass="element dnadesign__elemental__models__elementcontent\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t<div\nclass="content-element__content"\n>\n \n\t\n <h2 class="content-element__title">Hello, I&#039;m Tony Air</h2>\n \n\n <div class="typography">\n <p>That's my personal website, I'm full-stack developer mostly specializing on SilverStipe backend projects and share some of my hobbies at this website.<br><br>As for the things I do for work:<br><br>Here's front-end UI kit:&nbsp;<a rel="noopener" href="https://github.com/a2nt/webpack-bootstrap-ui-kit" target="_blank">https://github.com/a2nt/webpack-bootstrap-ui-kit</a><br>Here's SilverStipe quick start template:&nbsp;<a rel="noopener" href="https://github.com/a2nt/silverstripe-webpack" target="_blank">https://github.com/a2nt/silverstripe-webpack</a><br><br>More at my github:&nbsp;<a rel="noopener" href="https://github.com/a2nt" target="_blank">https://github.com/a2nt</a></p>\n </div>\n\n \n</div>\n\n\t</div>\n</div>\n', + "<div\nid="e4"\nclass="element dnadesign__elemental__models__elementcontent\n\t\n\t"\n>\n\t<div class="element-container container">\n\t\t<div\nclass="content-element__content"\n>\n \n\t\n <h2 class="content-element__title">Hello, I&#039;m Tony Air</h2>\n \n\n <div class="typography">\n <p>That's my personal website, I'm full-stack developer mostly specializing on SilverStipe backend projects and share some of my hobbies at this website.<br><br>As for the things I do for work:<br><br>Here's front-end UI kit:&nbsp;<a rel="noopener" href="https://github.com/a2nt/webpack-bootstrap-ui-kit" target="_blank">https://github.com/a2nt/webpack-bootstrap-ui-kit</a><br>Here's SilverStipe quick start template:&nbsp;<a rel="noopener" href="https://github.com/a2nt/silverstripe-webpack" target="_blank">https://github.com/a2nt/silverstripe-webpack</a><br><br>More at my github:&nbsp;<a rel="noopener" href="https://github.com/a2nt" target="_blank">https://github.com/a2nt</a></p>\n </div>\n\n \n</div>\n\n\t</div>\n</div>\n", }, }, ], @@ -88,7 +88,7 @@ export const handlers = [ totalCount: 1, }, }, - }), + }) ); }), ]; diff --git a/src/mocks/server.js b/src/mocks/server.js index 76fbb61..2cd878b 100644 --- a/src/mocks/server.js +++ b/src/mocks/server.js @@ -1,5 +1,5 @@ // src/mocks/server.js -import { setupServer } from 'msw/node'; -import { handlers } from './handlers'; +import { setupServer } from "msw/node"; +import { handlers } from "./handlers"; // This configures a request mocking server with the given request handlers. export const server = setupServer(...handlers); diff --git a/src/scss/_colors.scss b/src/scss/_colors.scss index a57fe64..818ec25 100755 --- a/src/scss/_colors.scss +++ b/src/scss/_colors.scss @@ -29,8 +29,7 @@ $grays: map-merge( "700": $gray-700, "800": $gray-800, "900": $gray-900, - ), - $grays + ), $grays ) !default; $blue: $clr-blue !default; @@ -62,8 +61,7 @@ $colors: map-merge( "white": $white, "gray": $gray-600, "gray-dark": $gray-800, - ), - $colors + ), $colors ) !default; $primary: $blue !default; @@ -88,8 +86,7 @@ $theme-colors: map-merge( "danger": $danger, "light": $light, "dark": $dark, - ), - $theme-colors + ), $theme-colors ) !default; // UI color variables diff --git a/src/test-pajax.html b/src/test-pajax.html index 89adc09..84b995b 100644 --- a/src/test-pajax.html +++ b/src/test-pajax.html @@ -1,84 +1,84 @@

Test HTML-content with PAJAX response

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

https://twitter.com/reactjs/status/964689022747475968

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

- Lorem Ipsum is simply dummy text of the printing and typesetting industry. - Lorem Ipsum has been the industry's standard dummy text ever since the - 1500s, when an unknown printer took a galley of type and scrambled it to - make a type specimen book. It has survived not only five centuries, but also - the leap into electronic typesetting, remaining essentially unchanged. It - was popularised in the 1960s with the release of Letraset sheets containing - Lorem Ipsum passages, and more recently with desktop publishing software - like Aldus PageMaker including versions of Lorem Ipsum. + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, + when an unknown printer took a galley of type and scrambled it to make a type + specimen book. It has survived not only five centuries, but also the leap into + electronic typesetting, remaining essentially unchanged. It was popularised in + the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, + and more recently with desktop publishing software like Aldus PageMaker + including versions of Lorem Ipsum.

diff --git a/src/test.json b/src/test.json index 0803745..29d94ed 100644 --- a/src/test.json +++ b/src/test.json @@ -1,4 +1,4 @@ { - "Title": "Test Title!", - "Content": "Test HTML-content with JSON response" + "Title": "Test Title!", + "Content": "Test HTML-content with JSON response" }