poltoratchi-pagination-js-plugin
Version:
my plugin pagination
1 lines • 20 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pagination=t():e.pagination=t()}(self,(function(){return(()=>{"use strict";var e,t,n,r,i,o,a,s,c,l,d,u,p,f,h,g,v,m={579:(e,t,n)=>{n(453),n=n(320),t.default=n.Pagination},320:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=(r(s,null,[{key:"mathRoundUp",value:function(e){return Math.round(e)<e?Math.round(e+.49):Math.round(e)}}]),s);function s(){o(this,s)}function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};o(this,c);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return r.parent=e,r.settings=n({activeColor:"red",activeClass:"selected-page",pagesShow:5,elements:null,pageSize:null,pageHandle:r.changePage},t,{classes:n({mainParent:"pagination-plugin",centerParent:"pagination-plugin__wrapper",page:"pagination-plugin__wrapper-btn",selectedSiblings:"selected-siblings-pages",lastPage:"pagination-lastPage",firstPage:"pagination-firstPage"},t.classes)}),r.init(),r}t.Pagination=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,a),r(c,[{key:"_createOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.settings=n({},this.settings,e,{classes:n({},this.settings.classes,e.classes)}),this.elements=+this.settings.elements,this.pageSize=+this.settings.pageSize,this.pageHandle=this.settings.pageHandle,this.activeColor=this.settings.activeColor,this.activeClass=this.settings.activeClass,this.cl=this.settings.classes,this.pagesShow=+this.settings.pagesShow%2==0?+this.settings.pagesShow+1:+this.settings.pagesShow,this.siblingsPagesCounter=Math.floor(this.pagesShow/2),this.lastStartBtn=2!==this.siblingsPagesCounter?Math.floor(this.siblingsPagesCounter/2):0,this.pages=a.mathRoundUp(this.elements/this.pageSize)}},{key:"_renderPagination",value:function(){var e=this,t=+(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1),n=this._errorCheck(t);if(!1!==n){if(!0!==n)throw n;this.parent.innerHTML="",this.parent.classList.add(this.cl.mainParent);var r=document.createElement("ul");r.classList.add(this.cl.centerParent),this.parent.append(r),function n(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,o=document.createElement("li"),a=1===i,s=i===e.pages,c=!1;o.classList.add(e.cl.page),o.innerText=i.toString(),o.setAttribute("data-page",i.toString()),o.addEventListener("click",(function(t){e.pageHandle(i,e.page,t)}),{once:!0}),a&&((t<e.pagesShow-e.lastStartBtn||e.pages<=e.pagesShow+2)&&o.classList.add(e.cl.selectedSiblings),o.classList.add(e.cl.firstPage),e.parent.prepend(o)),s&&((t>e.pages-e.siblingsPagesCounter-2||e.pages<=e.pagesShow+2)&&o.classList.add(e.cl.selectedSiblings),o.classList.add(e.cl.lastPage),e.parent.append(o)),a||s||(t<e.pagesShow-e.lastStartBtn?i<=e.pagesShow+1&&(c=!0):t>=e.pages-e.siblingsPagesCounter?i>=e.pages-e.pagesShow&&(c=!0):(i<=t&&t-i<=e.siblingsPagesCounter&&(c=!0),t<=i&&t-i>=-e.siblingsPagesCounter&&(c=!0))),c&&r.appendChild(o),i===t&&(o.classList.add(e.activeClass),o.style.color=e.activeColor),i!==e.pages&&n(i+1)}()}}},{key:"destroy",value:function(){this.parent.innerHTML="",this.parent.removeAttribute("class")}},{key:"init",value:function(){this._createOptions(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),this._renderPagination()}},{key:"_errorCheck",value:function(e){switch(!0){case!this.parent||!this.parent.nodeType||1!==this.parent.nodeType:case!this.pageSize:return new Error(this.parent+" is not Node Element");case!this.elements&&0!==this.elements:return new Error("pageSize is required");case 0===this.elements:return this.destroy(),!1;case e>this.pages:return new Error("Page "+e+" is more than the total number of pages");default:return!0}}},{key:"changePage",value:function(e){this._renderPagination(e=void 0===e?1:e)}},{key:"rebuild",value:function(e){this.init(e)}}]),c)},859:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r}),t=n(645),t=n.n(t)()((function(e){return e[1]})),t.push([e.id,'body{flex-direction:column;font-family:sans-serif;justify-content:center}body,ul{display:flex}ul{list-style:none;padding:0}.pagination-plugin .selected-siblings-pages{margin:5px!important}.pagination-plugin .selected-siblings-pages:before{content:""!important}.pagination-plugin__wrapper-btn{align-items:center;border:1px solid;border-radius:50%;cursor:pointer;display:flex;height:25px;justify-content:center;margin:5px;width:25px}.pagination-plugin__wrapper-btn.pagination-firstPage{margin:5px 20px 5px 5px;position:relative}.pagination-plugin__wrapper-btn.pagination-firstPage:before{right:-27px}.pagination-plugin__wrapper-btn.pagination-lastPage{margin:5px 5px 5px 20px;position:relative}.pagination-plugin__wrapper-btn.pagination-lastPage:before{left:-27px}.pagination-plugin__wrapper-btn.pagination-firstPage:before,.pagination-plugin__wrapper-btn.pagination-lastPage:before{color:#000;content:"...";font-size:35px;position:absolute;z-index:2}',""]);const r=t},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},453:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(379),i=n.n(r),o=n(795),a=n.n(o),s=n(569),c=n.n(s),l=(t=n(565),r=n.n(t),o=n(216),s=n.n(o),t=n(589),o=n.n(t),n(859));(t={}).styleTagTransform=o(),t.setAttributes=r(),t.insert=c().bind(null,"head"),t.domAPI=a(),t.insertStyleElement=s();var d,u,p=i()(l.default,t);l.default.locals&&!e.hot.invalidate||(d=!l.default.locals,u=d?l:l.default.locals,e.hot.accept(859,(t=>{l=n(859),function(e,t,n){if(!e&&t||e&&!t)return!1;for(var r in e)if((!n||"default"!==r)&&e[r]!==t[r])return!1;for(r in t)if(!(n&&"default"===r||e[r]))return!1;return!0}(u,d?l:l.default.locals,d)?(u=d?l:l.default.locals,p(l.default)):e.hot.invalidate()}))),e.hot.dispose((function(){p()}));const f=l.default&&l.default.locals?l.default.locals:void 0},379:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},o=[],a=0;a<e.length;a++){var s=e[a],c=r.base?s[0]+r.base:s[0],l=i[c]||0,d="".concat(c," ").concat(l);i[c]=l+1,l=n(d),s={css:s[1],media:s[2],sourceMap:s[3]},-1!==l?(t[l].references++,t[l].updater(s)):t.push({identifier:d,updater:function(e,t){var n=t.domAPI(t);return n.update(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n.update(e=t):n.remove()}}(s,r),references:1}),o.push(d)}return o}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}e=r(e,i);for(var c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=e}}},569:e=>{var t={};e.exports=function(e,n){if(!(e=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e)))throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){var r,i,o,a;r=t,i=e,a=(o=n).css,n=o.media,o=o.sourceMap,n?r.setAttribute("media",n):r.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),i.styleTagTransform(a,r)},remove:function(){var e;null!==(e=t).parentNode&&e.parentNode.removeChild(e)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},y={};function b(e){var t=y[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}t=y[e]={id:e,exports:{}};try{var n={id:e,module:t,factory:m[e],require:b};b.i.forEach((function(e){e(n)})),t=n.module,n.factory.call(t.exports,t,t.exports,n.require)}catch(e){throw t.error=e}return t.exports}function w(e){d=e;for(var t=[],n=0;n<l.length;n++)t[n]=l[n].call(null,e);return Promise.all(t)}function _(e){if(0===r.length)return e();var t=r;return r=[],Promise.all(t).then((function(){return _(e)}))}function E(e){if("idle"!==d)throw new Error("check() is only allowed in idle status");return w("check").then(b.hmrM).then((function(t){return t?w("prepare").then((function(){var n=[];return r=[],i=[],Promise.all(Object.keys(b.hmrC).reduce((function(e,r){return b.hmrC[r](t.c,t.r,t.m,e,i,n),e}),[])).then((function(){return _((function(){return e?P(e):w("ready").then((function(){return n}))}))}))})):w(S()?"ready":"idle").then((function(){return null}))}))}function x(e){return"ready"!==d?Promise.resolve().then((function(){throw new Error("apply() is only allowed in ready status")})):P(e)}function P(e){e=e||{},S();var t=i.map((function(t){return t(e)}));i=void 0;var n=t.map((function(e){return e.error})).filter(Boolean);if(0<n.length)return w("abort").then((function(){throw n[0]}));var r=w("dispose");function a(e){s=s||e}t.forEach((function(e){e.dispose&&e.dispose()}));var s,c=w("apply"),l=[];return t.forEach((function(e){if(e.apply){var t=e.apply(a);if(t)for(var n=0;n<t.length;n++)l.push(t[n])}})),Promise.all([r,c]).then((function(){return s?w("fail").then((function(){throw s})):o?P(e).then((function(e){return l.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):w("idle").then((function(){return l}))}))}function S(){return o&&(i=i||[],Object.keys(b.hmrI).forEach((function(e){o.forEach((function(t){b.hmrI[e](t,i)}))})),o=void 0,1)}function j(e){return new Promise(((t,n)=>{v[e]=t,t=b.p+b.hu(e);var r=new Error;b.l(t,(t=>{var i;v[e]&&(v[e]=void 0,i=t&&("load"===t.type?"missing":t.type),t=t&&t.target&&t.target.src,r.message="Loading hot update chunk "+e+" failed.\n("+i+": "+t+")",r.name="ChunkLoadError",r.type=i,r.request=t,n(r))}))}))}function I(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}function n(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")}b.f&&delete b.f.jsonpHmr,u=void 0;var r,i={},o=[],a={};for(r in p)if(b.o(p,r)){var s=p[r],c=s?function(e){for(var n=[e],r={},i=n.map((function(e){return{chain:[e],id:e}}));0<i.length;){var o=i.pop(),a=o.id,s=o.chain,c=b.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:s,moduleId:a};for(var l=0;l<c.parents.length;l++){var d=c.parents[l],u=b.c[d];if(u){if(u.hot._declinedDependencies[a])return{type:"declined",chain:s.concat([d]),moduleId:a,parentId:d};-1===n.indexOf(d)&&(u.hot._acceptedDependencies[a]?(r[d]||(r[d]=[]),t(r[d],[a])):(delete r[d],n.push(d),i.push({chain:s.concat([d]),id:d})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}(r):{type:"disposed",moduleId:r},l=!1,d=!1,v=!1,m="";switch(c.chain&&(m="\nUpdate propagation: "+c.chain.join(" -> ")),c.type){case"self-declined":e.onDeclined&&e.onDeclined(c),e.ignoreDeclined||(l=new Error("Aborted because of self decline: "+c.moduleId+m));break;case"declined":e.onDeclined&&e.onDeclined(c),e.ignoreDeclined||(l=new Error("Aborted because of declined dependency: "+c.moduleId+" in "+c.parentId+m));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(c),e.ignoreUnaccepted||(l=new Error("Aborted because "+r+" is not accepted"+m));break;case"accepted":e.onAccepted&&e.onAccepted(c),d=!0;break;case"disposed":e.onDisposed&&e.onDisposed(c),v=!0;break;default:throw new Error("Unexception type "+c.type)}if(l)return{error:l};if(d)for(r in a[r]=s,t(o,c.outdatedModules),c.outdatedDependencies)b.o(c.outdatedDependencies,r)&&(i[r]||(i[r]=[]),t(i[r],c.outdatedDependencies[r]));v&&(t(o,[c.moduleId]),a[r]=n)}p=void 0;for(var y,w=[],_=0;_<o.length;_++){var E=o[_],x=b.c[E];x&&(x.hot._selfAccepted||x.hot._main)&&a[E]!==n&&!x.hot._selfInvalidated&&w.push({module:E,require:x.hot._requireSelf,errorHandler:x.hot._selfAccepted})}return{dispose:function(){var e;f.forEach((function(e){delete g[e]})),f=void 0;for(var t,n,r=o.slice();0<r.length;){var a=r.pop(),s=b.c[a];if(s){var c={},l=s.hot._disposeHandlers;for(_=0;_<l.length;_++)l[_].call(null,c);for(b.hmrD[a]=c,s.hot.active=!1,delete b.c[a],delete i[a],_=0;_<s.children.length;_++){var d=b.c[s.children[_]];d&&0<=(e=d.parents.indexOf(a))&&d.parents.splice(e,1)}}}for(n in i)if(b.o(i,n)&&(s=b.c[n]))for(y=i[n],_=0;_<y.length;_++)t=y[_],0<=(e=s.children.indexOf(t))&&s.children.splice(e,1)},apply:function(t){for(var n in a)b.o(a,n)&&(b.m[n]=a[n]);for(var r,s=0;s<h.length;s++)h[s](b);for(r in i)if(b.o(i,r)){var c=b.c[r];if(c){y=i[r];for(var l=[],d=[],u=[],p=0;p<y.length;p++){var f=y[p],g=c.hot._acceptedDependencies[f],v=c.hot._acceptedErrorHandlers[f];g&&-1===l.indexOf(g)&&(l.push(g),d.push(v),u.push(f))}for(var m=0;m<l.length;m++)try{l[m].call(null,y)}catch(s){if("function"==typeof d[m])try{d[m](s,{moduleId:r,dependencyId:u[m]})}catch(n){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:r,dependencyId:u[m],error:n,originalError:s}),e.ignoreErrored||(t(n),t(s))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:r,dependencyId:u[m],error:s}),e.ignoreErrored||t(s)}}}for(var _=0;_<w.length;_++){var E=w[_],x=E.module;try{E.require(x)}catch(s){if("function"==typeof E.errorHandler)try{E.errorHandler(s,{moduleId:x,module:b.c[x]})}catch(n){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:x,error:n,originalError:s}),e.ignoreErrored||(t(n),t(s))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:x,error:s}),e.ignoreErrored||t(s)}}return o}}}return b.m=m,b.c=y,b.i=[],b.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return b.d(t,{a:t}),t},b.d=(e,t)=>{for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.hu=e=>e+"."+b.h()+".hot-update.js",b.hmrF=()=>"main."+b.h()+".hot-update.json",b.h=()=>"d16f777c1862c0dd253b",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="pagination:",b.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var a,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,b.nc&&a.setAttribute("nonce",b.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[r],r=(t,r)=>{a.onerror=a.onload=null,clearTimeout(u);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(r))),t)return t(r)};var u=setTimeout(r.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=r.bind(null,a.onerror),a.onload=r.bind(null,a.onload),s&&document.head.appendChild(a)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s=b.c,c=[],l=[],d="idle",b.hmrD=a={},b.i.push((function(e){var t,u,p,f,h=e.module,g=function(e,t){var i=s[t];if(!i)return e;function o(r){var o;return i.hot.active?(s[r]?-1===(o=s[r].parents).indexOf(t)&&o.push(t):(c=[t],n=r),-1===i.children.indexOf(r)&&i.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+t),c=[]),e(r)}for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&"e"!==a&&Object.defineProperty(o,a,function(t){return{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(n){e[t]=n}}}(a));return o.e=function(t){return function(e){switch(d){case"ready":return w("prepare"),r.push(e),_((function(){return w("ready")})),e;case"prepare":return r.push(e),e;default:return e}}(e.e(t))},o}(e.require,e.id);h.hot=(t=e.id,u=h,f={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:p=n!==t,_requireSelf:function(){c=u.parents.slice(),n=p?void 0:t,b(t)},active:!0,accept:function(e,t,n){if(void 0===e)f._selfAccepted=!0;else if("function"==typeof e)f._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)f._acceptedDependencies[e[r]]=t||function(){},f._acceptedErrorHandlers[e[r]]=n;else f._acceptedDependencies[e]=t||function(){},f._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)f._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)f._declinedDependencies[e[t]]=!0;else f._declinedDependencies[e]=!0},dispose:function(e){f._disposeHandlers.push(e)},addDisposeHandler:function(e){f._disposeHandlers.push(e)},removeDisposeHandler:function(e){0<=(e=f._disposeHandlers.indexOf(e))&&f._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":i=[],Object.keys(b.hmrI).forEach((function(e){b.hmrI[e](t,i)})),w("ready");break;case"ready":Object.keys(b.hmrI).forEach((function(e){b.hmrI[e](t,i)}));break;case"prepare":case"check":case"dispose":case"apply":(o=o||[]).push(t)}},check:E,apply:x,status:function(e){if(!e)return d;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){0<=(e=l.indexOf(e))&&l.splice(e,1)},data:a[t]},n=void 0,f),h.parents=c,h.children=[],c=[],e.require=g})),b.hmrC={},b.hmrI={},(()=>{var e;b.g.importScripts&&(e=b.g.location+"");var t=b.g.document;if(!e&&t&&((e=t.currentScript?t.currentScript.src:e)||(t=t.getElementsByTagName("script")).length&&(e=t[t.length-1].src)),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=e})(),g=b.hmrS_jsonp=b.hmrS_jsonp||{179:0},v={},self.webpackHotUpdatepagination=(e,t,n)=>{for(var r in t)b.o(t,r)&&(p[r]=t[r]);n&&h.push(n),v[e]&&(v[e](),v[e]=void 0)},b.hmrI.jsonp=function(e,t){p||(p={},h=[],f=[],t.push(I)),b.o(p,e)||(p[e]=b.m[e])},b.hmrC.jsonp=function(e,t,n,r,i,o){i.push(I),u={},f=t,p=n.reduce((function(e,t){return e[t]=!1,e}),{}),h=[],e.forEach((function(e){b.o(g,e)&&void 0!==g[e]&&(r.push(j(e)),u[e]=!0)})),b.f&&(b.f.jsonpHmr=function(e,t){u&&!b.o(u,e)&&b.o(g,e)&&void 0!==g[e]&&(t.push(j(e)),u[e]=!0)})},b.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(b.p+b.hmrF()).then((e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}}))},b(579).default})()}));