mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
30 lines
84 KiB
JavaScript
30 lines
84 KiB
JavaScript
|
(()=>{var ta=Object.create;var wt=Object.defineProperty;var ra=Object.getOwnPropertyDescriptor;var na=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,oa=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable;var Qr=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))cr.call(t,n)&&Qr(e,n,t[n]);if(Et)for(var n of Et(t))qr.call(t,n)&&Qr(e,n,t[n]);return e};var ia=e=>wt(e,"__esModule",{value:!0});var Kr=(e,t)=>{var n={};for(var r in e)cr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Et)for(var r of Et(e))t.indexOf(r)<0&&qr.call(e,r)&&(n[r]=e[r]);return n};var Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aa=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of na(t))!cr.call(e,r)&&r!=="default"&&wt(e,r,{get:()=>t[r],enumerable:!(n=ra(t,r))||n.enumerable});return e},Be=e=>aa(ia(wt(e!=null?ta(oa(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Yr=Tt((lr,Br)=>{(function(e,t){typeof lr=="object"&&typeof Br!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(lr,function(){"use strict";function e(n){var r=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(E){return!!(E&&E!==document&&E.nodeName!=="HTML"&&E.nodeName!=="BODY"&&"classList"in E&&"contains"in E.classList)}function l(E){var Ve=E.type,Me=E.tagName;return!!(Me==="INPUT"&&a[Ve]&&!E.readOnly||Me==="TEXTAREA"&&!E.readOnly||E.isContentEditable)}function c(E){E.classList.contains("focus-visible")||(E.classList.add("focus-visible"),E.setAttribute("data-focus-visible-added",""))}function u(E){!E.hasAttribute("data-focus-visible-added")||(E.classList.remove("focus-visible"),E.removeAttribute("data-focus-visible-added"))}function m(E){E.metaKey||E.altKey||E.ctrlKey||(s(n.activeElement)&&c(n.activeElement),r=!0)}function p(E){r=!1}function h(E){!s(E.target)||(r||l(E.target))&&c(E.target)}function b(E){!s(E.target)||(E.target.classList.contains("focus-visible")||E.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(E.target))}function d(E){document.visibilityState==="hidden"&&(o&&(r=!0),U())}function U(){document.addEventListener("mousemove",$),document.addEventListener("mousedown",$),document.addEventListener("mouseup",$),document.addEventListener("pointermove",$),document.addEventListener("pointerdown",$),document.addEventListener("pointerup",$),document.addEventListener("touchmove",$),document.addEventListener("touchstart",$),document.addEventListener("touchend",$)}function B(){document.removeEventListener("mousemove",$),document.removeEventListener("mousedown",$),document.removeEventListener("mouseup",$),document.removeEventListener("pointermove",$),document.removeEventListener("pointerdown",$),document.removeEventListener("pointerup",$),document.removeEventListener("touchmove",$),document.removeEventListener("touchstart",$),document.removeEventListener("touchend",$)}function $(E){E.target.nodeName&&E.target.nodeName.toLowerCase()==="html"||(r=!1,B())}document.addEventListener("keydown",m,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",d,!0),U(),n.addEventListener("focus",h,!0),n.addEventListener("blur",b,!0),n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(n){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatch
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */var Jr,Gr,Xr,Zr,en,tn,rn,nn,on,Ot,ur,an,sn,cn,Ye,ln,un,pn,fn,mn,dn,hn,bn,_t;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof Mt=="object"&&typeof Mt.exports=="object"?e(n(t,n(Mt.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])};Jr=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function i(){this.constructor=r}r.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Gr=Object.assign||function(r){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},Xr=function(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(i[a[s]]=r[a[s]]);return i},Zr=function(r,o,i,a){var s=arguments.length,l=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,o,i,a);else for(var u=r.length-1;u>=0;u--)(c=r[u])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},en=function(r,o){return function(i,a){o(i,a,r)}},tn=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},rn=function(r,o,i,a){function s(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function u(h){try{p(a.next(h))}catch(b){c(b)}}function m(h){try{p(a.throw(h))}catch(b){c(b)}}function p(h){h.done?l(h.value):s(h.value).then(u,m)}p((a=a.apply(r,o||[])).next())})},nn=function(r,o){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(h){return m([p,h])}}function m(p){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(l=p[0]&2?s.return:p[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,p[1])).done)return l;switch(s=0,l&&(p=[p[0]&2,l.value]),p[0]){case 0:case 1:l=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,s=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!l||p[1]>l[0]&&p[1]<l[3])){i.label=p[1];break}if(p[0]===6&&i.label<l[1]){i.label=l[1],l=p;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(p);break}l[2]&&i.ops.pop(),i.trys.pop();continue}p=o.call(r,i)}catch(h){p=[6,h],s=0}finally{a=l=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},on=function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&_t(o,r,i)},_t=Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]},Ot=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&r[o],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},ur=function(r,o){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),s,l=[],c;try{for(;(o=
|
||
|
* clipboard.js v2.0.8
|
||
|
* https://clipboardjs.com/
|
||
|
*
|
||
|
* Licensed MIT © Zeno Rocha
|
||
|
*/(function(t,n){typeof xt=="object"&&typeof Fr=="object"?Fr.exports=n():typeof define=="function"&&define.amd?define([],n):typeof xt=="object"?xt.ClipboardJS=n():t.ClipboardJS=n()})(xt,function(){return function(){var e={134:function(r,o,i){"use strict";i.d(o,{default:function(){return Zi}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),u=i(817),m=i.n(u);function p(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(v){return typeof v}:p=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},p(_)}function h(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function b(_,g){for(var v=0;v<g.length;v++){var k=g[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,k.key,k)}}function d(_,g,v){return g&&b(_.prototype,g),v&&b(_,v),_}var U=function(){function _(g){h(this,_),this.resolveOptions(g),this.initSelection()}return d(_,[{key:"resolveOptions",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=v.action,this.container=v.container,this.emitter=v.emitter,this.target=v.target,this.text=v.text,this.trigger=v.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var v=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[v?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(k,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var v=this,k=this.createFakeElement();this.fakeHandlerCallback=function(){return v.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(k),this.selectedText=m()(k),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=m()(this.target),this.copyText()}},{key:"copyText",value:function(){var v;try{v=document.execCommand(this.action)}catch(k){v=!1}this.handleResult(v)}},{key:"handleResult",value:function(v){this.emitter.emit(v?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=v,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(v){if(v!==void 0)if(v&&p(v)==="object"&&v.nodeType===1){if(this.action==="copy"&&v.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(v.hasAttribute("readonly")||v.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=v}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),_}(),B=U;function $(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(v){return typeof v}:$=function(v){return v&&typeof Symbol=="function"&&v.construct
|
||
|
* escape-html
|
||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
* MIT Licensed
|
||
|
*/"use strict";var Ja=/["'&<>]/;yi.exports=Ga;function Ga(e){var t=""+e,n=Ja.exec(t);if(!n)return t;var r,o="",i=0,a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=r}return a!==i?o+t.substring(a,i):o}});var FE=Be(Yr());var gn=Be(vn()),{__extends:X,__assign:ms,__rest:ds,__decorate:hs,__param:bs,__metadata:vs,__awaiter:xn,__generator:Lt,__exportStar:gs,__createBinding:xs,__values:pe,__read:H,__spread:ys,__spreadArrays:Ss,__spreadArray:j,__await:At,__asyncGenerator:yn,__asyncDelegator:ws,__asyncValues:Sn,__makeTemplateObject:Es,__importStar:Ts,__importDefault:Os,__classPrivateFieldGet:_s,__classPrivateFieldSet:Ms}=gn.default;function S(e){return typeof e=="function"}function kt(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ct=kt(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
||
|
`+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
||
|
`):"",this.name="UnsubscriptionError",this.errors=n}});function Le(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=pe(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(S(u))try{u()}catch(d){i=d instanceof Ct?d.errors:[d]}var m=this._teardowns;if(m){this._teardowns=null;try{for(var p=pe(m),h=p.next();!h.done;h=p.next()){var b=h.value;try{wn(b)}catch(d){i=i!=null?i:[],d instanceof Ct?i=j(j([],H(i)),H(d.errors)):i.push(d)}}}catch(d){r={error:d}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(i)throw new Ct(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)wn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Le(n,t)},e.prototype.remove=function(t){var n=this._teardowns;n&&Le(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var pr=we.EMPTY;function Ht(e){return e instanceof we||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function wn(e){S(e)?e():e.unsubscribe()}var xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Je.delegate;return((n==null?void 0:n.setTimeout)||setTimeout).apply(void 0,j([],H(e)))},clearTimeout:function(e){var t=Je.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ft(e){Je.setTimeout(function(){var t=xe.onUnhandledError;if(t)t(e);else throw e})}function ie(){}var En=function(){return fr("C",void 0,void 0)}();function Tn(e){return fr("E",void 0,e)}function On(e){return fr("N",e,void 0)}function fr(e,t,n){return{kind:e,value:t,error:n}}var Ue=null;function Ge(e){if(xe.useDeprecatedSynchronousErrorHandling){var t=!Ue;if(t&&(Ue={errorThrown:!1,error:null}),e(),t){var n=Ue,r=n.errorThrown,o=n.error;if(Ue=null,r)throw o}}else e()}function _n(e){xe.useDeprecatedSynchronousErrorHandling&&Ue&&(Ue.errorThrown=!0,Ue.error=e)}var lt=function(e){X(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ht(n)&&n.add(r)):r.destination=sa,r}return t.create=function(n,r,o){return new ut(n,r,o)},t.prototype.next=function(n){this.isStopped?dr(On(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?dr(Tn(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?dr(En,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(we);var ut=function(e){X(t,e);function t(n,r,o){var i=e.call(this)||this,a;if(S(n))a=n;else if(n){a=n.next,r=n.error,o=n.complete;var s;i&&xe.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=function(){return i.unsubscribe()}):s=n,a=a==null?void 0:a.bind(s),r=r==null?void 0:r.bind(s),o=o==null?void 0:o.bind(s)}return i.destination={next:a?mr(a,i):ie,error:mr(r!=null?r:Mn,i
|
||
|
//# sourceMappingURL=bundle.0d86bc28.min.js.map
|
||
|
|