144 lines
770 KiB
JavaScript
144 lines
770 KiB
JavaScript
|
|
var blocksyOptions;!function(){var e={1649:function(e){e.exports=function(e,t){var n,r,o=0;function i(){var i,a,c=n,l=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a<l;a++)if(c.args[a]!==arguments[a]){c=c.next;continue e}return c!==n&&(c===r&&(r=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return c={args:i,val:e.apply(null,i)},n?(n.prev=c,c.next=n):r=c,o===t.maxSize?(r=r.prev).next=null:o++,n=c,c.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},454:function(e){"use strict";const t=(e,t,n)=>{const r=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(r,0,o)},n=(e,n,r)=>(e=e.slice(),t(e,n,r),e);e.exports=n,e.exports.default=n,e.exports.mutate=t},1576:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(1381);const o=["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"];function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let c=function(e){let{initialState:t,getInitialState:n,refs:r,getRefs:i,didMount:c,didUpdate:l,willUnmount:s,getSnapshotBeforeUpdate:u,shouldUpdate:p,render:f}=e;return a(e,o)};class l extends r.Component{constructor(){var e;super(...arguments),e=this,i(this,"state",this.props.initialState||this.props.getInitialState(this.props)),i(this,"_refs",this.props.refs||this.props.getRefs(this.getArgs())),i(this,"_setState",(function(){return e.setState(...arguments)})),i(this,"_forceUpdate",(function(){return e.forceUpdate(...arguments)}))}getArgs(){const{state:e,props:t,_setState:n,_forceUpdate:r,_refs:o}=this;return{state:e,props:c(t),refs:o,setState:n,forceUpdate:r}}componentDidMount(){this.props.didMount&&this.props.didMount(this.getArgs())}shouldComponentUpdate(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:c(e),nextState:t})}componentWillUnmount(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:c(this.props),refs:this._refs})}componentDidUpdate(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:c(e),prevState:t}),n)}getSnapshotBeforeUpdate(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:c(e),prevState:t})):null}render(){const{children:e,render:t}=this.props;return t?t(this.getArgs()):"function"==typeof e?e(this.getArgs()):e||null}}i(l,"defaultProps",{getInitialState:function(){},getRefs:function(){return{}}});var s=l;var u=function(e){let{children:t,container:n=document.body,type:o="reach-portal"}=e;return(0,r.createElement)(s,{getRefs:function(){return{node:null}},didMount:function(e){let{refs:t,forceUpdate:r}=e,i=n.hasOwnProperty("current")?n.current:n;t.node=document.createElement(o),i.appendChild(t.node),r()},willUnmount:function(e){let{refs:{node:t}}=e,r=n.hasOwnProperty("current")?n.current:n;r&&r.removeChild(t)},render:function(e){let{refs:{node:n}}=e;return n?(0,r.createPortal)(t,n):null}})};let p=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}};const f=["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"],d=["onClick","onKeyDown"];function m(){return m=Object.
|
||
|
|
/**!
|
||
|
|
* Sortable 1.11.0
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=function(){"use strict";var e="1.11.0";function r(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}const i=r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),a=r(/Edge/i),c=r(/firefox/i),l=r(/safari/i)&&!r(/chrome/i)&&!r(/android/i),s=r(/iP(ad|od|hone)/i),u=r(/chrome/i)&&r(/android/i),p={capture:!1,passive:!1};function f(e,t,n){e.addEventListener(t,n,!i&&p)}function d(e,t,n){e.removeEventListener(t,n,!i&&p)}function m(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function g(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function h(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&m(e,t):m(e,t))||r&&e===n)return e;if(e===n)break}while(e=g(e))}return null}const v=/\s+/g;function y(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{let r=(" "+e.className+" ").replace(v," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(v," ")}}function b(e,t,n){let r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function w(e,t){let n="";if("string"==typeof e)n=e;else do{let t=b(e,"transform");t&&"none"!==t&&(n=t+" "+n)}while(!t&&(e=e.parentNode));const r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function O(e,t,n){if(e){let r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function _(){let e=document.scrollingElement;return e||document.documentElement}function E(e,t,n,r,o){if(!e.getBoundingClientRect&&e!==window)return;let a,c,l,s,u,p,f;if(e!==window&&e!==_()?(a=e.getBoundingClientRect(),c=a.top,l=a.left,s=a.bottom,u=a.right,p=a.height,f=a.width):(c=0,l=0,s=window.innerHeight,u=window.innerWidth,p=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!i))do{if(o&&o.getBoundingClientRect&&("none"!==b(o,"transform")||n&&"static"!==b(o,"position"))){let e=o.getBoundingClientRect();c-=e.top+parseInt(b(o,"border-top-width")),l-=e.left+parseInt(b(o,"border-left-width")),s=c+a.height,u=l+a.width;break}}while(o=o.parentNode);if(r&&e!==window){let t=w(o||e),n=t&&t.a,r=t&&t.d;t&&(c/=r,l/=n,f/=n,p/=r,s=c+p,u=l+f)}return{top:c,left:l,bottom:s,right:u,width:f,height:p}}function S(e,t,n){let r=I(e,!0),o=E(e)[t];for(;r;){let e,t=E(r)[n];if(e="top"===n||"left"===n?o>=t:o<=t,!e)return r;if(r===_())break;r=I(r,!1)}return!1}function j(e,t,n){let r=0,o=0,i=e.children;for(;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Ue.ghost&&i[o]!==Ue.dragged&&h(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function P(e,t){let n=e.lastElementChild;for(;n&&(n===Ue.ghost||"none"===b(n,"display")||t&&!m(n,t));)n=n.previousElementSibling;return n||null}function x(e,t){let n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e.matches(".ct-pointer")||e===Ue.clone||t&&!m(e,t)||n++;return n}function C(e){let t=0,n=0,r=_();if(e)do{let r=w(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function k(e,t){for(let n in e)if(e.hasOwnProperty(n))for(let r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function I(e,t){if(!e||!e.getBoundingClientRect)return _();let n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){let e=b(n);if(n.clientWidth<n.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!n.getBoundingClientRect||n===document
|
||
|
|
/**!
|
||
|
|
* Sortable
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/let q=function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{evt:a}=i,c=n(i,t);G.pluginEvent.bind(Ue)(e,r,o({dragEl:Y,parentEl:X,ghostEl:Q,rootEl:J,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:he,putSortable:se,activeSortable:Ue.active,originalEvent:a,oldIndex:oe,oldDraggableIndex:ae,newIndex:ie,newDraggableIndex:ce,hideGhostForTarget:Be,unhideGhostForTarget:ze,cloneNowHidden(){re=!0},cloneNowShown(){re=!1},dispatchSortableEvent(e){K({sortable:r,name:e,originalEvent:a})}},c))};function K(e){Z(o({putSortable:se,cloneEl:ne,targetEl:Y,rootEl:J,oldIndex:oe,oldDraggableIndex:ae,newIndex:ie,newDraggableIndex:ce},e))}let Y,X,Q,J,ee,te,ne,re,oe,ie,ae,ce,le,se,ue,pe,fe,de,me,ge,he,ve,ye,be,we,Oe=!1,_e=!1,Ee=[],Se=!1,je=!1,Pe=[],xe=!1,Ce=[];const ke="undefined"!=typeof document,Ie=s,De=a||i?"cssFloat":"float",Te=ke&&!u&&!s&&"draggable"in document.createElement("div"),Ne=function(){if(!ke)return;if(i)return!1;let e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),Ae=function(e,t){let n=b(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=j(e,0,t),i=j(e,1,t),a=o&&b(o),c=i&&b(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(o).width,s=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+E(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){let e="left"===a.float?"left":"right";return!i||"both"!==c.clear&&c.clear!==e?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[De]||i&&"none"===n[De]&&l+s>r)?"vertical":"horizontal"},Re=function(e,t,n){let r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,c=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||o===c||r+i/2===a+l/2},Me=function(e,t){let n;return Ee.some((function(r){if(P(r))return;let o=E(r),i=r[F].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,c=t>=o.top-i&&t<=o.bottom+i;return i&&a&&c?n=r:void 0})),n},Le=function(e){function t(e,n){return function(r,o,i,a){let c=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||c))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);{let t=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===t||e.join&&e.indexOf(t)>-1}}}let n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Be=function(){!Ne&&Q&&b(Q,"display","none")},ze=function(){!Ne&&Q&&b(Q,"display","")};ke&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);let Fe=function(e){if(Y){e=e.touches?e.touches[0]:e;let t=Me(e.clientX,e.clientY);if(t){let n={};for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[F]._onDragOver(n)}}},Ve=function(e){Y&&Y.parentNode[F]._isOutsideThisEl(e.target)};function Ue(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Object.assign({},t),e[F]=this;let n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ae(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,d
|
||
|
|
/*!
|
||
|
|
Copyright (c) 2018 Jed Watson.
|
||
|
|
Licensed under the MIT License (MIT), see
|
||
|
|
http://jedwatson.github.io/classnames
|
||
|
|
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},640:function(e,t,n){"use strict";var r=n(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,c,l,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),c=document.createRange(),l=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},1012:function(e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n},600:function(e,t){"use strict";t.T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},6831:function(e,t){"use strict";function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)
|
||
|
|
/** @license React v17.0.2
|
||
|
|
* react-is.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),c=b("react.provider"),l=b("react.context"),s=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),f=b("react.memo"),d=b("react.lazy"),m=b("react.block"),g=b("react.server.block"),h=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case d:case f:case c:return e;default:return t}}case r:return t}}}},1726:function(e,t,n){"use strict";n(6781)},2991:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},4029:function(e,t,n){"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},7648:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),c=[],l=0;l<a;l++)c.push("$"+l);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o}},8612:function(e,t,n){"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:function(e){"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new a},u=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,p=n(1405)(),f=
|
||
|
|
/*!
|
||
|
|
* Determine if an object is a Buffer
|
||
|
|
*
|
||
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},5320:function(e){"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(p=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},8923:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8662:function(e,t,n){"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},8420:function(e,t,n){"use strict";var r,o,i,a,c=n(1924),l=n(6410)();if(l){r=c("Object.prototype.hasOwnProperty"),o=c("RegExp.prototype.exec"),i={};var s=function(){throw i};a={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=s)}var u=c("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},8552:function(e,t,n){var r=n(852)(n(5639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(1789),o=n(401),i=n(7667),a=n(1327),c=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=c,e.exports=l},6425:function(e,t,n){var r=n(3118),o=n(9435);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},8407:function(e,t,n){var r=n(7040),o=n(4125),i=n(2117),a=n(7518),c=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=c,e.exports=l},7548:function(e,t,n){var r=n(3118),o=n(9435);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},7071:function(e,t,n){var r=n(852)(n(5639),"Map");e.exports=r},3369:function(e,t,n){var r=n(4785),o=n(1285),i=n(6e3),a=n(9916),c=n(5265);function l(e){var t=-1,n=null==e?0
|
||
|
|
/** @license React v16.13.1
|
||
|
|
* react-is.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case s:case f:case h:case g:case l:return e;default:return t}}case o:return t}}}function _(e){return O(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return _(e)||O(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===h},t.isMemo=function(e){return O(e)===g},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===l||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},9864:function(e,t,n){"use strict";e.exports=n(9921)},8359:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,c=60109,l=60110,s=60112,u=60113,p=60120,f=60115,d=60116,m=60121,g=60122,h=60117,v=60129,y=60131;
|
||
|
|
/** @license React v17.0.2
|
||
|
|
* react-is.production.min.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),c=b("react.provider"),l=b("react.context"),s=b("react.forward_ref"),u=b("react.suspense"),p=b("react.suspense_list"),f=b("react.memo"),d=b("react.lazy"),m=b("react.block"),g=b("react.server.block"),h=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case d:case f:case c:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},2973:function(e,t,n){"use strict";e.exports=n(8359)},3697:function(e,t,n){"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:function(e,t,n){"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(1721),c=n(2753),l=o(a());r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},1721:function(e,t,n){"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:function(e,t,n){"use strict";var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,c=TypeError,l=Object.getPrototypeOf,s=/a/;e.exports=function(){if(!r||!l)throw new c("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(s),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},6399:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},8975:function(e,t,n){var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,c,l,s,u,p,f,d=1,m=e.length,g="";for(r=0;r<m;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((c=e[r]).keys)for(n=t[d],a=0;a<c.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',c.keys[a],c.keys[a-1]));n=n[c.keys[a]]}else n=c.param_no?t[c.param_no]:t[d++];if(o.not_type.test(c.type)&&o.not_primitive.test(c.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(c.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(c.type)&&(p=n>=0),c.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,c.width?parseInt(c.width):0);break;case"e":n=c.precision?parseFloat(n).toExponential(c.precision):parseFloat(n).toExponential();break;case"f":n=c.precision?parseFloat(n).toFixed(c.precision):parseFloat(n);break;case"g":n=c.precision?String(Number(n.toPrecis
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/
|
||
|
|
Object.defineProperty(e,"__esModule",{value:!0});var t;e.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},(t=e.nodeType||(e.nodeType={})).stylesheet="stylesheet",t.comment="comment",t.atRule="atRule",t.ruleset="ruleset",t.expression="expression",t.declaration="declaration",t.rulelist="rulelist",t.discarded="discarded"}(Ln),
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/
|
||
|
|
Object.defineProperty(Mn,"__esModule",{value:!0});const Bn=kn(),zn=Ln;Mn.iterateOverAst=function*e(t){switch(yield t,t.type){case zn.nodeType.stylesheet:for(const n of t.rules)yield*e(n);return;case zn.nodeType.ruleset:return yield*e(t.rulelist);case zn.nodeType.rulelist:for(const n of t.rules)yield*e(n);return;case zn.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case zn.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case zn.nodeType.expression:case zn.nodeType.comment:case zn.nodeType.discarded:return;default:const n=t;console.error(`Got a node of unknown type: ${Bn.inspect(n)}`)}};var Fn={};
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/Object.defineProperty(Fn,"__esModule",{value:!0});const Vn=Ln;Fn.NodeFactory=class{stylesheet(e,t){return{type:Vn.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,n=void 0,r,o,i){return{type:Vn.nodeType.atRule,name:e,parameters:t,rulelist:n,nameRange:r,parametersRange:o,range:i}}comment(e,t){return{type:Vn.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:Vn.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,n,r){return{type:Vn.nodeType.ruleset,selector:e,rulelist:t,selectorRange:n,range:r}}declaration(e,t,n,r){return{type:Vn.nodeType.declaration,name:e,value:t,nameRange:n,range:r}}expression(e,t){return{type:Vn.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:Vn.nodeType.discarded,text:e,range:t}}};var Un={};
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/Object.defineProperty(Un,"__esModule",{value:!0});Un.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}};var Hn={},Wn={};!function(e){var t;
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/
|
||
|
|
Object.defineProperty(e,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(t=e.TokenType||(e.TokenType={}));class n{constructor(e,t,n){this.type=e,this.start=t,this.end=n,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=t,e.Token=n;const r={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};e.boundaryTokenTypes=r}(Wn);var $n={};
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/Object.defineProperty($n,"__esModule",{value:!0});const Gn=Ln,Zn=Wn;$n.Tokenizer=class{constructor(e){this.cursorToken_=new Zn.Token(Zn.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t=void 0){const{start:n,end:r}=this.getRange(e,t);return this.cssText.substring(n,r)}getRange(e,t=void 0){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=Gn.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):Gn.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):Gn.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let n=!1;const r=e;let o;for(;o=this.cssText[++e];)if(n)n=!1;else{if(o===t){++e;break}"\\"===o&&(n=!0)}return new Zn.Token(Zn.Token.type.string,r,e)}tokenizeWord(e){const t=e;let n;for(;(n=this.cssText[e])&&!Gn.matcher.boundary.test(n);)e++;return new Zn.Token(Zn.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;Gn.matcher.whitespaceGreedy.lastIndex=e;const n=Gn.matcher.whitespaceGreedy.exec(this.cssText);return null!=n&&n.index===e&&(e=Gn.matcher.whitespaceGreedy.lastIndex),new Zn.Token(Zn.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;Gn.matcher.commentGreedy.lastIndex=e;return e=null==Gn.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:Gn.matcher.commentGreedy.lastIndex,new Zn.Token(Zn.Token.type.comment,t,e)}tokenizeBoundary(e){const t=Zn.boundaryTokenTypes[this.cssText[e]]||Zn.Token.type.boundary;return new Zn.Token(t,e,e+1)}},
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/
|
||
|
|
Object.defineProperty(Hn,"__esModule",{value:!0});const qn=Fn,Kn=Wn,Yn=$n;Hn.Parser=class{constructor(e=new qn.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new Yn.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const n=this.parseRule(e);n&&t.push(n)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(Kn.Token.type.whitespace)?(e.advance(),null):t.is(Kn.Token.type.comment)?this.parseComment(e):t.is(Kn.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(Kn.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(Kn.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let n;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(Kn.Token.type.boundary);)n=e.advance();return this.nodeFactory.discarded(e.slice(t,n),e.getRange(t,n))}parseAtRule(e){let t,n,r,o,i;if(!e.currentToken)return null;const a=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(Kn.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(Kn.Token.type.at)){e.advance();const r=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(Kn.Token.type.word);)o=e.advance();n=e.getRange(r,o),t=e.cssText.slice(n.start,n.end)}else{if(e.currentToken.is(Kn.Token.type.openBrace)){r=this.parseRulelist(e);break}if(e.currentToken.is(Kn.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===n)return null;let c,l="";o&&(c=e.trimRange(e.getRange(o,i)),l=e.cssText.slice(c.start,c.end));const s=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,l,r,n,c,{start:a,end:s})}parseRulelist(e){const t=[],n=e.currentToken.start;let r;for(e.advance();e.currentToken;){if(e.currentToken.is(Kn.Token.type.closeBrace)){r=e.currentToken,e.advance();break}{const n=this.parseRule(e);n&&t.push(n)}}const o=r?r.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:n,end:o})}parseDeclarationOrRuleset(e){let t=null,n=null,r=null;for(;e.currentToken;)if(e.currentToken.is(Kn.Token.type.whitespace))e.advance();else if(e.currentToken.is(Kn.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(Kn.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(Kn.Token.type.openBrace)||e.currentToken.is(Kn.Token.type.propertyBoundary))break;e.currentToken.is(Kn.Token.type.colon)&&(r=e.currentToken),null===t?(t=e.advance(),n=t):n=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(Kn.Token.type.propertyBoundary)){const o=e.getRange(t,r?r.previous:n),i=e.cssText.slice(o.start,o.end);let a;if(r&&r.next){const t=e.getRange(r.next,n),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);a=this.nodeFactory.expression(i,o)}e.currentToken.is(Kn.Token.type.semicolon)&&e.advance();const c=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,a,o,c)}if(r&&r===n){const r=this.parseRulelist(e);e.currentToken.is(Kn.Token.type.semicolon)&&e.advance();const o=e.getRange(t,n.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||n));return this.nodeFactory.declaration(i,r,o,a)}{const r=e.getRange(t,n),o=e.cssText.slice(r.start,r.end),i=this.parseRulelist(e),a=t.start;let c;return c=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,r,{start:a,end:c})}}};var Xn={};
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/Object.defineProperty(Xn,"__esModule",{value:!0});const Qn=Ln,Jn=Un;class er extends Jn.NodeVisitor{stringify(e){return this.visit(e)||""}[Qn.nodeType.stylesheet](e){let t="";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t}[Qn.nodeType.atRule](e){return`@${e.name}`+(e.parameters?` ${e.parameters}`:"")+(e.rulelist?`${this.visit(e.rulelist)}`:";")}[Qn.nodeType.rulelist](e){let t="{";for(let n=0;n<e.rules.length;++n)t+=this.visit(e.rules[n]);return t+"}"}[Qn.nodeType.comment](e){return`${e.value}`}[Qn.nodeType.ruleset](e){return`${e.selector}${this.visit(e.rulelist)}`}[Qn.nodeType.declaration](e){return null!=e.value?`${e.name}:${this.visit(e.value)};`:`${e.name};`}[Qn.nodeType.expression](e){return`${e.text}`}[Qn.nodeType.discarded](e){return""}}Xn.Stringifier=er,
|
||
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
||
|
|
* This code may only be used under the BSD style license found at
|
||
|
|
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
||
|
|
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
||
|
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
||
|
|
* Google as part of the polymer project is also subject to an additional IP
|
||
|
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
||
|
|
*/
|
||
|
|
Object.defineProperty(Rn,"__esModule",{value:!0});var tr=Mn;Rn.iterateOverAst=tr.iterateOverAst;var nr=Ln;Rn.nodeType=nr.nodeType;var rr=Fn;Rn.NodeFactory=rr.NodeFactory;var or=Un;Rn.NodeVisitor=or.NodeVisitor;var ir=Hn,ar=Rn.Parser=ir.Parser,cr=Xn,lr=Rn.Stringifier=cr.Stringifier,sr=Wn;Rn.Token=sr.Token;var ur=$n;Rn.Tokenizer=ur.Tokenizer;var pr,fr={},dr=function(){fr={}},mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e=Dn({cacheId:"default",initialStyleTagsDescriptor:[],initialStyleTags:[]},e),fr[e.cacheId])return fr[e.cacheId];var t=new ar,n=Nn(e.initialStyleTags),r=document.querySelector("#ct-main-styles-inline-css");return r&&n.push(r),fr[e.cacheId]=[].concat(Nn(e.initialStyleTagsDescriptor),Nn(n.map((function(e){return{style:e}})))).map((function(e){var n={readStyles:e.readStyles?e.readStyles:function(){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a readStyles function.");return e.style.innerText},persistStyles:e.persistStyles?e.persistStyles:function(t){if(!e.style)throw new Error("No style tag is provided. Please provide a style tag or a persistStyles function.");e.style.innerText=t}};return Dn(Dn({},n),{},{ast:t.parse(n.readStyles().replace(new RegExp("\n","g"),""))})})),fr[e.cacheId]},gr=function(e,t){fr[e]=t;var n=new lr;fr[e].map((function(e){var t=e.ast.rules.reduce((function(e,t){return"atRule"===t.type&&"media"===t.name?Dn(Dn({},e),{},{media:[].concat(Nn(e.media),[t])}):Dn(Dn({},e),{},{nonMedia:[].concat(Nn(e.nonMedia),[t])})}),{nonMedia:[],media:[]}),r=n.stringify(Dn(Dn({},e.ast),{},{rules:[].concat(Nn(t.nonMedia),Nn(t.media))}));e.persistStyles(r)}))},hr=function(e){if("auto"===e||""===e)return{value:e,unit:""};var t=parseFloat(e);return isNaN(t)?{value:"",unit:""}:{value:t,unit:e.toString().replace(t.toString(),"")}},vr=function(e){return e},yr=function(e){return e&&"[object Function]"==={}.toString.call(e)},br=function(e){var t=e.variableDescriptor,n=e.value;return{type:"declaration",name:t.variableName,value:{type:"expression",text:n}}},wr=function(e,t){return e.selector&&e.selector.desktop?e.selector[t]:e.selector||":root"},Or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=Dn({variableDescriptorsWithValue:[],ast:{},device:"desktop"},e)).ast,n=e.variableDescriptorsWithValue.flatMap((function(e){return e.variableDescriptor.dropSelectors||[]}));if(n.length>0&&Array.isArray(t.rules)){var r=new Set(t.rules.map((function(e){return e.selector})));t=Dn(Dn({},t),{},{rules:t.rules.filter((function(e){var t=r.has(e.selector),o="string"==typeof e.selector&&n.some((function(t){return e.selector.includes(t)}));return!(t&&o)}))})}if(0===e.variableDescriptorsWithValue.length)return t;var o,i,a=(o=e.variableDescriptorsWithValue,i=function(t){var n=t.variableDescriptor;return wr(n,e.device)},o.reduce((function(e,t,n){var r;return(e[r=i(t,n,o)]||(e[r]=[])).push(t),e}),{})),c=[],l={};if(l=Dn(Dn({},t),{},{rules:t.rules.map((function(e){if(!e.selector||!a[e.selector])return e;c.push(e.selector);var t=a[e.selector],n=[],r=t.filter((function(e){return!e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return Dn(Dn({},e),{},Tn({},t.variableDescriptor.variableName,t))}),{}),o=t.filter((function(e){return e.value.includes("CT_CSS_SKIP_RULE")})).reduce((function(e,t){return Dn(Dn({},e),{},Tn({},t.variableDescriptor.variableName,t))}),{}),i=e.rulelist.rules.filter((function(e){var t=e.type,n=e.name;return"declaration"!==t||!o[n]})).map((function(e){return"declaration"===e.type&&r[e.name]?(n.push(e.name),Dn(Dn({},e),{},{value:Dn(Dn({},e.value),{},{text:r[e.name].value})})):e}));return n.length!==Object.values(r).length&&(i=[].concat(Nn(i),Nn(Object.values(r).filter((function(e){var t=e.variableDescriptor;return!n.includes(t.variableName)})).map((function(e){return br(e)}))))),Dn(Dn({},e),{},{rulelist:Dn(Dn({},e.rulelist),{},{rules:i})})}))}),c.length!==Object.keys(a).length){var s=Object.values(a).filter((function(t){return!c.includes(wr(t[0].variableDescriptor,e.device))&&!!t.find((function(e){return!e.value.inc
|