huge-link/docs/bundle.8259f.esm.js
2020-12-18 14:36:28 +05:00

2 lines
No EOL
23 KiB
JavaScript

!function(t){function n(n){for(var e,r,o=n[0],u=n[1],_=0,l=[];_<o.length;_++)r=o[_],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&l.push(i[r][0]),i[r]=0;for(e in u)Object.prototype.hasOwnProperty.call(u,e)&&(t[e]=u[e]);for(c&&c(n);l.length;)l.shift()()}function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={},o={0:0},i={0:0};e.e=function(t){var n=[];o[t]?n.push(o[t]):0!==o[t]&&{2:1}[t]&&n.push(o[t]=new Promise((function(n,r){for(var i=({2:"route-editor",3:"route-post"}[t]||t)+".chunk."+{2:"e8d99",3:"31d6c"}[t]+".css",u=e.p+i,_=document.getElementsByTagName("link"),l=0;l<_.length;l++){var c=(f=_[l]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===i||c===u))return n()}var a=document.getElementsByTagName("style");for(l=0;l<a.length;l++){var f;if((c=(f=a[l]).getAttribute("data-href"))===i||c===u)return n()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=n,s.onerror=function(n){var e=n&&n.target&&n.target.src||u,i=new Error("Loading CSS chunk "+t+" failed.\n("+e+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=e,delete o[t],s.parentNode.removeChild(s),r(i)},s.href=u,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[t]=0})));var r=i[t];if(0!==r)if(r)n.push(r[2]);else{var u=new Promise((function(n,e){r=i[t]=[n,e]}));n.push(r[2]=u);var _,l=document.createElement("script");l.charset="utf-8",l.timeout=120,e.nc&&l.setAttribute("nonce",e.nc),l.src=function(t){return e.p+""+({2:"route-editor",3:"route-post"}[t]||t)+".chunk."+{2:"f6351",3:"fd471"}[t]+".esm.js"}(t);var c=new Error;_=function(n){l.onerror=l.onload=null,clearTimeout(a);var e=i[t];if(0!==e){if(e){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,e[1](c)}i[t]=void 0}};var a=setTimeout((function(){_({type:"timeout",target:l})}),12e4);l.onerror=l.onload=_,document.head.appendChild(l)}return Promise.all(n)},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/huge-link/",e.oe=function(t){throw console.error(t),t};var u=window.webpackJsonp=window.webpackJsonp||[],_=u.push.bind(u);u.push=n,u=u.slice();for(var l=0;l<u.length;l++)n(u[l]);var c=_;e(e.s="mdyV")}({GFNa:function(){},QRet:function(t,n,e){"use strict";function r(t,n){w.options.__h&&w.options.__h(k,t,x||n),x=0;var e=k.__H||(k.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function o(t){return x=1,i(g,t)}function i(t,n,e){var o=r(b++,2);return o.t=t,o.__c||(o.__=[e?e(n):g(void 0,n),function(t){var n=o.t(o.__[0],t);o.__[0]!==n&&(o.__=[n,o.__[1]],o.__c.setState({}))}],o.__c=k),o.__}function u(t,n){var e=r(b++,3);!w.options.__s&&m(e.__H,n)&&(e.__=t,e.__H=n,k.__H.__h.push(e))}function _(t,n){var e=r(b++,4);!w.options.__s&&m(e.__H,n)&&(e.__=t,e.__H=n,k.__h.push(e))}function l(t){return x=5,a((function(){return{current:t}}),[])}function c(t,n,e){x=6,_((function(){"function"==typeof t?t(n()):t&&(t.current=n())}),null==e?e:e.concat(t))}function a(t,n){var e=r(b++,7);return m(e.__H,n)&&(e.__=t(),e.__H=n,e.__h=t),e.__}function f(t,n){return x=8,a((function(){return t}),n)}function s(t){var n=k.context[t.__c],e=r(b++,9);return e.__c=t,n?(null==e.__&&(e.__=!0,n.sub(k)),n.props.value):t.__}function p(t,n){w.options.useDebugValue&&w.options.useDebugValue(n?n(t):t)}function h(t){var n=r(b++,10),e=o();return n.__=t,k.componentDidCatch||(k.componentDidCatch=function(t){n.__&&n.__(t),e[1](t)}),[e[0],function(){e[1](void 0)}]}function d(){A.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(v),t.__H.__h.forEach(y),t.__H.__h=[]}catch(n){t.__H.__h=[],w.options.__e(n,t.__v)}})),A=[]}function v(t){var n=k;"function"==typeof t.__c&&t.__c(),k=n}function y(t){var n=k;t.__c=t.__(),k=n}function m(t,n){return!t||t.length!==n.length||n.some((function(n,e){return n!==t[e]}))}function g(t,n){return"function"==typeof n?n(t):n}e.d(n,"k",(function(){return o})),e.d(n,"i",(function(){return i})),e.d(n,"d",(function(){return u})),e.d(n,"g",(function(){return _})),e.d(n,"j",(function(){return l})),e.d(n,"f",(function(){return c})),e.d(n,"h",(function(){return a})),e.d(n,"a",(function(){return f})),e.d(n,"b",(function(){return s})),e.d(n,"c",(function(){return p})),e.d(n,"e",(function(){return h}));var b,k,C,w=e("hosL"),x=0,A=[],O=w.options.__b,E=w.options.__r,S=w.options.diffed,P=w.options.__c,j=w.options.unmount;w.options.__b=function(t){k=null,O&&O(t)},w.options.__r=function(t){E&&E(t),b=0;var n=(k=t.__c).__H;n&&(n.__h.forEach(v),n.__h.forEach(y),n.__h=[])},w.options.diffed=function(t){S&&S(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==A.push(n)&&C===w.options.requestAnimationFrame||((C=w.options.requestAnimationFrame)||function(t){var n,e=function(){clearTimeout(r),T&&cancelAnimationFrame(n),setTimeout(t)},r=setTimeout(e,100);T&&(n=requestAnimationFrame(e))})(d)),k=void 0},w.options.__c=function(t,n){n.some((function(t){try{t.__h.forEach(v),t.__h=t.__h.filter((function(t){return!t.__||y(t)}))}catch(e){n.some((function(t){t.__h&&(t.__h=[])})),n=[],w.options.__e(e,t.__v)}})),P&&P(t,n)},w.options.unmount=function(t){j&&j(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach(v)}catch(t){w.options.__e(t,n.__v)}};var T="function"==typeof requestAnimationFrame},QfWi:function(t,n,e){"use strict";function r(t){function n(){i.Component.call(this),e||(this.componentWillMount=()=>{t(t=>{e=t&&t.default||t,this.setState({})})},this.shouldComponentUpdate=()=>null!=e),this.render=t=>{if(e)return Object(i.h)(e,t);const n=function t(n,e){if("string"==typeof n.type)return null;const r=n.__;if(!r)return;let o=r.__k;if(o){Array.isArray(o)||(o=[o]);let e=o.indexOf(n);-1===e&&(e=o.length);for(let n=e;n--;){const e=o[n],r=e&&e.__e||t(e,!0);if(r)return r}}return e?void 0:t(r)}(this.__v),r=n&&n.nextSibling||(this.__P||this._parentDom).firstChild;return r&&Object(i.h)(r.localName,{dangerouslySetInnerHTML:l})}}let e;return n.preload=t,(n.prototype=new i.Component).constructor=n,n}function o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}e.r(n);var i=e("hosL"),u=e("QRet"),_=e("Y3FI");const l={};var c=r((function(t){e.e(2).then(function(){var n=e("TqeA");"function"==typeof t&&t(n)}.bind(null,e)).catch(e.oe)})),a=r((function(t){e.e(3).then(function(){var n=e("nYVF");"function"==typeof t&&t(n)}.bind(null,e)).catch(e.oe)}));e("pRls"),e("GFNa");n.default=()=>{const[t,n]=Object(u.k)("");return Object(i.h)("main",null,Object(i.h)(_.Router,null,Object(i.h)(c,o({path:"/huge-link/",markdown:t},{setMarkdown:n})),Object(i.h)(a,o({path:"/huge-link/preview/",mode:"preview",payload:t},{setMarkdown:n})),Object(i.h)(a,o({path:"/huge-link/p/:payload",mode:"post"},{setMarkdown:n}))))}},Y3FI:function(t,n,e){"use strict";function r(t,n){for(var e in n)t[e]=n[e];return t}function o(t,n,e){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=t.match(o),u={};if(i&&i[1])for(var l=i[1].split("&"),c=0;c<l.length;c++){var a=l[c].split("=");u[decodeURIComponent(a[0])]=decodeURIComponent(a.slice(1).join("="))}t=_(t.replace(o,"")),n=_(n||"");for(var f=Math.max(t.length,n.length),s=0;s<f;s++)if(n[s]&&":"===n[s].charAt(0)){var p=n[s].replace(/(^:|[+*?]+$)/g,""),h=(n[s].match(/[+*?]+$/)||y)[0]||"",d=~h.indexOf("+"),v=~h.indexOf("*"),m=t[s]||"";if(!m&&!v&&(h.indexOf("?")<0||d)){r=!1;break}if(u[p]=decodeURIComponent(m),d||v){u[p]=t.slice(s).map(decodeURIComponent).join("/");break}}else if(n[s]!==t[s]){r=!1;break}return(!0===e.default||!1!==r)&&u}function i(t,n){return t.rank<n.rank?1:t.rank>n.rank?-1:t.index-n.index}function u(t,n){return t.index=n,t.rank=function(t){return t.props.default?0:(n=t.props.path,_(n).map(l).join(""));var n}(t),t.props}function _(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function l(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}function c(){var t;return""+((t=m&&m.location?m.location:m&&m.getCurrentLocation?m.getCurrentLocation():"undefined"!=typeof location?location:k).pathname||"")+(t.search||"")}function a(t,n){return void 0===n&&(n=!1),"string"!=typeof t&&t.url&&(n=t.replace,t=t.url),function(t){for(var n=g.length;n--;)if(g[n].canRoute(t))return!0;return!1}(t)&&function(t,n){void 0===n&&(n="push"),m&&m[n]?m[n](t):"undefined"!=typeof history&&history[n+"State"]&&history[n+"State"](null,null,t)}(t,n?"replace":"push"),f(t)}function f(t){for(var n=!1,e=0;e<g.length;e++)!0===g[e].routeTo(t)&&(n=!0);for(var r=b.length;r--;)b[r](t);return n}function s(t){if(t&&t.getAttribute){var n=t.getAttribute("href"),e=t.getAttribute("target");if(n&&n.match(/^\//g)&&(!e||e.match(/^_?self$/i)))return a(n)}}function p(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button))return s(t.currentTarget||t.target||this),h(t)}function h(t){return t&&(t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault()),!1}function d(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var n=t.target;do{if("A"===String(n.nodeName).toUpperCase()&&n.getAttribute("href")){if(n.hasAttribute("native"))return;if(s(n))return h(t)}}while(n=n.parentNode)}}e.r(n),e.d(n,"subscribers",(function(){return b})),e.d(n,"getCurrentUrl",(function(){return c})),e.d(n,"route",(function(){return a})),e.d(n,"Router",(function(){return w})),e.d(n,"Route",(function(){return A})),e.d(n,"Link",(function(){return x})),e.d(n,"exec",(function(){return o}));var v=e("hosL"),y={},m=null,g=[],b=[],k={},C=!1,w=function(t){function n(n){t.call(this,n),n.history&&(m=n.history),this.state={url:n.url||c()},C||("function"==typeof addEventListener&&(m||addEventListener("popstate",(function(){f(c())})),addEventListener("click",d)),C=!0)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.shouldComponentUpdate=function(t){return!0!==t.static||(t.url!==this.props.url||t.onChange!==this.props.onChange)},n.prototype.canRoute=function(t){var n=Object(v.toChildArray)(this.props.children);return this.getMatchingChildren(n,t,!1).length>0},n.prototype.routeTo=function(t){this.setState({url:t});var n=this.canRoute(t);return this.updating||this.forceUpdate(),n},n.prototype.componentWillMount=function(){g.push(this),this.updating=!0},n.prototype.componentDidMount=function(){var t=this;m&&(this.unlisten=m.listen((function(n){t.routeTo(""+(n.pathname||"")+(n.search||""))}))),this.updating=!1},n.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),g.splice(g.indexOf(this),1)},n.prototype.componentWillUpdate=function(){this.updating=!0},n.prototype.componentDidUpdate=function(){this.updating=!1},n.prototype.getMatchingChildren=function(t,n,e){return t.filter(u).sort(i).map((function(t){var i=o(n,t.props.path,t.props);if(i){if(!1!==e){var u={url:n,matches:i};return r(u,i),delete u.ref,delete u.key,Object(v.cloneElement)(t,u)}return t}})).filter(Boolean)},n.prototype.render=function(t,n){var e=t.children,r=t.onChange,o=n.url,i=this.getMatchingChildren(Object(v.toChildArray)(e),o,!0),u=i[0]||null,_=this.previousUrl;return o!==_&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:_,active:i,current:u})),u},n}(v.Component),x=function(t){return Object(v.createElement)("a",r({onClick:p},t))},A=function(t){return Object(v.createElement)(t.component,t)};w.subscribers=b,w.getCurrentUrl=c,w.route=a,w.Router=w,w.Route=A,w.Link=x,w.exec=o,n.default=w},hosL:function(t,n,e){"use strict";function r(t,n){for(var e in n)t[e]=n[e];return t}function o(t){var n=t.parentNode;n&&n.removeChild(t)}function i(t,n,e){var r,o,i,_=arguments,l={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:l[i]=n[i];if(arguments.length>3)for(e=[e],i=3;i<arguments.length;i++)e.push(_[i]);if(null!=e&&(l.children=e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return u(t,l,r,o,null)}function u(t,n,e,r,o){var i={type:t,props:n,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++L.__v:o};return null!=L.vnode&&L.vnode(i),i}function _(){return{current:null}}function l(t){return t.children}function c(t,n){this.props=t,this.context=n}function a(t,n){if(null==n)return t.__?a(t.__,t.__.__k.indexOf(t)+1):null;for(var e;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof t.type?a(t):null}function f(t){var n,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(e=t.__k[n])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return f(t)}}function s(t){(!t.__d&&(t.__d=!0)&&D.push(t)&&!p.__r++||M!==L.debounceRendering)&&((M=L.debounceRendering)||H)(p)}function p(){for(var t;p.__r=D.length;)t=D.sort((function(t,n){return t.__v.__b-n.__v.__b})),D=[],t.some((function(t){var n,e,o,i,u,_,l;t.__d&&(_=(u=(n=t).__v).__e,(l=n.__P)&&(e=[],(o=r({},u)).__v=u.__v+1,i=C(l,u,o,n.__n,void 0!==l.ownerSVGElement,null!=u.__h?[_]:null,e,null==_?a(u):_,u.__h),w(e,u),i!=_&&f(u)))}))}function h(t,n,e,r,i,_,c,f,s,p){var h,d,y,m,g,b,k,w=r&&r.__k||F,x=w.length;for(s==W&&(s=null!=c?c[0]:x?a(r,0):null),e.__k=[],h=0;h<n.length;h++)if(null!=(m=e.__k[h]=null==(m=n[h])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m?u(null,m,null,null,m):Array.isArray(m)?u(l,{children:m},null,null,null):null!=m.__e||null!=m.__c?u(m.type,m.props,m.key,null,m.__v):m)){if(m.__=e,m.__b=e.__b+1,null===(y=w[h])||y&&m.key==y.key&&m.type===y.type)w[h]=void 0;else for(d=0;d<x;d++){if((y=w[d])&&m.key==y.key&&m.type===y.type){w[d]=void 0;break}y=null}g=C(t,m,y=y||W,i,_,c,f,s,p),(d=m.ref)&&y.ref!=d&&(k||(k=[]),y.ref&&k.push(y.ref,null,m),k.push(d,m.__c||g,m)),null!=g?(null==b&&(b=g),s=v(t,m,y,w,c,g,s),p||"option"!=e.type?"function"==typeof e.type&&(e.__d=s):t.value=""):s&&y.__e==s&&s.parentNode!=t&&(s=a(y))}if(e.__e=b,null!=c&&"function"!=typeof e.type)for(h=c.length;h--;)null!=c[h]&&o(c[h]);for(h=x;h--;)null!=w[h]&&O(w[h],w[h]);if(k)for(h=0;h<k.length;h++)A(k[h],k[++h],k[++h])}function d(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){d(t,n)})):n.push(t)),n}function v(t,n,e,r,o,i,u){var _,l,c;if(void 0!==n.__d)_=n.__d,n.__d=void 0;else if(o==e||i!=u||null==i.parentNode)t:if(null==u||u.parentNode!==t)t.appendChild(i),_=null;else{for(l=u,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==i)break t;t.insertBefore(i,u),_=u}return void 0!==_?_:i.nextSibling}function y(t,n,e){"-"===n[0]?t.setProperty(n,e):t[n]=null==e?"":"number"!=typeof e||I.test(n)?e:e+"px"}function m(t,n,e,r,o){var i,u,_;if(o&&"className"==n&&(n="class"),"style"===n)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(n in r)e&&n in e||y(t.style,n,"");if(e)for(n in e)r&&e[n]===r[n]||y(t.style,n,e[n])}else"o"===n[0]&&"n"===n[1]?(i=n!==(n=n.replace(/Capture$/,"")),(u=n.toLowerCase())in t&&(n=u),n=n.slice(2),t.l||(t.l={}),t.l[n+i]=e,_=i?b:g,e?r||t.addEventListener(n,_,i):t.removeEventListener(n,_,i)):"list"!==n&&"tagName"!==n&&"form"!==n&&"type"!==n&&"size"!==n&&"download"!==n&&"href"!==n&&!o&&n in t?t[n]=null==e?"":e:"function"!=typeof e&&"dangerouslySetInnerHTML"!==n&&(n!==(n=n.replace(/xlink:?/,""))?null==e||!1===e?t.removeAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",n.toLowerCase(),e):null==e||!1===e&&!/^ar/.test(n)?t.removeAttribute(n):t.setAttribute(n,e))}function g(t){this.l[t.type+!1](L.event?L.event(t):t)}function b(t){this.l[t.type+!0](L.event?L.event(t):t)}function k(t,n,e){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,o.__e&&("function"==typeof o.type&&o.__k.length>1&&k(o,n,e),n=v(e,o,o,t.__k,null,o.__e,n),"function"==typeof t.type&&(t.__d=n)))}function C(t,n,e,o,i,u,_,a,f){var s,p,d,v,y,m,g,b,C,w,A,O=n.type;if(void 0!==n.constructor)return null;null!=e.__h&&(f=e.__h,a=n.__e=e.__e,n.__h=null,u=[a]),(s=L.__b)&&s(n);try{t:if("function"==typeof O){if(b=n.props,C=(s=O.contextType)&&o[s.__c],w=s?C?C.props.value:s.__:o,e.__c?g=(p=n.__c=e.__c).__=p.__E:("prototype"in O&&O.prototype.render?n.__c=p=new O(b,w):(n.__c=p=new c(b,w),p.constructor=O,p.render=E),C&&C.sub(p),p.props=b,p.state||(p.state={}),p.context=w,p.__n=o,d=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=O.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=r({},p.__s)),r(p.__s,O.getDerivedStateFromProps(b,p.__s))),v=p.props,y=p.state,d)null==O.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==O.getDerivedStateFromProps&&b!==v&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,w),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,w)||n.__v===e.__v){p.props=b,p.state=p.__s,n.__v!==e.__v&&(p.__d=!1),p.__v=n,n.__e=e.__e,n.__k=e.__k,p.__h.length&&_.push(p),k(n,a,t);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,w),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(v,y,m)}))}p.context=w,p.props=b,p.state=p.__s,(s=L.__r)&&s(n),p.__d=!1,p.__v=n,p.__P=t,s=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(o=r(r({},o),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(v,y)),A=null!=s&&s.type==l&&null==s.key?s.props.children:s,h(t,Array.isArray(A)?A:[A],n,e,o,i,u,_,a,f),p.base=n.__e,n.__h=null,p.__h.length&&_.push(p),g&&(p.__E=p.__=null),p.__e=!1}else null==u&&n.__v===e.__v?(n.__k=e.__k,n.__e=e.__e):n.__e=x(e.__e,n,e,o,i,u,_,f);(s=L.diffed)&&s(n)}catch(t){n.__v=null,(f||null!=u)&&(n.__e=a,n.__h=!!f,u[u.indexOf(a)]=null),L.__e(t,n,e)}return n.__e}function w(t,n){L.__c&&L.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){L.__e(t,n.__v)}}))}function x(t,n,e,r,o,i,u,_){var l,c,a,f,s,p=e.props,d=n.props;if(o="svg"===n.type||o,null!=i)for(l=0;l<i.length;l++)if(null!=(c=i[l])&&((null===n.type?3===c.nodeType:c.localName===n.type)||t==c)){t=c,i[l]=null;break}if(null==t){if(null===n.type)return document.createTextNode(d);t=o?document.createElementNS("http://www.w3.org/2000/svg",n.type):document.createElement(n.type,d.is&&{is:d.is}),i=null,_=!1}if(null===n.type)p===d||_&&t.data===d||(t.data=d);else{if(null!=i&&(i=F.slice.call(t.childNodes)),a=(p=e.props||W).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!_){if(null!=i)for(p={},s=0;s<t.attributes.length;s++)p[t.attributes[s].name]=t.attributes[s].value;(f||a)&&(f&&(a&&f.__html==a.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}(function(t,n,e,r,o){var i;for(i in e)"children"===i||"key"===i||i in n||m(t,i,null,e[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||e[i]===n[i]||m(t,i,n[i],e[i],r)})(t,d,p,o,_),f?n.__k=[]:(l=n.props.children,h(t,Array.isArray(l)?l:[l],n,e,r,"foreignObject"!==n.type&&o,i,u,W,_)),_||("value"in d&&void 0!==(l=d.value)&&(l!==t.value||"progress"===n.type&&!l)&&m(t,"value",l,p.value,!1),"checked"in d&&void 0!==(l=d.checked)&&l!==t.checked&&m(t,"checked",l,p.checked,!1))}return t}function A(t,n,e){try{"function"==typeof t?t(n):t.current=n}catch(t){L.__e(t,e)}}function O(t,n,e){var r,i,u;if(L.unmount&&L.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||A(r,null,n)),e||"function"==typeof t.type||(e=null!=(i=t.__e)),t.__e=t.__d=void 0,null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){L.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(u=0;u<r.length;u++)r[u]&&O(r[u],n,e);null!=i&&o(i)}function E(t,n,e){return this.constructor(t,e)}function S(t,n,e){var r,o,u;L.__&&L.__(t,n),o=(r=e===N)?null:e&&e.__k||n.__k,t=i(l,null,[t]),u=[],C(n,(r?n:e||n).__k=t,o||W,W,void 0!==n.ownerSVGElement,e&&!r?[e]:o?null:n.childNodes.length?F.slice.call(n.childNodes):null,u,e||W,r),w(u,t)}function P(t,n){S(t,n,N)}function j(t,n,e){var o,i,_,l=arguments,c=r({},t.props);for(_ in n)"key"==_?o=n[_]:"ref"==_?i=n[_]:c[_]=n[_];if(arguments.length>3)for(e=[e],_=3;_<arguments.length;_++)e.push(l[_]);return null!=e&&(c.children=e),u(t.type,c,o||t.key,i||t.ref,null)}function T(t,n){var e={__c:n="__cC"+R++,__:t,Consumer:function(t,n){return t.children(n)},Provider:function(t,e,r){return this.getChildContext||(e=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&e.some(s)},this.sub=function(t){e.push(t);var n=t.componentWillUnmount;t.componentWillUnmount=function(){e.splice(e.indexOf(t),1),n&&n.call(t)}}),t.children}};return e.Provider.__=e.Consumer.contextType=e}e.r(n),e.d(n,"render",(function(){return S})),e.d(n,"hydrate",(function(){return P})),e.d(n,"createElement",(function(){return i})),e.d(n,"h",(function(){return i})),e.d(n,"Fragment",(function(){return l})),e.d(n,"createRef",(function(){return _})),e.d(n,"isValidElement",(function(){return U})),e.d(n,"Component",(function(){return c})),e.d(n,"cloneElement",(function(){return j})),e.d(n,"createContext",(function(){return T})),e.d(n,"toChildArray",(function(){return d})),e.d(n,"__u",(function(){return O})),e.d(n,"options",(function(){return L}));var L,U,D,H,M,N,R,W={},F=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;L={__e:function(t,n){for(var e,r,o,i=n.__h;n=n.__;)if((e=n.__c)&&!e.__)try{if((r=e.constructor)&&null!=r.getDerivedStateFromError&&(e.setState(r.getDerivedStateFromError(t)),o=e.__d),null!=e.componentDidCatch&&(e.componentDidCatch(t),o=e.__d),o)return n.__h=i,e.__E=e}catch(n){t=n}throw t},__v:0},U=function(t){return null!=t&&void 0===t.constructor},c.prototype.setState=function(t,n){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof t&&(t=t(r({},e),this.props)),t&&r(e,t),null!=t&&this.__v&&(n&&this.__h.push(n),s(this))},c.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),s(this))},c.prototype.render=l,D=[],H="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,N=W,R=0},mdyV:function(t,n,e){"use strict";e.r(n);var r=e("hosL");const{h:o,render:i,hydrate:u}=r,_=t=>t&&t.default?t.default:t,l=t=>"/"===t[t.length-1]?t:t+"/";if("serviceWorker"in navigator&&navigator.serviceWorker.register(e.p+"sw-esm.js"),"function"==typeof _(e("QfWi"))){let t=document.getElementById("preact_root")||document.body.firstElementChild;0,(()=>{let n=_(e("QfWi")),r={};const c=document.querySelector('[type="__PREACT_CLI_DATA__"]');c&&(r=JSON.parse(decodeURI(c.innerHTML)).preRenderData||r);const a={preRenderData:r},f=r.url?l(r.url):"",s=u&&f===l(location.pathname);t=(s?u:i)(o(n,{CLI_DATA:a}),document.body,t)})()}},pRls:function(){}});
//# sourceMappingURL=bundle.8259f.esm.js.map